diff --git a/Cargo.lock b/Cargo.lock index 94d502de5..7cd559cd7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -41,15 +41,6 @@ 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" @@ -281,7 +272,7 @@ dependencies = [ [[package]] name = "cargo-pgx" -version = "0.5.0-beta.1" +version = "0.5.0" dependencies = [ "atty", "cargo_metadata", @@ -561,26 +552,24 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.10" +version = "0.9.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "045ebe27666471bb549370b4b0b3e51b07f56325befa4284db65fc89c02511b1" +checksum = "f916dfc5d356b0ed9dae65f1db9fc9770aa2851d2662b988ccf4fe3516e86348" dependencies = [ "autocfg", "cfg-if", "crossbeam-utils", "memoffset", - "once_cell", "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.11" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc" +checksum = "edbafec5fa1f196ca66527c1b12c2ec4745ca14b50f1ad8f9f6f720b55d11fac" dependencies = [ "cfg-if", - "once_cell", ] [[package]] @@ -983,9 +972,9 @@ checksum = "616cde7c720bb2bb5824a224687d8f77bfd38922027f01d825cd7453be5099fb" [[package]] name = "itoa" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8af84674fe1f223a982c933a0ee1086ac4d4052aa0fb8060c12c6ad838e754" +checksum = "4217ad341ebadf8d8e724e264f13e593e0648f5b3e94b3896a5df283be015ecc" [[package]] name = "js-sys" @@ -1010,9 +999,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.133" +version = "0.2.134" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0f80d65747a3e43d1596c7c5492d95d5edddaabd45a7fcdb02b95f644164966" +checksum = "329c933548736bc49fd575ee68c89e8be4d260064184389a5b77517cddd99ffb" [[package]] name = "libflate" @@ -1196,6 +1185,16 @@ dependencies = [ "serde", ] +[[package]] +name = "nu-ansi-term" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" +dependencies = [ + "overload", + "winapi", +] + [[package]] name = "num_cpus" version = "1.13.1" @@ -1301,6 +1300,12 @@ version = "6.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" 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.5.0" @@ -1347,9 +1352,9 @@ checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" [[package]] name = "pest" -version = "2.3.1" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb779fcf4bb850fbbb0edc96ff6cf34fd90c4b1a112ce042653280d9a7364048" +checksum = "dbc7bc69c062e492337d74d59b120c274fd3d261b6bf6d3207d499b4b379c41a" dependencies = [ "thiserror", "ucd-trie", @@ -1367,7 +1372,7 @@ dependencies = [ [[package]] name = "pgx" -version = "0.5.0-beta.1" +version = "0.5.0" dependencies = [ "atomic-traits", "bitflags", @@ -1395,7 +1400,7 @@ dependencies = [ [[package]] name = "pgx-macros" -version = "0.5.0-beta.1" +version = "0.5.0" dependencies = [ "pgx-utils", "proc-macro2", @@ -1407,7 +1412,7 @@ dependencies = [ [[package]] name = "pgx-pg-config" -version = "0.5.0-beta.1" +version = "0.5.0" dependencies = [ "dirs", "eyre", @@ -1422,7 +1427,7 @@ dependencies = [ [[package]] name = "pgx-pg-sys" -version = "0.5.0-beta.1" +version = "0.5.0" dependencies = [ "bindgen", "color-eyre", @@ -1443,7 +1448,7 @@ dependencies = [ [[package]] name = "pgx-tests" -version = "0.5.0-beta.1" +version = "0.5.0" dependencies = [ "eyre", "libc", @@ -1464,7 +1469,7 @@ dependencies = [ [[package]] name = "pgx-utils" -version = "0.5.0-beta.1" +version = "0.5.0" dependencies = [ "atty", "convert_case", @@ -1588,9 +1593,9 @@ checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] name = "prettyplease" -version = "0.1.19" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a49e86d2c26a24059894a3afa13fd17d063419b05dfb83f06d9c3566060c3f5a" +checksum = "83fead41e178796ef8274dc612a7d8ce4c7e10ca35cd2c5b5ad24cac63aeb6c0" dependencies = [ "proc-macro2", "syn", @@ -1622,9 +1627,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.44" +version = "1.0.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bd7356a8122b6c4a24a82b278680c73357984ca2fc79a0f9fa6dea7dced7c58" +checksum = "94e2ef8dbfc347b10c094890f778ee2e36ca9bb4262e86dc99cd217e35f3470b" dependencies = [ "unicode-ident", ] @@ -2097,9 +2102,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fd0db749597d91ff862fd1d55ea87f7855a744a8425a64695b6fca237d1dad1" +checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" [[package]] name = "socket2" @@ -2119,6 +2124,14 @@ dependencies = [ "pgx-tests", ] +[[package]] +name = "spi_srf" +version = "0.0.0" +dependencies = [ + "pgx", + "pgx-tests", +] + [[package]] name = "spin" version = "0.5.2" @@ -2197,9 +2210,9 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.101" +version = "1.0.102" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e90cde112c4b9690b8cbe810cba9ddd8bc1d7472e2cae317b69e9438c1cba7d2" +checksum = "3fcd952facd492f9be3ef0d0b7032a6e442ee9b361d4acc2b1d0c4aaa5f613a1" dependencies = [ "proc-macro2", "quote", @@ -2295,9 +2308,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c3f9a28b618c3a6b9251b6908e9c99e04b9e5c02e6581ccbb67d59c34ef7f9b" +checksum = "d634a985c4d4238ec39cacaed2e7ae552fbd3c476b552c1deac3021b7d7eaf0c" dependencies = [ "itoa", "libc", @@ -2391,9 +2404,9 @@ dependencies = [ [[package]] name = "tracing" -version = "0.1.36" +version = "0.1.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fce9567bd60a67d08a16488756721ba392f24f29006402881e43b19aac64307" +checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ "cfg-if", "pin-project-lite", @@ -2403,9 +2416,9 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11c75893af559bc8e10716548bdef5cb2b983f8e637db9d0e15126b61b484ee2" +checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a" dependencies = [ "proc-macro2", "quote", @@ -2414,9 +2427,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.29" +version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aeea4303076558a00714b823f9ad67d58a3bbda1df83d8827d21193156e22f7" +checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" dependencies = [ "once_cell", "valuable", @@ -2445,12 +2458,12 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60db860322da191b40952ad9affe65ea23e7dd6a5c442c2c42865810c6ab8e6b" +checksum = "a6176eae26dd70d0c919749377897b54a9276bd7061339665dd68777926b5a70" dependencies = [ - "ansi_term", "matchers", + "nu-ansi-term", "once_cell", "regex", "sharded-slab", diff --git a/cargo-pgx/Cargo.toml b/cargo-pgx/Cargo.toml index 4c02b248a..8a7e62667 100644 --- a/cargo-pgx/Cargo.toml +++ b/cargo-pgx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-pgx" -version = "0.5.0-beta.1" +version = "0.5.0" authors = ["ZomboDB, LLC "] license = "MIT" description = "Cargo subcommand for 'pgx' to make Postgres extension development easy" @@ -23,10 +23,10 @@ semver = "1.0.14" owo-colors = { version = "3.5.0", features = [ "supports-colors" ] } env_proxy = "0.4.1" num_cpus = "1.13.1" -pgx-pg-config = { path = "../pgx-pg-config", version = "=0.5.0-beta.1" } -pgx-utils = { path = "../pgx-utils", version = "=0.5.0-beta.1" } -prettyplease = "0.1.19" -proc-macro2 = { version = "1.0.44", features = [ "span-locations" ] } +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.6.0" @@ -35,7 +35,7 @@ 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.101", features = [ "extra-traits", "full", "fold", "parsing" ] } +syn = { version = "1.0.102", features = [ "extra-traits", "full", "fold", "parsing" ] } unescape = "0.1.0" fork = "0.1.20" libloading = "0.7.3" @@ -43,6 +43,6 @@ object = "0.28.4" once_cell = "1.15.0" eyre = "0.6.8" color-eyre = "0.6.2" -tracing = "0.1.36" +tracing = "0.1.37" tracing-error = "0.2.0" -tracing-subscriber = { version = "0.3.15", features = [ "env-filter" ] } +tracing-subscriber = { version = "0.3.16", features = [ "env-filter" ] } diff --git a/cargo-pgx/src/command/connect.rs b/cargo-pgx/src/command/connect.rs index 12fdd11e1..d79511244 100644 --- a/cargo-pgx/src/command/connect.rs +++ b/cargo-pgx/src/command/connect.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 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; @@ -120,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 5e79e8221..b27881e39 100644 --- a/cargo-pgx/src/command/init.rs +++ b/cargo-pgx/src/command/init.rs @@ -155,20 +155,13 @@ 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)?; if is_root_user() { - println!( - "{} initdb as current user is root user", - " Skipping".bold().green(), - ); + println!("{} initdb as current user is root user", " Skipping".bold().green(),); } else { let datadir = pg_config.data_dir()?; let bindir = pg_config.bin_dir()?; @@ -199,9 +192,7 @@ 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()); @@ -264,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(), )?; @@ -445,24 +426,14 @@ fn is_root_user() -> bool { } 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 919660e8f..68b622e5a 100644 --- a/cargo-pgx/src/command/install.rs +++ b/cargo-pgx/src/command/install.rs @@ -7,19 +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_pg_config::{get_target_dir, PgConfig}; -use std::{ - io::BufReader, - path::{Path, PathBuf}, - process::{Command, Stdio}, -}; +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)] @@ -98,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)?; @@ -115,12 +109,8 @@ 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); @@ -140,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)?; } { @@ -171,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( @@ -206,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 @@ -285,19 +255,10 @@ pub(crate) fn build_extension( let command = command.stderr(Stdio::inherit()); let command_str = format!("{:?}", command); - 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))?; + 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) @@ -394,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/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 d34acaabb..ea5d80838 100644 --- a/cargo-pgx/src/command/package.rs +++ b/cargo-pgx/src/command/package.rs @@ -7,10 +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 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_pg_config::{get_target_dir, PgConfig}; diff --git a/cargo-pgx/src/command/run.rs b/cargo-pgx/src/command/run.rs index 87569eaf2..3d6d77980 100644 --- a/cargo-pgx/src/command/run.rs +++ b/cargo-pgx/src/command/run.rs @@ -7,17 +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_pg_config::{createdb, PgConfig, Pgx}; -use std::{os::unix::process::CommandExt, path::Path, process::Command}; +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)] @@ -141,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 50fe66117..f2b65ed88 100644 --- a/cargo-pgx/src/command/schema.rs +++ b/cargo-pgx/src/command/schema.rs @@ -6,14 +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 crate::{ - command::{ - get::{find_control_file, get_property}, - install::format_display_path, - }, - pgx_pg_sys_stub::PgxPgSysStub, - 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; @@ -21,12 +17,10 @@ use once_cell::sync::OnceCell; use owo_colors::OwoColorize; use pgx_pg_config::{get_target_dir, PgConfig, Pgx}; use pgx_utils::sql_entity_graph::{ControlFile, PgxSql, SqlGraphEntity}; -use std::{ - collections::HashSet, - hash::{Hash, Hasher}, - path::{Path, PathBuf}, - process::{Command, Stdio}, -}; +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; @@ -236,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() { @@ -261,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(),); @@ -273,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. @@ -415,13 +397,9 @@ pub(crate) fn generate_schema( } }; - let pgx_sql = PgxSql::build( - sql_mapping, - 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(); @@ -439,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"))?; @@ -542,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 5b9c63a26..d8bd70c00 100644 --- a/cargo-pgx/src/command/start.rs +++ b/cargo-pgx/src/command/start.rs @@ -14,7 +14,9 @@ use cargo_toml::Manifest; use eyre::{eyre, WrapErr}; use owo_colors::OwoColorize; use pgx_pg_config::{PgConfig, PgConfigSelector, Pgx}; -use std::{os::unix::process::CommandExt, path::PathBuf, process::Stdio}; +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 3077328a1..0322d075e 100644 --- a/cargo-pgx/src/command/status.rs +++ b/cargo-pgx/src/command/status.rs @@ -10,7 +10,8 @@ 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_pg_config::{PgConfig, PgConfigSelector, Pgx}; -use std::{path::PathBuf, process::Stdio}; +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 fcef67c8d..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_pg_config::{PgConfig, PgConfigSelector, Pgx}; -use std::{path::PathBuf, process::Stdio}; +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 b0bdde374..7e8d54396 100644 --- a/cargo-pgx/src/command/test.rs +++ b/cargo-pgx/src/command/test.rs @@ -10,10 +10,8 @@ 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_pg_config::{get_target_dir, PgConfig, PgConfigSelector, Pgx}; -use std::{ - path::{Path, PathBuf}, - process::{Command, Stdio}, -}; +use std::path::{Path, PathBuf}; +use std::process::{Command, Stdio}; use crate::CommandExecute; @@ -137,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 index 326eadf22..8171c1236 100644 --- a/cargo-pgx/src/command/version.rs +++ b/cargo-pgx/src/command/version.rs @@ -26,9 +26,7 @@ mod 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() + AgentBuilder::new().proxy(Proxy::new(format!("https://{host}:{port}"))?).build() } else { Agent::new() }; @@ -71,11 +69,7 @@ mod rss { println!( "{} Postgres {}", " Discovered".white().bold(), - versions - .iter() - .map(|ver| format!("v{ver}")) - .collect::>() - .join(", ") + versions.iter().map(|ver| format!("v{ver}")).collect::>().join(", ") ); Ok(versions) diff --git a/cargo-pgx/src/main.rs b/cargo-pgx/src/main.rs index a8c89f583..5747c02e0 100644 --- a/cargo-pgx/src/main.rs +++ b/cargo-pgx/src/main.rs @@ -15,7 +15,9 @@ 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/pgx_pg_sys_stub.rs b/cargo-pgx/src/pgx_pg_sys_stub.rs index 3fc0ca25b..b734ba94a 100644 --- a/cargo-pgx/src/pgx_pg_sys_stub.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/cargo_toml b/cargo-pgx/src/templates/cargo_toml index 32b200ca9..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.5.0-beta.1" +pgx = "=0.5.0" [dev-dependencies] -pgx-tests = "=0.5.0-beta.1" +pgx-tests = "=0.5.0" [profile.dev] panic = "unwind" diff --git a/nix/templates/default/Cargo.toml b/nix/templates/default/Cargo.toml index afe91afed..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.5.0-beta.1" -pgx-macros = "=0.5.0-beta.1" -pgx-utils = "=0.5.0-beta.1" +pgx = "=0.5.0" +pgx-macros = "=0.5.0" +pgx-utils = "=0.5.0" [dev-dependencies] -pgx-tests = "=0.5.0-beta.1" +pgx-tests = "=0.5.0" tempfile = "3.2.0" once_cell = "1.7.2" diff --git a/pgx-examples/aggregate/src/lib.rs b/pgx-examples/aggregate/src/lib.rs index c69ece19c..4b5afeb51 100644 --- a/pgx-examples/aggregate/src/lib.rs +++ b/pgx-examples/aggregate/src/lib.rs @@ -6,8 +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::aggregate::*; use pgx::cstr_core::CStr; -use pgx::{aggregate::*, pgx, prelude::*, PgVarlena, PgVarlenaInOutFuncs, StringInfo}; +use pgx::prelude::*; +use pgx::{pgx, PgVarlena, PgVarlenaInOutFuncs, StringInfo}; use serde::{Deserialize, Serialize}; use std::str::FromStr; diff --git a/pgx-examples/arrays/src/lib.rs b/pgx-examples/arrays/src/lib.rs index 5953e9cf8..67b3f772b 100644 --- a/pgx-examples/arrays/src/lib.rs +++ b/pgx-examples/arrays/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::{prelude::*, Array}; +use pgx::prelude::*; +use pgx::Array; use serde::*; pgx::pg_module_magic!(); #[pg_extern] fn sq_euclid_pgx(a: Array, b: Array) -> f32 { - a.iter_deny_null() - .zip(b.iter_deny_null()) - .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)] @@ -90,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)] diff --git a/pgx-examples/bad_ideas/src/lib.rs b/pgx-examples/bad_ideas/src/lib.rs index cf46a5871..c8edb453d 100644 --- a/pgx-examples/bad_ideas/src/lib.rs +++ b/pgx-examples/bad_ideas/src/lib.rs @@ -6,9 +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::{ - check_for_interrupts, info, prelude::*, register_xact_callback, PgRelation, PgXactCallbackEvent, -}; +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; @@ -31,10 +30,7 @@ fn exec<'a>( 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(( @@ -52,14 +48,9 @@ fn write_file(filename: &str, bytes: &[u8]) -> i64 { #[pg_extern] fn http(url: &str) -> String { - let response = ureq::Agent::new() - .get(url) - .call() - .expect("invalid http response"); - - response - .into_string() - .expect("invalid string from response") + let response = ureq::Agent::new().get(url).call().expect("invalid http response"); + + response.into_string().expect("invalid string from response") } #[pg_extern] diff --git a/pgx-examples/bgworker/src/lib.rs b/pgx-examples/bgworker/src/lib.rs index fd312a82a..ce33d92e3 100644 --- a/pgx-examples/bgworker/src/lib.rs +++ b/pgx-examples/bgworker/src/lib.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::{ - bgworkers::*, - datum::{FromDatum, IntoDatum}, - log, - prelude::*, -}; +use pgx::bgworkers::*; +use pgx::datum::{FromDatum, IntoDatum}; +use pgx::log; +use pgx::prelude::*; use std::time::Duration; /* @@ -84,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 81367a2a8..b040b6fbe 100644 --- a/pgx-examples/bytea/src/lib.rs +++ b/pgx-examples/bytea/src/lib.rs @@ -17,9 +17,7 @@ pgx::pg_module_magic!(); #[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 } diff --git a/pgx-examples/composite_type/src/lib.rs b/pgx-examples/composite_type/src/lib.rs index c063904c8..33eba8ce5 100644 --- a/pgx-examples/composite_type/src/lib.rs +++ b/pgx-examples/composite_type/src/lib.rs @@ -214,13 +214,8 @@ impl Aggregate for ScritchCollector { 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(); + let current_scritches: i32 = current.get_by_name("scritches").unwrap().unwrap_or_default(); + current.set_by_name("scritches", current_scritches + arg).unwrap(); Some(current) } } @@ -251,15 +246,15 @@ fn add_scritches_to_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.set_by_name("scritches", left_scritches + right).unwrap(); left } #[cfg(any(test, feature = "pg_test"))] #[pg_schema] mod tests { - use pgx::{prelude::*, AllocatedByRust}; + use pgx::prelude::*; + use pgx::AllocatedByRust; #[pg_test] fn test_create_dog() { diff --git a/pgx-examples/custom_types/src/complex.rs b/pgx-examples/custom_types/src/complex.rs index f2c587963..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::{prelude::*, Array}; +use pgx::prelude::*; +use pgx::Array; use serde::*; use std::collections::HashMap; diff --git a/pgx-examples/custom_types/src/fixed_size.rs b/pgx-examples/custom_types/src/fixed_size.rs index 7af9ac81c..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::{opname, pg_operator, prelude::*, PgVarlena, PgVarlenaInOutFuncs, StringInfo}; +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/errors/src/lib.rs b/pgx-examples/errors/src/lib.rs index a51620602..c5b01313a 100644 --- a/pgx-examples/errors/src/lib.rs +++ b/pgx-examples/errors/src/lib.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::{error, info, prelude::*, warning, PgRelation, FATAL, PANIC}; +use pgx::prelude::*; +use pgx::{error, info, warning, PgRelation, FATAL, PANIC}; pgx::pg_module_magic!(); diff --git a/pgx-examples/operators/src/lib.rs b/pgx-examples/operators/src/lib.rs index 1f2e07d03..f5700c4e0 100644 --- a/pgx-examples/operators/src/lib.rs +++ b/pgx-examples/operators/src/lib.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::{opname, pg_operator, prelude::*}; +use pgx::prelude::*; +use pgx::{opname, pg_operator}; use serde::{Deserialize, Serialize}; mod derived; diff --git a/pgx-examples/schemas/src/lib.rs b/pgx-examples/schemas/src/lib.rs index c7b3dd585..629bc0648 100644 --- a/pgx-examples/schemas/src/lib.rs +++ b/pgx-examples/schemas/src/lib.rs @@ -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/src/lib.rs b/pgx-examples/shmem/src/lib.rs index cc11c6087..feac85eb2 100644 --- a/pgx-examples/shmem/src/lib.rs +++ b/pgx-examples/shmem/src/lib.rs @@ -6,7 +6,11 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::{atomics::*, lwlock::PgLwLock, pg_shmem_init, prelude::*, shmem::*, warning}; +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; @@ -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 {} @@ -48,13 +49,7 @@ pub extern "C" fn _PG_init() { #[pg_extern] fn vec_select() -> SetOfIterator<'static, Pgtest> { - SetOfIterator::new( - VEC.share() - .iter() - .map(|i| *i) - .collect::>() - .into_iter(), - ) + SetOfIterator::new(VEC.share().iter().map(|i| *i).collect::>().into_iter()) } #[pg_extern] @@ -72,9 +67,7 @@ fn vec_drain() -> SetOfIterator<'static, Pgtest> { #[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 012550763..d6a72c380 100644 --- a/pgx-examples/spi/src/lib.rs +++ b/pgx-examples/spi/src/lib.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::{info, prelude::*, IntoDatum}; +use pgx::prelude::*; +use pgx::{info, IntoDatum}; pgx::pg_module_magic!(); diff --git a/pgx-examples/spi_srf/src/lib.rs b/pgx-examples/spi_srf/src/lib.rs index fdcbf4f18..ad7b40c7d 100644 --- a/pgx-examples/spi_srf/src/lib.rs +++ b/pgx-examples/spi_srf/src/lib.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::{prelude::*, IntoDatum, SpiTupleTable}; +use pgx::prelude::*; +use pgx::{IntoDatum, SpiTupleTable}; pgx::pg_module_magic!(); @@ -35,12 +36,7 @@ INSERT INTO dog_daycare(dog_name, dog_age, dog_breed) VALUES ('Moomba', 15, 'Lab #[pg_extern] fn calculate_human_years() -> TableIterator< 'static, - ( - name!(dog_name, String), - name!(dog_age, i32), - name!(dog_breed, String), - name!(human_age, i32), - ), + (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 diff --git a/pgx-examples/triggers/src/lib.rs b/pgx-examples/triggers/src/lib.rs index 815ba003e..cfe89c5fc 100644 --- a/pgx-examples/triggers/src/lib.rs +++ b/pgx-examples/triggers/src/lib.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::{prelude::*, WhoAllocated}; +use pgx::prelude::*; +use pgx::WhoAllocated; pgx::pg_module_magic!(); diff --git a/pgx-macros/Cargo.toml b/pgx-macros/Cargo.toml index 3ea481c54..e002b6c82 100644 --- a/pgx-macros/Cargo.toml +++ b/pgx-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-macros" -version = "0.5.0-beta.1" +version = "0.5.0" authors = ["ZomboDB, LLC "] license = "MIT" description = "Proc Macros for 'pgx'" @@ -18,10 +18,10 @@ proc-macro = true rustc-args = ["--cfg", "docsrs"] [dependencies] -pgx-utils = { path = "../pgx-utils", version = "=0.5.0-beta.1" } -proc-macro2 = "1.0.44" +pgx-utils = { path = "../pgx-utils", version = "=0.5.0" } +proc-macro2 = "1.0.46" quote = "1.0.21" -syn = { version = "1.0.101", features = [ "extra-traits", "full", "fold", "parsing" ] } +syn = { version = "1.0.102", features = [ "extra-traits", "full", "fold", "parsing" ] } unescape = "0.1.0" [dev-dependencies] diff --git a/pgx-macros/src/lib.rs b/pgx-macros/src/lib.rs index 95a5e00e1..3bb650abd 100644 --- a/pgx-macros/src/lib.rs +++ b/pgx-macros/src/lib.rs @@ -13,12 +13,10 @@ 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; use quote::{quote, ToTokens}; @@ -676,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); @@ -933,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() } /** @@ -961,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() } /** @@ -986,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() } /** @@ -1052,7 +1041,9 @@ Review the `pgx::trigger_support::PgTrigger` documentation for use. 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, punctuated::Punctuated, Token}; + use syn::parse::Parser; + use syn::punctuated::Punctuated; + use syn::Token; let attributes = Punctuated::::parse_terminated.parse(attrs)?; diff --git a/pgx-macros/src/operators.rs b/pgx-macros/src/operators.rs index e781c5ebb..cda57b1e0 100644 --- a/pgx-macros/src/operators.rs +++ b/pgx-macros/src/operators.rs @@ -9,8 +9,7 @@ Use of this source code is governed by the MIT license that can be found in the use pgx_utils::sql_entity_graph::{PostgresHash, PostgresOrd}; use proc_macro2::Ident; -use quote::quote; -use quote::ToTokens; +use quote::{quote, ToTokens}; use syn::DeriveInput; pub(crate) fn impl_postgres_eq(ast: DeriveInput) -> syn::Result { @@ -49,10 +48,7 @@ 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(), - ); + let pg_name = Ident::new(&format!("{}_eq", type_name).to_lowercase(), type_name.span()); quote! { #[allow(non_snake_case)] #[pg_operator(immutable, parallel_safe)] @@ -69,10 +65,7 @@ pub fn eq(type_name: &Ident) -> proc_macro2::TokenStream { } pub fn ne(type_name: &Ident) -> proc_macro2::TokenStream { - let pg_name = Ident::new( - &format!("{}_ne", type_name).to_lowercase(), - type_name.span(), - ); + let pg_name = Ident::new(&format!("{}_ne", type_name).to_lowercase(), type_name.span()); quote! { #[allow(non_snake_case)] #[pg_operator(immutable, parallel_safe)] @@ -87,10 +80,7 @@ pub fn ne(type_name: &Ident) -> proc_macro2::TokenStream { } pub fn lt(type_name: &Ident) -> proc_macro2::TokenStream { - let pg_name = Ident::new( - &format!("{}_lt", type_name).to_lowercase(), - type_name.span(), - ); + let pg_name = Ident::new(&format!("{}_lt", type_name).to_lowercase(), type_name.span()); quote! { #[allow(non_snake_case)] #[pg_operator(immutable, parallel_safe)] @@ -107,10 +97,7 @@ pub fn lt(type_name: &Ident) -> proc_macro2::TokenStream { } pub fn gt(type_name: &Ident) -> proc_macro2::TokenStream { - let pg_name = Ident::new( - &format!("{}_gt", type_name).to_lowercase(), - type_name.span(), - ); + let pg_name = Ident::new(&format!("{}_gt", type_name).to_lowercase(), type_name.span()); quote! { #[allow(non_snake_case)] #[pg_operator(immutable, parallel_safe)] @@ -126,10 +113,7 @@ pub fn gt(type_name: &Ident) -> proc_macro2::TokenStream { } pub fn le(type_name: &Ident) -> proc_macro2::TokenStream { - let pg_name = Ident::new( - &format!("{}_le", type_name).to_lowercase(), - type_name.span(), - ); + let pg_name = Ident::new(&format!("{}_le", type_name).to_lowercase(), type_name.span()); quote! { #[allow(non_snake_case)] #[pg_operator(immutable, parallel_safe)] @@ -145,10 +129,7 @@ pub fn le(type_name: &Ident) -> proc_macro2::TokenStream { } pub fn ge(type_name: &Ident) -> proc_macro2::TokenStream { - let pg_name = Ident::new( - &format!("{}_ge", type_name).to_lowercase(), - type_name.span(), - ); + let pg_name = Ident::new(&format!("{}_ge", type_name).to_lowercase(), type_name.span()); quote! { #[allow(non_snake_case)] #[pg_operator(immutable, parallel_safe)] @@ -164,10 +145,7 @@ pub fn ge(type_name: &Ident) -> proc_macro2::TokenStream { } pub fn cmp(type_name: &Ident) -> proc_macro2::TokenStream { - let pg_name = Ident::new( - &format!("{}_cmp", type_name).to_lowercase(), - type_name.span(), - ); + let pg_name = Ident::new(&format!("{}_cmp", type_name).to_lowercase(), type_name.span()); quote! { #[allow(non_snake_case)] #[pg_extern(immutable, parallel_safe)] @@ -178,10 +156,7 @@ pub fn cmp(type_name: &Ident) -> proc_macro2::TokenStream { } pub fn hash(type_name: &Ident) -> proc_macro2::TokenStream { - let pg_name = Ident::new( - &format!("{}_hash", type_name).to_lowercase(), - type_name.span(), - ); + let pg_name = Ident::new(&format!("{}_hash", type_name).to_lowercase(), type_name.span()); quote! { #[allow(non_snake_case)] #[pg_extern(immutable, parallel_safe)] diff --git a/pgx-pg-config/Cargo.toml b/pgx-pg-config/Cargo.toml index 2ed2545ff..0eff1057b 100644 --- a/pgx-pg-config/Cargo.toml +++ b/pgx-pg-config/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-pg-config" -version = "0.5.0-beta.1" +version = "0.5.0" authors = ["ZomboDB, LLC "] license = "MIT" description = "A Postgres pg_config wrapper for 'pgx'" @@ -20,5 +20,5 @@ serde = { version = "1.0.145", features = [ "derive" ] } serde_derive = "1.0.145" serde_json = "1.0.85" toml = "0.5.9" -tracing = "0.1.36" +tracing = "0.1.37" url = "2.3.1" diff --git a/pgx-pg-config/src/lib.rs b/pgx-pg-config/src/lib.rs index 36859bf66..3c0b9d2f9 100644 --- a/pgx-pg-config/src/lib.rs +++ b/pgx-pg-config/src/lib.rs @@ -10,16 +10,13 @@ Use of this source code is governed by the MIT license that can be found in the use eyre::{eyre, WrapErr}; use owo_colors::OwoColorize; use serde_derive::{Deserialize, Serialize}; +use std::collections::HashMap; +use std::ffi::OsString; use std::fmt::{self, Display, Formatter}; -use std::process::Stdio; -use std::{ - collections::HashMap, - ffi::OsString, - io::ErrorKind, - path::{Path, PathBuf}, - process::Command, - str::FromStr, -}; +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; @@ -59,12 +56,8 @@ pub struct PgConfig { impl Display for PgConfig { 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 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(), @@ -75,28 +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, - } + 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 { @@ -261,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() { @@ -360,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(), } diff --git a/pgx-pg-config/src/path_methods.rs b/pgx-pg-config/src/path_methods.rs index ba081896d..10dcfe9ba 100644 --- a/pgx-pg-config/src/path_methods.rs +++ b/pgx-pg-config/src/path_methods.rs @@ -1,6 +1,7 @@ use eyre::{eyre, WrapErr}; use serde_json::value::Value as JsonValue; -use std::{path::PathBuf, process::Command}; +use std::path::PathBuf; +use std::process::Command; // Originally part of `pgx-utils` pub fn prefix_path>(dir: P) -> String { @@ -17,18 +18,11 @@ pub fn prefix_path>(dir: P) -> String { // 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`")?; + 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 - )); + return Err(eyre!("'cargo metadata' failed with exit code: {}", output.status)); } let json: JsonValue = @@ -36,9 +30,6 @@ pub fn get_target_dir() -> eyre::Result { 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, - )), + 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 6cca6106e..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.5.0-beta.1" +version = "0.5.0" authors = ["ZomboDB, LLC "] license = "MIT" description = "Generated Rust bindings for Postgres internals, for use with 'pgx'" @@ -30,19 +30,19 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] memoffset = "0.6.5" once_cell = "1.15.0" -pgx-macros = { path = "../pgx-macros/", version = "=0.5.0-beta.1" } -pgx-utils = { path = "../pgx-utils/", version = "=0.5.0-beta.1" } +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.60.1", default-features = false, features = ["runtime"] } -pgx-pg-config= { path = "../pgx-pg-config/", version = "=0.5.0-beta.1" } -pgx-utils = { path = "../pgx-utils/", version = "=0.5.0-beta.1" } -proc-macro2 = "1.0.44" +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.101", 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.2" rustversion = "1.0" diff --git a/pgx-pg-sys/build.rs b/pgx-pg-sys/build.rs index c489bddfe..6d459c173 100644 --- a/pgx-pg-sys/build.rs +++ b/pgx-pg-sys/build.rs @@ -13,11 +13,9 @@ use pgx_pg_config::{prefix_path, PgConfig, PgConfigSelector, Pgx, SUPPORTED_MAJO 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)] @@ -110,10 +108,7 @@ fn main() -> color_eyre::Result<()> { let pgx = Pgx::from_config()?; - println!( - "cargo:rerun-if-changed={}", - Pgx::config_toml()?.display().to_string(), - ); + println!("cargo:rerun-if-changed={}", Pgx::config_toml()?.display().to_string(),); println!("cargo:rerun-if-changed=include"); println!("cargo:rerun-if-changed=cshim"); @@ -152,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)); @@ -473,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 } } } @@ -774,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) @@ -807,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/src/lib.rs b/pgx-pg-sys/src/lib.rs index 281856128..2d896ef67 100644 --- a/pgx-pg-sys/src/lib.rs +++ b/pgx-pg-sys/src/lib.rs @@ -28,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 @@ -456,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 92fe69deb..6885af985 100644 --- a/pgx-pg-sys/src/pg10.rs +++ b/pgx-pg-sys/src/pg10.rs @@ -22,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 } @@ -35,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; @@ -55,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; } } @@ -73,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); } } @@ -155,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; @@ -368,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 = 36; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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; @@ -519,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; @@ -771,428 +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 SOL_MPTCP: u32 = 284; -pub const SOL_MCTP: u32 = 285; -pub const SOL_SMC: u32 = 286; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -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_TXREHASH: u32 = 74; -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.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; @@ -1301,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; @@ -1404,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; @@ -1577,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; @@ -1697,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; @@ -1847,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; @@ -1861,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; @@ -1883,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; @@ -1944,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; @@ -2816,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; @@ -2915,137 +1826,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)] @@ -3106,4229 +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 { +#[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() { 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 EmitErrorReport(); } - lrand48_r(arg___buffer, arg___result) + EmitErrorReport() }) } -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 CopyErrorData() -> *mut ErrorData { 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 CopyErrorData() -> *mut ErrorData; } - nrand48_r(arg___xsubi, arg___buffer, arg___result) + CopyErrorData() }) } -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 FreeErrorData(arg_edata: *mut ErrorData) { 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 FreeErrorData(arg_edata: *mut ErrorData); } - mrand48_r(arg___buffer, arg___result) + FreeErrorData(arg_edata) }) } -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 FlushErrorState() { 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 FlushErrorState(); } - jrand48_r(arg___xsubi, arg___buffer, arg___result) + FlushErrorState() }) } -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 ReThrowError(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 ReThrowError(arg_edata: *mut ErrorData); } - srand48_r(arg___seedval, arg___buffer) + ReThrowError(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 ThrowErrorData(arg_edata: *mut ErrorData) { 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 ThrowErrorData(arg_edata: *mut ErrorData); } - seed48_r(arg___seed16v, arg___buffer) + ThrowErrorData(arg_edata) }) } -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 GetErrorContextStack() -> *mut ::std::os::raw::c_char { 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 GetErrorContextStack() -> *mut ::std::os::raw::c_char; } - lcong48_r(arg___param, arg___buffer) + GetErrorContextStack() }) } -pub unsafe fn arc4random() -> __uint32_t { +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 arc4random() -> __uint32_t; + fn DebugFileOpen(); } - arc4random() + DebugFileOpen() }) } -pub unsafe fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize) { +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 arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize); + fn unpack_sql_state( + arg_sql_state: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - arc4random_buf(arg___buf, arg___size) + unpack_sql_state(arg_sql_state) }) } -pub unsafe fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t { +pub unsafe fn in_error_recursion_trouble() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t; + fn in_error_recursion_trouble() -> bool; } - arc4random_uniform(arg___upper_bound) + in_error_recursion_trouble() }) } -pub unsafe fn malloc(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 malloc(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, + ); } - malloc(arg___size) + set_syslog_parameters(arg_ident, arg_facility) }) } -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 write_stderr(arg_fmt: *const ::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 write_stderr(arg_fmt: *const ::std::os::raw::c_char); } - calloc(arg___nmemb, arg___size) + write_stderr(arg_fmt) }) } -pub unsafe fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, +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 realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, + fn MemoryContextAlloc( + arg_context: MemoryContext, + arg_size: Size, ) -> *mut ::std::os::raw::c_void; } - realloc(arg___ptr, arg___size) + MemoryContextAlloc(arg_context, arg_size) }) } -pub unsafe fn free(arg___ptr: *mut ::std::os::raw::c_void) { +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 free(arg___ptr: *mut ::std::os::raw::c_void); + fn MemoryContextAllocZero( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - free(arg___ptr) + MemoryContextAllocZero(arg_context, arg_size) }) } -pub unsafe fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, +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 reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, + fn MemoryContextAllocZeroAligned( + arg_context: MemoryContext, + arg_size: Size, ) -> *mut ::std::os::raw::c_void; } - reallocarray(arg___ptr, arg___nmemb, arg___size) + MemoryContextAllocZeroAligned(arg_context, arg_size) }) } -pub unsafe fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { +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 alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; + fn MemoryContextAllocExtended( + arg_context: MemoryContext, + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - alloca(arg___size) + MemoryContextAllocExtended(arg_context, arg_size, arg_flags) }) } -pub unsafe fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void { +pub unsafe fn palloc(arg_size: Size) -> *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; + fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; } - valloc(arg___size) + palloc(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 { +pub unsafe fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void { 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 palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; } - posix_memalign(arg___memptr, arg___alignment, arg___size) + palloc0(arg_size) }) } -pub unsafe fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, +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 aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, + fn palloc_extended( + arg_size: Size, + arg_flags: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } - aligned_alloc(arg___alignment, arg___size) + palloc_extended(arg_size, arg_flags) }) } -pub unsafe fn abort() { +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 abort(); + fn repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - abort() + repalloc(arg_pointer, arg_size) }) } -pub unsafe fn atexit( - arg___func: ::std::option::Option, -) -> ::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 atexit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; + fn pfree(arg_pointer: *mut ::std::os::raw::c_void); } - atexit(arg___func) + pfree(arg_pointer) }) } -pub unsafe fn at_quick_exit( - arg___func: ::std::option::Option, -) -> ::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 at_quick_exit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; + fn MemoryContextAllocHuge( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - at_quick_exit(arg___func) + MemoryContextAllocHuge(arg_context, arg_size) }) } -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 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 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 repalloc_huge( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - on_exit(arg___func, arg___arg) + repalloc_huge(arg_pointer, arg_size) }) } -pub unsafe fn exit(arg___status: ::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 exit(arg___status: ::std::os::raw::c_int); + fn MemoryContextRegisterResetCallback( + arg_context: MemoryContext, + arg_cb: *mut MemoryContextCallback, + ); } - exit(arg___status) + MemoryContextRegisterResetCallback(arg_context, arg_cb) }) } -pub unsafe fn quick_exit(arg___status: ::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 quick_exit(arg___status: ::std::os::raw::c_int); + fn MemoryContextStrdup( + arg_context: MemoryContext, + arg_string: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - quick_exit(arg___status) + MemoryContextStrdup(arg_context, arg_string) }) } -pub unsafe fn _Exit(arg___status: ::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 _Exit(arg___status: ::std::os::raw::c_int); + fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - _Exit(arg___status) + pstrdup(arg_in_) }) } -pub unsafe fn getenv(arg___name: *const ::std::os::raw::c_char) -> *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 getenv(arg___name: *const ::std::os::raw::c_char) -> *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; } - getenv(arg___name) + pnstrdup(arg_in_, arg_len) }) } -pub unsafe fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::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 putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - putenv(arg___string) + pchomp(arg_in_) }) } -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 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 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 psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - setenv(arg___name, arg___value, arg___replace) + psprintf(arg_fmt) }) } -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) - }) +#[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 clearenv() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clearenv() -> ::std::os::raw::c_int; +#[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() } - 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; +#[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() } - 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; +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() } - 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 { +#[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 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 mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, - ) -> ::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, + ); } - mkstemps(arg___template, arg___suffixlen) + ExceptionalCondition(arg_conditionName, arg_errorType, arg_fileName, arg_lineNumber) }) } -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; +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, +} +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() } - 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; +#[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() } - 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 { +pub unsafe fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo) { 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 fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo); } - realpath(arg___name, arg___resolved) + fmgr_info(arg_functionId, arg_finfo) }) } -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 fmgr_info_cxt( + arg_functionId: Oid, + arg_finfo: *mut FmgrInfo, + arg_mcxt: MemoryContext, +) { 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 fmgr_info_cxt( + arg_functionId: Oid, + arg_finfo: *mut FmgrInfo, + arg_mcxt: MemoryContext, + ); } - bsearch(arg___key, arg___base, arg___nmemb, arg___size, arg___compar) + fmgr_info_cxt(arg_functionId, arg_finfo, arg_mcxt) }) } -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 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 qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, + fn fmgr_info_copy( + arg_dstinfo: *mut FmgrInfo, + arg_srcinfo: *mut FmgrInfo, + arg_destcxt: MemoryContext, ); } - qsort(arg___base, arg___nmemb, arg___size, arg___compar) + fmgr_info_copy(arg_dstinfo, arg_srcinfo, arg_destcxt) }) } -pub unsafe fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena { 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 pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena; } - abs(arg___x) + pg_detoast_datum(arg_datum) }) } -pub unsafe fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long { +pub unsafe fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena { 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 pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena; } - labs(arg___x) + pg_detoast_datum_copy(arg_datum) }) } -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 { +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 div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) - -> div_t; + fn pg_detoast_datum_slice( + arg_datum: *mut varlena, + arg_first: int32, + arg_count: int32, + ) -> *mut varlena; } - div(arg___numer, arg___denom) + pg_detoast_datum_slice(arg_datum, arg_first, arg_count) }) } -pub unsafe fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, -) -> ldiv_t { +pub unsafe fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena { 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 pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena; } - ldiv(arg___numer, arg___denom) + pg_detoast_datum_packed(arg_datum) }) } -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) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Pg_finfo_record { + pub api_version: ::std::os::raw::c_int, } -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 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( - 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 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( - 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 DirectFunctionCall1Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - fcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + DirectFunctionCall1Coll(arg_func, arg_collation, arg_arg1) }) } -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 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 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 DirectFunctionCall2Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - gcvt(arg___value, arg___ndigit, arg___buf) + DirectFunctionCall2Coll(arg_func, arg_collation, arg_arg1, arg_arg2) }) } -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 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 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 DirectFunctionCall3Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - qecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + DirectFunctionCall3Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -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 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 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 DirectFunctionCall4Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - qfcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + DirectFunctionCall4Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -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 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 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 DirectFunctionCall5Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - qgcvt(arg___value, arg___ndigit, arg___buf) + DirectFunctionCall5Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -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 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 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 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; } - ecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, + DirectFunctionCall6Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, ) }) } -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 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 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 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; } - fcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, + DirectFunctionCall7Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, ) }) } -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 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 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 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; } - qecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, + DirectFunctionCall8Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, ) }) } -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 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 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 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; } - qfcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, + 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 mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::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 mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; + fn CallerFInfoFunctionCall1( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - mblen(arg___s, arg___n) + CallerFInfoFunctionCall1(arg_func, arg_flinfo, arg_collation, arg_arg1) }) } -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 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 mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; + fn CallerFInfoFunctionCall2( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - mbtowc(arg___pwc, arg___s, arg___n) + CallerFInfoFunctionCall2(arg_func, arg_flinfo, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, -) -> ::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 wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, - ) -> ::std::os::raw::c_int; + fn FunctionCall1Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - wctomb(arg___s, arg___wchar) + FunctionCall1Coll(arg_flinfo, arg_collation, arg_arg1) }) } -pub unsafe fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> usize { +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 mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> usize; + fn FunctionCall2Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - mbstowcs(arg___pwcs, arg___s, arg___n) + FunctionCall2Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, -) -> usize { +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 wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, - ) -> usize; + fn FunctionCall3Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - wcstombs(arg___s, arg___pwcs, arg___n) + FunctionCall3Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -pub unsafe fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::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 rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::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; } - rpmatch(arg___response) + FunctionCall4Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -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 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 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 FunctionCall5Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - getsubopt(arg___optionp, arg___tokens, arg___valuep) + FunctionCall5Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -pub unsafe fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, -) -> ::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 getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, - ) -> ::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; } - getloadavg(arg___loadavg, arg___nelem) + FunctionCall6Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -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 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 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 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; } - memcpy(arg___dest, arg___src, arg___n) + FunctionCall7Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -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 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 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 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; } - memmove(arg___dest, arg___src, arg___n) + FunctionCall8Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -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 { +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 __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 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; } - __memcmpeq(arg___s1, arg___s2, 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 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 OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> 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 OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum; } - memchr(arg___s, arg___c, arg___n) + OidFunctionCall0Coll(arg_functionId, arg_collation) }) } -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 OidFunctionCall1Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: 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 OidFunctionCall1Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - strcpy(arg___dest, arg___src) + OidFunctionCall1Coll(arg_functionId, arg_collation, arg_arg1) }) } -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 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 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 OidFunctionCall2Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - strncpy(arg___dest, arg___src, arg___n) + OidFunctionCall2Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2) }) } -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 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 strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *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; } - strcat(arg___dest, arg___src) + OidFunctionCall3Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -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 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 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 OidFunctionCall4Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - strncat(arg___dest, arg___src, arg___n) + OidFunctionCall4Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -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 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 strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn OidFunctionCall5Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - strcmp(arg___s1, arg___s2) + OidFunctionCall5Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -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 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 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 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; } - strncmp(arg___s1, arg___s2, arg___n) + OidFunctionCall6Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -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 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( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::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(arg___s1, arg___s2) + OidFunctionCall7Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -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 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( - 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 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(arg___dest, arg___src, arg___n) + OidFunctionCall8Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -#[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 { +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 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 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; } - strcoll_l(arg___s1, arg___s2, arg___l) + 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 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 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 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 InputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - strxfrm_l(arg___dest, arg___src, arg___n, arg___l) + InputFunctionCall(arg_flinfo, arg_str_, arg_typioparam, arg_typmod) }) } -pub unsafe fn strdup(arg___s: *const ::std::os::raw::c_char) -> *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 strdup(arg___s: *const ::std::os::raw::c_char) -> *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; } - strdup(arg___s) + OidInputFunctionCall(arg_functionId, arg_str_, arg_typioparam, arg_typmod) }) } -pub unsafe fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, +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 strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, + fn OutputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_val: Datum, ) -> *mut ::std::os::raw::c_char; } - strndup(arg___string, arg___n) + OutputFunctionCall(arg_flinfo, arg_val) }) } -pub unsafe fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::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 strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, + fn OidOutputFunctionCall( + arg_functionId: Oid, + arg_val: Datum, ) -> *mut ::std::os::raw::c_char; } - strchr(arg___s, arg___c) + OidOutputFunctionCall(arg_functionId, arg_val) }) } -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 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 strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn ReceiveFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - strrchr(arg___s, arg___c) + ReceiveFunctionCall(arg_flinfo, arg_buf, arg_typioparam, arg_typmod) }) } -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 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 strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; + fn OidReceiveFunctionCall( + arg_functionId: Oid, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - strcspn(arg___s, arg___reject) + OidReceiveFunctionCall(arg_functionId, arg_buf, arg_typioparam, arg_typmod) }) } -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 SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea { 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 SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea; } - strspn(arg___s, arg___accept) + SendFunctionCall(arg_flinfo, arg_val) }) } -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 OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea { 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 OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea; } - strpbrk(arg___s, arg___accept) + OidSendFunctionCall(arg_functionId, arg_val) }) } -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 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 strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::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; } - strstr(arg___haystack, arg___needle) + fetch_finfo_record(arg_filehandle, arg_funcname) }) } -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 clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void) { 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 clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void); } - strtok(arg___s, arg___delim) + clear_external_function_hash(arg_filehandle) }) } -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 fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid { 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 fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid; } - __strtok_r(arg___s, arg___delim, arg___save_ptr) + fmgr_internal_function(arg_proname) }) } -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 get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid { 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 get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid; } - strtok_r(arg___s, arg___delim, arg___save_ptr) + get_fn_expr_rettype(arg_flinfo) }) } -pub unsafe fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong { +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 strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; + fn get_fn_expr_argtype( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, + ) -> Oid; } - strlen(arg___s) + get_fn_expr_argtype(arg_flinfo, arg_argnum) }) } -pub unsafe fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize { +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 strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize; + fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) + -> Oid; } - strnlen(arg___string, arg___maxlen) + get_call_expr_argtype(arg_expr, arg_argnum) }) } -pub unsafe fn strerror(arg___errnum: ::std::os::raw::c_int) -> *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(arg___errnum: ::std::os::raw::c_int) -> *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(arg___errnum) + get_fn_expr_arg_stable(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_arg_stable( + arg_expr: fmNodePtr, + arg_argnum: ::std::os::raw::c_int, +) -> bool { 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_arg_stable( + arg_expr: fmNodePtr, + arg_argnum: ::std::os::raw::c_int, + ) -> bool; } - strerror_r(arg___errnum, arg___buf, arg___buflen) + get_call_expr_arg_stable(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_variadic(arg_flinfo: *mut FmgrInfo) -> 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_variadic(arg_flinfo: *mut FmgrInfo) -> bool; } - strerror_l(arg___errnum, arg___l) + get_fn_expr_variadic(arg_flinfo) }) } -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 CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> 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 CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool; } - bcmp(arg___s1, arg___s2, arg___n) + CheckFunctionValidatorAccess(arg_validatorOid, arg_functionOid) }) } -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) - }) +extern "C" { + pub static mut Dynamic_library_path: *mut ::std::os::raw::c_char; } -pub unsafe fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong) { +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 bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong); + 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; } - bzero(arg___s, arg___n) + load_external_function(arg_filename, arg_funcname, arg_signalNotFound, arg_filehandle) }) } -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 { +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 index( - 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; } - index(arg___s, arg___c) + lookup_external_function(arg_filehandle, arg_funcname) }) } -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 load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool) { 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 load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool); } - rindex(arg___s, arg___c) + load_file(arg_filename, arg_restricted) }) } -pub unsafe fn ffs(arg___i: ::std::os::raw::c_int) -> ::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 ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn find_rendezvous_variable( + arg_varName: *const ::std::os::raw::c_char, + ) -> *mut *mut ::std::os::raw::c_void; } - ffs(arg___i) + find_rendezvous_variable(arg_varName) }) } -pub unsafe fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int { +pub unsafe fn EstimateLibraryStateSpace() -> Size { 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 EstimateLibraryStateSpace() -> Size; } - ffsl(arg___l) + EstimateLibraryStateSpace() }) } -pub unsafe fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::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 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 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) - }) -} -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; + 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 { @@ -7337,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, -} -impl Default for msghdr { +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 Node { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7379,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 { @@ -7928,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 { @@ -8019,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 { @@ -8046,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 { +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 { @@ -9202,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 { @@ -9288,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 { @@ -11123,111 +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 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 { @@ -11236,18 +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)] -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], +#[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 FunctionCallInfoData { +impl Default for pairingheap { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -11256,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 { @@ -12632,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 { @@ -13050,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 { @@ -13248,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 { @@ -13269,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 { @@ -13278,1176 +9995,1683 @@ 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 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 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)] -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, +#[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 ScanKeyData { +impl Default for ParamListInfoData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -14456,1824 +11680,2170 @@ 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, -) { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParamExecData { + pub execPlan: *mut ::std::os::raw::c_void, + pub value: Datum, + pub isnull: bool, +} +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() + } + } +} +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, - ) - }) -} -#[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 { - 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, - ) + SerializeParamList(arg_paramLI, arg_start_address) }) } -pub unsafe fn dsm_impl_can_resize() -> 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_can_resize() -> bool; + fn RestoreParamList( + arg_start_address: *mut *mut ::std::os::raw::c_char, + ) -> ParamListInfo; } - dsm_impl_can_resize() + RestoreParamList(arg_start_address) }) } -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) - }) +#[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_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, - ); +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_unpin_segment(arg_handle, arg_impl_private) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct dsm_segment { - _unused: [u8; 0], +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() + } + } } #[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 struct Result { + pub plan: Plan, + pub resconstantqual: *mut Node, } -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); +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() } - 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() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ProjectSet { + pub plan: Plan, } -pub unsafe fn dsm_detach_all() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_detach_all(); +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_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) - }) +#[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_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; +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_attach(arg_h) - }) + } } -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; - } - dsm_resize(arg_seg, arg_size) - }) +#[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_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; +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_remap(arg_seg) - }) + } } -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) - }) +#[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_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); +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_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) - }) +#[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_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); +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapAnd { + pub plan: Plan, + pub bitmapplans: *mut List, } -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; +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapOr { + pub plan: Plan, + pub isshared: bool, + pub bitmapplans: *mut List, } -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; +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Scan { + pub plan: Plan, + pub scanrelid: Index, } -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, - ); +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() } - 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 type SeqScan = Scan; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SampleScan { + pub scan: Scan, + pub tablesample: *mut TableSampleClause, } -pub unsafe fn reset_on_dsm_detach() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn reset_on_dsm_detach(); +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() } - reset_on_dsm_detach() - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct dsa_area { - _unused: [u8; 0], +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 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 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() } - 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; +#[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() } - 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) - }) +#[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 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; +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapHeapScan { + pub scan: Scan, + pub bitmapqualorig: *mut List, } -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); +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TidScan { + pub scan: Scan, + pub tidquals: *mut List, } -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); +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubqueryScan { + pub scan: Scan, + pub subplan: *mut Plan, } -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); +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FunctionScan { + pub scan: Scan, + pub functions: *mut List, + pub funcordinality: bool, } -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); +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ValuesScan { + pub scan: Scan, + pub values_lists: *mut List, } -pub unsafe fn dsa_minimum_size() -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_minimum_size() -> usize; +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableFuncScan { + pub scan: Scan, + pub tablefunc: *mut TableFunc, } -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; +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_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) - }) +#[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_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; +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NamedTuplestoreScan { + pub scan: Scan, + pub enrname: *mut ::std::os::raw::c_char, } -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); +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_dump(arg_area) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TIDBitmap { - _unused: [u8; 0], +pub struct WorkTableScan { + pub scan: Scan, + pub wtParam: ::std::os::raw::c_int, +} +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() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TBMIterator { - _unused: [u8; 0], +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() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TBMSharedIterator { - _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, 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 Join { + pub plan: Plan, + pub jointype: JoinType, + pub inner_unique: bool, + pub joinqual: *mut List, } -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 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() } - 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 NestLoop { + pub join: Join, + pub nestParams: *mut List, } -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 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() } - 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 NestLoopParam { + pub type_: NodeTag, + pub paramno: ::std::os::raw::c_int, + pub paramval: *mut Var, } -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 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_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 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_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 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_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 HashJoin { + pub join: Join, + pub hashclauses: *mut List, } -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 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_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 Material { + pub plan: Plan, } -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 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_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) - }) +#[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_end_iterate(arg_iterator: *mut TBMIterator) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_end_iterate(arg_iterator: *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_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 Group { + pub plan: Plan, + pub numCols: ::std::os::raw::c_int, + pub grpColIdx: *mut AttrNumber, + pub grpOperators: *mut Oid, +} +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_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 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_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 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() + } + } } -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 Unique { + pub plan: Plan, + pub numCols: ::std::os::raw::c_int, + pub uniqColIdx: *mut AttrNumber, + pub uniqOperators: *mut Oid, } -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 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() } - 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 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() } - 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 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() } - bms_make_singleton(arg_x) - }) + } } -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); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Hash { + pub plan: Plan, + pub skewTable: Oid, + pub skewColumn: AttrNumber, + pub skewInherit: bool, +} +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_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; +#[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_union(arg_a, arg_b) - }) + } } -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; +#[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_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; +#[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() } - bms_difference(arg_a, arg_b) - }) + } } -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; +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() } - bms_is_subset(arg_a, arg_b) - }) + } } -pub unsafe fn bms_subset_compare( - arg_a: *const Bitmapset, - arg_b: *const Bitmapset, -) -> BMS_Comparison { +#[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_subset_compare( - arg_a: *const Bitmapset, - arg_b: *const Bitmapset, - ) -> BMS_Comparison; + 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_subset_compare(arg_a, arg_b) + hash_create(arg_tabname, arg_nelem, arg_info, arg_flags) }) } -pub unsafe fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool { +pub unsafe fn hash_destroy(arg_hashp: *mut HTAB) { 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_destroy(arg_hashp: *mut HTAB); } - bms_is_member(arg_x, arg_a) + hash_destroy(arg_hashp) }) } -pub unsafe fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { +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_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; + fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB); } - bms_overlap(arg_a, arg_b) + hash_stats(arg_where_, arg_hashp) }) } -pub unsafe fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool { +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_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool; + 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_overlap_list(arg_a, arg_b) + hash_search(arg_hashp, arg_keyPtr, arg_action, arg_foundPtr) }) } -pub unsafe fn bms_nonempty_difference(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_nonempty_difference(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_nonempty_difference(arg_a, arg_b) + get_hash_value(arg_hashp, arg_keyPtr) }) } -pub unsafe fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int { +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_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; + 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_singleton_member(arg_a) + hash_search_with_hash_value(arg_hashp, arg_keyPtr, arg_hashvalue, arg_action, arg_foundPtr) }) } -pub unsafe fn bms_get_singleton_member( - arg_a: *const Bitmapset, - arg_member: *mut ::std::os::raw::c_int, +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_get_singleton_member( - arg_a: *const Bitmapset, - arg_member: *mut ::std::os::raw::c_int, + 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_get_singleton_member(arg_a, arg_member) + hash_update_hash_key(arg_hashp, arg_existingEntry, arg_newKeyPtr) }) } -pub unsafe fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int { +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_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; + fn hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long; } - bms_num_members(arg_a) + hash_get_num_entries(arg_hashp) }) } -pub unsafe fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership { +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_membership(arg_a: *const Bitmapset) -> BMS_Membership; + fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB); } - bms_membership(arg_a) + hash_seq_init(arg_status, arg_hashp) }) } -pub unsafe fn bms_is_empty(arg_a: *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_is_empty(arg_a: *const Bitmapset) -> bool; + fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void; } - bms_is_empty(arg_a) + hash_seq_search(arg_status) }) } -pub unsafe fn bms_add_member( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, -) -> *mut Bitmapset { +pub unsafe fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS) { 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 hash_seq_term(arg_status: *mut HASH_SEQ_STATUS); } - bms_add_member(arg_a, arg_x) + hash_seq_term(arg_status) }) } -pub unsafe fn bms_del_member( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, -) -> *mut Bitmapset { +pub unsafe fn hash_freeze(arg_hashp: *mut HTAB) { 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 hash_freeze(arg_hashp: *mut HTAB); } - bms_del_member(arg_a, arg_x) + hash_freeze(arg_hashp) }) } -pub unsafe fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { +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_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; + fn hash_estimate_size( + arg_num_entries: ::std::os::raw::c_long, + arg_entrysize: Size, + ) -> Size; } - bms_add_members(arg_a, arg_b) + hash_estimate_size(arg_num_entries, arg_entrysize) }) } -pub unsafe fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { +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_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; + fn hash_select_dirsize( + arg_num_entries: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; } - bms_int_members(arg_a, arg_b) + hash_select_dirsize(arg_num_entries) }) } -pub unsafe fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { +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_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; + fn hash_get_shared_size( + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, + ) -> Size; } - bms_del_members(arg_a, arg_b) + hash_get_shared_size(arg_info, arg_flags) }) } -pub unsafe fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset { +pub unsafe fn AtEOXact_HashTables(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset; + fn AtEOXact_HashTables(arg_isCommit: bool); } - bms_join(arg_a, arg_b) + AtEOXact_HashTables(arg_isCommit) }) } -pub unsafe fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int { +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_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int; + fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); } - bms_first_member(arg_a) + AtEOSubXact_HashTables(arg_isCommit, arg_nestDepth) }) } -pub unsafe fn bms_next_member( - arg_a: *const Bitmapset, - arg_prevbit: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +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_next_member( - arg_a: *const Bitmapset, - arg_prevbit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn string_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - bms_next_member(arg_a, arg_prevbit) + string_hash(arg_key, arg_keysize) }) } -pub unsafe fn bms_hash_value(arg_a: *const Bitmapset) -> uint32 { +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_hash_value(arg_a: *const Bitmapset) -> uint32; + fn tag_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - bms_hash_value(arg_a) + tag_hash(arg_key, arg_keysize) }) } -pub type Relation = *mut RelationData; -pub type RelationPtr = *mut Relation; -pub unsafe fn RelationIdGetRelation(arg_relationId: Oid) -> Relation { +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 RelationIdGetRelation(arg_relationId: Oid) -> Relation; + fn uint32_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - RelationIdGetRelation(arg_relationId) + uint32_hash(arg_key, arg_keysize) }) } -pub unsafe fn RelationClose(arg_relation: Relation) { +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 RelationClose(arg_relation: Relation); + fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - RelationClose(arg_relation) + bitmap_hash(arg_key, arg_keysize) }) } -pub unsafe fn RelationGetFKeyList(arg_relation: Relation) -> *mut List { +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 RelationGetFKeyList(arg_relation: Relation) -> *mut List; + 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; } - RelationGetFKeyList(arg_relation) + bitmap_match(arg_key1, arg_key2, arg_keysize) }) } -pub unsafe fn RelationGetIndexList(arg_relation: Relation) -> *mut List { +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 RelationGetIndexList(arg_relation: Relation) -> *mut List; + fn create_queryEnv() -> *mut QueryEnvironment; } - RelationGetIndexList(arg_relation) + create_queryEnv() }) } -pub unsafe fn RelationGetStatExtList(arg_relation: Relation) -> *mut List { +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 RelationGetStatExtList(arg_relation: Relation) -> *mut List; + fn get_visible_ENR_metadata( + arg_queryEnv: *mut QueryEnvironment, + arg_refname: *const ::std::os::raw::c_char, + ) -> EphemeralNamedRelationMetadata; } - RelationGetStatExtList(arg_relation) + get_visible_ENR_metadata(arg_queryEnv, arg_refname) }) } -pub unsafe fn RelationGetOidIndex(arg_relation: Relation) -> Oid { +pub unsafe fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetOidIndex(arg_relation: Relation) -> Oid; + fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation); } - RelationGetOidIndex(arg_relation) + register_ENR(arg_queryEnv, arg_enr) }) } -pub unsafe fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid { +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 RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid; + fn unregister_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, + ); } - RelationGetPrimaryKeyIndex(arg_relation) + unregister_ENR(arg_queryEnv, arg_name) }) } -pub unsafe fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid { +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 RelationGetReplicaIndex(arg_relation: Relation) -> Oid; + fn get_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, + ) -> EphemeralNamedRelation; } - RelationGetReplicaIndex(arg_relation) + get_ENR(arg_queryEnv, arg_name) }) } -pub unsafe fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List { +pub unsafe fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List; + fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; } - RelationGetIndexExpressions(arg_relation) + ENRMetadataGetTupDesc(arg_enrmd) }) } -pub unsafe fn RelationGetDummyIndexExpressions(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 RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List; + fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport); } - RelationGetDummyIndexExpressions(arg_relation) + PrepareSortSupportComparisonShim(arg_cmpFunc, arg_ssup) }) } -pub unsafe fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List { +pub unsafe fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List; + fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport); } - RelationGetIndexPredicate(arg_relation) + PrepareSortSupportFromOrderingOp(arg_orderingOp, arg_ssup) }) } -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 PrepareSortSupportFromIndexRel( + arg_indexRel: Relation, + arg_strategy: int16, + arg_ssup: SortSupport, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetIndexAttrBitmap( - arg_relation: Relation, - arg_keyAttrs: IndexAttrBitmapKind, - ) -> *mut Bitmapset; + fn PrepareSortSupportFromIndexRel( + arg_indexRel: Relation, + arg_strategy: int16, + arg_ssup: SortSupport, + ); } - RelationGetIndexAttrBitmap(arg_relation, arg_keyAttrs) + PrepareSortSupportFromIndexRel(arg_indexRel, arg_strategy, arg_ssup) }) } -pub unsafe fn RelationGetExclusionInfo( - arg_indexRelation: Relation, - arg_operators: *mut *mut Oid, - arg_procs: *mut *mut Oid, - arg_strategies: *mut *mut uint16, -) { +#[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 RelationGetExclusionInfo( - arg_indexRelation: Relation, - arg_operators: *mut *mut Oid, - arg_procs: *mut *mut Oid, - arg_strategies: *mut *mut uint16, - ); + fn tuplestore_begin_heap( + arg_randomAccess: bool, + arg_interXact: bool, + arg_maxKBytes: ::std::os::raw::c_int, + ) -> *mut Tuplestorestate; } - RelationGetExclusionInfo(arg_indexRelation, arg_operators, arg_procs, arg_strategies) + tuplestore_begin_heap(arg_randomAccess, arg_interXact, arg_maxKBytes) }) } -pub unsafe fn RelationSetIndexList( - arg_relation: Relation, - arg_indexIds: *mut List, - arg_oidIndex: Oid, +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 RelationSetIndexList( - arg_relation: Relation, - arg_indexIds: *mut List, - arg_oidIndex: Oid, + fn tuplestore_set_eflags( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, ); } - RelationSetIndexList(arg_relation, arg_indexIds, arg_oidIndex) + tuplestore_set_eflags(arg_state, arg_eflags) }) } -pub unsafe fn RelationInitIndexAccessInfo(arg_relation: Relation) { +pub unsafe fn tuplestore_puttupleslot( + arg_state: *mut Tuplestorestate, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationInitIndexAccessInfo(arg_relation: Relation); + fn tuplestore_puttupleslot( + arg_state: *mut Tuplestorestate, + arg_slot: *mut TupleTableSlot, + ); } - RelationInitIndexAccessInfo(arg_relation) + tuplestore_puttupleslot(arg_state, arg_slot) }) } -pub unsafe fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions { +pub unsafe fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions; + fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple); } - GetRelationPublicationActions(arg_relation) + tuplestore_puttuple(arg_state, arg_tuple) }) } -pub unsafe fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int { +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 errtable(arg_rel: Relation) -> ::std::os::raw::c_int; + fn tuplestore_putvalues( + arg_state: *mut Tuplestorestate, + arg_tdesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - errtable(arg_rel) + tuplestore_putvalues(arg_state, arg_tdesc, arg_values, arg_isnull) }) } -pub unsafe fn errtablecol( - arg_rel: Relation, - arg_attnum: ::std::os::raw::c_int, +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 errtablecol( - arg_rel: Relation, - arg_attnum: ::std::os::raw::c_int, + fn tuplestore_alloc_read_pointer( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - errtablecol(arg_rel, arg_attnum) + tuplestore_alloc_read_pointer(arg_state, arg_eflags) }) } -pub unsafe fn errtablecolname( - arg_rel: Relation, - arg_colname: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +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 errtablecolname( - arg_rel: Relation, - arg_colname: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn tuplestore_select_read_pointer( + arg_state: *mut Tuplestorestate, + arg_ptr: ::std::os::raw::c_int, + ); } - errtablecolname(arg_rel, arg_colname) + tuplestore_select_read_pointer(arg_state, arg_ptr) }) } -pub unsafe fn errtableconstraint( - arg_rel: Relation, - arg_conname: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +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 errtableconstraint( - arg_rel: Relation, - arg_conname: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn tuplestore_copy_read_pointer( + arg_state: *mut Tuplestorestate, + arg_srcptr: ::std::os::raw::c_int, + arg_destptr: ::std::os::raw::c_int, + ); } - errtableconstraint(arg_rel, arg_conname) + tuplestore_copy_read_pointer(arg_state, arg_srcptr, arg_destptr) }) } -pub unsafe fn RelationCacheInitialize() { +pub unsafe fn tuplestore_trim(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInitialize(); + fn tuplestore_trim(arg_state: *mut Tuplestorestate); } - RelationCacheInitialize() + tuplestore_trim(arg_state) }) } -pub unsafe fn RelationCacheInitializePhase2() { +pub unsafe fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInitializePhase2(); + fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool; } - RelationCacheInitializePhase2() + tuplestore_in_memory(arg_state) }) } -pub unsafe fn RelationCacheInitializePhase3() { +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 RelationCacheInitializePhase3(); + fn tuplestore_gettupleslot( + arg_state: *mut Tuplestorestate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, + ) -> bool; } - RelationCacheInitializePhase3() + tuplestore_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot) }) } -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_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool { 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_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool; } - RelationBuildLocalRelation( - arg_relname, - arg_relnamespace, - arg_tupDesc, - arg_relid, - arg_relfilenode, - arg_reltablespace, - arg_shared_relation, - arg_mapped_relation, - arg_relpersistence, - arg_relkind, - ) + tuplestore_advance(arg_state, arg_forward) }) } -pub unsafe fn RelationSetNewRelfilenode( - arg_relation: Relation, - arg_persistence: ::std::os::raw::c_char, - arg_freezeXid: TransactionId, - arg_minmulti: MultiXactId, -) { +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 RelationSetNewRelfilenode( - arg_relation: Relation, - arg_persistence: ::std::os::raw::c_char, - arg_freezeXid: TransactionId, - arg_minmulti: MultiXactId, - ); + fn tuplestore_skiptuples( + arg_state: *mut Tuplestorestate, + arg_ntuples: int64, + arg_forward: bool, + ) -> bool; } - RelationSetNewRelfilenode(arg_relation, arg_persistence, arg_freezeXid, arg_minmulti) + tuplestore_skiptuples(arg_state, arg_ntuples, arg_forward) }) } -pub unsafe fn RelationForgetRelation(arg_rid: Oid) { +pub unsafe fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationForgetRelation(arg_rid: Oid); + fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64; } - RelationForgetRelation(arg_rid) + tuplestore_tuple_count(arg_state) }) } -pub unsafe fn RelationCacheInvalidateEntry(arg_relationId: Oid) { +pub unsafe fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInvalidateEntry(arg_relationId: Oid); + fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool; } - RelationCacheInvalidateEntry(arg_relationId) + tuplestore_ateof(arg_state) }) } -pub unsafe fn RelationCacheInvalidate(arg_debug_discard: bool) { +pub unsafe fn tuplestore_rescan(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInvalidate(arg_debug_discard: bool); + fn tuplestore_rescan(arg_state: *mut Tuplestorestate); } - RelationCacheInvalidate(arg_debug_discard) + tuplestore_rescan(arg_state) }) } -pub unsafe fn RelationCloseSmgrByOid(arg_relationId: Oid) { +pub unsafe fn tuplestore_clear(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCloseSmgrByOid(arg_relationId: Oid); + fn tuplestore_clear(arg_state: *mut Tuplestorestate); } - RelationCloseSmgrByOid(arg_relationId) + tuplestore_clear(arg_state) }) } -pub unsafe fn AtEOXact_RelationCache(arg_isCommit: bool) { +pub unsafe fn tuplestore_end(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOXact_RelationCache(arg_isCommit: bool); + fn tuplestore_end(arg_state: *mut Tuplestorestate); } - AtEOXact_RelationCache(arg_isCommit) + tuplestore_end(arg_state) }) } -pub unsafe fn AtEOSubXact_RelationCache( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, -) { +#[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 AtEOSubXact_RelationCache( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - ); + fn index_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> IndexTuple; } - AtEOSubXact_RelationCache(arg_isCommit, arg_mySubid, arg_parentSubid) + index_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool { +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 RelationIdIsInInitFile(arg_relationId: Oid) -> bool; + fn nocache_index_getattr( + arg_tup: IndexTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + ) -> Datum; } - RelationIdIsInInitFile(arg_relationId) + nocache_index_getattr(arg_tup, arg_attnum, arg_tupleDesc) }) } -pub unsafe fn RelationCacheInitFilePreInvalidate() { +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 RelationCacheInitFilePreInvalidate(); + fn index_deform_tuple( + arg_tup: IndexTuple, + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - RelationCacheInitFilePreInvalidate() + index_deform_tuple(arg_tup, arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn RelationCacheInitFilePostInvalidate() { +pub unsafe fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInitFilePostInvalidate(); + fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple; } - RelationCacheInitFilePostInvalidate() + CopyIndexTuple(arg_source) }) } -pub unsafe fn RelationCacheInitFileRemove() { +#[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 RelationCacheInitFileRemove(); + 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; } - RelationCacheInitFileRemove() + tuplesort_begin_heap( + arg_tupDesc, + arg_nkeys, + arg_attNums, + arg_sortOperators, + arg_sortCollations, + arg_nullsFirstFlags, + arg_workMem, + arg_randomAccess, + ) }) } -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_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 fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn tuplesort_begin_cluster( + arg_tupDesc: TupleDesc, + arg_indexRel: Relation, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - fcntl(arg___fd, arg___cmd) + tuplesort_begin_cluster(arg_tupDesc, arg_indexRel, arg_workMem, arg_randomAccess) }) } -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_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 open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + 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; } - open(arg___file, arg___oflag) + tuplesort_begin_index_btree( + arg_heapRel, + arg_indexRel, + arg_enforceUnique, + arg_workMem, + arg_randomAccess, + ) }) } -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_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 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_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; } - openat(arg___fd, arg___file, arg___oflag) + tuplesort_begin_index_hash( + arg_heapRel, + arg_indexRel, + arg_high_mask, + arg_low_mask, + arg_max_buckets, + arg_workMem, + arg_randomAccess, + ) }) } -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_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 creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, - ) -> ::std::os::raw::c_int; + 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; } - creat(arg___file, arg___mode) + tuplesort_begin_datum( + arg_datumType, + arg_sortOperator, + arg_sortCollation, + arg_nullsFirstFlag, + arg_workMem, + arg_randomAccess, + ) }) } -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_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64) { 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_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64); } - lockf(arg___fd, arg___cmd, arg___len) + tuplesort_set_bound(arg_state, arg_bound) }) } -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_puttupleslot( + arg_state: *mut Tuplesortstate, + arg_slot: *mut TupleTableSlot, +) { 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_puttupleslot( + arg_state: *mut Tuplesortstate, + arg_slot: *mut TupleTableSlot, + ); } - posix_fadvise(arg___fd, arg___offset, arg___len, arg___advise) + tuplesort_puttupleslot(arg_state, arg_slot) }) } -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_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: 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_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple); } - posix_fallocate(arg___fd, arg___offset, arg___len) + tuplesort_putheaptuple(arg_state, arg_tup) }) } -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_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 type StringInfo = *mut StringInfoData; -pub unsafe fn makeStringInfo() -> StringInfo { +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 makeStringInfo() -> StringInfo; + fn tuplesort_putdatum(arg_state: *mut Tuplesortstate, arg_val: Datum, arg_isNull: bool); } - makeStringInfo() + tuplesort_putdatum(arg_state, arg_val, arg_isNull) }) } -pub unsafe fn initStringInfo(arg_str_: StringInfo) { +pub unsafe fn tuplesort_performsort(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initStringInfo(arg_str_: StringInfo); + fn tuplesort_performsort(arg_state: *mut Tuplesortstate); } - initStringInfo(arg_str_) + tuplesort_performsort(arg_state) }) } -pub unsafe fn resetStringInfo(arg_str_: StringInfo) { +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 resetStringInfo(arg_str_: StringInfo); + fn tuplesort_gettupleslot( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, + arg_abbrev: *mut Datum, + ) -> bool; } - resetStringInfo(arg_str_) + tuplesort_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot, arg_abbrev) }) } -pub unsafe fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char) { +pub unsafe fn tuplesort_getheaptuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, +) -> HeapTuple { 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_getheaptuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + ) -> HeapTuple; } - appendStringInfo(arg_str_, arg_fmt) + tuplesort_getheaptuple(arg_state, arg_forward) }) } -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_getindextuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, +) -> IndexTuple { 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_getindextuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + ) -> IndexTuple; } - appendStringInfoVA(arg_str_, arg_fmt, arg_args) + tuplesort_getindextuple(arg_state, arg_forward) }) } -pub unsafe fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char) { +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 appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char); + fn tuplesort_getdatum( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_val: *mut Datum, + arg_isNull: *mut bool, + arg_abbrev: *mut Datum, + ) -> bool; } - appendStringInfoString(arg_str_, arg_s) + tuplesort_getdatum(arg_state, arg_forward, arg_val, arg_isNull, arg_abbrev) }) } -pub unsafe fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char) { +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 appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char); + fn tuplesort_skiptuples( + arg_state: *mut Tuplesortstate, + arg_ntuples: int64, + arg_forward: bool, + ) -> bool; } - appendStringInfoChar(arg_str_, arg_ch) + tuplesort_skiptuples(arg_state, arg_ntuples, arg_forward) }) } -pub unsafe fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int) { +pub unsafe fn tuplesort_end(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_end(arg_state: *mut Tuplesortstate); } - appendStringInfoSpaces(arg_str_, arg_count) + tuplesort_end(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 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 appendBinaryStringInfo( - arg_str_: StringInfo, - arg_data: *const ::std::os::raw::c_char, - arg_datalen: ::std::os::raw::c_int, + 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, ); } - appendBinaryStringInfo(arg_str_, arg_data, arg_datalen) + tuplesort_get_stats(arg_state, arg_sortMethod, arg_spaceType, arg_spaceUsed) }) } -pub unsafe fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::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 enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int); + fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int; } - enlargeStringInfo(arg_str_, arg_needed) + tuplesort_merge_order(arg_allowedMem) }) } -#[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 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) + }) } -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 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 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, -} -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) { +pub unsafe fn tuplesort_restorepos(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pairingheap_free(arg_heap: *mut pairingheap); + fn tuplesort_restorepos(arg_state: *mut Tuplesortstate); } - pairingheap_free(arg_heap) + tuplesort_restorepos(arg_state) }) } -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 type slock_t = ::std::os::raw::c_uchar; +extern "C" { + pub static mut dummy_spinlock: slock_t; } -pub unsafe fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { +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 pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; + 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; } - pairingheap_first(arg_heap) + s_lock(arg_lock, arg_file, arg_line, arg_func) }) } -pub unsafe fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { +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 pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; + fn set_spins_per_delay(arg_shared_spins_per_delay: ::std::os::raw::c_int); } - pairingheap_remove_first(arg_heap) + set_spins_per_delay(arg_shared_spins_per_delay) }) } -pub unsafe fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node) { +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 pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); + fn update_spins_per_delay( + arg_shared_spins_per_delay: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - pairingheap_remove(arg_heap, arg_node) + update_spins_per_delay(arg_shared_spins_per_delay) }) } -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, 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, -} -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 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 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 IndexVacuumInfo { +impl Default for SpinDelayStatus { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16282,503 +13852,243 @@ impl Default for IndexVacuumInfo { } } } -#[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 { +pub unsafe fn perform_spin_delay(arg_status: *mut SpinDelayStatus) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; + fn perform_spin_delay(arg_status: *mut SpinDelayStatus); } - index_open(arg_relationId, arg_lockmode) + perform_spin_delay(arg_status) }) } -pub unsafe fn index_close(arg_relation: Relation, arg_lockmode: LOCKMODE) { +pub unsafe fn finish_spin_delay(arg_status: *mut SpinDelayStatus) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_close(arg_relation: Relation, arg_lockmode: LOCKMODE); + fn finish_spin_delay(arg_status: *mut SpinDelayStatus); } - index_close(arg_relation, arg_lockmode) + finish_spin_delay(arg_status) }) } -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; - } - index_insert( - arg_indexRelation, - arg_values, - arg_isnull, - arg_heap_t_ctid, - arg_heapRelation, - arg_checkUnique, - arg_indexInfo, - ) - }) +#[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 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, - ) - }) +#[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 index_beginscan_bitmap( - arg_indexRelation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, -) -> IndexScanDesc { +#[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 index_beginscan_bitmap( - arg_indexRelation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - ) -> IndexScanDesc; + fn ConditionVariableInit(arg_arg1: *mut ConditionVariable); } - index_beginscan_bitmap(arg_indexRelation, arg_snapshot, arg_nkeys) + ConditionVariableInit(arg_arg1) }) } -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, +pub unsafe fn ConditionVariableSleep( + arg_arg1: *mut ConditionVariable, + arg_wait_event_info: uint32, ) { 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, + fn ConditionVariableSleep( + arg_arg1: *mut ConditionVariable, + arg_wait_event_info: uint32, ); } - index_rescan(arg_scan, arg_keys, arg_nkeys, arg_orderbys, arg_norderbys) + ConditionVariableSleep(arg_arg1, arg_wait_event_info) }) } -pub unsafe fn index_endscan(arg_scan: IndexScanDesc) { +pub unsafe fn ConditionVariableCancelSleep() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_endscan(arg_scan: IndexScanDesc); + fn ConditionVariableCancelSleep(); } - index_endscan(arg_scan) + ConditionVariableCancelSleep() }) } -pub unsafe fn index_markpos(arg_scan: IndexScanDesc) { +pub unsafe fn ConditionVariablePrepareToSleep(arg_arg1: *mut ConditionVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_markpos(arg_scan: IndexScanDesc); + fn ConditionVariablePrepareToSleep(arg_arg1: *mut ConditionVariable); } - index_markpos(arg_scan) + ConditionVariablePrepareToSleep(arg_arg1) }) } -pub unsafe fn index_restrpos(arg_scan: IndexScanDesc) { +pub unsafe fn ConditionVariableSignal(arg_arg1: *mut ConditionVariable) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_restrpos(arg_scan: IndexScanDesc); + fn ConditionVariableSignal(arg_arg1: *mut ConditionVariable) -> bool; } - index_restrpos(arg_scan) + ConditionVariableSignal(arg_arg1) }) } -pub unsafe fn index_parallelscan_estimate(arg_indexrel: Relation, arg_snapshot: Snapshot) -> Size { +pub unsafe fn ConditionVariableBroadcast( + arg_arg1: *mut ConditionVariable, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_parallelscan_estimate(arg_indexrel: Relation, arg_snapshot: Snapshot) -> Size; + fn ConditionVariableBroadcast( + arg_arg1: *mut ConditionVariable, + ) -> ::std::os::raw::c_int; } - index_parallelscan_estimate(arg_indexrel, arg_snapshot) + ConditionVariableBroadcast(arg_arg1) }) } -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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExprEvalStep { + _unused: [u8; 0], } -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) - }) +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 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 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() } - 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 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, } -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 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() } - 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; +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() } - index_getnext(arg_scan, arg_direction) - }) + } } -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; +#[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() } - 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 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; - } - 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) - }) -} -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; - } - 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 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 RelationGetIndexScan( - arg_indexRelation: Relation, - arg_nkeys: ::std::os::raw::c_int, - arg_norderbys: ::std::os::raw::c_int, - ) -> IndexScanDesc; - } - RelationGetIndexScan(arg_indexRelation, arg_nkeys, arg_norderbys) - }) -} -pub unsafe fn IndexScanEnd(arg_scan: IndexScanDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IndexScanEnd(arg_scan: IndexScanDesc); - } - IndexScanEnd(arg_scan) - }) -} -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 BuildIndexValueDescription( - arg_indexRelation: Relation, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> *mut ::std::os::raw::c_char; - } - BuildIndexValueDescription(arg_indexRelation, arg_values, arg_isnull) - }) -} -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 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; - } - systable_beginscan( - arg_heapRelation, - arg_indexId, - arg_indexOK, - arg_snapshot, - arg_nkeys, - arg_key, - ) - }) -} -pub unsafe fn systable_getnext(arg_sysscan: SysScanDesc) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn systable_getnext(arg_sysscan: SysScanDesc) -> HeapTuple; - } - systable_getnext(arg_sysscan) - }) -} -pub unsafe fn systable_recheck_tuple(arg_sysscan: SysScanDesc, arg_tup: HeapTuple) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn systable_recheck_tuple(arg_sysscan: SysScanDesc, arg_tup: HeapTuple) -> bool; - } - systable_recheck_tuple(arg_sysscan, arg_tup) - }) -} -pub unsafe fn systable_endscan(arg_sysscan: SysScanDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn systable_endscan(arg_sysscan: SysScanDesc); - } - systable_endscan(arg_sysscan) - }) -} -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 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 systable_getnext_ordered( - arg_sysscan: SysScanDesc, - arg_direction: ScanDirection, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn systable_getnext_ordered( - arg_sysscan: SysScanDesc, - arg_direction: ScanDirection, - ) -> HeapTuple; - } - systable_getnext_ordered(arg_sysscan, arg_direction) - }) -} -pub unsafe fn systable_endscan_ordered(arg_sysscan: SysScanDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn systable_endscan_ordered(arg_sysscan: SysScanDesc); - } - systable_endscan_ordered(arg_sysscan) - }) -} -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 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 Alias { +pub struct ReturnSetInfo { pub type_: NodeTag, - pub aliasname: *mut ::std::os::raw::c_char, - pub colnames: *mut List, + 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 Alias { +impl Default for ReturnSetInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16787,24 +14097,14 @@ 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; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RangeVar { +pub struct ProjectionInfo { 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 pi_state: ExprState, + pub pi_exprContext: *mut ExprContext, } -impl Default for RangeVar { +impl Default for ProjectionInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16815,23 +14115,15 @@ impl Default for RangeVar { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TableFunc { +pub struct JunkFilter { 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 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 TableFunc { +impl Default for JunkFilter { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16842,17 +14134,32 @@ impl Default for TableFunc { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IntoClause { +pub struct ResultRelInfo { 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 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 IntoClause { +impl Default for ResultRelInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16863,10 +14170,48 @@ impl Default for IntoClause { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Expr { +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, } -impl Default for Expr { +impl Default for EState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16877,40 +14222,20 @@ 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, -} -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() - } - } -} -#[repr(C)] -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 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 Const { +impl Default for ExecRowMark { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16919,23 +14244,15 @@ 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; #[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 ExecAuxRowMark { + pub rowmark: *mut ExecRowMark, + pub ctidAttNo: AttrNumber, + pub toidAttNo: AttrNumber, + pub wholeAttNo: AttrNumber, } -impl Default for Param { +impl Default for ExecAuxRowMark { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16944,29 +14261,17 @@ impl Default for Param { } } } +pub type TupleHashEntry = *mut TupleHashEntryData; +pub type TupleHashTable = *mut TupleHashTableData; #[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 TupleHashEntryData { + pub firstTuple: MinimalTuple, + pub additional: *mut ::std::os::raw::c_void, + pub status: uint32, + pub hash: uint32, } -impl Default for Aggref { +impl Default for TupleHashEntryData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16977,15 +14282,16 @@ 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 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 GroupingFunc { +impl Default for tuplehash_hash { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16994,44 +14300,156 @@ impl Default for GroupingFunc { } } } +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, 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, +#[derive(Debug, Default, Copy, Clone)] +pub struct tuplehash_iterator { + pub cur: uint32, + pub end: uint32, + pub done: bool, } -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() +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 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 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 ArrayRef { +impl Default for TupleHashTableData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17040,29 +14458,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; +pub type TupleHashIterator = tuplehash_iterator; #[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 AggrefExprState { + pub type_: NodeTag, + pub aggref: *mut Aggref, + pub aggno: ::std::os::raw::c_int, } -impl Default for FuncExpr { +impl Default for AggrefExprState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17073,14 +14477,14 @@ 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 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 NamedArgExpr { +impl Default for WindowFuncExprState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17091,18 +14495,22 @@ 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 struct SetExprState { + pub type_: NodeTag, + pub expr: *mut Expr, pub args: *mut List, - pub location: ::std::os::raw::c_int, + 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 OpExpr { +impl Default for SetExprState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17111,20 +14519,34 @@ 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 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 location: ::std::os::raw::c_int, + 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 ScalarArrayOpExpr { +impl Default for SubPlanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17133,19 +14555,15 @@ 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 AlternativeSubPlanState { + pub type_: NodeTag, + pub subplan: *mut AlternativeSubPlan, + pub subplans: *mut List, + pub active: ::std::os::raw::c_int, } -impl Default for BoolExpr { +impl Default for AlternativeSubPlanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17154,27 +14572,19 @@ 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; +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 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 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 SubLink { +impl Default for DomainConstraintState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17183,28 +14593,29 @@ impl Default for SubLink { } } } +pub type ExecProcNodeMtd = + ::std::option::Option *mut TupleTableSlot>; #[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 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 SubPlan { +impl Default for PlanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17215,11 +14626,15 @@ impl Default for SubPlan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlternativeSubPlan { - pub xpr: Expr, - pub subplans: *mut List, +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 AlternativeSubPlan { +impl Default for EPQState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17230,15 +14645,13 @@ 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 ResultState { + pub ps: PlanState, + pub resconstantqual: *mut ExprState, + pub rs_done: bool, + pub rs_checkqual: bool, } -impl Default for FieldSelect { +impl Default for ResultState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17249,14 +14662,14 @@ 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 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 FieldStore { +impl Default for ProjectSetState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17267,16 +14680,35 @@ 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 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 RelabelType { +impl Default for ModifyTableState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17287,15 +14719,13 @@ 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 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 CoerceViaIO { +impl Default for AppendState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17306,18 +14736,17 @@ 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 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 ArrayCoerceExpr { +impl Default for MergeAppendState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17328,14 +14757,19 @@ 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 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 ConvertRowtypeExpr { +impl Default for RecursiveUnionState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17346,13 +14780,12 @@ 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 BitmapAndState { + pub ps: PlanState, + pub bitmapplans: *mut *mut PlanState, + pub nplans: ::std::os::raw::c_int, } -impl Default for CollateExpr { +impl Default for BitmapAndState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17363,16 +14796,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 BitmapOrState { + pub ps: PlanState, + pub bitmapplans: *mut *mut PlanState, + pub nplans: ::std::os::raw::c_int, } -impl Default for CaseExpr { +impl Default for BitmapOrState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17383,13 +14812,13 @@ 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 ScanState { + pub ps: PlanState, + pub ss_currentRelation: Relation, + pub ss_currentScanDesc: HeapScanDesc, + pub ss_ScanTupleSlot: *mut TupleTableSlot, } -impl Default for CaseWhen { +impl Default for ScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17400,13 +14829,11 @@ 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 SeqScanState { + pub ss: ScanState, + pub pscan_len: Size, } -impl Default for CaseTestExpr { +impl Default for SeqScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17417,16 +14844,18 @@ 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 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 ArrayExpr { +impl Default for SampleScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17437,15 +14866,12 @@ 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 IndexRuntimeKeyInfo { + pub scan_key: ScanKey, + pub key_expr: *mut ExprState, + pub key_toastable: bool, } -impl Default for RowExpr { +impl Default for IndexRuntimeKeyInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17454,25 +14880,17 @@ 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 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 RowCompareExpr { +impl Default for IndexArrayKeyInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17483,14 +14901,30 @@ 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 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 CoalesceExpr { +impl Default for IndexScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17499,21 +14933,26 @@ 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 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 MinMaxExpr { +impl Default for IndexOnlyScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17522,32 +14961,48 @@ 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 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 SQLValueFunction { +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 { @@ -17556,33 +15011,27 @@ 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 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 XmlExpr { +impl Default for BitmapHeapScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17591,19 +15040,18 @@ 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 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 NullTest { +impl Default for TidScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17612,22 +15060,13 @@ 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 SubqueryScanState { + pub ss: ScanState, + pub subplan: *mut PlanState, } -impl Default for BooleanTest { +impl Default for SubqueryScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17638,16 +15077,22 @@ 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 FunctionScanPerFuncState { + _unused: [u8; 0], } -impl Default for CoerceToDomain { +#[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 { @@ -17658,14 +15103,15 @@ 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 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 CoerceToDomainValue { +impl Default for ValuesScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17676,14 +15122,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 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 SetToDefault { +impl Default for TableFuncScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17694,13 +15150,16 @@ 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 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 CurrentOfExpr { +impl Default for CteScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17711,12 +15170,13 @@ impl Default for CurrentOfExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NextValueExpr { - pub xpr: Expr, - pub seqid: Oid, - pub typeId: Oid, +pub struct NamedTuplestoreScanState { + pub ss: ScanState, + pub readptr: ::std::os::raw::c_int, + pub tupdesc: TupleDesc, + pub relation: *mut Tuplestorestate, } -impl Default for NextValueExpr { +impl Default for NamedTuplestoreScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17727,13 +15187,11 @@ 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 WorkTableScanState { + pub ss: ScanState, + pub rustate: *mut RecursiveUnionState, } -impl Default for InferenceElem { +impl Default for WorkTableScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17744,17 +15202,14 @@ 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 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 TargetEntry { +impl Default for ForeignScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17765,11 +15220,14 @@ 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 CustomScanState { + pub ss: ScanState, + pub flags: uint32, + pub custom_ps: *mut List, + pub pscan_len: Size, + pub methods: *const CustomExecMethods, } -impl Default for RangeTblRef { +impl Default for CustomScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17780,18 +15238,13 @@ impl Default for RangeTblRef { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct JoinExpr { - pub type_: NodeTag, +pub struct JoinState { + pub ps: PlanState, 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 single_match: bool, + pub joinqual: *mut ExprState, } -impl Default for JoinExpr { +impl Default for JoinState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17802,12 +15255,13 @@ impl Default for JoinExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FromExpr { - pub type_: NodeTag, - pub fromlist: *mut List, - pub quals: *mut Node, +pub struct NestLoopState { + pub js: JoinState, + pub nl_NeedNewOuter: bool, + pub nl_MatchedOuter: bool, + pub nl_NullInnerTupleSlot: *mut TupleTableSlot, } -impl Default for FromExpr { +impl Default for NestLoopState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17818,18 +15272,33 @@ impl Default for FromExpr { } #[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 MergeJoinClauseData { + _unused: [u8; 0], } -impl Default for OnConflictExpr { +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 { @@ -17838,1065 +15307,1079 @@ 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 HashJoinTupleData { + _unused: [u8; 0], } +pub type HashJoinTuple = *mut HashJoinTupleData; #[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, +#[derive(Debug, Copy, Clone)] +pub struct HashJoinTableData { + _unused: [u8; 0], } -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); +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, +} +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() } - 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; +#[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() } - PageIsVerified(arg_page, arg_blkno) - }) + } } -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 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 PageGetTempPage(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPage(arg_page: Page) -> Page; +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() } - 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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GroupState { + pub ss: ScanState, + pub eqfunctions: *mut FmgrInfo, + 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() } - PageGetTempPageCopy(arg_page) - }) + } } -pub unsafe fn PageGetTempPageCopySpecial(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPageCopySpecial(arg_page: Page) -> Page; +#[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 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() } - 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); +#[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 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, +} +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() } - PageRestoreTempPage(arg_tempPage, arg_oldPage) - }) + } } -pub unsafe fn PageRepairFragmentation(arg_page: Page) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageRepairFragmentation(arg_page: Page); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct UniqueState { + pub ps: PlanState, + pub eqfunctions: *mut FmgrInfo, + pub tempContext: MemoryContext, +} +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() } - 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; +#[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, +} +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() } - PageGetFreeSpace(arg_page) - }) + } } -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; +#[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, +} +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() } - 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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HashState { + pub ps: PlanState, + pub hashtable: HashJoinTable, + pub hashkeys: *mut List, +} +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() } - 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; +#[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 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, +} +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() } - 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); +#[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, +} +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() } - 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, - ); +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() } - 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); +#[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_long, + 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() } - PageIndexTupleDeleteNoCompact(arg_page, arg_offset) - }) + } } -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 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() } - 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 { +pub unsafe fn makeInteger(arg_i: ::std::os::raw::c_long) -> *mut Value { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PageSetChecksumCopy( - arg_page: Page, - arg_blkno: BlockNumber, - ) -> *mut ::std::os::raw::c_char; + fn makeInteger(arg_i: ::std::os::raw::c_long) -> *mut Value; } - PageSetChecksumCopy(arg_page, arg_blkno) + makeInteger(arg_i) }) } -pub unsafe fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber) { +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 PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber); + fn makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value; } - PageSetChecksumInplace(arg_page, arg_blkno) + makeFloat(arg_numericStr) }) } -#[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 { +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 relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; + fn makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; } - relation_open(arg_relationId, arg_lockmode) + makeString(arg_str_) }) } -pub unsafe fn try_relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation { +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 try_relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; + fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; } - try_relation_open(arg_relationId, arg_lockmode) + makeBitString(arg_str_) }) } -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) - }) +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 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; +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() } - relation_openrv_extended(arg_relation, arg_lockmode, arg_missing_ok) - }) + } } -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); - } - relation_close(arg_relation, arg_lockmode) - }) +#[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_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 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_open(arg_relationId, arg_lockmode) - }) + } } -pub unsafe fn heap_openrv(arg_relation: *const RangeVar, arg_lockmode: LOCKMODE) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_openrv(arg_relation: *const RangeVar, arg_lockmode: LOCKMODE) -> Relation; - } - heap_openrv(arg_relation, arg_lockmode) - }) +#[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_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 heap_openrv_extended( - arg_relation: *const RangeVar, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, - ) -> Relation; +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_openrv_extended(arg_relation, arg_lockmode, arg_missing_ok) - }) + } } -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 heap_beginscan( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - ) -> HeapScanDesc; - } - heap_beginscan(arg_relation, arg_snapshot, arg_nkeys, arg_key) - }) +#[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_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 heap_beginscan_catalog( - arg_relation: Relation, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - ) -> 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_beginscan_catalog(arg_relation, arg_nkeys, arg_key) - }) + } } -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 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_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 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_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, - ) - }) +#[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_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 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_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 TypeCast { + pub type_: NodeTag, + pub arg: *mut Node, + pub typeName: *mut TypeName, + 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 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_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 CollateClause { + pub type_: NodeTag, + pub arg: *mut Node, + pub collname: *mut List, + 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 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_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 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 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 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() } - 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(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 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 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_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; +#[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() } - heap_beginscan_parallel(arg_arg1, arg_arg2) - }) + } } -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; - } - heap_fetch( - arg_relation, - arg_snapshot, - arg_tuple, - arg_userbuf, - arg_keep_buf, - arg_stats_relation, - ) - }) +#[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_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; +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_hot_search_buffer( - arg_tid, - arg_relation, - arg_buffer, - arg_snapshot, - arg_heapTuple, - arg_all_dead, - arg_first_call, - ) - }) + } } -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; - } - heap_hot_search(arg_tid, arg_relation, arg_snapshot, arg_all_dead) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_Indirection { + pub type_: NodeTag, + pub arg: *mut Node, + pub indirection: *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 heap_get_latest_tid( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_tid: ItemPointer, - ); +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() } - heap_get_latest_tid(arg_relation, arg_snapshot, arg_tid) - }) + } } -pub unsafe fn setLastTid(arg_tid: ItemPointer) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setLastTid(arg_tid: ItemPointer); - } - setLastTid(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 GetBulkInsertState() -> BulkInsertState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetBulkInsertState() -> BulkInsertState; +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() } - GetBulkInsertState() - }) + } } -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) - }) +#[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 ReleaseBulkInsertStatePin(arg_bistate: BulkInsertState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReleaseBulkInsertStatePin(arg_bistate: BulkInsertState); +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() } - 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) - }) +#[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_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, - ); +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_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, - ) - }) +#[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_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); +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_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) - }) +#[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 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 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() } - 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 RangeSubselect { + pub type_: NodeTag, + pub lateral: bool, + pub subquery: *mut Node, + pub alias: *mut Alias, } -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 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() } - 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 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 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 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() } - 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 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 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 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() } - 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 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 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 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() } - 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 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 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 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() } - 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 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 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 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() } - 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 TableLikeClause { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub options: bits32, + pub relationOid: Oid, } -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 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() } - 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) - }) +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 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 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() } - ss_get_location(arg_rel, arg_relnblocks) - }) + } } -pub unsafe fn SyncScanShmemInit() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SyncScanShmemInit(); - } - SyncScanShmemInit() - }) +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 SyncScanShmemSize() -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SyncScanShmemSize() -> Size; +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() } - 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 LockingClause { + pub type_: NodeTag, + pub lockedRels: *mut List, + pub strength: LockClauseStrength, + pub waitPolicy: LockWaitPolicy, } -impl Default for TupleConversionMap { +impl Default for LockingClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18905,92 +16388,52 @@ 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 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 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 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() } - 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 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 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 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() } - 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 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 tm { +impl Default for PartitionSpec { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19000,515 +16443,188 @@ impl Default for tm { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, +#[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 clock() -> clock_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock() -> clock_t; +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() } - 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 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 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; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionCmd { + pub type_: NodeTag, + pub name: *mut RangeVar, + pub bound: *mut PartitionBoundSpec, } -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; +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() } - 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 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 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; +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() } - 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) - }) +#[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 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; +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() } - 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) - }) +#[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 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; +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() } - 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)] -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)] -pub struct ParamExternData { - pub value: Datum, - pub isnull: bool, - pub pflags: uint16, - pub ptype: Oid, +#[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 ParamExternData { +impl Default for SortGroupClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19517,24 +16633,21 @@ impl Default for ParamExternData { } } } -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), ->; +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)] -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 GroupingSet { + pub type_: NodeTag, + pub kind: GroupingSetKind, + pub content: *mut List, + pub location: ::std::os::raw::c_int, } -impl Default for ParamListInfoData { +impl Default for GroupingSet { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19544,12 +16657,20 @@ impl Default for ParamListInfoData { } } #[repr(C)] -pub struct ParamExecData { - pub execPlan: *mut ::std::os::raw::c_void, - pub value: Datum, - pub isnull: bool, +#[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, } -impl Default for ParamExecData { +impl Default for WindowClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19558,76 +16679,16 @@ 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 RowMarkClause { 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 rti: Index, + pub strength: LockClauseStrength, + pub waitPolicy: LockWaitPolicy, + pub pushedDown: bool, } -impl Default for PlannedStmt { +impl Default for RowMarkClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19638,24 +16699,13 @@ impl Default for PlannedStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Plan { +pub struct WithClause { 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 ctes: *mut List, + pub recursive: bool, + pub location: ::std::os::raw::c_int, } -impl Default for Plan { +impl Default for WithClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19666,11 +16716,14 @@ impl Default for Plan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Result { - pub plan: Plan, - pub resconstantqual: *mut Node, +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 Result { +impl Default for InferClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19681,10 +16734,15 @@ impl Default for Result { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ProjectSet { - pub plan: Plan, +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 ProjectSet { +impl Default for OnConflictClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19695,30 +16753,20 @@ 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 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 ModifyTable { +impl Default for CommonTableExpr { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19729,12 +16777,13 @@ 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 TriggerTransition { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub isNew: bool, + pub isTable: bool, } -impl Default for Append { +impl Default for TriggerTransition { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19743,19 +16792,16 @@ impl Default for Append { } } } +#[doc = "\t\tRaw Grammar Output Statements"] #[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 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 MergeAppend { +impl Default for RawStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19764,17 +16810,20 @@ impl Default for MergeAppend { } } } +#[doc = "\t\tOptimizable 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 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 RecursiveUnion { +impl Default for InsertStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19785,11 +16834,15 @@ impl Default for RecursiveUnion { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapAnd { - pub plan: Plan, - 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 BitmapAnd { +impl Default for DeleteStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19800,12 +16853,16 @@ 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 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 BitmapOr { +impl Default for UpdateStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19814,13 +16871,35 @@ impl Default for BitmapOr { } } } +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 Scan { - pub plan: Plan, - pub scanrelid: Index, +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 Scan { +impl Default for SelectStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19829,14 +16908,20 @@ 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 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 SampleScan { +impl Default for SetOperationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19845,19 +16930,76 @@ impl Default for SampleScan { } } } +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 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 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 IndexScan { +impl Default for CreateSchemaStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19866,18 +17008,19 @@ impl Default for IndexScan { } } } +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 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 AlterTableStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub cmds: *mut List, + pub relkind: ObjectType, + pub missing_ok: bool, } -impl Default for IndexOnlyScan { +impl Default for AlterTableStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19886,16 +17029,81 @@ impl Default for IndexOnlyScan { } } } +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 BitmapIndexScan { - pub scan: Scan, - pub indexid: Oid, - pub isshared: bool, - pub indexqual: *mut List, - pub indexqualorig: *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 BitmapIndexScan { +impl Default for ReplicaIdentityStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19906,11 +17114,16 @@ impl Default for BitmapIndexScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapHeapScan { - pub scan: Scan, - pub bitmapqualorig: *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 BitmapHeapScan { +impl Default for AlterTableCmd { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19921,11 +17134,11 @@ impl Default for BitmapHeapScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TidScan { - pub scan: Scan, - pub tidquals: *mut List, +pub struct AlterCollationStmt { + pub type_: NodeTag, + pub collname: *mut List, } -impl Default for TidScan { +impl Default for AlterCollationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19936,11 +17149,16 @@ impl Default for TidScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SubqueryScan { - pub scan: Scan, - pub subplan: *mut Plan, +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 SubqueryScan { +impl Default for AlterDomainStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19949,14 +17167,38 @@ impl Default for SubqueryScan { } } } +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 FunctionScan { - pub scan: Scan, - pub functions: *mut List, - pub funcordinality: bool, +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 FunctionScan { +impl Default for GrantStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19967,11 +17209,13 @@ impl Default for FunctionScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ValuesScan { - pub scan: Scan, - pub values_lists: *mut List, +pub struct ObjectWithArgs { + pub type_: NodeTag, + pub objname: *mut List, + pub objargs: *mut List, + pub args_unspecified: bool, } -impl Default for ValuesScan { +impl Default for ObjectWithArgs { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19982,11 +17226,12 @@ impl Default for ValuesScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TableFuncScan { - pub scan: Scan, - pub tablefunc: *mut TableFunc, +pub struct AccessPriv { + pub type_: NodeTag, + pub priv_name: *mut ::std::os::raw::c_char, + pub cols: *mut List, } -impl Default for TableFuncScan { +impl Default for AccessPriv { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19997,12 +17242,16 @@ 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 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 CteScan { +impl Default for GrantRoleStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20013,11 +17262,12 @@ 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 AlterDefaultPrivilegesStmt { + pub type_: NodeTag, + pub options: *mut List, + pub action: *mut GrantStmt, } -impl Default for NamedTuplestoreScan { +impl Default for AlterDefaultPrivilegesStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20028,11 +17278,17 @@ 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 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 WorkTableScan { +impl Default for CopyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20041,20 +17297,23 @@ impl Default for WorkTableScan { } } } +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 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 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 ForeignScan { +impl Default for VariableSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20065,17 +17324,11 @@ 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 VariableShowStmt { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, } -impl Default for CustomScan { +impl Default for VariableShowStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20086,13 +17339,21 @@ 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 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 Join { +impl Default for CreateStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20101,13 +17362,52 @@ impl Default for Join { } } } +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 NestLoop { - pub join: Join, - pub nestParams: *mut List, +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 NestLoop { +impl Default for Constraint { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20118,12 +17418,14 @@ impl Default for NestLoop { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NestLoopParam { +pub struct CreateTableSpaceStmt { pub type_: NodeTag, - pub paramno: ::std::os::raw::c_int, - pub paramval: *mut Var, -} -impl Default for NestLoopParam { + 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 { @@ -20134,16 +17436,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 DropTableSpaceStmt { + pub type_: NodeTag, + pub tablespacename: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -impl Default for MergeJoin { +impl Default for DropTableSpaceStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20154,11 +17452,13 @@ impl Default for MergeJoin { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HashJoin { - pub join: Join, - pub hashclauses: *mut List, +pub struct AlterTableSpaceOptionsStmt { + pub type_: NodeTag, + pub tablespacename: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub isReset: bool, } -impl Default for HashJoin { +impl Default for AlterTableSpaceOptionsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20169,10 +17469,15 @@ impl Default for HashJoin { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Material { - pub plan: Plan, +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 Material { +impl Default for AlterTableMoveAllStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20183,15 +17488,13 @@ 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 CreateExtensionStmt { + pub type_: NodeTag, + pub extname: *mut ::std::os::raw::c_char, + pub if_not_exists: bool, + pub options: *mut List, } -impl Default for Sort { +impl Default for CreateExtensionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20202,13 +17505,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 struct AlterExtensionStmt { + pub type_: NodeTag, + pub extname: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for Group { +impl Default for AlterExtensionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20219,19 +17521,14 @@ 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 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 Agg { +impl Default for AlterExtensionContentsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20242,20 +17539,13 @@ 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 CreateFdwStmt { + pub type_: NodeTag, + pub fdwname: *mut ::std::os::raw::c_char, + pub func_options: *mut List, + pub options: *mut List, } -impl Default for WindowAgg { +impl Default for CreateFdwStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20266,13 +17556,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 AlterFdwStmt { + 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 AlterFdwStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20283,14 +17573,16 @@ 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 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 Gather { +impl Default for CreateForeignServerStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20301,17 +17593,14 @@ 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 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 GatherMerge { +impl Default for AlterForeignServerStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20322,13 +17611,12 @@ 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 CreateForeignTableStmt { + pub base: CreateStmt, + pub servername: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for Hash { +impl Default for CreateForeignTableStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20339,18 +17627,14 @@ 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 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 SetOp { +impl Default for CreateUserMappingStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20361,12 +17645,13 @@ 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 AlterUserMappingStmt { + pub type_: NodeTag, + pub user: *mut RoleSpec, + pub servername: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for LockRows { +impl Default for AlterUserMappingStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20377,12 +17662,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 DropUserMappingStmt { + pub type_: NodeTag, + pub user: *mut RoleSpec, + pub servername: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -impl Default for Limit { +impl Default for DropUserMappingStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20391,27 +17677,22 @@ 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; +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 PlanRowMark { +pub struct ImportForeignSchemaStmt { 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 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 PlanRowMark { +impl Default for ImportForeignSchemaStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20422,12 +17703,17 @@ impl Default for PlanRowMark { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PlanInvalItem { +pub struct CreatePolicyStmt { pub type_: NodeTag, - pub cacheId: ::std::os::raw::c_int, - pub hashValue: uint32, + 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 PlanInvalItem { +impl Default for CreatePolicyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20436,32 +17722,17 @@ 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 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 HASHELEMENT { +impl Default for AlterPolicyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20472,32 +17743,59 @@ impl Default for HASHELEMENT { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HASHHDR { - _unused: [u8; 0], +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 HTAB { - _unused: [u8; 0], +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 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 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 HASHCTL { +impl Default for CreateEventTrigStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20506,19 +17804,14 @@ 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 AlterEventTrigStmt { + pub type_: NodeTag, + pub trigname: *mut ::std::os::raw::c_char, + pub tgenabled: ::std::os::raw::c_char, } -impl Default for HASH_SEQ_STATUS { +impl Default for AlterEventTrigStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20527,270 +17820,204 @@ 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 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 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 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() } - 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 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 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 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() } - 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 AlterRoleStmt { + pub type_: NodeTag, + pub role: *mut RoleSpec, + pub options: *mut List, + pub action: ::std::os::raw::c_int, } -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 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() } - 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; +#[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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DropRoleStmt { + pub type_: NodeTag, + pub roles: *mut List, + pub missing_ok: bool, } -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); +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() } - 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) - }) +#[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, } -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; +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() } - 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) - }) +#[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, } -pub unsafe fn AtEOXact_HashTables(arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOXact_HashTables(arg_isCommit: 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() } - 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) - }) +#[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 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; +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() } - 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) - }) +#[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 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; +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() } - 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) - }) +#[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 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; +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() } - 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 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 EphemeralNamedRelationMetadataData { +impl Default for CreateOpClassItem { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20799,14 +18026,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 CreateOpFamilyStmt { + pub type_: NodeTag, + pub opfamilyname: *mut List, + pub amname: *mut ::std::os::raw::c_char, } -impl Default for EphemeralNamedRelationData { +impl Default for CreateOpFamilyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20815,101 +18042,69 @@ 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 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 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; +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() } - 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) - }) +#[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 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, - ); +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() } - 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) - }) +#[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 ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; +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() } - 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 CommentStmt { + pub type_: NodeTag, + pub objtype: ObjectType, + pub object: *mut Node, + pub comment: *mut ::std::os::raw::c_char, } -impl Default for Trigger { +impl Default for CommentStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20920,32 +18115,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 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 TriggerDesc { +impl Default for SecLabelStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20954,30 +18131,15 @@ 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 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 SortSupportData { +impl Default for DeclareCursorStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20986,732 +18148,554 @@ 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) - }) -} -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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ClosePortalStmt { + pub type_: NodeTag, + pub portalname: *mut ::std::os::raw::c_char, } -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, - ); +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() } - PrepareSortSupportFromIndexRel(arg_indexRel, arg_strategy, arg_ssup) - }) + } } +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 Tuplestorestate { - _unused: [u8; 0], +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, } -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 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() } - 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 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 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 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() } - 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 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 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 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() } - 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 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, } -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 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() } - 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 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, } -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 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() } - 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 AlterFunctionStmt { + pub type_: NodeTag, + pub func: *mut ObjectWithArgs, + pub actions: *mut List, } -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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DoStmt { + pub type_: NodeTag, + pub args: *mut List, } -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; +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() } - 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) - }) +#[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 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; +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() } - 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) - }) +#[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 tuplestore_clear(arg_state: *mut Tuplestorestate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_clear(arg_state: *mut Tuplestorestate); +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() } - 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); +#[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() } - 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, +#[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() + } + } } -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 AlterOwnerStmt { + pub type_: NodeTag, + pub objectType: ObjectType, + pub relation: *mut RangeVar, + pub object: *mut Node, + pub newowner: *mut RoleSpec, } -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 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() } - 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; +#[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() } - 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, - ); +#[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() } - 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 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() } - CopyIndexTuple(arg_source) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Tuplesortstate { - _unused: [u8; 0], +pub struct ListenStmt { + pub type_: NodeTag, + pub conditionname: *mut ::std::os::raw::c_char, } -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 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() } - 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) - }) -} -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; - } - tuplesort_begin_index_btree( - arg_heapRel, - arg_indexRel, - arg_enforceUnique, - arg_workMem, - arg_randomAccess, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct UnlistenStmt { + pub type_: NodeTag, + pub conditionname: *mut ::std::os::raw::c_char, } -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; +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() } - tuplesort_begin_index_hash( - arg_heapRel, - arg_indexRel, - arg_high_mask, - arg_low_mask, - arg_max_buckets, - arg_workMem, - 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_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; - } - tuplesort_begin_datum( - arg_datumType, - arg_sortOperator, - arg_sortCollation, - arg_nullsFirstFlag, - arg_workMem, - arg_randomAccess, - ) - }) +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, } -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); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CompositeTypeStmt { + pub type_: NodeTag, + pub typevar: *mut RangeVar, + pub coldeflist: *mut List, } -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); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateEnumStmt { + pub type_: NodeTag, + pub typeName: *mut List, + pub vals: *mut List, } -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); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateRangeStmt { + pub type_: NodeTag, + pub typeName: *mut List, + pub params: *mut List, } -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; +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() } - 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) - }) +#[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, } -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; +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() } - 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 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, } -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; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LoadStmt { + pub type_: NodeTag, + pub filename: *mut ::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 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, - ); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreatedbStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub options: *mut List, } -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); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterDatabaseStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub options: *mut List, } -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); +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() } - tuplesort_restorepos(arg_state) - }) + } } -pub type slock_t = ::std::os::raw::c_uchar; -extern "C" { - pub static mut dummy_spinlock: slock_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterDatabaseSetStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub setstmt: *mut VariableSetStmt, } -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; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DropdbStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -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; +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() } - 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 AlterSystemStmt { + pub type_: NodeTag, + pub setstmt: *mut VariableSetStmt, } -impl Default for SpinDelayStatus { +impl Default for AlterSystemStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21720,134 +18704,144 @@ 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, +#[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, } -#[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, +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 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, Default, Copy, Clone)] -pub struct proclist_mutable_iter { - pub cur: ::std::os::raw::c_int, - pub next: ::std::os::raw::c_int, +#[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, +} +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, Default, Copy, Clone)] -pub struct ConditionVariable { - pub mutex: slock_t, - pub wakeup: proclist_head, +#[derive(Debug, Copy, Clone)] +pub struct ExplainStmt { + pub type_: NodeTag, + pub query: *mut Node, + pub options: *mut List, } -pub unsafe fn ConditionVariableInit(arg_arg1: *mut ConditionVariable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableInit(arg_arg1: *mut ConditionVariable); +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() } - 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) - }) +#[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, } -pub unsafe fn ConditionVariableCancelSleep() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableCancelSleep(); +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() } - ConditionVariableCancelSleep() - }) + } } -pub unsafe fn ConditionVariablePrepareToSleep(arg_arg1: *mut ConditionVariable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariablePrepareToSleep(arg_arg1: *mut ConditionVariable); - } - ConditionVariablePrepareToSleep(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RefreshMatViewStmt { + pub type_: NodeTag, + pub concurrent: bool, + pub skipData: bool, + pub relation: *mut RangeVar, } -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; +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() } - 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; +#[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() } - ConditionVariableBroadcast(arg_arg1) - }) + } } +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 ExprEvalStep { - _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 ExprStateEvalFunc = ::std::option::Option< - unsafe extern "C" fn( - expression: *mut ExprState, - econtext: *mut ExprContext, - isNull: *mut bool, - ) -> Datum, ->; #[repr(C)] -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, +#[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 ExprState { +impl Default for LockStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21858,28 +18852,12 @@ impl Default for ExprState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexInfo { +pub struct ConstraintsSetStmt { 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 constraints: *mut List, + pub deferred: bool, } -impl Default for IndexInfo { +impl Default for ConstraintsSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21888,14 +18866,22 @@ impl Default for IndexInfo { } } } -pub type ExprContextCallbackFunction = ::std::option::Option; +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)] -pub struct ExprContext_CB { - pub next: *mut ExprContext_CB, - pub function: ExprContextCallbackFunction, - pub arg: Datum, +#[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, } -impl Default for ExprContext_CB { +impl Default for ReindexStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21905,25 +18891,16 @@ impl Default for ExprContext_CB { } } #[repr(C)] -pub struct ExprContext { +#[derive(Debug, Copy, Clone)] +pub struct CreateConversionStmt { 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 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 ExprContext { +impl Default for CreateConversionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21932,28 +18909,17 @@ 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 CreateCastStmt { 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 sourcetype: *mut TypeName, + pub targettype: *mut TypeName, + pub func: *mut ObjectWithArgs, + pub context: CoercionContext, + pub inout: bool, } -impl Default for ReturnSetInfo { +impl Default for CreateCastStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21963,12 +18929,16 @@ impl Default for ReturnSetInfo { } } #[repr(C)] -pub struct ProjectionInfo { +#[derive(Debug, Copy, Clone)] +pub struct CreateTransformStmt { pub type_: NodeTag, - pub pi_state: ExprState, - pub pi_exprContext: *mut ExprContext, + 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 ProjectionInfo { +impl Default for CreateTransformStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21979,15 +18949,13 @@ impl Default for ProjectionInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct JunkFilter { +pub struct PrepareStmt { 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 name: *mut ::std::os::raw::c_char, + pub argtypes: *mut List, + pub query: *mut Node, } -impl Default for JunkFilter { +impl Default for PrepareStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21998,32 +18966,12 @@ impl Default for JunkFilter { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ResultRelInfo { +pub struct ExecuteStmt { 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 name: *mut ::std::os::raw::c_char, + pub params: *mut List, } -impl Default for ResultRelInfo { +impl Default for ExecuteStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22034,48 +18982,11 @@ impl Default for ResultRelInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct EState { +pub struct DeallocateStmt { 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 name: *mut ::std::os::raw::c_char, } -impl Default for EState { +impl Default for DeallocateStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22086,20 +18997,12 @@ 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 DropOwnedStmt { + pub type_: NodeTag, + pub roles: *mut List, + pub behavior: DropBehavior, } -impl Default for ExecRowMark { +impl Default for DropOwnedStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22110,13 +19013,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 ReassignOwnedStmt { + pub type_: NodeTag, + pub roles: *mut List, + pub newrole: *mut RoleSpec, } -impl Default for ExecAuxRowMark { +impl Default for ReassignOwnedStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22125,17 +19027,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 AlterTSDictionaryStmt { + pub type_: NodeTag, + pub dictname: *mut List, + pub options: *mut List, } -impl Default for TupleHashEntryData { +impl Default for AlterTSDictionaryStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22144,18 +19043,25 @@ impl Default for TupleHashEntryData { } } } +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 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 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 tuplehash_hash { +impl Default for AlterTSConfigurationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22164,173 +19070,35 @@ 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, +#[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 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; +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() } - 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, -} -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 struct AlterPublicationStmt { pub type_: NodeTag, - pub aggref: *mut Aggref, - pub aggno: ::std::os::raw::c_int, + 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 AggrefExprState { +impl Default for AlterPublicationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22341,74 +19109,14 @@ impl Default for AggrefExprState { } #[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)] -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_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)] -pub struct SubPlanState { +pub struct CreateSubscriptionStmt { 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 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 SubPlanState { +impl Default for CreateSubscriptionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22417,15 +19125,23 @@ impl Default for SubPlanState { } } } +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 AlternativeSubPlanState { +pub struct AlterSubscriptionStmt { pub type_: NodeTag, - pub subplan: *mut AlternativeSubPlan, - pub subplans: *mut List, - pub active: ::std::os::raw::c_int, + 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 AlternativeSubPlanState { +impl Default for AlterSubscriptionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22434,19 +19150,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 DropSubscriptionStmt { 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 subname: *mut ::std::os::raw::c_char, + pub missing_ok: bool, + pub behavior: DropBehavior, } -impl Default for DomainConstraintState { +impl Default for DropSubscriptionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22455,29 +19167,102 @@ impl Default for DomainConstraintState { } } } -pub type ExecProcNodeMtd = - ::std::option::Option *mut TupleTableSlot>; +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 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, +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 PlanState { +impl Default for ParseState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22488,15 +19273,14 @@ impl Default for PlanState { } #[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 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 EPQState { +impl Default for ParseNamespaceItem { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22507,13 +19291,12 @@ 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 ParseCallbackState { + pub pstate: *mut ParseState, + pub location: ::std::os::raw::c_int, + pub errcallback: ErrorContextCallback, } -impl Default for ResultState { +impl Default for ParseCallbackState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22522,523 +19305,529 @@ 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, -} -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() +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; } - } -} -#[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, + make_parsestate(arg_parentParseState) + }) } -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() +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); } - } -} -#[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, + free_parsestate(arg_pstate) + }) } -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() +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 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 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 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() +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 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 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 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() +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 BitmapAndState { - pub ps: PlanState, - pub bitmapplans: *mut *mut PlanState, - pub nplans: ::std::os::raw::c_int, +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 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() +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 BitmapOrState { - pub ps: PlanState, - pub bitmapplans: *mut *mut PlanState, - pub nplans: ::std::os::raw::c_int, +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 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() +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 ScanState { - pub ps: PlanState, - pub ss_currentRelation: Relation, - pub ss_currentScanDesc: HeapScanDesc, - pub ss_ScanTupleSlot: *mut TupleTableSlot, + forkname_to_number(arg_forkName) + }) } -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() +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 SeqScanState { - pub ss: ScanState, - pub pscan_len: Size, +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 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() +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) + }) } -#[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 type BackendId = ::std::os::raw::c_int; +extern "C" { + pub static mut MyBackendId: BackendId; } -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() - } - } +extern "C" { + pub static mut ParallelMasterBackendId: BackendId; } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexRuntimeKeyInfo { - pub scan_key: ScanKey, - 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() - } - } +#[derive(Debug, Default, Copy, Clone)] +pub struct RelFileNode { + pub spcNode: Oid, + pub dbNode: Oid, + pub relNode: Oid, } #[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, +#[derive(Debug, Default, Copy, Clone)] +pub struct RelFileNodeBackend { + pub node: RelFileNode, + pub backend: BackendId, } -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() +pub unsafe fn XLogBeginInsert() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogBeginInsert(); } - } -} -#[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, + XLogBeginInsert() + }) } -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() +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) + }) } -#[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 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) + }) } -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() +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) + }) } -#[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, +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) + }) } -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 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) + }) } -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 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) + }) } -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() +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) + }) } -#[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 unsafe fn XLogResetInsertion() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogResetInsertion(); + } + XLogResetInsertion() + }) } -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() +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) + }) } -#[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 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) + }) } -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() +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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SubqueryScanState { - pub ss: ScanState, - pub subplan: *mut PlanState, +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) + }) } -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() +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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FunctionScanPerFuncState { - _unused: [u8; 0], +pub unsafe fn InitXLogInsert() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn InitXLogInsert(); + } + InitXLogInsert() + }) } -#[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 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) + }) } -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() +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 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, +#[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, } -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, Default, Copy, Clone)] +pub struct XLogRecordBlockHeader { + pub id: uint8, + pub fork_flags: uint8, + pub data_length: uint16, } #[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, +#[derive(Debug, Default, Copy, Clone)] +pub struct XLogRecordBlockImageHeader { + pub length: uint16, + pub hole_offset: uint16, + pub bimg_info: uint8, } -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, Default, Copy, Clone)] +pub struct XLogRecordBlockCompressHeader { + pub hole_length: uint16, } #[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, +#[derive(Debug, Default, Copy, Clone)] +pub struct XLogRecordDataHeaderShort { + pub id: uint8, + pub data_length: uint8, } -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, 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 NamedTuplestoreScanState { - pub ss: ScanState, - pub readptr: ::std::os::raw::c_int, - pub tupdesc: TupleDesc, - pub relation: *mut Tuplestorestate, +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 NamedTuplestoreScanState { +impl Default for DecodedBkpBlock { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23049,11 +19838,38 @@ impl Default for NamedTuplestoreScanState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct WorkTableScanState { - pub ss: ScanState, - pub rustate: *mut RecursiveUnionState, +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 WorkTableScanState { +impl Default for XLogReaderState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23062,105 +19878,146 @@ impl Default for WorkTableScanState { } } } -#[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 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 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 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 CustomScanState { - pub ss: ScanState, - pub flags: uint32, - pub custom_ps: *mut List, - pub pscan_len: Size, - pub methods: *const CustomExecMethods, +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) + }) } -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 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, Copy, Clone)] -pub struct JoinState { - pub ps: PlanState, - pub jointype: JoinType, - pub single_match: bool, - pub joinqual: *mut ExprState, +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) + }) } -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 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) + }) } -#[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 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) + }) } -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 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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MergeJoinClauseData { - _unused: [u8; 0], +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 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, +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 MergeJoinState { +impl Default for dirent { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23171,1439 +20028,1245 @@ impl Default for MergeJoinState { } #[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 { +pub struct __dirstream { _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_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 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 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() - } - } +extern "C" { + pub static mut data_sync_retry: bool; } -#[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, +extern "C" { + pub static mut max_safe_fds: ::std::os::raw::c_int; } -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 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 PathNameOpenFile( + arg_fileName: FileName, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: ::std::os::raw::c_int, + ) -> File; } - } -} -#[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, + PathNameOpenFile(arg_fileName, arg_fileFlags, arg_fileMode) + }) } -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 OpenTemporaryFile(arg_interXact: bool) -> File { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn OpenTemporaryFile(arg_interXact: bool) -> File; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GroupState { - pub ss: ScanState, - pub eqfunctions: *mut FmgrInfo, - pub grp_done: bool, + OpenTemporaryFile(arg_interXact) + }) } -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 FileClose(arg_file: File) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FileClose(arg_file: File); } - } + FileClose(arg_file) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerAggData { - _unused: [u8; 0], +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; + } + FilePrefetch(arg_file, arg_offset, arg_amount, arg_wait_event_info) + }) } -pub type AggStatePerAgg = *mut AggStatePerAggData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerTransData { - _unused: [u8; 0], +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) + }) } -pub type AggStatePerTrans = *mut AggStatePerTransData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerGroupData { - _unused: [u8; 0], +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) + }) } -pub type AggStatePerGroup = *mut AggStatePerGroupData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerPhaseData { - _unused: [u8; 0], +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 type AggStatePerPhase = *mut AggStatePerPhaseData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerHashData { - _unused: [u8; 0], +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) + }) } -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, +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) + }) } -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 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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowStatePerFuncData { - _unused: [u8; 0], +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 type WindowStatePerFunc = *mut WindowStatePerFuncData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowStatePerAggData { - _unused: [u8; 0], +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 type WindowStatePerAgg = *mut WindowStatePerAggData; -#[repr(C)] -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 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) + }) } -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() +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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UniqueState { - pub ps: PlanState, - pub eqfunctions: *mut FmgrInfo, - pub tempContext: MemoryContext, +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) + }) } -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() +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) + }) } -#[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 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) + }) } -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() +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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GMReaderTupleBuffer { - _unused: [u8; 0], +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) + }) } -#[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 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 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() +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 HashState { - pub ps: PlanState, - pub hashtable: HashJoinTable, - pub hashkeys: *mut List, +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 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 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; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SetOpStatePerGroupData { - _unused: [u8; 0], + OpenTransientFile(arg_fileName, arg_fileFlags, arg_fileMode) + }) } -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 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 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 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 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 InitFileAccess() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn InitFileAccess(); + } + InitFileAccess() + }) } -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 set_max_safe_fds() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn set_max_safe_fds(); } - } + set_max_safe_fds() + }) } -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 unsafe fn closeAllVfds() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn closeAllVfds(); + } + closeAllVfds() + }) } -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 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(Copy, Clone)] -pub struct Value { - pub type_: NodeTag, - pub val: Value_ValUnion, +pub unsafe fn TempTablespacesAreSet() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TempTablespacesAreSet() -> bool; + } + TempTablespacesAreSet() + }) } -#[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 GetNextTempTableSpace() -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetNextTempTableSpace() -> Oid; + } + GetNextTempTableSpace() + }) } -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() +pub unsafe fn AtEOXact_Files() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AtEOXact_Files(); } - } + AtEOXact_Files() + }) } -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 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 makeInteger(arg_i: ::std::os::raw::c_long) -> *mut Value { +pub unsafe fn RemovePgTempFiles() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeInteger(arg_i: ::std::os::raw::c_long) -> *mut Value; + fn RemovePgTempFiles(); } - makeInteger(arg_i) + RemovePgTempFiles() }) } -pub unsafe fn makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value { +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 makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value; + fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - makeFloat(arg_numericStr) + pg_fsync(arg_fd) }) } -pub unsafe fn makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { +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 makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; + fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - makeString(arg_str_) + pg_fsync_no_writethrough(arg_fd) }) } -pub unsafe fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { +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 makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; + fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - makeBitString(arg_str_) + pg_fsync_writethrough(arg_fd) }) } -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 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 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 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) + }) } -#[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 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 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 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 ColumnRef { - pub type_: NodeTag, - pub fields: *mut List, - pub location: ::std::os::raw::c_int, +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 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 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 ParamRef { - pub type_: NodeTag, - pub number: ::std::os::raw::c_int, - 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 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 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) + }) } -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, +extern "C" { + pub static mut sync_method: ::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() - } - } +extern "C" { + pub static mut ThisTimeLineID: TimeLineID; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct A_Const { - pub type_: NodeTag, - pub val: Value, - pub location: ::std::os::raw::c_int, +extern "C" { + pub static mut InRecovery: bool; } -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 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 TypeCast { - pub type_: NodeTag, - pub arg: *mut Node, - pub typeName: *mut TypeName, - 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 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() - } - } +extern "C" { + pub static mut XactLastRecEnd: XLogRecPtr; } -#[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, +extern "C" { + pub static mut XactLastCommitEnd: XLogRecPtr; } -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() - } - } +extern "C" { + pub static mut reachedConsistency: bool; } -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, +extern "C" { + pub static mut min_wal_size_mb: ::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() - } - } +extern "C" { + pub static mut max_wal_size_mb: ::std::os::raw::c_int; } -#[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, +extern "C" { + pub static mut wal_keep_segments: ::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() - } - } +extern "C" { + pub static mut XLOGbuffers: ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_Star { - pub type_: NodeTag, +extern "C" { + pub static mut XLogArchiveTimeout: ::std::os::raw::c_int; } -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() - } - } +extern "C" { + pub static mut wal_retrieve_retry_interval: ::std::os::raw::c_int; } -#[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, +extern "C" { + pub static mut XLogArchiveCommand: *mut ::std::os::raw::c_char; } -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() - } - } +extern "C" { + pub static mut EnableHotStandby: bool; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_Indirection { - pub type_: NodeTag, - pub arg: *mut Node, - pub indirection: *mut List, +extern "C" { + pub static mut fullPageWrites: bool; } -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() - } - } +extern "C" { + pub static mut wal_log_hints: 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, +extern "C" { + pub static mut wal_compression: bool; } -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() - } - } +extern "C" { + pub static mut wal_consistency_checking: *mut bool; } -#[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, +extern "C" { + pub static mut wal_consistency_checking_string: *mut ::std::os::raw::c_char; } -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() - } - } +extern "C" { + pub static mut log_checkpoints: bool; } -#[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, +extern "C" { + pub static mut CheckPointSegments: ::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() - } - } +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 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, +#[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 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() - } - } +extern "C" { + pub static mut CheckpointStats: CheckpointStatsData; } #[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 struct XLogRecData { + _unused: [u8; 0], } -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 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 RangeSubselect { - pub type_: NodeTag, - pub lateral: bool, - pub subquery: *mut Node, - pub alias: *mut Alias, +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 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 XLogBackgroundFlush() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogBackgroundFlush() -> bool; } - } + XLogBackgroundFlush() + }) } -#[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 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 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 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) + }) } -#[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 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 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 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 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 XLogGetLastRemovedSegno() -> XLogSegNo { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogGetLastRemovedSegno() -> XLogSegNo; + } + XLogGetLastRemovedSegno() + }) } -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() +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) + }) } -#[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 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 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 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 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 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 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() +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 TableLikeClause { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub options: bits32, - pub relationOid: Oid, +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 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 unsafe fn RecoveryInProgress() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RecoveryInProgress() -> bool; } - } + RecoveryInProgress() + }) } -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 GetRecoveryState() -> RecoveryState { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetRecoveryState() -> RecoveryState; + } + GetRecoveryState() + }) } -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 unsafe fn HotStandbyActive() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn HotStandbyActive() -> bool; } - } + HotStandbyActive() + }) } -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() +pub unsafe fn HotStandbyActiveInReplay() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn HotStandbyActiveInReplay() -> bool; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockingClause { - pub type_: NodeTag, - pub lockedRels: *mut List, - pub strength: LockClauseStrength, - pub waitPolicy: LockWaitPolicy, + HotStandbyActiveInReplay() + }) } -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() +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 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 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 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() +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 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 GetXLogInsertRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetXLogInsertRecPtr() -> XLogRecPtr; + } + GetXLogInsertRecPtr() + }) } -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() +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 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 RecoveryIsPaused() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RecoveryIsPaused() -> bool; + } + RecoveryIsPaused() + }) } -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() +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) + }) } -#[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 GetLatestXTime() -> TimestampTz { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetLatestXTime() -> TimestampTz; + } + GetLatestXTime() + }) } -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 unsafe fn GetCurrentChunkReplayStartTime() -> TimestampTz { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetCurrentChunkReplayStartTime() -> TimestampTz; } - } + GetCurrentChunkReplayStartTime() + }) } -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 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 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 unsafe fn UpdateControlFile() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn UpdateControlFile(); } - } + UpdateControlFile() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionCmd { - pub type_: NodeTag, - pub name: *mut RangeVar, - pub bound: *mut PartitionBoundSpec, +pub unsafe fn GetSystemIdentifier() -> uint64 { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetSystemIdentifier() -> uint64; + } + GetSystemIdentifier() + }) } -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 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() + }) } -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 DataChecksumsEnabled() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn DataChecksumsEnabled() -> bool; + } + DataChecksumsEnabled() + }) } -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 GetFakeLSNForUnloggedRel() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetFakeLSNForUnloggedRel() -> XLogRecPtr; } - } + GetFakeLSNForUnloggedRel() + }) } -#[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 XLOGShmemSize() -> Size { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLOGShmemSize() -> Size; + } + XLOGShmemSize() + }) } -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 XLOGShmemInit() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLOGShmemInit(); } - } + XLOGShmemInit() + }) } -#[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 BootStrapXLOG() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn BootStrapXLOG(); + } + BootStrapXLOG() + }) } -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 StartupXLOG() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn StartupXLOG(); } - } + StartupXLOG() + }) } -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 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 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 InitXLOGAccess() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn InitXLOGAccess(); } - } + InitXLOGAccess() + }) } -#[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 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 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 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 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 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 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 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 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 UpdateFullPageWrites() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn UpdateFullPageWrites(); + } + UpdateFullPageWrites() + }) } -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 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 RowMarkClause { - pub type_: NodeTag, - pub rti: Index, - pub strength: LockClauseStrength, - pub waitPolicy: LockWaitPolicy, - pub pushedDown: bool, +pub unsafe fn GetRedoRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetRedoRecPtr() -> XLogRecPtr; + } + GetRedoRecPtr() + }) } -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 GetInsertRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetInsertRecPtr() -> XLogRecPtr; } - } + GetInsertRecPtr() + }) } -#[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 GetFlushRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetFlushRecPtr() -> XLogRecPtr; + } + GetFlushRecPtr() + }) } -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 GetLastImportantRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetLastImportantRecPtr() -> XLogRecPtr; } - } + GetLastImportantRecPtr() + }) } -#[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 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) + }) } -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 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() + }) } #[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 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 OnConflictClause { +impl Default for FormData_pg_class { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24612,22 +21275,54 @@ impl Default for OnConflictClause { } } } +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 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 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 CommonTableExpr { +impl Default for ExpandedObjectHeader { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24636,15 +21331,108 @@ impl Default for CommonTableExpr { } } } +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 TriggerTransition { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub isNew: bool, - pub isTable: bool, +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 TriggerTransition { +impl Default for ExpandedArrayHeader { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24653,16 +21441,13 @@ impl Default for TriggerTransition { } } } -#[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, +#[derive(Copy, Clone)] +pub union AnyArrayType { + pub flt: ArrayType, + pub xpn: ExpandedArrayHeader, } -impl Default for RawStmt { +impl Default for AnyArrayType { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24671,20 +21456,21 @@ impl Default for RawStmt { } } } -#[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 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 InsertStmt { +impl Default for ArrayBuildState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24695,15 +21481,22 @@ impl Default for InsertStmt { } #[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 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 DeleteStmt { +impl Default for ArrayBuildStateArr { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24714,16 +21507,11 @@ impl Default for DeleteStmt { } #[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 struct ArrayBuildStateAny { + pub scalarstate: *mut ArrayBuildState, + pub arraystate: *mut ArrayBuildStateArr, } -impl Default for UpdateStmt { +impl Default for ArrayBuildStateAny { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24732,35 +21520,19 @@ impl Default for UpdateStmt { } } } -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 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 SelectStmt { +impl Default for ArrayMetaState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24771,18 +21543,11 @@ impl Default for SelectStmt { } #[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 struct ArrayMapState { + pub inp_extra: ArrayMetaState, + pub ret_extra: ArrayMetaState, } -impl Default for SetOperationStmt { +impl Default for ArrayMapState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24791,1918 +21556,2150 @@ impl Default for SetOperationStmt { } } } -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, -} -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 struct ArrayIteratorData { + _unused: [u8; 0], } -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 type ArrayIterator = *mut ArrayIteratorData; +extern "C" { + pub static mut Array_nulls: 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 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, + ); } - } -} -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, + CopyArrayEls( + arg_array, + arg_values, + arg_nulls, + arg_nitems, + arg_typlen, + arg_typbyval, + arg_typalign, + arg_freedata, + ) + }) } -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 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; } - } + array_get_element( + arg_arraydatum, + arg_nSubscripts, + arg_indx, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + arg_isNull, + ) + }) } -#[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 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; + } + array_set_element( + arg_arraydatum, + arg_nSubscripts, + arg_indx, + arg_dataValue, + arg_isNull, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + ) + }) } -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 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; } - } + array_get_slice( + arg_arraydatum, + arg_nSubscripts, + arg_upperIndx, + arg_lowerIndx, + arg_upperProvided, + arg_lowerProvided, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + ) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterCollationStmt { - pub type_: NodeTag, - pub collname: *mut List, +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; + } + 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 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 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; } - } + array_ref( + arg_array, + arg_nSubscripts, + arg_indx, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + arg_isNull, + ) + }) } -#[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 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; + } + array_set( + arg_array, + arg_nSubscripts, + arg_indx, + arg_dataValue, + arg_isNull, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + ) + }) } -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 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; } - } + array_map(arg_fcinfo, arg_retType, arg_amstate) + }) } -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, -} -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() +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 ObjectWithArgs { - pub type_: NodeTag, - pub objname: *mut List, - pub objargs: *mut List, - pub args_unspecified: bool, + array_bitmap_copy(arg_destbitmap, arg_destoffset, arg_srcbitmap, arg_srcoffset, arg_nitems) + }) } -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() +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 AccessPriv { - pub type_: NodeTag, - pub priv_name: *mut ::std::os::raw::c_char, - pub cols: *mut List, + construct_array(arg_elems, arg_nelems, arg_elmtype, arg_elmlen, arg_elmbyval, arg_elmalign) + }) } -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() +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 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, + construct_md_array( + arg_elems, + arg_nulls, + arg_ndims, + arg_dims, + arg_lbs, + arg_elmtype, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + ) + }) } -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() +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 AlterDefaultPrivilegesStmt { - pub type_: NodeTag, - pub options: *mut List, - pub action: *mut GrantStmt, + construct_empty_array(arg_elmtype) + }) } -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() +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 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, + construct_empty_expanded_array(arg_element_type, arg_parentcontext, arg_metacache) + }) } -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 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, + ); } - } -} -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, + deconstruct_array( + arg_array, + arg_elmtype, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + arg_elemsp, + arg_nullsp, + arg_nelemsp, + ) + }) } -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() +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; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct VariableShowStmt { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, + array_contains_nulls(arg_array) + }) } -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() +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 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, + initArrayResult(arg_element_type, arg_rcontext, arg_subcontext) + }) } -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 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; } - } -} -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, + accumArrayResult(arg_astate, arg_dvalue, arg_disnull, arg_element_type, arg_rcontext) + }) } -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 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 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, + makeArrayResult(arg_astate, arg_rcontext) + }) } -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 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; } - } + makeMdArrayResult(arg_astate, arg_ndims, arg_dims, arg_lbs, arg_rcontext, arg_release) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropTableSpaceStmt { - pub type_: NodeTag, - pub tablespacename: *mut ::std::os::raw::c_char, - pub missing_ok: bool, +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) + }) } -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 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) + }) } -#[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, +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) + }) } -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 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) + }) } -#[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() +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; } - } -} -#[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, + accumArrayResultAny(arg_astate, arg_dvalue, arg_disnull, arg_input_type, arg_rcontext) + }) } -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 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; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterExtensionStmt { - pub type_: NodeTag, - pub extname: *mut ::std::os::raw::c_char, - pub options: *mut List, + makeArrayResultAny(arg_astate, arg_rcontext, arg_release) + }) } -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_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; } - } -} -#[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_create_iterator(arg_arr, arg_slice_ndim, arg_mstate) + }) } -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_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; } - } -} -#[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_iterate(arg_iterator, arg_value, arg_isnull) + }) } -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_free_iterator(arg_iterator: ArrayIterator) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_free_iterator(arg_iterator: ArrayIterator); } - } -} -#[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_free_iterator(arg_iterator) + }) } -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 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 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, + ArrayGetOffset(arg_n, arg_dim, arg_lb, arg_indx) + }) } -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 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 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, + ArrayGetOffset0(arg_n, arg_tup, arg_scale) + }) } -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 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 CreateForeignTableStmt { - pub base: CreateStmt, - pub servername: *mut ::std::os::raw::c_char, - pub options: *mut List, + ArrayGetNItems(arg_ndim, arg_dims) + }) } -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 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 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, + ArrayCheckBounds(arg_ndim, arg_dims, arg_lb) + }) } -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 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 AlterUserMappingStmt { - pub type_: NodeTag, - pub user: *mut RoleSpec, - pub servername: *mut ::std::os::raw::c_char, - pub options: *mut List, + mda_get_range(arg_n, arg_span, arg_st, arg_endp) + }) } -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 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, + ); } - } -} -#[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, + mda_get_prod(arg_n, arg_range, arg_prod) + }) } -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 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, + ); } - } -} -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, + mda_get_offset_values(arg_n, arg_dist, arg_prod, arg_span) + }) } -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 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 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, +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 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 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 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, +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 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 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 CreateAmStmt { - pub type_: NodeTag, - pub amname: *mut ::std::os::raw::c_char, - pub handler_name: *mut List, - pub amtype: ::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 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 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 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, +#[derive(Debug, Default, Copy, Clone)] +pub struct AclItem { + pub ai_grantee: Oid, + pub ai_grantor: Oid, + pub ai_privs: AclMode, } -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 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; } - } -} -#[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, + acldefault(arg_objtype, arg_ownerId) + }) } -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 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; } - } -} -#[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, + get_user_default_acl(arg_objtype, arg_ownerId, arg_nsp_oid) + }) } -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 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, + ); } - } -} -#[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, + recordDependencyOnNewAcl(arg_classId, arg_objectId, arg_objsubId, arg_ownerId, arg_acl) + }) } -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 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; } - } -} -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, + aclupdate(arg_old_acl, arg_mod_aip, arg_modechg, arg_ownerId, arg_behavior) + }) } -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 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; } - } -} -#[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, + aclnewowner(arg_old_acl, arg_oldOwnerId, arg_newOwnerId) + }) } -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 make_empty_acl() -> *mut Acl { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_acl() -> *mut Acl; } - } -} -#[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, + make_empty_acl() + }) } -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 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; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropRoleStmt { - pub type_: NodeTag, - pub roles: *mut List, - pub missing_ok: bool, + aclcopy(arg_orig_acl) + }) } -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 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; } - } + aclconcat(arg_left_acl, arg_right_acl) + }) } -#[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, +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; + } + aclmerge(arg_left_acl, arg_right_acl, arg_ownerId) + }) } -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 aclitemsort(arg_acl: *mut Acl) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclitemsort(arg_acl: *mut Acl); } - } + aclitemsort(arg_acl) + }) } -#[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, +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; + } + aclequal(arg_left_acl, arg_right_acl) + }) } -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 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; } - } + aclmask(arg_acl, arg_roleid, arg_ownerId, arg_mask, arg_how) + }) } -#[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 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; + } + aclmembers(arg_acl, arg_roleids) + }) } -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 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; } - } + has_privs_of_role(arg_member, arg_role) + }) } -#[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 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; + } + is_member_of_role(arg_member, arg_role) + }) } -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 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; } - } + is_member_of_role_nosuper(arg_member, arg_role) + }) } -#[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 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; + } + is_admin_of_role(arg_member, arg_role) + }) } -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 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); } - } + check_is_member_of_role(arg_member, arg_role) + }) } -#[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 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; + } + get_role_oid(arg_rolename, arg_missing_ok) + }) } -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 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 CreateOpFamilyStmt { - pub type_: NodeTag, - pub opfamilyname: *mut List, - pub amname: *mut ::std::os::raw::c_char, +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 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 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 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 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 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 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 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() +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, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TruncateStmt { - pub type_: NodeTag, - pub relations: *mut List, - pub restart_seqs: bool, - pub behavior: DropBehavior, + select_best_grantor( + arg_roleId, + arg_privileges, + arg_acl, + arg_ownerId, + arg_grantorId, + arg_grantOptions, + ) + }) } -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 initialize_acl() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn initialize_acl(); } - } -} -#[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, + initialize_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 ExecuteGrantStmt(arg_stmt: *mut GrantStmt) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecuteGrantStmt(arg_stmt: *mut GrantStmt); } - } -} -#[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, + ExecuteGrantStmt(arg_stmt) + }) } -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 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, + ); } - } -} -#[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, + ExecAlterDefaultPrivilegesStmt(arg_pstate, arg_stmt) + }) } -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 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); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ClosePortalStmt { - pub type_: NodeTag, - pub portalname: *mut ::std::os::raw::c_char, + RemoveRoleFromObjectACL(arg_roleid, arg_classid, arg_objid) + }) } -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 RemoveDefaultACLById(arg_defaclOid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RemoveDefaultACLById(arg_defaclOid: Oid); } - } -} -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, + RemoveDefaultACLById(arg_defaclOid) + }) } -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 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 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, + pg_attribute_aclmask(arg_table_oid, arg_attnum, arg_roleid, arg_mask, arg_how) + }) } -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 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; } - } -} -#[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, + pg_class_aclmask(arg_table_oid, arg_roleid, 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 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; } - } + pg_database_aclmask(arg_db_oid, arg_roleid, arg_mask, arg_how) + }) } -#[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, +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; + } + pg_proc_aclmask(arg_proc_oid, arg_roleid, arg_mask, arg_how) + }) } -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 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; } - } + pg_language_aclmask(arg_lang_oid, arg_roleid, arg_mask, arg_how) + }) } -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, +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; + } + pg_largeobject_aclmask_snapshot(arg_lobj_oid, arg_roleid, arg_mask, arg_how, arg_snapshot) + }) } -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 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; } - } + pg_namespace_aclmask(arg_nsp_oid, arg_roleid, arg_mask, arg_how) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterFunctionStmt { - pub type_: NodeTag, - pub func: *mut ObjectWithArgs, - pub actions: *mut List, +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; + } + pg_tablespace_aclmask(arg_spc_oid, arg_roleid, arg_mask, arg_how) + }) } -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 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; } - } + pg_foreign_data_wrapper_aclmask(arg_fdw_oid, arg_roleid, arg_mask, arg_how) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DoStmt { - pub type_: NodeTag, - pub args: *mut List, +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; + } + pg_foreign_server_aclmask(arg_srv_oid, arg_roleid, arg_mask, arg_how) + }) } -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 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; } - } + pg_type_aclmask(arg_type_oid, arg_roleid, arg_mask, arg_how) + }) } -#[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 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; + } + pg_attribute_aclcheck(arg_table_oid, arg_attnum, arg_roleid, arg_mode) + }) } -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 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; } - } + pg_attribute_aclcheck_all(arg_table_oid, arg_roleid, arg_mode, arg_how) + }) } -#[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() +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; } - } + pg_class_aclcheck(arg_table_oid, arg_roleid, arg_mode) + }) } -#[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 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) + }) } -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 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) + }) } -#[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 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) + }) } -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 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; } - } + pg_largeobject_aclcheck_snapshot(arg_lang_oid, arg_roleid, arg_mode, arg_snapshot) + }) } -#[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 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; + } + pg_namespace_aclcheck(arg_nsp_oid, arg_roleid, arg_mode) + }) } -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 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 AlterOperatorStmt { - pub type_: NodeTag, - pub opername: *mut ObjectWithArgs, - pub options: *mut List, +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 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 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) + }) } -#[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 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 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 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 NotifyStmt { - pub type_: NodeTag, - pub conditionname: *mut ::std::os::raw::c_char, - pub payload: *mut ::std::os::raw::c_char, +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 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 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 ListenStmt { - pub type_: NodeTag, - pub conditionname: *mut ::std::os::raw::c_char, +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 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 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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UnlistenStmt { - pub type_: NodeTag, - pub conditionname: *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) + }) } -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_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) + }) } -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, +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 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_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 CompositeTypeStmt { - pub type_: NodeTag, - pub typevar: *mut RangeVar, - pub coldeflist: *mut List, +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 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_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 CreateEnumStmt { - pub type_: NodeTag, - pub typeName: *mut List, - pub vals: *mut List, +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 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_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 CreateRangeStmt { - pub type_: NodeTag, - pub typeName: *mut List, - pub params: *mut List, +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 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_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 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, +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 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_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) + }) } -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, +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 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_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 LoadStmt { - pub type_: NodeTag, - pub filename: *mut ::std::os::raw::c_char, +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 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_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 CreatedbStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub options: *mut List, +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 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_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 AlterDatabaseStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - 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 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_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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterDatabaseSetStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub setstmt: *mut VariableSetStmt, +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; + } + pg_subscription_ownercheck(arg_sub_oid, arg_roleid) + }) } -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_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 DropdbStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub missing_ok: bool, +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; + } + has_createrole_privilege(arg_roleid) + }) } -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 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 AlterSystemStmt { - pub type_: NodeTag, - pub setstmt: *mut VariableSetStmt, +#[derive(Debug, Default, Copy, Clone)] +pub struct ObjectAddress { + pub classId: Oid, + pub objectId: Oid, + pub objectSubId: int32, } -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() +extern "C" { + pub static InvalidObjectAddress: ObjectAddress; +} +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; } - } + get_object_address(arg_objtype, arg_object, arg_relp, arg_lockmode, arg_missing_ok) + }) } -#[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, +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; + } + get_object_address_rv( + arg_objtype, + arg_rel, + arg_object, + arg_relp, + arg_lockmode, + arg_missing_ok, + ) + }) } -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 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 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 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; + } + get_object_namespace(arg_address) + }) } -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 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; } - } + is_objectclass_supported(arg_class_id) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExplainStmt { - pub type_: NodeTag, - pub query: *mut Node, - pub options: *mut List, +pub unsafe fn get_object_oid_index(arg_class_id: Oid) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_object_oid_index(arg_class_id: Oid) -> Oid; + } + get_object_oid_index(arg_class_id) + }) } -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 get_object_catcache_oid(arg_class_id: Oid) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_object_catcache_oid(arg_class_id: Oid) -> ::std::os::raw::c_int; } - } + get_object_catcache_oid(arg_class_id) + }) } -#[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, +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 get_object_catcache_name(arg_class_id: Oid) -> ::std::os::raw::c_int; + } + get_object_catcache_name(arg_class_id) + }) } -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 get_object_attnum_name(arg_class_id: Oid) -> AttrNumber { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_object_attnum_name(arg_class_id: Oid) -> AttrNumber; } - } + get_object_attnum_name(arg_class_id) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RefreshMatViewStmt { - pub type_: NodeTag, - pub concurrent: bool, - pub skipData: bool, - pub relation: *mut RangeVar, +pub unsafe fn get_object_attnum_namespace(arg_class_id: Oid) -> AttrNumber { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_object_attnum_namespace(arg_class_id: Oid) -> AttrNumber; + } + get_object_attnum_namespace(arg_class_id) + }) } -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 get_object_attnum_owner(arg_class_id: Oid) -> AttrNumber { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_object_attnum_owner(arg_class_id: Oid) -> AttrNumber; } - } + get_object_attnum_owner(arg_class_id) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CheckPointStmt { - pub type_: NodeTag, +pub unsafe fn get_object_attnum_acl(arg_class_id: Oid) -> AttrNumber { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_object_attnum_acl(arg_class_id: Oid) -> AttrNumber; + } + get_object_attnum_acl(arg_class_id) + }) } -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 get_object_aclkind(arg_class_id: Oid) -> AclObjectKind { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_object_aclkind(arg_class_id: Oid) -> AclObjectKind; } - } + get_object_aclkind(arg_class_id) + }) } -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 get_object_namensp_unique(arg_class_id: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_object_namensp_unique(arg_class_id: Oid) -> bool; + } + get_object_namensp_unique(arg_class_id) + }) } -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 get_catalog_object_by_oid(arg_catalog: Relation, arg_objectId: Oid) -> HeapTuple { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_catalog_object_by_oid(arg_catalog: Relation, arg_objectId: Oid) -> HeapTuple; } - } + get_catalog_object_by_oid(arg_catalog, arg_objectId) + }) +} +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 getObjectDescription( + arg_object: *const ObjectAddress, + ) -> *mut ::std::os::raw::c_char; + } + getObjectDescription(arg_object) + }) +} +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 getObjectDescriptionOids( + arg_classid: Oid, + arg_objid: Oid, + ) -> *mut ::std::os::raw::c_char; + } + getObjectDescriptionOids(arg_classid, arg_objid) + }) +} +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 read_objtype_from_string( + arg_objtype: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; + } + read_objtype_from_string(arg_objtype) + }) +} +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 getObjectTypeDescription( + arg_object: *const ObjectAddress, + ) -> *mut ::std::os::raw::c_char; + } + getObjectTypeDescription(arg_object) + }) +} +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 getObjectIdentity(arg_address: *const ObjectAddress) -> *mut ::std::os::raw::c_char; + } + getObjectIdentity(arg_address) + }) +} +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 getObjectIdentityParts( + arg_address: *const ObjectAddress, + arg_objname: *mut *mut List, + arg_objargs: *mut *mut List, + ) -> *mut ::std::os::raw::c_char; + } + getObjectIdentityParts(arg_address, arg_objname, arg_objargs) + }) +} +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, Copy, Clone)] -pub struct LockStmt { - pub type_: NodeTag, - pub relations: *mut List, - pub mode: ::std::os::raw::c_int, - pub nowait: bool, +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 LockStmt { +impl Default for FormData_pg_publication { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -26711,14 +23708,23 @@ impl Default for LockStmt { } } } +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 ConstraintsSetStmt { - pub type_: NodeTag, - pub constraints: *mut List, - pub deferred: bool, +pub struct Publication { + pub oid: Oid, + pub name: *mut ::std::os::raw::c_char, + pub alltables: bool, + pub pubactions: PublicationActions, } -impl Default for ConstraintsSetStmt { +impl Default for Publication { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -26727,112 +23733,125 @@ impl Default for ConstraintsSetStmt { } } } -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 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) + }) } -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 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 GetPublicationByName( + arg_pubname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *mut Publication; } - } + GetPublicationByName(arg_pubname, arg_missing_ok) + }) } -#[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 GetRelationPublications(arg_relid: Oid) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetRelationPublications(arg_relid: Oid) -> *mut List; + } + GetRelationPublications(arg_relid) + }) } -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 GetPublicationRelations(arg_pubid: Oid) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetPublicationRelations(arg_pubid: Oid) -> *mut List; } - } + GetPublicationRelations(arg_pubid) + }) } -#[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 GetAllTablesPublications() -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetAllTablesPublications() -> *mut List; + } + GetAllTablesPublications() + }) } -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 GetAllTablesPublicationRelations() -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetAllTablesPublicationRelations() -> *mut List; } - } + GetAllTablesPublicationRelations() + }) } -#[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 is_publishable_relation(arg_rel: Relation) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn is_publishable_relation(arg_rel: Relation) -> bool; + } + is_publishable_relation(arg_rel) + }) } -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 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 publication_add_relation( + arg_pubid: Oid, + arg_targetrel: Relation, + arg_if_not_exists: bool, + ) -> ObjectAddress; } - } + publication_add_relation(arg_pubid, arg_targetrel, arg_if_not_exists) + }) } -#[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 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 get_publication_oid( + arg_pubname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; + } + get_publication_oid(arg_pubname, arg_missing_ok) + }) } -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 get_publication_name(arg_pubid: Oid) -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_publication_name(arg_pubid: Oid) -> *mut ::std::os::raw::c_char; } - } + get_publication_name(arg_pubid) + }) +} +pub unsafe fn pg_get_publication_tables(arg_fcinfo: FunctionCallInfo) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_get_publication_tables(arg_fcinfo: FunctionCallInfo) -> Datum; + } + pg_get_publication_tables(arg_fcinfo) + }) } #[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 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 ExecuteStmt { +impl Default for RewriteRule { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -26843,11 +23862,11 @@ impl Default for ExecuteStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct DeallocateStmt { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, +pub struct RuleLock { + pub numLocks: ::std::os::raw::c_int, + pub rules: *mut *mut RewriteRule, } -impl Default for DeallocateStmt { +impl Default for RuleLock { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -26857,29 +23876,36 @@ impl Default for DeallocateStmt { } } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropOwnedStmt { - pub type_: NodeTag, - pub roles: *mut List, - pub behavior: DropBehavior, +#[derive(Debug, Default, Copy, Clone)] +pub struct LockRelId { + pub relId: Oid, + pub dbId: Oid, } -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, Default, Copy, Clone)] +pub struct LockInfoData { + pub lockRelId: LockRelId, } +pub type LockInfo = *mut LockInfoData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ReassignOwnedStmt { - pub type_: NodeTag, - pub roles: *mut List, - pub newrole: *mut RoleSpec, +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 ReassignOwnedStmt { +impl Default for PartitionKeyData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -26888,14 +23914,71 @@ impl Default for ReassignOwnedStmt { } } } +pub type PartitionKey = *mut PartitionKeyData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterTSDictionaryStmt { - pub type_: NodeTag, - pub dictname: *mut List, - pub options: *mut List, +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 AlterTSDictionaryStmt { +impl Default for RelationData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -26904,25 +23987,18 @@ 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; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterTSConfigurationStmt { +pub struct ForeignKeyCacheInfo { 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 conrelid: Oid, + pub confrelid: Oid, + pub nkeys: ::std::os::raw::c_int, + pub conkey: [AttrNumber; 32usize], + pub confkey: [AttrNumber; 32usize], + pub conpfeqop: [Oid; 32usize], } -impl Default for AlterTSConfigurationStmt { +impl Default for ForeignKeyCacheInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -26932,77 +24008,77 @@ impl Default for AlterTSConfigurationStmt { } } #[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, +#[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, } -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, 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, 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, +#[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, } -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 RelationIncrementReferenceCount(arg_rel: Relation) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationIncrementReferenceCount(arg_rel: Relation); } - } + RelationIncrementReferenceCount(arg_rel) + }) } -#[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 RelationDecrementReferenceCount(arg_rel: Relation) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationDecrementReferenceCount(arg_rel: Relation); + } + RelationDecrementReferenceCount(arg_rel) + }) } -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 RelationGetRepsetList(arg_rel: Relation) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationGetRepsetList(arg_rel: Relation) -> *mut List; } - } + RelationGetRepsetList(arg_rel) + }) } -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 struct PartitionBoundInfoData { + _unused: [u8; 0], } -impl Default for AlterSubscriptionStmt { +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 { @@ -27011,15 +24087,19 @@ impl Default for AlterSubscriptionStmt { } } } +pub type PartitionDesc = *mut PartitionDescData; #[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 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, } -impl Default for DropSubscriptionStmt { +impl Default for PartitionDispatchData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -27028,2477 +24108,2345 @@ impl Default for DropSubscriptionStmt { } } } -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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParseCallbackState { - pub pstate: *mut ParseState, - pub location: ::std::os::raw::c_int, - pub errcallback: ErrorContextCallback, -} -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 make_parsestate(arg_parentParseState: *mut ParseState) -> *mut ParseState { +pub type PartitionDispatch = *mut PartitionDispatchData; +pub unsafe fn RelationBuildPartitionDesc(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_parsestate(arg_parentParseState: *mut ParseState) -> *mut ParseState; + fn RelationBuildPartitionDesc(arg_relation: Relation); } - make_parsestate(arg_parentParseState) + RelationBuildPartitionDesc(arg_relation) }) } -pub unsafe fn free_parsestate(arg_pstate: *mut ParseState) { +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 free_parsestate(arg_pstate: *mut ParseState); + fn partition_bounds_equal( + arg_key: PartitionKey, + arg_p1: PartitionBoundInfo, + arg_p2: PartitionBoundInfo, + ) -> bool; } - free_parsestate(arg_pstate) + partition_bounds_equal(arg_key, arg_p1, arg_p2) }) } -pub unsafe fn parser_errposition( - arg_pstate: *mut ParseState, - arg_location: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +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 parser_errposition( - arg_pstate: *mut ParseState, - arg_location: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn check_new_partition_bound( + arg_relname: *mut ::std::os::raw::c_char, + arg_parent: Relation, + arg_spec: *mut PartitionBoundSpec, + ); } - parser_errposition(arg_pstate, arg_location) + check_new_partition_bound(arg_relname, arg_parent, arg_spec) }) } -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_partition_parent(arg_relid: Oid) -> Oid { 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_partition_parent(arg_relid: Oid) -> Oid; } - setup_parser_errposition_callback(arg_pcbstate, arg_pstate, arg_location) + get_partition_parent(arg_relid) }) } -pub unsafe fn cancel_parser_errposition_callback(arg_pcbstate: *mut ParseCallbackState) { +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 cancel_parser_errposition_callback(arg_pcbstate: *mut ParseCallbackState); + fn get_qual_from_partbound( + arg_rel: Relation, + arg_parent: Relation, + arg_spec: *mut PartitionBoundSpec, + ) -> *mut List; } - cancel_parser_errposition_callback(arg_pcbstate) + get_qual_from_partbound(arg_rel, arg_parent, arg_spec) }) } -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 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 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 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; } - make_var(arg_pstate, arg_rte, arg_attrno, arg_location) + map_partition_varattnos( + arg_expr, + arg_target_varno, + arg_partrel, + arg_parent, + arg_found_whole_row, + ) }) } -pub unsafe fn transformArrayType(arg_arrayType: *mut Oid, arg_arrayTypmod: *mut int32) -> Oid { +pub unsafe fn RelationGetPartitionQual(arg_rel: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn transformArrayType(arg_arrayType: *mut Oid, arg_arrayTypmod: *mut int32) -> Oid; + fn RelationGetPartitionQual(arg_rel: Relation) -> *mut List; } - transformArrayType(arg_arrayType, arg_arrayTypmod) + RelationGetPartitionQual(arg_rel) }) } -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_partition_qual_relid(arg_relid: Oid) -> *mut Expr { 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_partition_qual_relid(arg_relid: Oid) -> *mut Expr; } - transformArraySubscripts( - arg_pstate, - arg_arrayBase, - arg_arrayType, - arg_elementType, - arg_arrayTypMod, - arg_indirection, - arg_assignFrom, - ) + get_partition_qual_relid(arg_relid) }) } -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 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 make_const( - arg_pstate: *mut ParseState, - arg_value: *mut Value, - arg_location: ::std::os::raw::c_int, - ) -> *mut Const; + fn RelationGetPartitionDispatchInfo( + arg_rel: Relation, + arg_num_parted: *mut ::std::os::raw::c_int, + arg_leaf_part_oids: *mut *mut List, + ) -> *mut PartitionDispatch; } - make_const(arg_pstate, arg_value, arg_location) + RelationGetPartitionDispatchInfo(arg_rel, arg_num_parted, arg_leaf_part_oids) }) } -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 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 forkname_to_number(arg_forkName: *const ::std::os::raw::c_char) -> ForkNumber; + fn FormPartitionKeyDatum( + arg_pd: PartitionDispatch, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - forkname_to_number(arg_forkName) + FormPartitionKeyDatum(arg_pd, arg_slot, arg_estate, arg_values, arg_isnull) }) } -pub unsafe fn forkname_chars( - arg_str_: *const ::std::os::raw::c_char, - arg_fork: *mut ForkNumber, +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 forkname_chars( - arg_str_: *const ::std::os::raw::c_char, - arg_fork: *mut ForkNumber, + 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; } - forkname_chars(arg_str_, arg_fork) + get_partition_for_tuple(arg_pd, arg_slot, arg_estate, arg_failed_at, arg_failed_slot) }) } -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) - }) +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 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; +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() } - 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, 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 static mut None_Receiver: *mut DestReceiver; } -pub unsafe fn XLogBeginInsert() { +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 XLogBeginInsert(); + fn BeginCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); } - XLogBeginInsert() + BeginCommand(arg_commandTag, arg_dest) }) } -pub unsafe fn XLogSetRecordFlags(arg_flags: uint8) { +pub unsafe fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogSetRecordFlags(arg_flags: uint8); + fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver; } - XLogSetRecordFlags(arg_flags) + CreateDestReceiver(arg_dest) }) } -pub unsafe fn XLogInsert(arg_rmid: RmgrId, arg_info: uint8) -> XLogRecPtr { +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 XLogInsert(arg_rmid: RmgrId, arg_info: uint8) -> XLogRecPtr; + fn EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); } - XLogInsert(arg_rmid, arg_info) + EndCommand(arg_commandTag, arg_dest) }) } -pub unsafe fn XLogEnsureRecordSpace( - arg_nbuffers: ::std::os::raw::c_int, - arg_ndatas: ::std::os::raw::c_int, -) { +pub unsafe fn NullCommand(arg_dest: CommandDest) { 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 NullCommand(arg_dest: CommandDest); } - XLogEnsureRecordSpace(arg_nbuffers, arg_ndatas) + NullCommand(arg_dest) }) } -pub unsafe fn XLogRegisterData( - arg_data: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) { +pub unsafe fn ReadyForQuery(arg_dest: CommandDest) { 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 ReadyForQuery(arg_dest: CommandDest); } - XLogRegisterData(arg_data, arg_len) + ReadyForQuery(arg_dest) }) } -pub unsafe fn XLogRegisterBuffer(arg_block_id: uint8, arg_buffer: Buffer, arg_flags: uint8) { +#[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 XLogRegisterBuffer(arg_block_id: uint8, arg_buffer: Buffer, arg_flags: uint8); + 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; } - XLogRegisterBuffer(arg_block_id, arg_buffer, arg_flags) + CreateQueryDesc( + arg_plannedstmt, + arg_sourceText, + arg_snapshot, + arg_crosscheck_snapshot, + arg_dest, + arg_params, + arg_queryEnv, + arg_instrument_options, + ) }) } -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, -) { +pub unsafe fn FreeQueryDesc(arg_qdesc: *mut QueryDesc) { 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 FreeQueryDesc(arg_qdesc: *mut QueryDesc); } - XLogRegisterBlock( - arg_block_id, - arg_rnode, - arg_forknum, - arg_blknum, - arg_page, - arg_flags, - ) + FreeQueryDesc(arg_qdesc) }) } -pub unsafe fn XLogRegisterBufData( - arg_block_id: uint8, - arg_data: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) { +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 XLogRegisterBufData( - arg_block_id: uint8, - arg_data: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ); + fn ExecReScan(arg_node: *mut PlanState); } - XLogRegisterBufData(arg_block_id, arg_data, arg_len) + ExecReScan(arg_node) }) } -pub unsafe fn XLogResetInsertion() { +pub unsafe fn ExecMarkPos(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogResetInsertion(); + fn ExecMarkPos(arg_node: *mut PlanState); } - XLogResetInsertion() + ExecMarkPos(arg_node) }) } -pub unsafe fn XLogCheckBufferNeedsBackup(arg_buffer: Buffer) -> bool { +pub unsafe fn ExecRestrPos(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogCheckBufferNeedsBackup(arg_buffer: Buffer) -> bool; + fn ExecRestrPos(arg_node: *mut PlanState); } - XLogCheckBufferNeedsBackup(arg_buffer) + ExecRestrPos(arg_node) }) } -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 ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool { 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 ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool; } - log_newpage(arg_rnode, arg_forkNum, arg_blk, arg_page, arg_page_std) + ExecSupportsMarkRestore(arg_pathnode) }) } -pub unsafe fn log_newpage_buffer(arg_buffer: Buffer, arg_page_std: bool) -> XLogRecPtr { +pub unsafe fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log_newpage_buffer(arg_buffer: Buffer, arg_page_std: bool) -> XLogRecPtr; + fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool; } - log_newpage_buffer(arg_buffer, arg_page_std) + ExecSupportsBackwardScan(arg_node) }) } -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 ExecMaterializesOutput(arg_plantype: NodeTag) -> 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 ExecMaterializesOutput(arg_plantype: NodeTag) -> bool; } - log_newpage_range(arg_rel, arg_forkNum, arg_startblk, arg_endblk, arg_page_std) + ExecMaterializesOutput(arg_plantype) }) } -pub unsafe fn XLogSaveBufferForHint(arg_buffer: Buffer, arg_buffer_std: bool) -> XLogRecPtr { +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 XLogSaveBufferForHint(arg_buffer: Buffer, arg_buffer_std: bool) -> XLogRecPtr; + fn execCurrentOf( + arg_cexpr: *mut CurrentOfExpr, + arg_econtext: *mut ExprContext, + arg_table_oid: Oid, + arg_current_tid: ItemPointer, + ) -> bool; } - XLogSaveBufferForHint(arg_buffer, arg_buffer_std) + execCurrentOf(arg_cexpr, arg_econtext, arg_table_oid, arg_current_tid) }) } -pub unsafe fn InitXLogInsert() { +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 InitXLogInsert(); + 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; } - InitXLogInsert() + execTuplesMatch( + arg_slot1, + arg_slot2, + arg_numCols, + arg_matchColIdx, + arg_eqfunctions, + arg_evalContext, + ) }) } -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 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 pg_comp_crc32c_sse42( - arg_crc: pg_crc32c, - arg_data: *const ::std::os::raw::c_void, - arg_len: usize, - ) -> pg_crc32c; + 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; } - pg_comp_crc32c_sse42(arg_crc, arg_data, arg_len) + execTuplesUnequal( + arg_slot1, + arg_slot2, + arg_numCols, + arg_matchColIdx, + arg_eqfunctions, + arg_evalContext, + ) }) } -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 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 pg_comp_crc32c_sb8( - arg_crc: pg_crc32c, - arg_data: *const ::std::os::raw::c_void, - arg_len: usize, - ) -> pg_crc32c; + fn execTuplesMatchPrepare( + arg_numCols: ::std::os::raw::c_int, + arg_eqOperators: *mut Oid, + ) -> *mut FmgrInfo; } - pg_comp_crc32c_sb8(arg_crc, arg_data, arg_len) + execTuplesMatchPrepare(arg_numCols, arg_eqOperators) }) } -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, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct XLogRecordBlockHeader { - pub id: uint8, - pub fork_flags: uint8, - pub data_length: uint16, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct XLogRecordBlockImageHeader { - pub length: uint16, - pub hole_offset: uint16, - pub bimg_info: uint8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct XLogRecordBlockCompressHeader { - pub hole_length: uint16, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct XLogRecordDataHeaderShort { - pub id: uint8, - pub data_length: uint8, -} -#[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 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 DecodedBkpBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[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, -} -impl Default for XLogReaderState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn XLogReaderAllocate( - arg_pagereadfunc: XLogPageReadCB, - arg_private_data: *mut ::std::os::raw::c_void, -) -> *mut XLogReaderState { +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 XLogReaderAllocate( - arg_pagereadfunc: XLogPageReadCB, - arg_private_data: *mut ::std::os::raw::c_void, - ) -> *mut XLogReaderState; + fn execTuplesHashPrepare( + arg_numCols: ::std::os::raw::c_int, + arg_eqOperators: *mut Oid, + arg_eqFunctions: *mut *mut FmgrInfo, + arg_hashFunctions: *mut *mut FmgrInfo, + ); } - XLogReaderAllocate(arg_pagereadfunc, arg_private_data) + execTuplesHashPrepare(arg_numCols, arg_eqOperators, arg_eqFunctions, arg_hashFunctions) }) } -pub unsafe fn XLogReaderFree(arg_state: *mut XLogReaderState) { +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 XLogReaderFree(arg_state: *mut XLogReaderState); + 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; } - XLogReaderFree(arg_state) + 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 XLogReadRecord( - arg_state: *mut XLogReaderState, - arg_recptr: XLogRecPtr, - arg_errormsg: *mut *mut ::std::os::raw::c_char, -) -> *mut XLogRecord { +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 XLogReadRecord( - arg_state: *mut XLogReaderState, - arg_recptr: XLogRecPtr, - arg_errormsg: *mut *mut ::std::os::raw::c_char, - ) -> *mut XLogRecord; + fn LookupTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_isnew: *mut bool, + ) -> TupleHashEntry; } - XLogReadRecord(arg_state, arg_recptr, arg_errormsg) + LookupTupleHashEntry(arg_hashtable, arg_slot, arg_isnew) }) } -pub unsafe fn XLogReaderValidatePageHeader( - arg_state: *mut XLogReaderState, - arg_recptr: XLogRecPtr, - arg_phdr: *mut ::std::os::raw::c_char, -) -> bool { +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 XLogReaderValidatePageHeader( - arg_state: *mut XLogReaderState, - arg_recptr: XLogRecPtr, - arg_phdr: *mut ::std::os::raw::c_char, - ) -> bool; + fn FindTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_eqfunctions: *mut FmgrInfo, + arg_hashfunctions: *mut FmgrInfo, + ) -> TupleHashEntry; } - XLogReaderValidatePageHeader(arg_state, arg_recptr, arg_phdr) + FindTupleHashEntry(arg_hashtable, arg_slot, arg_eqfunctions, arg_hashfunctions) }) } -pub unsafe fn XLogReaderInvalReadState(arg_state: *mut XLogReaderState) { +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 XLogReaderInvalReadState(arg_state: *mut XLogReaderState); + fn ExecInitJunkFilter( + arg_targetList: *mut List, + arg_hasoid: bool, + arg_slot: *mut TupleTableSlot, + ) -> *mut JunkFilter; } - XLogReaderInvalReadState(arg_state) + ExecInitJunkFilter(arg_targetList, arg_hasoid, arg_slot) }) } -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 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 DecodeXLogRecord( - arg_state: *mut XLogReaderState, - arg_record: *mut XLogRecord, - arg_errmsg: *mut *mut ::std::os::raw::c_char, - ) -> bool; + fn ExecInitJunkFilterConversion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, + ) -> *mut JunkFilter; } - DecodeXLogRecord(arg_state, arg_record, arg_errmsg) + ExecInitJunkFilterConversion(arg_targetList, arg_cleanTupType, arg_slot) }) } -pub unsafe fn RestoreBlockImage( - arg_recoder: *mut XLogReaderState, - arg_block_id: uint8, - arg_dst: *mut ::std::os::raw::c_char, -) -> bool { +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 RestoreBlockImage( - arg_recoder: *mut XLogReaderState, - arg_block_id: uint8, - arg_dst: *mut ::std::os::raw::c_char, - ) -> bool; + fn ExecFindJunkAttribute( + arg_junkfilter: *mut JunkFilter, + arg_attrName: *const ::std::os::raw::c_char, + ) -> AttrNumber; } - RestoreBlockImage(arg_recoder, arg_block_id, arg_dst) + ExecFindJunkAttribute(arg_junkfilter, arg_attrName) }) } -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 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 XLogRecGetBlockData( - arg_record: *mut XLogReaderState, - arg_block_id: uint8, - arg_len: *mut Size, - ) -> *mut ::std::os::raw::c_char; + fn ExecFindJunkAttributeInTlist( + arg_targetlist: *mut List, + arg_attrName: *const ::std::os::raw::c_char, + ) -> AttrNumber; } - XLogRecGetBlockData(arg_record, arg_block_id, arg_len) + ExecFindJunkAttributeInTlist(arg_targetlist, arg_attrName) }) } -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 { +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 XLogRecGetBlockTag( - arg_record: *mut XLogReaderState, - arg_block_id: uint8, - arg_rnode: *mut RelFileNode, - arg_forknum: *mut ForkNumber, - arg_blknum: *mut BlockNumber, - ) -> bool; + fn ExecGetJunkAttribute( + arg_slot: *mut TupleTableSlot, + arg_attno: AttrNumber, + arg_isNull: *mut bool, + ) -> Datum; } - XLogRecGetBlockTag(arg_record, arg_block_id, arg_rnode, arg_forknum, arg_blknum) + ExecGetJunkAttribute(arg_slot, arg_attno, arg_isNull) }) } -#[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() - } - } -} -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; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __dirstream { - _unused: [u8; 0], -} -pub type DIR = __dirstream; -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::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 closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; + fn ExecFilterJunk( + arg_junkfilter: *mut JunkFilter, + arg_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - closedir(arg___dirp) + ExecFilterJunk(arg_junkfilter, arg_slot) }) } -pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { +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 opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR; + fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int); } - opendir(arg___name) + ExecutorStart(arg_queryDesc, arg_eflags) }) } -pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { +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 fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR; + fn standard_ExecutorStart( + arg_queryDesc: *mut QueryDesc, + arg_eflags: ::std::os::raw::c_int, + ); } - fdopendir(arg___fd) + standard_ExecutorStart(arg_queryDesc, arg_eflags) }) } -pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { +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 readdir(arg___dirp: *mut DIR) -> *mut dirent; + fn ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, + ); } - readdir(arg___dirp) + ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) }) } -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 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 readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, - ) -> ::std::os::raw::c_int; + fn standard_ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, + ); } - readdir_r(arg___dirp, arg___entry, arg___result) + standard_ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) }) } -pub unsafe fn rewinddir(arg___dirp: *mut DIR) { +pub unsafe fn ExecutorFinish(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rewinddir(arg___dirp: *mut DIR); + fn ExecutorFinish(arg_queryDesc: *mut QueryDesc); } - rewinddir(arg___dirp) + ExecutorFinish(arg_queryDesc) }) } -pub unsafe fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long) { +pub unsafe fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long); + fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc); } - seekdir(arg___dirp, arg___pos) + standard_ExecutorFinish(arg_queryDesc) }) } -pub unsafe fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long { +pub unsafe fn ExecutorEnd(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long; + fn ExecutorEnd(arg_queryDesc: *mut QueryDesc); } - telldir(arg___dirp) + ExecutorEnd(arg_queryDesc) }) } -pub unsafe fn dirfd(arg___dirp: *mut DIR) -> ::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 dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; + fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc); } - dirfd(arg___dirp) + standard_ExecutorEnd(arg_queryDesc) }) } -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 ExecutorRewind(arg_queryDesc: *mut QueryDesc) { 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 ExecutorRewind(arg_queryDesc: *mut QueryDesc); } - scandir(arg___dir, arg___namelist, arg___selector, arg___cmp) + ExecutorRewind(arg_queryDesc) }) } -pub unsafe fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, -) -> ::std::os::raw::c_int { +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 alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, - ) -> ::std::os::raw::c_int; + fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool; } - alphasort(arg___e1, arg___e2) + ExecCheckRTPerms(arg_rangeTable, arg_ereport_on_violation) }) } -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 CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { 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 CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType); } - getdirentries(arg___fd, arg___buf, arg___nbytes, arg___basep) + CheckValidResultRel(arg_resultRelInfo, arg_operation) }) } -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; -} -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: FileName, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: ::std::os::raw::c_int, -) -> File { +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 PathNameOpenFile( - arg_fileName: FileName, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: ::std::os::raw::c_int, - ) -> File; + fn InitResultRelInfo( + arg_resultRelInfo: *mut ResultRelInfo, + arg_resultRelationDesc: Relation, + arg_resultRelationIndex: Index, + arg_partition_root: Relation, + arg_instrument_options: ::std::os::raw::c_int, + ); } - PathNameOpenFile(arg_fileName, arg_fileFlags, arg_fileMode) + InitResultRelInfo( + arg_resultRelInfo, + arg_resultRelationDesc, + arg_resultRelationIndex, + arg_partition_root, + arg_instrument_options, + ) }) } -pub unsafe fn OpenTemporaryFile(arg_interXact: bool) -> File { +pub unsafe fn ExecGetTriggerResultRel( + arg_estate: *mut EState, + arg_relid: Oid, +) -> *mut ResultRelInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OpenTemporaryFile(arg_interXact: bool) -> File; + fn ExecGetTriggerResultRel( + arg_estate: *mut EState, + arg_relid: Oid, + ) -> *mut ResultRelInfo; } - OpenTemporaryFile(arg_interXact) + ExecGetTriggerResultRel(arg_estate, arg_relid) }) } -pub unsafe fn FileClose(arg_file: File) { +pub unsafe fn ExecCleanUpTriggerState(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FileClose(arg_file: File); + fn ExecCleanUpTriggerState(arg_estate: *mut EState); } - FileClose(arg_file) + ExecCleanUpTriggerState(arg_estate) }) } -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 ExecContextForcesOids(arg_planstate: *mut PlanState, arg_hasoids: *mut bool) -> bool { 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 ExecContextForcesOids(arg_planstate: *mut PlanState, arg_hasoids: *mut bool) + -> bool; } - FilePrefetch(arg_file, arg_offset, arg_amount, arg_wait_event_info) + ExecContextForcesOids(arg_planstate, arg_hasoids) }) } -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 ExecConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, +) { 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 ExecConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ); } - FileRead(arg_file, arg_buffer, arg_amount, arg_wait_event_info) + ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) }) } -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 { +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 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; + fn ExecWithCheckOptions( + arg_kind: WCOKind, + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ); } - FileWrite(arg_file, arg_buffer, arg_amount, arg_wait_event_info) + ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int { +pub unsafe fn ExecUpdateLockMode( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, +) -> LockTupleMode { 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 ExecUpdateLockMode( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + ) -> LockTupleMode; } - FileSync(arg_file, arg_wait_event_info) + ExecUpdateLockMode(arg_estate, arg_relinfo) }) } -pub unsafe fn FileSeek( - arg_file: File, - arg_offset: off_t, - arg_whence: ::std::os::raw::c_int, -) -> off_t { +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 FileSeek( - arg_file: File, - arg_offset: off_t, - arg_whence: ::std::os::raw::c_int, - ) -> off_t; + fn ExecFindRowMark( + arg_estate: *mut EState, + arg_rti: Index, + arg_missing_ok: bool, + ) -> *mut ExecRowMark; } - FileSeek(arg_file, arg_offset, arg_whence) + ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) }) } -pub unsafe fn FileTruncate( - arg_file: File, - arg_offset: off_t, - arg_wait_event_info: uint32, -) -> ::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 FileTruncate( - arg_file: File, - arg_offset: off_t, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; + fn ExecBuildAuxRowMark( + arg_erm: *mut ExecRowMark, + arg_targetlist: *mut List, + ) -> *mut ExecAuxRowMark; } - FileTruncate(arg_file, arg_offset, arg_wait_event_info) + ExecBuildAuxRowMark(arg_erm, arg_targetlist) }) } -pub unsafe fn FileWriteback( - arg_file: File, - arg_offset: off_t, - arg_nbytes: off_t, - arg_wait_event_info: uint32, -) { +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 FileWriteback( - arg_file: File, - arg_offset: off_t, - arg_nbytes: off_t, - arg_wait_event_info: uint32, - ); + 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; } - FileWriteback(arg_file, arg_offset, arg_nbytes, arg_wait_event_info) + EvalPlanQual( + arg_estate, + arg_epqstate, + arg_relation, + arg_rti, + arg_lockmode, + arg_tid, + arg_priorXmax, + ) }) } -pub unsafe fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char { +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 FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char; + 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; } - FilePathName(arg_file) + EvalPlanQualFetch( + arg_estate, + arg_relation, + arg_lockmode, + arg_wait_policy, + arg_tid, + arg_priorXmax, + ) }) } -pub unsafe fn FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int { +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 FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int; + 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, + ); } - FileGetRawDesc(arg_file) + EvalPlanQualInit(arg_epqstate, arg_estate, arg_subplan, arg_auxrowmarks, arg_epqParam) }) } -pub unsafe fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int { +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 FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int; + fn EvalPlanQualSetPlan( + arg_epqstate: *mut EPQState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, + ); } - FileGetRawFlags(arg_file) + EvalPlanQualSetPlan(arg_epqstate, arg_subplan, arg_auxrowmarks) }) } -pub unsafe fn FileGetRawMode(arg_file: File) -> ::std::os::raw::c_int { +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 FileGetRawMode(arg_file: File) -> ::std::os::raw::c_int; + fn EvalPlanQualSetTuple( + arg_epqstate: *mut EPQState, + arg_rti: Index, + arg_tuple: HeapTuple, + ); } - FileGetRawMode(arg_file) + EvalPlanQualSetTuple(arg_epqstate, arg_rti, arg_tuple) }) } -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 EvalPlanQualGetTuple(arg_epqstate: *mut EPQState, arg_rti: Index) -> HeapTuple { 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 EvalPlanQualGetTuple(arg_epqstate: *mut EPQState, arg_rti: Index) -> HeapTuple; } - AllocateFile(arg_name, arg_mode) + EvalPlanQualGetTuple(arg_epqstate, arg_rti) }) } -pub unsafe fn FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int { +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 FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int; + 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, + ); } - FreeFile(arg_file) + 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 OpenPipeStream( - arg_command: *const ::std::os::raw::c_char, - arg_mode: *const ::std::os::raw::c_char, -) -> *mut FILE { +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 OpenPipeStream( - arg_command: *const ::std::os::raw::c_char, - arg_mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; + fn ExecFindPartition( + arg_resultRelInfo: *mut ResultRelInfo, + arg_pd: *mut PartitionDispatch, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ) -> ::std::os::raw::c_int; } - OpenPipeStream(arg_command, arg_mode) + ExecFindPartition(arg_resultRelInfo, arg_pd, arg_slot, arg_estate) }) } -pub unsafe fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn EvalPlanQualFetchRowMarks(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int; + fn EvalPlanQualFetchRowMarks(arg_epqstate: *mut EPQState); } - ClosePipeStream(arg_file) + EvalPlanQualFetchRowMarks(arg_epqstate) }) } -pub unsafe fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR { +pub unsafe fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR; + fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot; } - AllocateDir(arg_dirname) + EvalPlanQualNext(arg_epqstate) }) } -pub unsafe fn ReadDir( - arg_dir: *mut DIR, - arg_dirname: *const ::std::os::raw::c_char, -) -> *mut dirent { +pub unsafe fn EvalPlanQualBegin(arg_epqstate: *mut EPQState, arg_parentestate: *mut EState) { 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 EvalPlanQualBegin(arg_epqstate: *mut EPQState, arg_parentestate: *mut EState); } - ReadDir(arg_dir, arg_dirname) + EvalPlanQualBegin(arg_epqstate, arg_parentestate) }) } -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 EvalPlanQualEnd(arg_epqstate: *mut EPQState) { 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 EvalPlanQualEnd(arg_epqstate: *mut EPQState); } - ReadDirExtended(arg_dir, arg_dirname, arg_elevel) + EvalPlanQualEnd(arg_epqstate) }) } -pub unsafe fn FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int { +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 FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int; + fn ExecInitNode( + arg_node: *mut Plan, + arg_estate: *mut EState, + arg_eflags: ::std::os::raw::c_int, + ) -> *mut PlanState; } - FreeDir(arg_dir) + ExecInitNode(arg_node, arg_estate, arg_eflags) }) } -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 MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node { 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 MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; } - OpenTransientFile(arg_fileName, arg_fileFlags, arg_fileMode) + MultiExecProcNode(arg_node) }) } -pub unsafe fn CloseTransientFile(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecEndNode(arg_node: *mut PlanState) { 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 ExecEndNode(arg_node: *mut PlanState); } - CloseTransientFile(arg_fd) + ExecEndNode(arg_node) }) } -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 ExecShutdownNode(arg_node: *mut PlanState) -> bool { 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 ExecShutdownNode(arg_node: *mut PlanState) -> bool; } - BasicOpenFile(arg_fileName, arg_fileFlags, arg_fileMode) + ExecShutdownNode(arg_node) }) } -pub unsafe fn InitFileAccess() { +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 InitFileAccess(); + fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState; } - InitFileAccess() + ExecInitExpr(arg_node, arg_parent) }) } -pub unsafe fn set_max_safe_fds() { +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 set_max_safe_fds(); + fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - set_max_safe_fds() + ExecInitQual(arg_qual, arg_parent) }) } -pub unsafe fn closeAllVfds() { +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 closeAllVfds(); + fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - closeAllVfds() + ExecInitCheck(arg_qual, arg_parent) }) } -pub unsafe fn SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int) { +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 SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int); + fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List; } - SetTempTablespaces(arg_tableSpaces, arg_numSpaces) + ExecInitExprList(arg_nodes, arg_parent) }) } -pub unsafe fn TempTablespacesAreSet() -> bool { +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 TempTablespacesAreSet() -> bool; + fn ExecBuildProjectionInfo( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + ) -> *mut ProjectionInfo; } - TempTablespacesAreSet() + ExecBuildProjectionInfo(arg_targetList, arg_econtext, arg_slot, arg_parent, arg_inputDesc) }) } -pub unsafe fn GetNextTempTableSpace() -> Oid { +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 GetNextTempTableSpace() -> Oid; + 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; } - GetNextTempTableSpace() + ExecBuildProjectionInfoExt( + arg_targetList, + arg_econtext, + arg_slot, + arg_assignJunkEntries, + arg_parent, + arg_inputDesc, + ) }) } -pub unsafe fn AtEOXact_Files() { +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 AtEOXact_Files(); + fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; } - AtEOXact_Files() + ExecPrepareExpr(arg_node, arg_estate) }) } -pub unsafe fn AtEOSubXact_Files( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, -) { +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 AtEOSubXact_Files( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - ); + fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - AtEOSubXact_Files(arg_isCommit, arg_mySubid, arg_parentSubid) + ExecPrepareQual(arg_qual, arg_estate) }) } -pub unsafe fn RemovePgTempFiles() { +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 RemovePgTempFiles(); + fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - RemovePgTempFiles() + ExecPrepareCheck(arg_qual, arg_estate) }) } -pub unsafe fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::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 pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; } - pg_fsync(arg_fd) + ExecPrepareExprList(arg_nodes, arg_estate) }) } -pub unsafe fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::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 pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; } - pg_fsync_no_writethrough(arg_fd) + ExecCheck(arg_state, arg_context) }) } -pub unsafe fn pg_fsync_writethrough(arg_fd: ::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 pg_fsync_writethrough(arg_fd: ::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; } - pg_fsync_writethrough(arg_fd) + ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +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 pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecMakeTableFunctionResult( + arg_setexpr: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, + arg_expectedDesc: TupleDesc, + arg_randomAccess: bool, + ) -> *mut Tuplestorestate; } - pg_fdatasync(arg_fd) + ExecMakeTableFunctionResult( + arg_setexpr, + arg_econtext, + arg_argContext, + arg_expectedDesc, + arg_randomAccess, + ) }) } -pub unsafe fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t) { +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 pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t); + fn ExecInitFunctionResultSet( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - pg_flush_data(arg_fd, arg_offset, arg_amount) + ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool) { +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 fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool); + fn ExecMakeFunctionResultSet( + arg_fcache: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_isNull: *mut bool, + arg_isDone: *mut ExprDoneCond, + ) -> Datum; } - fsync_fname(arg_fname, arg_isdir) + ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_isNull, arg_isDone) }) } -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 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 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 ExecScan( + arg_node: *mut ScanState, + arg_accessMtd: ExecScanAccessMtd, + arg_recheckMtd: ExecScanRecheckMtd, + ) -> *mut TupleTableSlot; } - durable_rename(arg_oldfile, arg_newfile, arg_loglevel) + ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) }) } -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 ExecAssignScanProjectionInfo(arg_node: *mut ScanState) { 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; + fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); } - durable_unlink(arg_fname, arg_loglevel) + ExecAssignScanProjectionInfo(arg_node) }) } -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 { +pub unsafe fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index) { 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 ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); } - durable_link_or_rename(arg_oldfile, arg_newfile, arg_loglevel) + ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) }) } -pub unsafe fn SyncDataDirectory() { +pub unsafe fn ExecScanReScan(arg_node: *mut ScanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SyncDataDirectory(); + fn ExecScanReScan(arg_node: *mut ScanState); } - SyncDataDirectory() + ExecScanReScan(arg_node) }) } -pub unsafe fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecInitResultTupleSlot(arg_estate: *mut EState, arg_planstate: *mut PlanState) { 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 ExecInitResultTupleSlot(arg_estate: *mut EState, arg_planstate: *mut PlanState); } - data_sync_elevel(arg_elevel) + ExecInitResultTupleSlot(arg_estate, arg_planstate) }) } -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 ExecInitScanTupleSlot(arg_estate: *mut EState, arg_scanstate: *mut ScanState) { 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 ExecInitScanTupleSlot(arg_estate: *mut EState, arg_scanstate: *mut ScanState); } - XLogInsertRecord(arg_rdata, arg_fpw_lsn, arg_flags) + ExecInitScanTupleSlot(arg_estate, arg_scanstate) }) } -pub unsafe fn XLogFlush(arg_RecPtr: XLogRecPtr) { +pub unsafe fn ExecInitExtraTupleSlot(arg_estate: *mut EState) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogFlush(arg_RecPtr: XLogRecPtr); + fn ExecInitExtraTupleSlot(arg_estate: *mut EState) -> *mut TupleTableSlot; } - XLogFlush(arg_RecPtr) + ExecInitExtraTupleSlot(arg_estate) }) } -pub unsafe fn XLogBackgroundFlush() -> 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 XLogBackgroundFlush() -> bool; + fn ExecInitNullTupleSlot( + arg_estate: *mut EState, + arg_tupType: TupleDesc, + ) -> *mut TupleTableSlot; } - XLogBackgroundFlush() + ExecInitNullTupleSlot(arg_estate, arg_tupType) }) } -pub unsafe fn XLogNeedsFlush(arg_RecPtr: XLogRecPtr) -> bool { +pub unsafe fn ExecTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogNeedsFlush(arg_RecPtr: XLogRecPtr) -> bool; + fn ExecTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc; } - XLogNeedsFlush(arg_RecPtr) + ExecTypeFromTL(arg_targetList, arg_hasoid) }) } -pub unsafe fn XLogFileInit( - arg_segno: XLogSegNo, - arg_use_existent: *mut bool, - arg_use_lock: bool, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecCleanTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc { 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 ExecCleanTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc; } - XLogFileInit(arg_segno, arg_use_existent, arg_use_lock) + ExecCleanTypeFromTL(arg_targetList, arg_hasoid) }) } -pub unsafe fn XLogFileOpen(arg_segno: XLogSegNo) -> ::std::os::raw::c_int { +pub unsafe fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogFileOpen(arg_segno: XLogSegNo) -> ::std::os::raw::c_int; + fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc; } - XLogFileOpen(arg_segno) + ExecTypeFromExprList(arg_exprList) }) } -pub unsafe fn CheckXLogRemoved(arg_segno: XLogSegNo, arg_tli: TimeLineID) { +pub unsafe fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckXLogRemoved(arg_segno: XLogSegNo, arg_tli: TimeLineID); + fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List); } - CheckXLogRemoved(arg_segno, arg_tli) + ExecTypeSetColNames(arg_typeInfo, arg_namesList) }) } -pub unsafe fn XLogGetLastRemovedSegno() -> XLogSegNo { +pub unsafe fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogGetLastRemovedSegno() -> XLogSegNo; + fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset); } - XLogGetLastRemovedSegno() + UpdateChangedParamSet(arg_node, arg_newchg) }) } -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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupOutputState { + pub slot: *mut TupleTableSlot, + pub dest: *mut DestReceiver, } -pub unsafe fn XLogSetReplicationSlotMinimumLSN(arg_lsn: XLogRecPtr) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XLogSetReplicationSlotMinimumLSN(arg_lsn: XLogRecPtr); +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() } - XLogSetReplicationSlotMinimumLSN(arg_lsn) - }) + } } -pub unsafe fn xlog_redo(arg_record: *mut XLogReaderState) { +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 xlog_redo(arg_record: *mut XLogReaderState); + fn begin_tup_output_tupdesc( + arg_dest: *mut DestReceiver, + arg_tupdesc: TupleDesc, + ) -> *mut TupOutputState; } - xlog_redo(arg_record) + begin_tup_output_tupdesc(arg_dest, arg_tupdesc) }) } -pub unsafe fn xlog_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState) { +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 xlog_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState); + fn do_tup_output( + arg_tstate: *mut TupOutputState, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - xlog_desc(arg_buf, arg_record) + do_tup_output(arg_tstate, arg_values, arg_isnull) }) } -pub unsafe fn xlog_identify(arg_info: uint8) -> *const ::std::os::raw::c_char { +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 xlog_identify(arg_info: uint8) -> *const ::std::os::raw::c_char; + fn do_text_output_multiline( + arg_tstate: *mut TupOutputState, + arg_txt: *const ::std::os::raw::c_char, + ); } - xlog_identify(arg_info) + do_text_output_multiline(arg_tstate, arg_txt) }) } -pub unsafe fn issue_xlog_fsync(arg_fd: ::std::os::raw::c_int, arg_segno: XLogSegNo) { +pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { 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 end_tup_output(arg_tstate: *mut TupOutputState); } - issue_xlog_fsync(arg_fd, arg_segno) + end_tup_output(arg_tstate) }) } -pub unsafe fn RecoveryInProgress() -> bool { +pub unsafe fn CreateExecutorState() -> *mut EState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RecoveryInProgress() -> bool; + fn CreateExecutorState() -> *mut EState; } - RecoveryInProgress() + CreateExecutorState() }) } -pub unsafe fn GetRecoveryState() -> RecoveryState { +pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRecoveryState() -> RecoveryState; + fn FreeExecutorState(arg_estate: *mut EState); } - GetRecoveryState() + FreeExecutorState(arg_estate) }) } -pub unsafe fn HotStandbyActive() -> bool { +pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HotStandbyActive() -> bool; + fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - HotStandbyActive() + CreateExprContext(arg_estate) }) } -pub unsafe fn HotStandbyActiveInReplay() -> bool { +pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HotStandbyActiveInReplay() -> bool; + fn CreateStandaloneExprContext() -> *mut ExprContext; } - HotStandbyActiveInReplay() + CreateStandaloneExprContext() }) } -pub unsafe fn XLogInsertAllowed() -> bool { +pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogInsertAllowed() -> bool; + fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); } - XLogInsertAllowed() + FreeExprContext(arg_econtext, arg_isCommit) }) } -pub unsafe fn GetXLogReceiptTime(arg_rtime: *mut TimestampTz, arg_fromStream: *mut bool) { +pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetXLogReceiptTime(arg_rtime: *mut TimestampTz, arg_fromStream: *mut bool); + fn ReScanExprContext(arg_econtext: *mut ExprContext); } - GetXLogReceiptTime(arg_rtime, arg_fromStream) + ReScanExprContext(arg_econtext) }) } -pub unsafe fn GetXLogReplayRecPtr(arg_replayTLI: *mut TimeLineID) -> XLogRecPtr { +pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetXLogReplayRecPtr(arg_replayTLI: *mut TimeLineID) -> XLogRecPtr; + fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - GetXLogReplayRecPtr(arg_replayTLI) + MakePerTupleExprContext(arg_estate) }) } -pub unsafe fn GetXLogInsertRecPtr() -> XLogRecPtr { +pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetXLogInsertRecPtr() -> XLogRecPtr; + fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); } - GetXLogInsertRecPtr() + ExecAssignExprContext(arg_estate, arg_planstate) }) } -pub unsafe fn GetXLogWriteRecPtr() -> XLogRecPtr { +pub unsafe fn ExecAssignResultType(arg_planstate: *mut PlanState, arg_tupDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetXLogWriteRecPtr() -> XLogRecPtr; + fn ExecAssignResultType(arg_planstate: *mut PlanState, arg_tupDesc: TupleDesc); } - GetXLogWriteRecPtr() + ExecAssignResultType(arg_planstate, arg_tupDesc) }) } -pub unsafe fn RecoveryIsPaused() -> bool { +pub unsafe fn ExecAssignResultTypeFromTL(arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RecoveryIsPaused() -> bool; + fn ExecAssignResultTypeFromTL(arg_planstate: *mut PlanState); } - RecoveryIsPaused() + ExecAssignResultTypeFromTL(arg_planstate) }) } -pub unsafe fn SetRecoveryPause(arg_recoveryPause: bool) { +pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetRecoveryPause(arg_recoveryPause: bool); + fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; } - SetRecoveryPause(arg_recoveryPause) + ExecGetResultType(arg_planstate) }) } -pub unsafe fn GetLatestXTime() -> TimestampTz { +pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLatestXTime() -> TimestampTz; + fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); } - GetLatestXTime() + ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) }) } -pub unsafe fn GetCurrentChunkReplayStartTime() -> TimestampTz { +pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentChunkReplayStartTime() -> TimestampTz; + fn ExecFreeExprContext(arg_planstate: *mut PlanState); } - GetCurrentChunkReplayStartTime() + ExecFreeExprContext(arg_planstate) }) } -pub unsafe fn XLogFileNameP( - arg_tli: TimeLineID, - arg_segno: XLogSegNo, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { 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 ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); } - XLogFileNameP(arg_tli, arg_segno) + ExecAssignScanType(arg_scanstate, arg_tupDesc) }) } -pub unsafe fn UpdateControlFile() { +pub unsafe fn ExecAssignScanTypeFromOuterPlan(arg_scanstate: *mut ScanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UpdateControlFile(); + fn ExecAssignScanTypeFromOuterPlan(arg_scanstate: *mut ScanState); } - UpdateControlFile() + ExecAssignScanTypeFromOuterPlan(arg_scanstate) }) } -pub unsafe fn GetSystemIdentifier() -> uint64 { +pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetSystemIdentifier() -> uint64; + fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; } - GetSystemIdentifier() + ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) }) } -pub unsafe fn GetMockAuthenticationNonce() -> *mut ::std::os::raw::c_char { +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 GetMockAuthenticationNonce() -> *mut ::std::os::raw::c_char; + fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, + ) -> Relation; } - GetMockAuthenticationNonce() + ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) }) } -pub unsafe fn DataChecksumsEnabled() -> bool { +pub unsafe fn ExecCloseScanRelation(arg_scanrel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DataChecksumsEnabled() -> bool; + fn ExecCloseScanRelation(arg_scanrel: Relation); } - DataChecksumsEnabled() + ExecCloseScanRelation(arg_scanrel) }) } -pub unsafe fn GetFakeLSNForUnloggedRel() -> XLogRecPtr { +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 GetFakeLSNForUnloggedRel() -> XLogRecPtr; + fn executor_errposition( + arg_estate: *mut EState, + arg_location: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - GetFakeLSNForUnloggedRel() + executor_errposition(arg_estate, arg_location) }) } -pub unsafe fn XLOGShmemSize() -> Size { +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 XLOGShmemSize() -> Size; + fn RegisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - XLOGShmemSize() + RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) }) } -pub unsafe fn XLOGShmemInit() { +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 XLOGShmemInit(); + fn UnregisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - XLOGShmemInit() + UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) }) } -pub unsafe fn BootStrapXLOG() { +pub unsafe fn ExecLockNonLeafAppendTables( + arg_partitioned_rels: *mut List, + arg_estate: *mut EState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BootStrapXLOG(); + fn ExecLockNonLeafAppendTables( + arg_partitioned_rels: *mut List, + arg_estate: *mut EState, + ); } - BootStrapXLOG() + ExecLockNonLeafAppendTables(arg_partitioned_rels, arg_estate) }) } -pub unsafe fn StartupXLOG() { +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 StartupXLOG(); + fn GetAttributeByName( + arg_tuple: HeapTupleHeader, + arg_attname: *const ::std::os::raw::c_char, + arg_isNull: *mut bool, + ) -> Datum; } - StartupXLOG() + GetAttributeByName(arg_tuple, arg_attname, arg_isNull) }) } -pub unsafe fn ShutdownXLOG(arg_code: ::std::os::raw::c_int, arg_arg: Datum) { +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 ShutdownXLOG(arg_code: ::std::os::raw::c_int, arg_arg: Datum); + fn GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, + ) -> Datum; } - ShutdownXLOG(arg_code, arg_arg) + GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) }) } -pub unsafe fn InitXLOGAccess() { +pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitXLOGAccess(); + fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - InitXLOGAccess() + ExecTargetListLength(arg_targetlist) }) } -pub unsafe fn CreateCheckPoint(arg_flags: ::std::os::raw::c_int) { +pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateCheckPoint(arg_flags: ::std::os::raw::c_int); + fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - CreateCheckPoint(arg_flags) + ExecCleanTargetListLength(arg_targetlist) }) } -pub unsafe fn CreateRestartPoint(arg_flags: ::std::os::raw::c_int) -> bool { +pub unsafe fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateRestartPoint(arg_flags: ::std::os::raw::c_int) -> bool; + fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool); } - CreateRestartPoint(arg_flags) + ExecOpenIndices(arg_resultRelInfo, arg_speculative) }) } -pub unsafe fn XLogPutNextOid(arg_nextOid: Oid) { +pub unsafe fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogPutNextOid(arg_nextOid: Oid); + fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); } - XLogPutNextOid(arg_nextOid) + ExecCloseIndices(arg_resultRelInfo) }) } -pub unsafe fn XLogRestorePoint(arg_rpName: *const ::std::os::raw::c_char) -> XLogRecPtr { +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 XLogRestorePoint(arg_rpName: *const ::std::os::raw::c_char) -> XLogRecPtr; + 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; } - XLogRestorePoint(arg_rpName) + ExecInsertIndexTuples( + arg_slot, + arg_tupleid, + arg_estate, + arg_noDupErr, + arg_specConflict, + arg_arbiterIndexes, + ) }) } -pub unsafe fn UpdateFullPageWrites() { +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 UpdateFullPageWrites(); + fn ExecCheckIndexConstraints( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_conflictTid: ItemPointer, + arg_arbiterIndexes: *mut List, + ) -> bool; } - UpdateFullPageWrites() + ExecCheckIndexConstraints(arg_slot, arg_estate, arg_conflictTid, arg_arbiterIndexes) }) } -pub unsafe fn GetFullPageWriteInfo( - arg_RedoRecPtr_p: *mut XLogRecPtr, - arg_doPageWrites_p: *mut bool, +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 GetFullPageWriteInfo( - arg_RedoRecPtr_p: *mut XLogRecPtr, - arg_doPageWrites_p: *mut bool, + 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, ); } - GetFullPageWriteInfo(arg_RedoRecPtr_p, arg_doPageWrites_p) + check_exclusion_constraint( + arg_heap, + arg_index, + arg_indexInfo, + arg_tupleid, + arg_values, + arg_isnull, + arg_estate, + arg_newIndex, + ) }) } -pub unsafe fn GetRedoRecPtr() -> XLogRecPtr { +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 GetRedoRecPtr() -> XLogRecPtr; + fn RelationFindReplTupleByIndex( + arg_rel: Relation, + arg_idxoid: Oid, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, + ) -> bool; } - GetRedoRecPtr() + RelationFindReplTupleByIndex(arg_rel, arg_idxoid, arg_lockmode, arg_searchslot, arg_outslot) }) } -pub unsafe fn GetInsertRecPtr() -> XLogRecPtr { +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 GetInsertRecPtr() -> XLogRecPtr; + fn RelationFindReplTupleSeq( + arg_rel: Relation, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, + ) -> bool; } - GetInsertRecPtr() + RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) }) } -pub unsafe fn GetFlushRecPtr() -> XLogRecPtr { +pub unsafe fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetFlushRecPtr() -> XLogRecPtr; + fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot); } - GetFlushRecPtr() + ExecSimpleRelationInsert(arg_estate, arg_slot) }) } -pub unsafe fn GetLastImportantRecPtr() -> XLogRecPtr { +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 GetLastImportantRecPtr() -> XLogRecPtr; + fn ExecSimpleRelationUpdate( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + arg_slot: *mut TupleTableSlot, + ); } - GetLastImportantRecPtr() + ExecSimpleRelationUpdate(arg_estate, arg_epqstate, arg_searchslot, arg_slot) }) } -pub unsafe fn GetNextXidAndEpoch(arg_xid: *mut TransactionId, arg_epoch: *mut uint32) { +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 GetNextXidAndEpoch(arg_xid: *mut TransactionId, arg_epoch: *mut uint32); + fn ExecSimpleRelationDelete( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + ); } - GetNextXidAndEpoch(arg_xid, arg_epoch) + ExecSimpleRelationDelete(arg_estate, arg_epqstate, arg_searchslot) }) } -pub unsafe fn RemovePromoteSignalFiles() { +pub unsafe fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemovePromoteSignalFiles(); + fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType); } - RemovePromoteSignalFiles() + CheckCmdReplicaIdentity(arg_rel, arg_cmd) }) } -pub unsafe fn CheckPromoteSignal() -> bool { +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 CheckPromoteSignal() -> bool; + 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, + ); } - CheckPromoteSignal() + CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) }) } -pub unsafe fn WakeupRecovery() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn WakeupRecovery(); - } - WakeupRecovery() - }) +#[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 unsafe fn SetWalWriterSleeping(arg_sleeping: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetWalWriterSleeping(arg_sleeping: bool); +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() } - SetWalWriterSleeping(arg_sleeping) - }) + } } -pub unsafe fn XLogRequestWalReceiverReply() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XLogRequestWalReceiverReply(); +#[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() } - XLogRequestWalReceiverReply() - }) + } } -pub unsafe fn assign_max_wal_size( - arg_newval: ::std::os::raw::c_int, - arg_extra: *mut ::std::os::raw::c_void, -) { +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 assign_max_wal_size( - arg_newval: ::std::os::raw::c_int, - arg_extra: *mut ::std::os::raw::c_void, - ); + fn get_call_result_type( + arg_fcinfo: FunctionCallInfo, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - assign_max_wal_size(arg_newval, arg_extra) + get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn assign_checkpoint_completion_target( - arg_newval: f64, - arg_extra: *mut ::std::os::raw::c_void, -) { +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 assign_checkpoint_completion_target( - arg_newval: f64, - arg_extra: *mut ::std::os::raw::c_void, - ); + fn get_expr_result_type( + arg_expr: *mut Node, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - assign_checkpoint_completion_target(arg_newval, arg_extra) + get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) }) } -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 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 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 get_func_result_type( + arg_functionId: Oid, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - do_pg_start_backup( - arg_backupidstr, - arg_fast, - arg_starttli_p, - arg_labelfile, - arg_tblspcdir, - arg_tablespaces, - arg_tblspcmapfile, - arg_infotbssize, - arg_needtblspcmapfile, - ) + get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) }) } -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 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 do_pg_stop_backup( - arg_labelfile: *mut ::std::os::raw::c_char, - arg_waitforarchive: bool, - arg_stoptli_p: *mut TimeLineID, - ) -> XLogRecPtr; + 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; } - do_pg_stop_backup(arg_labelfile, arg_waitforarchive, arg_stoptli_p) + resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) }) } -pub unsafe fn do_pg_abort_backup() { +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 do_pg_abort_backup(); + 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; } - do_pg_abort_backup() + get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) }) } -pub unsafe fn get_backup_status() -> SessionBackupState { +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_backup_status() -> SessionBackupState; + 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_backup_status() + get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) }) } -#[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 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; } - } -} -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, + get_func_trftypes(arg_procTup, arg_p_trftypes) + }) } -#[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], +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) + }) } -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 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 DatumGetEOHP(arg_d: Datum) -> *mut ExpandedObjectHeader { +pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DatumGetEOHP(arg_d: Datum) -> *mut ExpandedObjectHeader; + fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; } - DatumGetEOHP(arg_d) + build_function_result_tupdesc_t(arg_procTuple) }) } -pub unsafe fn EOH_init_header( - arg_eohptr: *mut ExpandedObjectHeader, - arg_methods: *const ExpandedObjectMethods, - arg_obj_context: MemoryContext, -) { +pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> 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 RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; } - EOH_init_header(arg_eohptr, arg_methods, arg_obj_context) + RelationNameGetTupleDesc(arg_relname) }) } -pub unsafe fn EOH_get_flat_size(arg_eohptr: *mut ExpandedObjectHeader) -> Size { +pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EOH_get_flat_size(arg_eohptr: *mut ExpandedObjectHeader) -> Size; + fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; } - EOH_get_flat_size(arg_eohptr) + TypeGetTupleDesc(arg_typeoid, arg_colaliases) }) } -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 BlessTupleDesc(arg_tupdesc: TupleDesc) -> 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 BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; } - EOH_flatten_into(arg_eohptr, arg_result, arg_allocated_size) + BlessTupleDesc(arg_tupdesc) }) } -pub unsafe fn MakeExpandedObjectReadOnlyInternal(arg_d: Datum) -> Datum { +pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MakeExpandedObjectReadOnlyInternal(arg_d: Datum) -> Datum; + fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; } - MakeExpandedObjectReadOnlyInternal(arg_d) + TupleDescGetAttInMetadata(arg_tupdesc) }) } -pub unsafe fn TransferExpandedObject(arg_d: Datum, arg_new_parent: MemoryContext) -> Datum { +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 TransferExpandedObject(arg_d: Datum, arg_new_parent: MemoryContext) -> Datum; + fn BuildTupleFromCStrings( + arg_attinmeta: *mut AttInMetadata, + arg_values: *mut *mut ::std::os::raw::c_char, + ) -> HeapTuple; } - TransferExpandedObject(arg_d, arg_new_parent) + BuildTupleFromCStrings(arg_attinmeta, arg_values) }) } -pub unsafe fn DeleteExpandedObject(arg_d: Datum) { +pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DeleteExpandedObject(arg_d: Datum); + fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; } - DeleteExpandedObject(arg_d) + HeapTupleHeaderGetDatum(arg_tuple) }) } -#[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, +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) + }) } -#[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, +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) + }) } -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 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) + }) } -#[repr(C)] -#[derive(Copy, Clone)] -pub union AnyArrayType { - pub flt: ArrayType, - pub xpn: ExpandedArrayHeader, +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) + }) } -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 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; +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 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, +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 ArrayBuildState { +impl Default for pg_tm { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -29509,2317 +26457,1715 @@ impl Default for ArrayBuildState { } #[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, -} -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 struct pg_tz { + _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ArrayBuildStateAny { - pub scalarstate: *mut ArrayBuildState, - pub arraystate: *mut ArrayBuildStateArr, +pub struct pg_tzenum { + _unused: [u8; 0], } -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 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 pg_localtime(arg_timep: *const pg_time_t, arg_tz: *const pg_tz) -> *mut pg_tm; } - } + pg_localtime(arg_timep, arg_tz) + }) } -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ArrayMapState { - pub inp_extra: ArrayMetaState, - pub ret_extra: ArrayMetaState, -} -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() - } - } -} -#[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; -} -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 pg_gmtime(arg_timep: *const pg_time_t) -> *mut pg_tm { 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 pg_gmtime(arg_timep: *const pg_time_t) -> *mut pg_tm; } - CopyArrayEls( - arg_array, - arg_values, - arg_nulls, - arg_nitems, - arg_typlen, - arg_typbyval, - arg_typalign, - arg_freedata, - ) + pg_gmtime(arg_timep) }) } -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 { +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 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; + 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; } - array_get_element( - arg_arraydatum, - arg_nSubscripts, - arg_indx, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - arg_isNull, + 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 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 { +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 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; + 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; } - array_set_element( - arg_arraydatum, - arg_nSubscripts, - arg_indx, - arg_dataValue, - arg_isNull, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + pg_interpret_timezone_abbrev(arg_abbrev, arg_timep, arg_gmtoff, arg_isdst, arg_tz) }) } -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 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 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 pg_get_timezone_offset( + arg_tz: *const pg_tz, + arg_gmtoff: *mut ::std::os::raw::c_long, + ) -> bool; } - array_get_slice( - arg_arraydatum, - arg_nSubscripts, - arg_upperIndx, - arg_lowerIndx, - arg_upperProvided, - arg_lowerProvided, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + pg_get_timezone_offset(arg_tz, arg_gmtoff) }) } -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 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 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 pg_get_timezone_name(arg_tz: *mut pg_tz) -> *const ::std::os::raw::c_char; } - 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, - ) + pg_get_timezone_name(arg_tz) }) } -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 pg_tz_acceptable(arg_tz: *mut pg_tz) -> 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 pg_tz_acceptable(arg_tz: *mut pg_tz) -> bool; } - array_ref( - arg_array, - arg_nSubscripts, - arg_indx, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - arg_isNull, - ) + pg_tz_acceptable(arg_tz) }) } -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 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 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 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; } - array_set( - arg_array, - arg_nSubscripts, - arg_indx, - arg_dataValue, - arg_isNull, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + pg_strftime(arg_s, arg_max, arg_format, arg_tm) }) } -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; - } - array_map(arg_fcinfo, arg_retType, arg_amstate) - }) +extern "C" { + pub static mut session_timezone: *mut pg_tz; } -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, - ); - } - array_bitmap_copy( - arg_destbitmap, - arg_destoffset, - arg_srcbitmap, - arg_srcoffset, - arg_nitems, - ) - }) +extern "C" { + pub static mut log_timezone: *mut pg_tz; } -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 pg_timezone_initialize() { 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 pg_timezone_initialize(); } - construct_array( - arg_elems, - arg_nelems, - arg_elmtype, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + pg_timezone_initialize() }) } -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 pg_tzset(arg_tzname: *const ::std::os::raw::c_char) -> *mut pg_tz { 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 pg_tzset(arg_tzname: *const ::std::os::raw::c_char) -> *mut pg_tz; } - construct_md_array( - arg_elems, - arg_nulls, - arg_ndims, - arg_dims, - arg_lbs, - arg_elmtype, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + pg_tzset(arg_tzname) }) } -pub unsafe fn construct_empty_array(arg_elmtype: Oid) -> *mut ArrayType { +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 construct_empty_array(arg_elmtype: Oid) -> *mut ArrayType; + fn pg_tzset_offset(arg_gmtoffset: ::std::os::raw::c_long) -> *mut pg_tz; } - construct_empty_array(arg_elmtype) + pg_tzset_offset(arg_gmtoffset) }) } -pub unsafe fn construct_empty_expanded_array( - arg_element_type: Oid, - arg_parentcontext: MemoryContext, - arg_metacache: *mut ArrayMetaState, -) -> *mut ExpandedArrayHeader { +pub unsafe fn pg_tzenumerate_start() -> *mut pg_tzenum { 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 pg_tzenumerate_start() -> *mut pg_tzenum; } - construct_empty_expanded_array(arg_element_type, arg_parentcontext, arg_metacache) + pg_tzenumerate_start() }) } -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 pg_tzenumerate_next(arg_dir: *mut pg_tzenum) -> *mut pg_tz { 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 pg_tzenumerate_next(arg_dir: *mut pg_tzenum) -> *mut pg_tz; } - deconstruct_array( - arg_array, - arg_elmtype, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - arg_elemsp, - arg_nullsp, - arg_nelemsp, - ) + pg_tzenumerate_next(arg_dir) }) } -pub unsafe fn array_contains_nulls(arg_array: *mut ArrayType) -> bool { +pub unsafe fn pg_tzenumerate_end(arg_dir: *mut pg_tzenum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_contains_nulls(arg_array: *mut ArrayType) -> bool; + fn pg_tzenumerate_end(arg_dir: *mut pg_tzenum); } - array_contains_nulls(arg_array) + pg_tzenumerate_end(arg_dir) }) } -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; - } - initArrayResult(arg_element_type, arg_rcontext, arg_subcontext) - }) +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; } -pub unsafe fn accumArrayResult( - arg_astate: *mut ArrayBuildState, - arg_dvalue: Datum, - arg_disnull: bool, - arg_element_type: Oid, - arg_rcontext: MemoryContext, -) -> *mut ArrayBuildState { +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 accumArrayResult( - arg_astate: *mut ArrayBuildState, - arg_dvalue: Datum, - arg_disnull: bool, - arg_element_type: Oid, - arg_rcontext: MemoryContext, - ) -> *mut ArrayBuildState; + fn ProcessInterrupts(); } - accumArrayResult( - arg_astate, - arg_dvalue, - arg_disnull, - arg_element_type, - arg_rcontext, - ) + ProcessInterrupts() }) } -pub unsafe fn makeArrayResult( - arg_astate: *mut ArrayBuildState, - arg_rcontext: MemoryContext, -) -> Datum { +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 makeArrayResult( - arg_astate: *mut ArrayBuildState, - arg_rcontext: MemoryContext, - ) -> Datum; + fn set_stack_base() -> pg_stack_base_t; } - makeArrayResult(arg_astate, arg_rcontext) + set_stack_base() }) } -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 restore_stack_base(arg_base: pg_stack_base_t) { 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 restore_stack_base(arg_base: pg_stack_base_t); } - makeMdArrayResult( - arg_astate, - arg_ndims, - arg_dims, - arg_lbs, - arg_rcontext, - arg_release, - ) + restore_stack_base(arg_base) }) } -pub unsafe fn initArrayResultArr( - arg_array_type: Oid, - arg_element_type: Oid, - arg_rcontext: MemoryContext, - arg_subcontext: bool, -) -> *mut ArrayBuildStateArr { +pub unsafe fn check_stack_depth() { 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 check_stack_depth(); } - initArrayResultArr( - arg_array_type, - arg_element_type, - arg_rcontext, - arg_subcontext, - ) + check_stack_depth() }) } -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 stack_is_too_deep() -> 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 stack_is_too_deep() -> bool; } - accumArrayResultArr( - arg_astate, - arg_dvalue, - arg_disnull, - arg_array_type, - arg_rcontext, - ) + stack_is_too_deep() }) } -pub unsafe fn makeArrayResultArr( - arg_astate: *mut ArrayBuildStateArr, - arg_rcontext: MemoryContext, - arg_release: bool, -) -> Datum { +pub unsafe fn PostgresSigHupHandler(arg_postgres_signal_arg: ::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 PostgresSigHupHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); } - makeArrayResultArr(arg_astate, arg_rcontext, arg_release) + PostgresSigHupHandler(arg_postgres_signal_arg) }) } -pub unsafe fn initArrayResultAny( - arg_input_type: Oid, - arg_rcontext: MemoryContext, - arg_subcontext: bool, -) -> *mut ArrayBuildStateAny { +pub unsafe fn PreventCommandIfReadOnly(arg_cmdname: *const ::std::os::raw::c_char) { 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 PreventCommandIfReadOnly(arg_cmdname: *const ::std::os::raw::c_char); } - initArrayResultAny(arg_input_type, arg_rcontext, arg_subcontext) + PreventCommandIfReadOnly(arg_cmdname) }) } -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 PreventCommandIfParallelMode(arg_cmdname: *const ::std::os::raw::c_char) { 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 PreventCommandIfParallelMode(arg_cmdname: *const ::std::os::raw::c_char); } - accumArrayResultAny( - arg_astate, - arg_dvalue, - arg_disnull, - arg_input_type, - arg_rcontext, - ) + PreventCommandIfParallelMode(arg_cmdname) }) } -pub unsafe fn makeArrayResultAny( - arg_astate: *mut ArrayBuildStateAny, - arg_rcontext: MemoryContext, - arg_release: bool, -) -> Datum { +pub unsafe fn PreventCommandDuringRecovery(arg_cmdname: *const ::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 PreventCommandDuringRecovery(arg_cmdname: *const ::std::os::raw::c_char); } - makeArrayResultAny(arg_astate, arg_rcontext, arg_release) + PreventCommandDuringRecovery(arg_cmdname) }) } -pub unsafe fn array_create_iterator( - arg_arr: *mut ArrayType, - arg_slice_ndim: ::std::os::raw::c_int, - arg_mstate: *mut ArrayMetaState, -) -> ArrayIterator { +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 array_create_iterator( - arg_arr: *mut ArrayType, - arg_slice_ndim: ::std::os::raw::c_int, - arg_mstate: *mut ArrayMetaState, - ) -> ArrayIterator; + fn trace_recovery(arg_trace_level: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - array_create_iterator(arg_arr, arg_slice_ndim, arg_mstate) + trace_recovery(arg_trace_level) }) } -pub unsafe fn array_iterate( - arg_iterator: ArrayIterator, - arg_value: *mut Datum, - arg_isnull: *mut bool, -) -> bool { +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 array_iterate( - arg_iterator: ArrayIterator, - arg_value: *mut Datum, - arg_isnull: *mut bool, - ) -> bool; + fn InitPostmasterChild(); } - array_iterate(arg_iterator, arg_value, arg_isnull) + InitPostmasterChild() }) } -pub unsafe fn array_free_iterator(arg_iterator: ArrayIterator) { +pub unsafe fn InitStandaloneProcess(arg_argv0: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_free_iterator(arg_iterator: ArrayIterator); + fn InitStandaloneProcess(arg_argv0: *const ::std::os::raw::c_char); } - array_free_iterator(arg_iterator) + InitStandaloneProcess(arg_argv0) }) } -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 SetDatabasePath(arg_path: *const ::std::os::raw::c_char) { 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 SetDatabasePath(arg_path: *const ::std::os::raw::c_char); } - ArrayGetOffset(arg_n, arg_dim, arg_lb, arg_indx) + SetDatabasePath(arg_path) }) } -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 GetUserNameFromId(arg_roleid: Oid, arg_noerr: bool) -> *mut ::std::os::raw::c_char { 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 GetUserNameFromId(arg_roleid: Oid, arg_noerr: bool) -> *mut ::std::os::raw::c_char; } - ArrayGetOffset0(arg_n, arg_tup, arg_scale) + GetUserNameFromId(arg_roleid, arg_noerr) }) } -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 GetUserId() -> Oid { 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 GetUserId() -> Oid; } - ArrayGetNItems(arg_ndim, arg_dims) + GetUserId() }) } -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 GetOuterUserId() -> Oid { 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 GetOuterUserId() -> Oid; } - ArrayCheckBounds(arg_ndim, arg_dims, arg_lb) + GetOuterUserId() }) } -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 GetSessionUserId() -> Oid { 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 GetSessionUserId() -> Oid; } - mda_get_range(arg_n, arg_span, arg_st, arg_endp) + GetSessionUserId() }) } -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 GetAuthenticatedUserId() -> Oid { 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 GetAuthenticatedUserId() -> Oid; } - mda_get_prod(arg_n, arg_range, arg_prod) + GetAuthenticatedUserId() }) } -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 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 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 GetUserIdAndSecContext( + arg_userid: *mut Oid, + arg_sec_context: *mut ::std::os::raw::c_int, ); } - mda_get_offset_values(arg_n, arg_dist, arg_prod, arg_span) + GetUserIdAndSecContext(arg_userid, arg_sec_context) }) } -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 SetUserIdAndSecContext(arg_userid: Oid, arg_sec_context: ::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; + fn SetUserIdAndSecContext(arg_userid: Oid, arg_sec_context: ::std::os::raw::c_int); } - mda_next_tuple(arg_n, arg_curr, arg_span) + SetUserIdAndSecContext(arg_userid, arg_sec_context) }) } -pub unsafe fn ArrayGetIntegerTypmods( - arg_arr: *mut ArrayType, - arg_n: *mut ::std::os::raw::c_int, -) -> *mut int32 { +pub unsafe fn InLocalUserIdChange() -> bool { 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 InLocalUserIdChange() -> bool; } - ArrayGetIntegerTypmods(arg_arr, arg_n) + InLocalUserIdChange() }) } -pub unsafe fn expand_array( - arg_arraydatum: Datum, - arg_parentcontext: MemoryContext, - arg_metacache: *mut ArrayMetaState, -) -> Datum { +pub unsafe fn InSecurityRestrictedOperation() -> bool { 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 InSecurityRestrictedOperation() -> bool; } - expand_array(arg_arraydatum, arg_parentcontext, arg_metacache) + InSecurityRestrictedOperation() }) } -pub unsafe fn DatumGetExpandedArray(arg_d: Datum) -> *mut ExpandedArrayHeader { +pub unsafe fn InNoForceRLSOperation() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DatumGetExpandedArray(arg_d: Datum) -> *mut ExpandedArrayHeader; + fn InNoForceRLSOperation() -> bool; } - DatumGetExpandedArray(arg_d) + InNoForceRLSOperation() }) } -pub unsafe fn DatumGetExpandedArrayX( - arg_d: Datum, - arg_metacache: *mut ArrayMetaState, -) -> *mut ExpandedArrayHeader { +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 DatumGetExpandedArrayX( - arg_d: Datum, - arg_metacache: *mut ArrayMetaState, - ) -> *mut ExpandedArrayHeader; + fn GetUserIdAndContext(arg_userid: *mut Oid, arg_sec_def_context: *mut bool); } - DatumGetExpandedArrayX(arg_d, arg_metacache) + GetUserIdAndContext(arg_userid, arg_sec_def_context) }) } -pub unsafe fn DatumGetAnyArray(arg_d: Datum) -> *mut AnyArrayType { +pub unsafe fn SetUserIdAndContext(arg_userid: Oid, arg_sec_def_context: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DatumGetAnyArray(arg_d: Datum) -> *mut AnyArrayType; + fn SetUserIdAndContext(arg_userid: Oid, arg_sec_def_context: bool); } - DatumGetAnyArray(arg_d) + SetUserIdAndContext(arg_userid, arg_sec_def_context) }) } -pub unsafe fn deconstruct_expanded_array(arg_eah: *mut ExpandedArrayHeader) { +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 deconstruct_expanded_array(arg_eah: *mut ExpandedArrayHeader); + fn InitializeSessionUserId( + arg_rolename: *const ::std::os::raw::c_char, + arg_useroid: Oid, + ); } - deconstruct_expanded_array(arg_eah) + InitializeSessionUserId(arg_rolename, arg_useroid) }) } -#[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 InitializeSessionUserIdStandalone() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acldefault(arg_objtype: GrantObjectType, arg_ownerId: Oid) -> *mut Acl; + fn InitializeSessionUserIdStandalone(); } - acldefault(arg_objtype, arg_ownerId) + InitializeSessionUserIdStandalone() }) } -pub unsafe fn get_user_default_acl( - arg_objtype: GrantObjectType, - arg_ownerId: Oid, - arg_nsp_oid: Oid, -) -> *mut Acl { +pub unsafe fn SetSessionAuthorization(arg_userid: Oid, arg_is_superuser: 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 SetSessionAuthorization(arg_userid: Oid, arg_is_superuser: bool); } - get_user_default_acl(arg_objtype, arg_ownerId, arg_nsp_oid) + SetSessionAuthorization(arg_userid, arg_is_superuser) }) } -pub unsafe fn recordDependencyOnNewAcl( - arg_classId: Oid, - arg_objectId: Oid, - arg_objsubId: int32, - arg_ownerId: Oid, - arg_acl: *mut Acl, -) { +pub unsafe fn GetCurrentRoleId() -> Oid { 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 GetCurrentRoleId() -> Oid; } - recordDependencyOnNewAcl( - arg_classId, - arg_objectId, - arg_objsubId, - arg_ownerId, - arg_acl, - ) + GetCurrentRoleId() }) } -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 SetCurrentRoleId(arg_roleid: Oid, arg_is_superuser: bool) { 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 SetCurrentRoleId(arg_roleid: Oid, arg_is_superuser: bool); } - aclupdate( - arg_old_acl, - arg_mod_aip, - arg_modechg, - arg_ownerId, - arg_behavior, - ) + SetCurrentRoleId(arg_roleid, arg_is_superuser) }) } -pub unsafe fn aclnewowner( - arg_old_acl: *const Acl, - arg_oldOwnerId: Oid, - arg_newOwnerId: Oid, -) -> *mut Acl { +pub unsafe fn SetDataDir(arg_dir: *const ::std::os::raw::c_char) { 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 SetDataDir(arg_dir: *const ::std::os::raw::c_char); } - aclnewowner(arg_old_acl, arg_oldOwnerId, arg_newOwnerId) + SetDataDir(arg_dir) }) } -pub unsafe fn make_empty_acl() -> *mut Acl { +pub unsafe fn ChangeToDataDir() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_empty_acl() -> *mut Acl; + fn ChangeToDataDir(); } - make_empty_acl() + ChangeToDataDir() }) } -pub unsafe fn aclcopy(arg_orig_acl: *const Acl) -> *mut Acl { +pub unsafe fn SwitchToSharedLatch() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclcopy(arg_orig_acl: *const Acl) -> *mut Acl; + fn SwitchToSharedLatch(); } - aclcopy(arg_orig_acl) + SwitchToSharedLatch() }) } -pub unsafe fn aclconcat(arg_left_acl: *const Acl, arg_right_acl: *const Acl) -> *mut Acl { +pub unsafe fn SwitchBackToLocalLatch() { 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 SwitchBackToLocalLatch(); } - aclconcat(arg_left_acl, arg_right_acl) + SwitchBackToLocalLatch() }) } -pub unsafe fn aclmerge( - arg_left_acl: *const Acl, - arg_right_acl: *const Acl, - arg_ownerId: Oid, -) -> *mut Acl { +pub unsafe fn superuser() -> bool { 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 superuser() -> bool; } - aclmerge(arg_left_acl, arg_right_acl, arg_ownerId) + superuser() }) } -pub unsafe fn aclitemsort(arg_acl: *mut Acl) { +pub unsafe fn superuser_arg(arg_roleid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclitemsort(arg_acl: *mut Acl); + fn superuser_arg(arg_roleid: Oid) -> bool; } - aclitemsort(arg_acl) + superuser_arg(arg_roleid) }) } -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; - } - aclequal(arg_left_acl, arg_right_acl) - }) +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 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; - } - aclmask(arg_acl, arg_roleid, arg_ownerId, arg_mask, arg_how) - }) +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 aclmembers(arg_acl: *const Acl, arg_roleids: *mut *mut Oid) -> ::std::os::raw::c_int { +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 aclmembers(arg_acl: *const Acl, arg_roleids: *mut *mut Oid) - -> ::std::os::raw::c_int; + 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, + ); } - aclmembers(arg_acl, arg_roleids) + pg_split_opts(arg_argv, arg_argcp, arg_optstr) }) } -pub unsafe fn has_privs_of_role(arg_member: Oid, arg_role: Oid) -> bool { +pub unsafe fn InitializeMaxBackends() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_privs_of_role(arg_member: Oid, arg_role: Oid) -> bool; + fn InitializeMaxBackends(); } - has_privs_of_role(arg_member, arg_role) + InitializeMaxBackends() }) } -pub unsafe fn is_member_of_role(arg_member: Oid, arg_role: Oid) -> bool { +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 is_member_of_role(arg_member: Oid, arg_role: Oid) -> bool; + 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, + ); } - is_member_of_role(arg_member, arg_role) + InitPostgres(arg_in_dbname, arg_dboid, arg_username, arg_useroid, arg_out_dbname) }) } -pub unsafe fn is_member_of_role_nosuper(arg_member: Oid, arg_role: Oid) -> bool { +pub unsafe fn BaseInit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_member_of_role_nosuper(arg_member: Oid, arg_role: Oid) -> bool; + fn BaseInit(); } - is_member_of_role_nosuper(arg_member, arg_role) + BaseInit() }) } -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; - } - is_admin_of_role(arg_member, arg_role) - }) +extern "C" { + pub static mut IgnoreSystemIndexes: bool; } -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); - } - check_is_member_of_role(arg_member, arg_role) - }) +extern "C" { + pub static mut process_shared_preload_libraries_in_progress: bool; } -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; - } - get_role_oid(arg_rolename, arg_missing_ok) - }) +extern "C" { + pub static mut session_preload_libraries_string: *mut ::std::os::raw::c_char; } -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) - }) +extern "C" { + pub static mut shared_preload_libraries_string: *mut ::std::os::raw::c_char; } -pub unsafe fn get_rolespec_oid(arg_role: *const RoleSpec, arg_missing_ok: bool) -> Oid { +extern "C" { + pub static mut local_preload_libraries_string: *mut ::std::os::raw::c_char; +} +pub unsafe fn CreateDataDirLockFile(arg_amPostmaster: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_rolespec_oid(arg_role: *const RoleSpec, arg_missing_ok: bool) -> Oid; + fn CreateDataDirLockFile(arg_amPostmaster: bool); } - get_rolespec_oid(arg_role, arg_missing_ok) + CreateDataDirLockFile(arg_amPostmaster) }) } -pub unsafe fn check_rolespec_name( - arg_role: *const RoleSpec, - arg_detail_msg: *const ::std::os::raw::c_char, +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 check_rolespec_name( - arg_role: *const RoleSpec, - arg_detail_msg: *const ::std::os::raw::c_char, + fn CreateSocketLockFile( + arg_socketfile: *const ::std::os::raw::c_char, + arg_amPostmaster: bool, + arg_socketDir: *const ::std::os::raw::c_char, ); } - check_rolespec_name(arg_role, arg_detail_msg) - }) -} -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) + CreateSocketLockFile(arg_socketfile, arg_amPostmaster, arg_socketDir) }) } -pub unsafe fn get_rolespec_name(arg_role: *const RoleSpec) -> *mut ::std::os::raw::c_char { +pub unsafe fn TouchSocketLockFiles() { 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 TouchSocketLockFiles(); } - get_rolespec_name(arg_role) + TouchSocketLockFiles() }) } -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 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 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 AddToDataDirLockFile( + arg_target_line: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, ); } - select_best_grantor( - arg_roleId, - arg_privileges, - arg_acl, - arg_ownerId, - arg_grantorId, - arg_grantOptions, - ) + AddToDataDirLockFile(arg_target_line, arg_str_) }) } -pub unsafe fn initialize_acl() { +pub unsafe fn RecheckDataDirLockFile() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initialize_acl(); + fn RecheckDataDirLockFile() -> bool; } - initialize_acl() + RecheckDataDirLockFile() }) } -pub unsafe fn ExecuteGrantStmt(arg_stmt: *mut GrantStmt) { +pub unsafe fn ValidatePgVersion(arg_path: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecuteGrantStmt(arg_stmt: *mut GrantStmt); + fn ValidatePgVersion(arg_path: *const ::std::os::raw::c_char); } - ExecuteGrantStmt(arg_stmt) + ValidatePgVersion(arg_path) }) } -pub unsafe fn ExecAlterDefaultPrivilegesStmt( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterDefaultPrivilegesStmt, -) { +pub unsafe fn process_shared_preload_libraries() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAlterDefaultPrivilegesStmt( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterDefaultPrivilegesStmt, - ); + fn process_shared_preload_libraries(); } - ExecAlterDefaultPrivilegesStmt(arg_pstate, arg_stmt) + process_shared_preload_libraries() }) } -pub unsafe fn RemoveRoleFromObjectACL(arg_roleid: Oid, arg_classid: Oid, arg_objid: Oid) { +pub unsafe fn process_session_preload_libraries() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemoveRoleFromObjectACL(arg_roleid: Oid, arg_classid: Oid, arg_objid: Oid); + fn process_session_preload_libraries(); } - RemoveRoleFromObjectACL(arg_roleid, arg_classid, arg_objid) + process_session_preload_libraries() }) } -pub unsafe fn RemoveDefaultACLById(arg_defaclOid: Oid) { +pub unsafe fn pg_bindtextdomain(arg_domain: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemoveDefaultACLById(arg_defaclOid: Oid); + fn pg_bindtextdomain(arg_domain: *const ::std::os::raw::c_char); } - RemoveDefaultACLById(arg_defaclOid) + pg_bindtextdomain(arg_domain) }) } -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 has_rolreplication(arg_roleid: Oid) -> bool { 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 has_rolreplication(arg_roleid: Oid) -> bool; } - pg_attribute_aclmask(arg_table_oid, arg_attnum, arg_roleid, arg_mask, arg_how) + has_rolreplication(arg_roleid) }) } -pub unsafe fn pg_class_aclmask( - arg_table_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn BackupInProgress() -> bool { 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 BackupInProgress() -> bool; } - pg_class_aclmask(arg_table_oid, arg_roleid, arg_mask, arg_how) + BackupInProgress() }) } -pub unsafe fn pg_database_aclmask( - arg_db_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn CancelBackup() { 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 CancelBackup(); } - pg_database_aclmask(arg_db_oid, arg_roleid, arg_mask, arg_how) + CancelBackup() }) } -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 SockAddr { + pub addr: sockaddr_storage, + pub salen: socklen_t, +} +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_proc_aclmask(arg_proc_oid, arg_roleid, arg_mask, arg_how) - }) + } } -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; +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 { + 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_language_aclmask(arg_lang_oid, arg_roleid, arg_mask, arg_how) - }) + } } -pub unsafe fn pg_largeobject_aclmask_snapshot( - arg_lobj_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - arg_snapshot: Snapshot, -) -> AclMode { +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 pg_largeobject_aclmask_snapshot( - arg_lobj_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - arg_snapshot: Snapshot, - ) -> AclMode; + fn pgarch_start() -> ::std::os::raw::c_int; } - pg_largeobject_aclmask_snapshot(arg_lobj_oid, arg_roleid, arg_mask, arg_how, arg_snapshot) + pgarch_start() }) } -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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dlist_node { + pub prev: *mut dlist_node, + pub next: *mut dlist_node, +} +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() } - pg_namespace_aclmask(arg_nsp_oid, arg_roleid, arg_mask, arg_how) - }) + } } -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 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() } - pg_tablespace_aclmask(arg_spc_oid, arg_roleid, arg_mask, arg_how) - }) + } } -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 dlist_iter { + pub cur: *mut dlist_node, + pub end: *mut dlist_node, +} +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() } - 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; +#[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() } - pg_foreign_server_aclmask(arg_srv_oid, arg_roleid, arg_mask, arg_how) - }) + } } -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 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() } - pg_type_aclmask(arg_type_oid, arg_roleid, arg_mask, arg_how) - }) + } } -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 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() } - pg_attribute_aclcheck(arg_table_oid, arg_attnum, arg_roleid, arg_mode) - }) + } } -pub unsafe 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 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() + } + } +} +#[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() + } + } +} +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 pg_attribute_aclcheck_all( - arg_table_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - arg_how: AclMaskHow, - ) -> AclResult; + fn slist_delete(arg_head: *mut slist_head, arg_node: *mut slist_node); } - pg_attribute_aclcheck_all(arg_table_oid, arg_roleid, arg_mode, arg_how) + slist_delete(arg_head, arg_node) }) } -pub unsafe fn pg_class_aclcheck( - arg_table_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +#[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 pg_class_aclcheck( - arg_table_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - ) -> AclResult; + fn InitializeLatchSupport(); } - pg_class_aclcheck(arg_table_oid, arg_roleid, arg_mode) + InitializeLatchSupport() }) } -pub unsafe fn pg_database_aclcheck( - arg_db_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn InitLatch(arg_latch: *mut Latch) { 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 InitLatch(arg_latch: *mut Latch); } - pg_database_aclcheck(arg_db_oid, arg_roleid, arg_mode) + InitLatch(arg_latch) }) } -pub unsafe fn pg_proc_aclcheck(arg_proc_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) -> AclResult { +pub unsafe fn InitSharedLatch(arg_latch: *mut Latch) { 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 InitSharedLatch(arg_latch: *mut Latch); } - pg_proc_aclcheck(arg_proc_oid, arg_roleid, arg_mode) + InitSharedLatch(arg_latch) }) } -pub unsafe fn pg_language_aclcheck( - arg_lang_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn OwnLatch(arg_latch: *mut Latch) { 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 OwnLatch(arg_latch: *mut Latch); } - pg_language_aclcheck(arg_lang_oid, arg_roleid, arg_mode) + OwnLatch(arg_latch) }) } -pub unsafe fn pg_largeobject_aclcheck_snapshot( - arg_lang_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - arg_snapshot: Snapshot, -) -> AclResult { +pub unsafe fn DisownLatch(arg_latch: *mut Latch) { 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 DisownLatch(arg_latch: *mut Latch); } - pg_largeobject_aclcheck_snapshot(arg_lang_oid, arg_roleid, arg_mode, arg_snapshot) + DisownLatch(arg_latch) }) } -pub unsafe fn pg_namespace_aclcheck( - arg_nsp_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn SetLatch(arg_latch: *mut Latch) { 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 SetLatch(arg_latch: *mut Latch); } - pg_namespace_aclcheck(arg_nsp_oid, arg_roleid, arg_mode) + SetLatch(arg_latch) }) } -pub unsafe fn pg_tablespace_aclcheck( - arg_spc_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn ResetLatch(arg_latch: *mut Latch) { 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; + fn ResetLatch(arg_latch: *mut Latch); } - pg_tablespace_aclcheck(arg_spc_oid, arg_roleid, arg_mode) + ResetLatch(arg_latch) }) } -pub unsafe fn pg_foreign_data_wrapper_aclcheck( - arg_fdw_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +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 pg_foreign_data_wrapper_aclcheck( - arg_fdw_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - ) -> AclResult; + fn CreateWaitEventSet( + arg_context: MemoryContext, + arg_nevents: ::std::os::raw::c_int, + ) -> *mut WaitEventSet; } - pg_foreign_data_wrapper_aclcheck(arg_fdw_oid, arg_roleid, arg_mode) + CreateWaitEventSet(arg_context, arg_nevents) }) } -pub unsafe fn pg_foreign_server_aclcheck( - arg_srv_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn FreeWaitEventSet(arg_set: *mut WaitEventSet) { 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 FreeWaitEventSet(arg_set: *mut WaitEventSet); } - pg_foreign_server_aclcheck(arg_srv_oid, arg_roleid, arg_mode) + FreeWaitEventSet(arg_set) }) } -pub unsafe fn pg_type_aclcheck(arg_type_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) -> AclResult { +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 pg_type_aclcheck(arg_type_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) - -> AclResult; + 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; } - pg_type_aclcheck(arg_type_oid, arg_roleid, arg_mode) + AddWaitEventToSet(arg_set, arg_events, arg_fd, arg_latch, arg_user_data) }) } -pub unsafe fn aclcheck_error( - arg_aclerr: AclResult, - arg_objectkind: AclObjectKind, - arg_objectname: *const ::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 aclcheck_error( - arg_aclerr: AclResult, - arg_objectkind: AclObjectKind, - arg_objectname: *const ::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, ); } - aclcheck_error(arg_aclerr, arg_objectkind, arg_objectname) + ModifyWaitEvent(arg_set, arg_pos, arg_events, arg_latch) }) } -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) - }) -} -pub unsafe fn aclcheck_error_type(arg_aclerr: AclResult, arg_typeOid: Oid) { +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 aclcheck_error_type(arg_aclerr: AclResult, arg_typeOid: Oid); + 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; } - aclcheck_error_type(arg_aclerr, arg_typeOid) + WaitEventSetWait( + arg_set, + arg_timeout, + arg_occurred_events, + arg_nevents, + arg_wait_event_info, + ) }) } -pub unsafe fn recordExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid) { +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 recordExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid); + 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; } - recordExtObjInitPriv(arg_objoid, arg_classoid) + WaitLatch(arg_latch, arg_wakeEvents, arg_timeout, arg_wait_event_info) }) } -pub unsafe fn removeExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid) { +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 removeExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid); + 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; } - removeExtObjInitPriv(arg_objoid, arg_classoid) + WaitLatchOrSocket(arg_latch, arg_wakeEvents, arg_sock, arg_timeout, arg_wait_event_info) }) } -pub unsafe fn pg_class_ownercheck(arg_class_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn latch_sigusr1_handler() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_class_ownercheck(arg_class_oid: Oid, arg_roleid: Oid) -> bool; + fn latch_sigusr1_handler(); } - pg_class_ownercheck(arg_class_oid, arg_roleid) + latch_sigusr1_handler() }) } -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, Default, Copy, Clone)] +pub struct LWLock { + pub tranche: uint16, + pub state: pg_atomic_uint32, + pub waiters: proclist_head, } -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; +#[repr(C)] +#[derive(Copy, Clone)] +pub union LWLockPadded { + pub lock: LWLock, + pub pad: [::std::os::raw::c_char; 128usize], +} +impl Default for LWLockPadded { + 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_oper_ownercheck(arg_oper_oid, arg_roleid) - }) + } } -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; +#[repr(C)] +#[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() } - pg_proc_ownercheck(arg_proc_oid, arg_roleid) - }) + } } -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; +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 NamedLWLockTranche { + pub trancheId: ::std::os::raw::c_int, + pub trancheName: *mut ::std::os::raw::c_char, +} +impl Default for NamedLWLockTranche { + 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_language_ownercheck(arg_lan_oid, arg_roleid) - }) + } } -pub unsafe fn pg_largeobject_ownercheck(arg_lobj_oid: Oid, arg_roleid: Oid) -> bool { +extern "C" { + pub static mut NamedLWLockTrancheArray: *mut NamedLWLockTranche; +} +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 pg_largeobject_ownercheck(arg_lobj_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; } - pg_largeobject_ownercheck(arg_lobj_oid, arg_roleid) + LWLockAcquire(arg_lock, arg_mode) }) } -pub unsafe fn pg_namespace_ownercheck(arg_nsp_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn LWLockConditionalAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_namespace_ownercheck(arg_nsp_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockConditionalAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; } - pg_namespace_ownercheck(arg_nsp_oid, arg_roleid) + LWLockConditionalAcquire(arg_lock, arg_mode) }) } -pub unsafe fn pg_tablespace_ownercheck(arg_spc_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn LWLockAcquireOrWait(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tablespace_ownercheck(arg_spc_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockAcquireOrWait(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; } - pg_tablespace_ownercheck(arg_spc_oid, arg_roleid) + LWLockAcquireOrWait(arg_lock, arg_mode) }) } -pub unsafe fn pg_opclass_ownercheck(arg_opc_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn LWLockRelease(arg_lock: *mut LWLock) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_opclass_ownercheck(arg_opc_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockRelease(arg_lock: *mut LWLock); } - pg_opclass_ownercheck(arg_opc_oid, arg_roleid) + LWLockRelease(arg_lock) }) } -pub unsafe fn pg_opfamily_ownercheck(arg_opf_oid: Oid, arg_roleid: Oid) -> bool { +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 pg_opfamily_ownercheck(arg_opf_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockReleaseClearVar( + arg_lock: *mut LWLock, + arg_valptr: *mut uint64, + arg_val: uint64, + ); } - pg_opfamily_ownercheck(arg_opf_oid, arg_roleid) + LWLockReleaseClearVar(arg_lock, arg_valptr, arg_val) }) } -pub unsafe fn pg_database_ownercheck(arg_db_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn LWLockReleaseAll() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_database_ownercheck(arg_db_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockReleaseAll(); } - pg_database_ownercheck(arg_db_oid, arg_roleid) + LWLockReleaseAll() }) } -pub unsafe fn pg_collation_ownercheck(arg_coll_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_collation_ownercheck(arg_coll_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool; } - pg_collation_ownercheck(arg_coll_oid, arg_roleid) + LWLockHeldByMe(arg_lock) }) } -pub unsafe fn pg_conversion_ownercheck(arg_conv_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_conversion_ownercheck(arg_conv_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; } - pg_conversion_ownercheck(arg_conv_oid, arg_roleid) + LWLockHeldByMeInMode(arg_lock, arg_mode) }) } -pub unsafe fn pg_ts_dict_ownercheck(arg_dict_oid: Oid, arg_roleid: Oid) -> bool { +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 pg_ts_dict_ownercheck(arg_dict_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockWaitForVar( + arg_lock: *mut LWLock, + arg_valptr: *mut uint64, + arg_oldval: uint64, + arg_newval: *mut uint64, + ) -> bool; } - pg_ts_dict_ownercheck(arg_dict_oid, arg_roleid) + LWLockWaitForVar(arg_lock, arg_valptr, arg_oldval, arg_newval) }) } -pub unsafe fn pg_ts_config_ownercheck(arg_cfg_oid: Oid, arg_roleid: Oid) -> bool { +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_ts_config_ownercheck(arg_cfg_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockUpdateVar(arg_lock: *mut LWLock, arg_valptr: *mut uint64, arg_value: uint64); } - pg_ts_config_ownercheck(arg_cfg_oid, arg_roleid) + LWLockUpdateVar(arg_lock, arg_valptr, arg_value) }) } -pub unsafe fn pg_foreign_data_wrapper_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn LWLockShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_foreign_data_wrapper_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockShmemSize() -> Size; } - pg_foreign_data_wrapper_ownercheck(arg_srv_oid, arg_roleid) + LWLockShmemSize() }) } -pub unsafe fn pg_foreign_server_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn CreateLWLocks() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_foreign_server_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool; + fn CreateLWLocks(); } - pg_foreign_server_ownercheck(arg_srv_oid, arg_roleid) + CreateLWLocks() }) } -pub unsafe fn pg_event_trigger_ownercheck(arg_et_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn InitLWLockAccess() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_event_trigger_ownercheck(arg_et_oid: Oid, arg_roleid: Oid) -> bool; + fn InitLWLockAccess(); } - pg_event_trigger_ownercheck(arg_et_oid, arg_roleid) + InitLWLockAccess() }) } -pub unsafe fn pg_extension_ownercheck(arg_ext_oid: Oid, arg_roleid: Oid) -> bool { +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 pg_extension_ownercheck(arg_ext_oid: Oid, arg_roleid: Oid) -> bool; + fn GetLWLockIdentifier( + arg_classId: uint32, + arg_eventId: uint16, + ) -> *const ::std::os::raw::c_char; } - pg_extension_ownercheck(arg_ext_oid, arg_roleid) + GetLWLockIdentifier(arg_classId, arg_eventId) }) } -pub unsafe fn pg_publication_ownercheck(arg_pub_oid: Oid, arg_roleid: Oid) -> bool { +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 pg_publication_ownercheck(arg_pub_oid: Oid, arg_roleid: Oid) -> bool; + fn RequestNamedLWLockTranche( + arg_tranche_name: *const ::std::os::raw::c_char, + arg_num_lwlocks: ::std::os::raw::c_int, + ); } - pg_publication_ownercheck(arg_pub_oid, arg_roleid) + RequestNamedLWLockTranche(arg_tranche_name, arg_num_lwlocks) }) } -pub unsafe fn pg_subscription_ownercheck(arg_sub_oid: Oid, arg_roleid: Oid) -> bool { +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 pg_subscription_ownercheck(arg_sub_oid: Oid, arg_roleid: Oid) -> bool; + fn GetNamedLWLockTranche( + arg_tranche_name: *const ::std::os::raw::c_char, + ) -> *mut LWLockPadded; } - pg_subscription_ownercheck(arg_sub_oid, arg_roleid) + GetNamedLWLockTranche(arg_tranche_name) }) } -pub unsafe fn pg_statistics_object_ownercheck(arg_stat_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn LWLockNewTrancheId() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_statistics_object_ownercheck(arg_stat_oid: Oid, arg_roleid: Oid) -> bool; + fn LWLockNewTrancheId() -> ::std::os::raw::c_int; } - pg_statistics_object_ownercheck(arg_stat_oid, arg_roleid) + LWLockNewTrancheId() }) } -pub unsafe fn has_createrole_privilege(arg_roleid: Oid) -> bool { +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 has_createrole_privilege(arg_roleid: Oid) -> bool; + fn LWLockRegisterTranche( + arg_tranche_id: ::std::os::raw::c_int, + arg_tranche_name: *mut ::std::os::raw::c_char, + ); } - has_createrole_privilege(arg_roleid) + LWLockRegisterTranche(arg_tranche_id, arg_tranche_name) }) } -pub unsafe fn has_bypassrls_privilege(arg_roleid: Oid) -> bool { +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 has_bypassrls_privilege(arg_roleid: Oid) -> bool; + fn LWLockInitialize(arg_lock: *mut LWLock, arg_tranche_id: ::std::os::raw::c_int); } - has_bypassrls_privilege(arg_roleid) + LWLockInitialize(arg_lock, arg_tranche_id) }) } +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, Default, Copy, Clone)] -pub struct ObjectAddress { - pub classId: Oid, - pub objectId: Oid, - pub objectSubId: int32, -} -extern "C" { - pub static InvalidObjectAddress: ObjectAddress; -} -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; - } - get_object_address( - arg_objtype, - arg_object, - arg_relp, - arg_lockmode, - arg_missing_ok, - ) - }) +#[derive(Debug, Copy, Clone)] +pub struct SHM_QUEUE { + pub prev: *mut SHM_QUEUE, + pub next: *mut SHM_QUEUE, } -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; +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() } - 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, -) { +pub unsafe fn InitShmemAccess(arg_seghdr: *mut ::std::os::raw::c_void) { 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, - ); + fn InitShmemAccess(arg_seghdr: *mut ::std::os::raw::c_void); } - check_object_ownership( - arg_roleid, - arg_objtype, - arg_address, - arg_object, - arg_relation, - ) + InitShmemAccess(arg_seghdr) }) } -pub unsafe fn get_object_namespace(arg_address: *const ObjectAddress) -> Oid { +pub unsafe fn InitShmemAllocation() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_namespace(arg_address: *const ObjectAddress) -> Oid; + fn InitShmemAllocation(); } - get_object_namespace(arg_address) + InitShmemAllocation() }) } -pub unsafe fn is_objectclass_supported(arg_class_id: Oid) -> bool { +pub unsafe fn ShmemAlloc(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_objectclass_supported(arg_class_id: Oid) -> bool; + fn ShmemAlloc(arg_size: Size) -> *mut ::std::os::raw::c_void; } - is_objectclass_supported(arg_class_id) + ShmemAlloc(arg_size) }) } -pub unsafe fn get_object_oid_index(arg_class_id: 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_object_oid_index(arg_class_id: Oid) -> Oid; + fn ShmemAllocNoError(arg_size: Size) -> *mut ::std::os::raw::c_void; } - get_object_oid_index(arg_class_id) + ShmemAllocNoError(arg_size) }) } -pub unsafe fn get_object_catcache_oid(arg_class_id: Oid) -> ::std::os::raw::c_int { +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_object_catcache_oid(arg_class_id: Oid) -> ::std::os::raw::c_int; + fn ShmemAllocUnlocked(arg_size: Size) -> *mut ::std::os::raw::c_void; } - get_object_catcache_oid(arg_class_id) + ShmemAllocUnlocked(arg_size) }) } -pub unsafe fn get_object_catcache_name(arg_class_id: Oid) -> ::std::os::raw::c_int { +pub unsafe fn ShmemAddrIsValid(arg_addr: *const ::std::os::raw::c_void) -> bool { 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 ShmemAddrIsValid(arg_addr: *const ::std::os::raw::c_void) -> bool; } - get_object_catcache_name(arg_class_id) + ShmemAddrIsValid(arg_addr) }) } -pub unsafe fn get_object_attnum_name(arg_class_id: Oid) -> AttrNumber { +pub unsafe fn InitShmemIndex() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_attnum_name(arg_class_id: Oid) -> AttrNumber; + fn InitShmemIndex(); } - get_object_attnum_name(arg_class_id) + InitShmemIndex() }) } -pub unsafe fn get_object_attnum_namespace(arg_class_id: Oid) -> AttrNumber { +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_object_attnum_namespace(arg_class_id: Oid) -> AttrNumber; + 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_object_attnum_namespace(arg_class_id) + ShmemInitHash(arg_name, arg_init_size, arg_max_size, arg_infoP, arg_hash_flags) }) } -pub unsafe fn get_object_attnum_owner(arg_class_id: Oid) -> AttrNumber { +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 get_object_attnum_owner(arg_class_id: Oid) -> AttrNumber; + fn ShmemInitStruct( + arg_name: *const ::std::os::raw::c_char, + arg_size: Size, + arg_foundPtr: *mut bool, + ) -> *mut ::std::os::raw::c_void; } - get_object_attnum_owner(arg_class_id) + ShmemInitStruct(arg_name, arg_size, arg_foundPtr) }) } -pub unsafe fn get_object_attnum_acl(arg_class_id: Oid) -> AttrNumber { +pub unsafe fn add_size(arg_s1: Size, arg_s2: Size) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_attnum_acl(arg_class_id: Oid) -> AttrNumber; + fn add_size(arg_s1: Size, arg_s2: Size) -> Size; } - get_object_attnum_acl(arg_class_id) + add_size(arg_s1, arg_s2) }) } -pub unsafe fn get_object_aclkind(arg_class_id: Oid) -> AclObjectKind { +pub unsafe fn mul_size(arg_s1: Size, arg_s2: Size) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_aclkind(arg_class_id: Oid) -> AclObjectKind; + fn mul_size(arg_s1: Size, arg_s2: Size) -> Size; } - get_object_aclkind(arg_class_id) + mul_size(arg_s1, arg_s2) }) } -pub unsafe fn get_object_namensp_unique(arg_class_id: Oid) -> bool { +pub unsafe fn RequestAddinShmemSpace(arg_size: Size) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_namensp_unique(arg_class_id: Oid) -> bool; + fn RequestAddinShmemSpace(arg_size: Size); } - get_object_namensp_unique(arg_class_id) + RequestAddinShmemSpace(arg_size) }) } -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 get_catalog_object_by_oid(arg_catalog: Relation, arg_objectId: Oid) -> HeapTuple; - } - get_catalog_object_by_oid(arg_catalog, arg_objectId) - }) -} -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 getObjectDescription( - arg_object: *const ObjectAddress, - ) -> *mut ::std::os::raw::c_char; - } - getObjectDescription(arg_object) - }) -} -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 getObjectDescriptionOids( - arg_classid: Oid, - arg_objid: Oid, - ) -> *mut ::std::os::raw::c_char; - } - getObjectDescriptionOids(arg_classid, arg_objid) - }) -} -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 read_objtype_from_string( - arg_objtype: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - read_objtype_from_string(arg_objtype) - }) -} -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 getObjectTypeDescription( - arg_object: *const ObjectAddress, - ) -> *mut ::std::os::raw::c_char; - } - getObjectTypeDescription(arg_object) - }) -} -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 getObjectIdentity(arg_address: *const ObjectAddress) -> *mut ::std::os::raw::c_char; - } - getObjectIdentity(arg_address) - }) -} -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 getObjectIdentityParts( - arg_address: *const ObjectAddress, - arg_objname: *mut *mut List, - arg_objargs: *mut *mut List, - ) -> *mut ::std::os::raw::c_char; - } - getObjectIdentityParts(arg_address, arg_objname, arg_objargs) - }) -} -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, 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, +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 Publication { +impl Default for ShmemIndexEnt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -31828,125 +28174,101 @@ 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) - }) -} -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 GetPublicationByName( - arg_pubname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> *mut Publication; - } - GetPublicationByName(arg_pubname, arg_missing_ok) - }) -} -pub unsafe fn GetRelationPublications(arg_relid: Oid) -> *mut List { +pub unsafe fn SHMQueueInit(arg_queue: *mut SHM_QUEUE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRelationPublications(arg_relid: Oid) -> *mut List; + fn SHMQueueInit(arg_queue: *mut SHM_QUEUE); } - GetRelationPublications(arg_relid) + SHMQueueInit(arg_queue) }) } -pub unsafe fn GetPublicationRelations(arg_pubid: Oid) -> *mut List { +pub unsafe fn SHMQueueElemInit(arg_queue: *mut SHM_QUEUE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetPublicationRelations(arg_pubid: Oid) -> *mut List; + fn SHMQueueElemInit(arg_queue: *mut SHM_QUEUE); } - GetPublicationRelations(arg_pubid) + SHMQueueElemInit(arg_queue) }) } -pub unsafe fn GetAllTablesPublications() -> *mut List { +pub unsafe fn SHMQueueDelete(arg_queue: *mut SHM_QUEUE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAllTablesPublications() -> *mut List; + fn SHMQueueDelete(arg_queue: *mut SHM_QUEUE); } - GetAllTablesPublications() + SHMQueueDelete(arg_queue) }) } -pub unsafe fn GetAllTablesPublicationRelations() -> *mut List { +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 GetAllTablesPublicationRelations() -> *mut List; + fn SHMQueueInsertBefore(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE); } - GetAllTablesPublicationRelations() + SHMQueueInsertBefore(arg_queue, arg_elem) }) } -pub unsafe fn is_publishable_relation(arg_rel: Relation) -> bool { +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 is_publishable_relation(arg_rel: Relation) -> bool; + fn SHMQueueInsertAfter(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE); } - is_publishable_relation(arg_rel) + SHMQueueInsertAfter(arg_queue, arg_elem) }) } -pub unsafe fn publication_add_relation( - arg_pubid: Oid, - arg_targetrel: Relation, - arg_if_not_exists: bool, -) -> ObjectAddress { +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 publication_add_relation( - arg_pubid: Oid, - arg_targetrel: Relation, - arg_if_not_exists: bool, - ) -> ObjectAddress; + fn SHMQueueNext( + arg_queue: *const SHM_QUEUE, + arg_curElem: *const SHM_QUEUE, + arg_linkOffset: Size, + ) -> Pointer; } - publication_add_relation(arg_pubid, arg_targetrel, arg_if_not_exists) + SHMQueueNext(arg_queue, arg_curElem, arg_linkOffset) }) } -pub unsafe fn get_publication_oid( - arg_pubname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { +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 get_publication_oid( - arg_pubname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; + fn SHMQueuePrev( + arg_queue: *const SHM_QUEUE, + arg_curElem: *const SHM_QUEUE, + arg_linkOffset: Size, + ) -> Pointer; } - get_publication_oid(arg_pubname, arg_missing_ok) + SHMQueuePrev(arg_queue, arg_curElem, arg_linkOffset) }) } -pub unsafe fn get_publication_name(arg_pubid: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn SHMQueueEmpty(arg_queue: *const SHM_QUEUE) -> 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 SHMQueueEmpty(arg_queue: *const SHM_QUEUE) -> bool; } - get_publication_name(arg_pubid) + SHMQueueEmpty(arg_queue) }) } -pub unsafe fn pg_get_publication_tables(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SHMQueueIsDetached(arg_queue: *const SHM_QUEUE) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_publication_tables(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SHMQueueIsDetached(arg_queue: *const SHM_QUEUE) -> bool; } - pg_get_publication_tables(arg_fcinfo) + SHMQueueIsDetached(arg_queue) }) } #[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, +pub struct PROC_QUEUE { + pub links: SHM_QUEUE, + pub size: ::std::os::raw::c_int, } -impl Default for RewriteRule { +impl Default for PROC_QUEUE { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -31955,13 +28277,24 @@ impl Default for RewriteRule { } } } +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 RuleLock { - pub numLocks: ::std::os::raw::c_int, - pub rules: *mut *mut RewriteRule, +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 RuleLock { +impl Default for LockMethodData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -31970,37 +28303,47 @@ impl Default for RuleLock { } } } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct LockRelId { - pub relId: Oid, - pub dbId: Oid, +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 LockInfoData { - pub lockRelId: LockRelId, +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 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, +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 PartitionKeyData { +impl Default for LOCK { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32009,71 +28352,13 @@ impl Default for PartitionKeyData { } } } -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, +pub struct PROCLOCKTAG { + pub myLock: *mut LOCK, + pub myProc: *mut PGPROC, } -impl Default for RelationData { +impl Default for PROCLOCKTAG { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32084,16 +28369,15 @@ impl Default for RelationData { } #[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 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 ForeignKeyCacheInfo { +impl Default for PROCLOCK { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32104,76 +28388,17 @@ impl Default for ForeignKeyCacheInfo { } #[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, -} -pub unsafe fn RelationIncrementReferenceCount(arg_rel: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationIncrementReferenceCount(arg_rel: Relation); - } - RelationIncrementReferenceCount(arg_rel) - }) -} -pub unsafe fn RelationDecrementReferenceCount(arg_rel: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationDecrementReferenceCount(arg_rel: Relation); - } - RelationDecrementReferenceCount(arg_rel) - }) -} -pub unsafe fn RelationGetRepsetList(arg_rel: Relation) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetRepsetList(arg_rel: Relation) -> *mut List; - } - RelationGetRepsetList(arg_rel) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionBoundInfoData { - _unused: [u8; 0], +pub struct LOCALLOCKTAG { + pub lock: LOCKTAG, + pub mode: LOCKMODE, } -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, +pub struct LOCALLOCKOWNER { + pub owner: *mut ResourceOwnerData, + pub nLocks: int64, } -impl Default for PartitionDescData { +impl Default for LOCALLOCKOWNER { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32182,19 +28407,21 @@ impl Default for PartitionDescData { } } } -pub type PartitionDesc = *mut PartitionDescData; #[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 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 PartitionDispatchData { +impl Default for LOCALLOCK { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32203,1514 +28430,1103 @@ impl Default for PartitionDispatchData { } } } -pub type PartitionDispatch = *mut PartitionDispatchData; -pub unsafe fn RelationBuildPartitionDesc(arg_relation: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationBuildPartitionDesc(arg_relation: Relation); - } - RelationBuildPartitionDesc(arg_relation) - }) -} -pub unsafe fn partition_bounds_equal( - arg_key: PartitionKey, - arg_p1: PartitionBoundInfo, - arg_p2: PartitionBoundInfo, -) -> bool { +#[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 partition_bounds_equal( - arg_key: PartitionKey, - arg_p1: PartitionBoundInfo, - arg_p2: PartitionBoundInfo, - ) -> bool; + fn InitLocks(); } - partition_bounds_equal(arg_key, arg_p1, arg_p2) + InitLocks() }) } -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 GetLocksMethodTable(arg_lock: *const LOCK) -> LockMethod { 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 GetLocksMethodTable(arg_lock: *const LOCK) -> LockMethod; } - check_new_partition_bound(arg_relname, arg_parent, arg_spec) + GetLocksMethodTable(arg_lock) }) } -pub unsafe fn get_partition_parent(arg_relid: Oid) -> Oid { +pub unsafe fn GetLockTagsMethodTable(arg_locktag: *const LOCKTAG) -> LockMethod { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_partition_parent(arg_relid: Oid) -> Oid; + fn GetLockTagsMethodTable(arg_locktag: *const LOCKTAG) -> LockMethod; } - get_partition_parent(arg_relid) + GetLockTagsMethodTable(arg_locktag) }) } -pub unsafe fn get_qual_from_partbound( - arg_rel: Relation, - arg_parent: Relation, - arg_spec: *mut PartitionBoundSpec, -) -> *mut List { +pub unsafe fn LockTagHashCode(arg_locktag: *const LOCKTAG) -> uint32 { 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 LockTagHashCode(arg_locktag: *const LOCKTAG) -> uint32; } - get_qual_from_partbound(arg_rel, arg_parent, arg_spec) + LockTagHashCode(arg_locktag) }) } -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 DoLockModesConflict(arg_mode1: LOCKMODE, arg_mode2: LOCKMODE) -> 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 DoLockModesConflict(arg_mode1: LOCKMODE, arg_mode2: LOCKMODE) -> bool; } - map_partition_varattnos( - arg_expr, - arg_target_varno, - arg_partrel, - arg_parent, - arg_found_whole_row, - ) + DoLockModesConflict(arg_mode1, arg_mode2) }) } -pub unsafe fn RelationGetPartitionQual(arg_rel: Relation) -> *mut List { +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 RelationGetPartitionQual(arg_rel: Relation) -> *mut List; + fn LockAcquire( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, + arg_dontWait: bool, + ) -> LockAcquireResult; } - RelationGetPartitionQual(arg_rel) + LockAcquire(arg_locktag, arg_lockmode, arg_sessionLock, arg_dontWait) }) } -pub unsafe fn get_partition_qual_relid(arg_relid: Oid) -> *mut Expr { +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 get_partition_qual_relid(arg_relid: Oid) -> *mut Expr; + fn LockAcquireExtended( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, + arg_dontWait: bool, + arg_reportMemoryError: bool, + arg_locallockp: *mut *mut LOCALLOCK, + ) -> LockAcquireResult; } - get_partition_qual_relid(arg_relid) + LockAcquireExtended( + arg_locktag, + arg_lockmode, + arg_sessionLock, + arg_dontWait, + arg_reportMemoryError, + arg_locallockp, + ) }) } -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 AbortStrongLockAcquire() { 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 AbortStrongLockAcquire(); } - RelationGetPartitionDispatchInfo(arg_rel, arg_num_parted, arg_leaf_part_oids) + AbortStrongLockAcquire() }) } -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 MarkLockClear(arg_locallock: *mut LOCALLOCK) { 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 MarkLockClear(arg_locallock: *mut LOCALLOCK); } - FormPartitionKeyDatum(arg_pd, arg_slot, arg_estate, arg_values, arg_isnull) + MarkLockClear(arg_locallock) }) } -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 LockRelease( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, +) -> bool { 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 LockRelease( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, + ) -> bool; } - get_partition_for_tuple(arg_pd, arg_slot, arg_estate, arg_failed_at, arg_failed_slot) + LockRelease(arg_locktag, arg_lockmode, arg_sessionLock) }) } -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) { +pub unsafe fn LockReleaseAll(arg_lockmethodid: LOCKMETHODID, arg_allLocks: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BeginCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); + fn LockReleaseAll(arg_lockmethodid: LOCKMETHODID, arg_allLocks: bool); } - BeginCommand(arg_commandTag, arg_dest) + LockReleaseAll(arg_lockmethodid, arg_allLocks) }) } -pub unsafe fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver { +pub unsafe fn LockReleaseSession(arg_lockmethodid: LOCKMETHODID) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver; + fn LockReleaseSession(arg_lockmethodid: LOCKMETHODID); } - CreateDestReceiver(arg_dest) + LockReleaseSession(arg_lockmethodid) }) } -pub unsafe fn EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest) { +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 EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); + fn LockReleaseCurrentOwner( + arg_locallocks: *mut *mut LOCALLOCK, + arg_nlocks: ::std::os::raw::c_int, + ); } - EndCommand(arg_commandTag, arg_dest) + LockReleaseCurrentOwner(arg_locallocks, arg_nlocks) }) } -pub unsafe fn NullCommand(arg_dest: CommandDest) { +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 NullCommand(arg_dest: CommandDest); + fn LockReassignCurrentOwner( + arg_locallocks: *mut *mut LOCALLOCK, + arg_nlocks: ::std::os::raw::c_int, + ); } - NullCommand(arg_dest) + LockReassignCurrentOwner(arg_locallocks, arg_nlocks) }) } -pub unsafe fn ReadyForQuery(arg_dest: CommandDest) { +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 ReadyForQuery(arg_dest: CommandDest); + fn LockHasWaiters( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, + ) -> bool; } - ReadyForQuery(arg_dest) + LockHasWaiters(arg_locktag, arg_lockmode, arg_sessionLock) }) } -#[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 { +pub unsafe fn GetLockConflicts( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, +) -> *mut VirtualTransactionId { 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; + fn GetLockConflicts( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + ) -> *mut VirtualTransactionId; } - CreateQueryDesc( - arg_plannedstmt, - arg_sourceText, - arg_snapshot, - arg_crosscheck_snapshot, - arg_dest, - arg_params, - arg_queryEnv, - arg_instrument_options, - ) + GetLockConflicts(arg_locktag, arg_lockmode) }) } -pub unsafe fn FreeQueryDesc(arg_qdesc: *mut QueryDesc) { +pub unsafe fn AtPrepare_Locks() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeQueryDesc(arg_qdesc: *mut QueryDesc); + fn AtPrepare_Locks(); } - FreeQueryDesc(arg_qdesc) + AtPrepare_Locks() }) } -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) { +pub unsafe fn PostPrepare_Locks(arg_xid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecReScan(arg_node: *mut PlanState); + fn PostPrepare_Locks(arg_xid: TransactionId); } - ExecReScan(arg_node) + PostPrepare_Locks(arg_xid) }) } -pub unsafe fn ExecMarkPos(arg_node: *mut PlanState) { +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 ExecMarkPos(arg_node: *mut PlanState); + fn LockCheckConflicts( + arg_lockMethodTable: LockMethod, + arg_lockmode: LOCKMODE, + arg_lock: *mut LOCK, + arg_proclock: *mut PROCLOCK, + ) -> ::std::os::raw::c_int; } - ExecMarkPos(arg_node) + LockCheckConflicts(arg_lockMethodTable, arg_lockmode, arg_lock, arg_proclock) }) } -pub unsafe fn ExecRestrPos(arg_node: *mut PlanState) { +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 ExecRestrPos(arg_node: *mut PlanState); + fn GrantLock(arg_lock: *mut LOCK, arg_proclock: *mut PROCLOCK, arg_lockmode: LOCKMODE); } - ExecRestrPos(arg_node) + GrantLock(arg_lock, arg_proclock, arg_lockmode) }) } -pub unsafe fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool { +pub unsafe fn GrantAwaitedLock() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool; + fn GrantAwaitedLock(); } - ExecSupportsMarkRestore(arg_pathnode) + GrantAwaitedLock() }) } -pub unsafe fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool { +pub unsafe fn RemoveFromWaitQueue(arg_proc_: *mut PGPROC, arg_hashcode: uint32) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool; + fn RemoveFromWaitQueue(arg_proc_: *mut PGPROC, arg_hashcode: uint32); } - ExecSupportsBackwardScan(arg_node) + RemoveFromWaitQueue(arg_proc_, arg_hashcode) }) } -pub unsafe fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool { +pub unsafe fn LockShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool; + fn LockShmemSize() -> Size; } - ExecMaterializesOutput(arg_plantype) + LockShmemSize() }) } -pub unsafe fn execCurrentOf( - arg_cexpr: *mut CurrentOfExpr, - arg_econtext: *mut ExprContext, - arg_table_oid: Oid, - arg_current_tid: ItemPointer, -) -> bool { +pub unsafe fn GetLockStatusData() -> *mut LockData { 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 GetLockStatusData() -> *mut LockData; } - execCurrentOf(arg_cexpr, arg_econtext, arg_table_oid, arg_current_tid) + GetLockStatusData() }) } -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 GetBlockerStatusData( + arg_blocked_pid: ::std::os::raw::c_int, +) -> *mut BlockedProcsData { 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 GetBlockerStatusData( + arg_blocked_pid: ::std::os::raw::c_int, + ) -> *mut BlockedProcsData; } - execTuplesMatch( - arg_slot1, - arg_slot2, - arg_numCols, - arg_matchColIdx, - arg_eqfunctions, - arg_evalContext, - ) + GetBlockerStatusData(arg_blocked_pid) }) } -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 GetRunningTransactionLocks( + arg_nlocks: *mut ::std::os::raw::c_int, +) -> *mut xl_standby_lock { 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 GetRunningTransactionLocks( + arg_nlocks: *mut ::std::os::raw::c_int, + ) -> *mut xl_standby_lock; } - execTuplesUnequal( - arg_slot1, - arg_slot2, - arg_numCols, - arg_matchColIdx, - arg_eqfunctions, - arg_evalContext, - ) + GetRunningTransactionLocks(arg_nlocks) }) } -pub unsafe fn execTuplesMatchPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *mut Oid, -) -> *mut FmgrInfo { +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 execTuplesMatchPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *mut Oid, - ) -> *mut FmgrInfo; + fn GetLockmodeName( + arg_lockmethodid: LOCKMETHODID, + arg_mode: LOCKMODE, + ) -> *const ::std::os::raw::c_char; } - execTuplesMatchPrepare(arg_numCols, arg_eqOperators) + GetLockmodeName(arg_lockmethodid, arg_mode) }) } -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 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 execTuplesHashPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *mut Oid, - arg_eqFunctions: *mut *mut FmgrInfo, - arg_hashFunctions: *mut *mut FmgrInfo, + fn lock_twophase_recover( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, ); } - execTuplesHashPrepare( - arg_numCols, - arg_eqOperators, - arg_eqFunctions, - arg_hashFunctions, - ) - }) -} -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 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; - } - 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 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_eqfunctions: *mut FmgrInfo, - 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_eqfunctions: *mut FmgrInfo, - arg_hashfunctions: *mut FmgrInfo, - ) -> TupleHashEntry; - } - FindTupleHashEntry(arg_hashtable, arg_slot, arg_eqfunctions, arg_hashfunctions) - }) -} -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 ExecInitJunkFilter( - arg_targetList: *mut List, - arg_hasoid: bool, - arg_slot: *mut TupleTableSlot, - ) -> *mut JunkFilter; - } - ExecInitJunkFilter(arg_targetList, arg_hasoid, 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) + lock_twophase_recover(arg_xid, arg_info, arg_recdata, arg_len) }) } -pub unsafe fn ExecFindJunkAttributeInTlist( - arg_targetlist: *mut List, - arg_attrName: *const ::std::os::raw::c_char, -) -> AttrNumber { +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 ExecFindJunkAttributeInTlist( - arg_targetlist: *mut List, - arg_attrName: *const ::std::os::raw::c_char, - ) -> AttrNumber; + fn lock_twophase_postcommit( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, + ); } - ExecFindJunkAttributeInTlist(arg_targetlist, arg_attrName) + lock_twophase_postcommit(arg_xid, arg_info, arg_recdata, arg_len) }) } -pub unsafe fn ExecGetJunkAttribute( - arg_slot: *mut TupleTableSlot, - arg_attno: AttrNumber, - arg_isNull: *mut bool, -) -> Datum { +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 ExecGetJunkAttribute( - arg_slot: *mut TupleTableSlot, - arg_attno: AttrNumber, - arg_isNull: *mut bool, - ) -> Datum; + fn lock_twophase_postabort( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, + ); } - ExecGetJunkAttribute(arg_slot, arg_attno, arg_isNull) + lock_twophase_postabort(arg_xid, arg_info, arg_recdata, arg_len) }) } -pub unsafe fn ExecFilterJunk( - arg_junkfilter: *mut JunkFilter, - arg_slot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { +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 ExecFilterJunk( - arg_junkfilter: *mut JunkFilter, - arg_slot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; + fn lock_twophase_standby_recover( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, + ); } - ExecFilterJunk(arg_junkfilter, arg_slot) + lock_twophase_standby_recover(arg_xid, arg_info, arg_recdata, arg_len) }) } -pub unsafe fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int) { +pub unsafe fn DeadLockCheck(arg_proc_: *mut PGPROC) -> DeadLockState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int); + fn DeadLockCheck(arg_proc_: *mut PGPROC) -> DeadLockState; } - ExecutorStart(arg_queryDesc, arg_eflags) + DeadLockCheck(arg_proc_) }) } -pub unsafe fn standard_ExecutorStart( - arg_queryDesc: *mut QueryDesc, - arg_eflags: ::std::os::raw::c_int, -) { +pub unsafe fn GetBlockingAutoVacuumPgproc() -> *mut PGPROC { 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 GetBlockingAutoVacuumPgproc() -> *mut PGPROC; } - standard_ExecutorStart(arg_queryDesc, arg_eflags) + GetBlockingAutoVacuumPgproc() }) } -pub unsafe fn ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, -) { +pub unsafe fn DeadLockReport() { 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 DeadLockReport(); } - ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) + DeadLockReport() }) } -pub unsafe fn standard_ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, +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 standard_ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, + fn RememberSimpleDeadLock( + arg_proc1: *mut PGPROC, + arg_lockmode: LOCKMODE, + arg_lock: *mut LOCK, + arg_proc2: *mut PGPROC, ); } - standard_ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) + RememberSimpleDeadLock(arg_proc1, arg_lockmode, arg_lock, arg_proc2) }) } -pub unsafe fn ExecutorFinish(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn InitDeadLockChecking() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorFinish(arg_queryDesc: *mut QueryDesc); + fn InitDeadLockChecking(); } - ExecutorFinish(arg_queryDesc) + InitDeadLockChecking() }) } -pub unsafe fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn LockWaiterCount(arg_locktag: *const LOCKTAG) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc); + fn LockWaiterCount(arg_locktag: *const LOCKTAG) -> ::std::os::raw::c_int; } - standard_ExecutorFinish(arg_queryDesc) + LockWaiterCount(arg_locktag) }) } -pub unsafe fn ExecutorEnd(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn VirtualXactLockTableInsert(arg_vxid: VirtualTransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorEnd(arg_queryDesc: *mut QueryDesc); + fn VirtualXactLockTableInsert(arg_vxid: VirtualTransactionId); } - ExecutorEnd(arg_queryDesc) + VirtualXactLockTableInsert(arg_vxid) }) } -pub unsafe fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn VirtualXactLockTableCleanup() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc); + fn VirtualXactLockTableCleanup(); } - standard_ExecutorEnd(arg_queryDesc) + VirtualXactLockTableCleanup() }) } -pub unsafe fn ExecutorRewind(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn VirtualXactLock(arg_vxid: VirtualTransactionId, arg_wait: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorRewind(arg_queryDesc: *mut QueryDesc); + fn VirtualXactLock(arg_vxid: VirtualTransactionId, arg_wait: bool) -> bool; } - ExecutorRewind(arg_queryDesc) + VirtualXactLock(arg_vxid, arg_wait) }) } -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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PGSemaphoreData { + _unused: [u8; 0], } -pub unsafe fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { +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 CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType); + fn PGSemaphoreShmemSize(arg_maxSemas: ::std::os::raw::c_int) -> Size; } - CheckValidResultRel(arg_resultRelInfo, arg_operation) + PGSemaphoreShmemSize(arg_maxSemas) }) } -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 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 InitResultRelInfo( - arg_resultRelInfo: *mut ResultRelInfo, - arg_resultRelationDesc: Relation, - arg_resultRelationIndex: Index, - arg_partition_root: Relation, - arg_instrument_options: ::std::os::raw::c_int, + fn PGReserveSemaphores( + arg_maxSemas: ::std::os::raw::c_int, + arg_port: ::std::os::raw::c_int, ); } - InitResultRelInfo( - arg_resultRelInfo, - arg_resultRelationDesc, - arg_resultRelationIndex, - arg_partition_root, - 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) + PGReserveSemaphores(arg_maxSemas, arg_port) }) } -pub unsafe fn ExecCleanUpTriggerState(arg_estate: *mut EState) { +pub unsafe fn PGSemaphoreCreate() -> PGSemaphore { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCleanUpTriggerState(arg_estate: *mut EState); + fn PGSemaphoreCreate() -> PGSemaphore; } - ExecCleanUpTriggerState(arg_estate) + PGSemaphoreCreate() }) } -pub unsafe fn ExecContextForcesOids(arg_planstate: *mut PlanState, arg_hasoids: *mut bool) -> bool { +pub unsafe fn PGSemaphoreReset(arg_sema: PGSemaphore) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecContextForcesOids(arg_planstate: *mut PlanState, arg_hasoids: *mut bool) - -> bool; + fn PGSemaphoreReset(arg_sema: PGSemaphore); } - ExecContextForcesOids(arg_planstate, arg_hasoids) + PGSemaphoreReset(arg_sema) }) } -pub unsafe fn ExecConstraints( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, -) { +pub unsafe fn PGSemaphoreLock(arg_sema: PGSemaphore) { 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 PGSemaphoreLock(arg_sema: PGSemaphore); } - ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) + PGSemaphoreLock(arg_sema) }) } -pub unsafe fn ExecWithCheckOptions( - arg_kind: WCOKind, - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, -) { +pub unsafe fn PGSemaphoreUnlock(arg_sema: PGSemaphore) { 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 PGSemaphoreUnlock(arg_sema: PGSemaphore); } - ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) + PGSemaphoreUnlock(arg_sema) }) } -pub unsafe fn ExecUpdateLockMode( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, -) -> LockTupleMode { +pub unsafe fn PGSemaphoreTryLock(arg_sema: PGSemaphore) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecUpdateLockMode( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - ) -> LockTupleMode; + fn PGSemaphoreTryLock(arg_sema: PGSemaphore) -> bool; } - ExecUpdateLockMode(arg_estate, arg_relinfo) + PGSemaphoreTryLock(arg_sema) }) } -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 ExecFindRowMark( - arg_estate: *mut EState, - arg_rti: Index, - arg_missing_ok: bool, - ) -> *mut ExecRowMark; - } - ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XidCache { + pub xids: [TransactionId; 64usize], } -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 ExecBuildAuxRowMark( - arg_erm: *mut ExecRowMark, - arg_targetlist: *mut List, - ) -> *mut ExecAuxRowMark; +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() } - ExecBuildAuxRowMark(arg_erm, arg_targetlist) - }) + } } -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 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; - } - EvalPlanQual( - arg_estate, - arg_epqstate, - arg_relation, - arg_rti, - arg_lockmode, - arg_tid, - arg_priorXmax, - ) - }) +#[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, } -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 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; +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() } - EvalPlanQualFetch( - arg_estate, - arg_relation, - arg_lockmode, - arg_wait_policy, - arg_tid, - arg_priorXmax, - ) - }) + } } -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 EvalPlanQualInit( - arg_epqstate: *mut EPQState, - arg_estate: *mut EState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - arg_epqParam: ::std::os::raw::c_int, - ); - } - EvalPlanQualInit( - arg_epqstate, - arg_estate, - arg_subplan, - arg_auxrowmarks, - arg_epqParam, - ) - }) +extern "C" { + pub static mut MyProc: *mut PGPROC; } -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 EvalPlanQualSetPlan( - arg_epqstate: *mut EPQState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - ); - } - EvalPlanQualSetPlan(arg_epqstate, arg_subplan, arg_auxrowmarks) - }) +extern "C" { + pub static mut MyPgXact: *mut PGXACT; } -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 EvalPlanQualSetTuple( - arg_epqstate: *mut EPQState, - arg_rti: Index, - arg_tuple: HeapTuple, - ); - } - EvalPlanQualSetTuple(arg_epqstate, arg_rti, arg_tuple) - }) +#[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, } -pub unsafe fn EvalPlanQualGetTuple(arg_epqstate: *mut EPQState, arg_rti: Index) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EvalPlanQualGetTuple(arg_epqstate: *mut EPQState, arg_rti: Index) -> HeapTuple; - } - EvalPlanQualGetTuple(arg_epqstate, arg_rti) - }) +#[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 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 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, - ); +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() } - 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 ExecFindPartition( - arg_resultRelInfo: *mut ResultRelInfo, - arg_pd: *mut PartitionDispatch, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, -) -> ::std::os::raw::c_int { +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 ExecFindPartition( - arg_resultRelInfo: *mut ResultRelInfo, - arg_pd: *mut PartitionDispatch, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - ) -> ::std::os::raw::c_int; + fn ProcGlobalSemas() -> ::std::os::raw::c_int; } - ExecFindPartition(arg_resultRelInfo, arg_pd, arg_slot, arg_estate) + ProcGlobalSemas() }) } -pub unsafe fn EvalPlanQualFetchRowMarks(arg_epqstate: *mut EPQState) { +pub unsafe fn ProcGlobalShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualFetchRowMarks(arg_epqstate: *mut EPQState); + fn ProcGlobalShmemSize() -> Size; } - EvalPlanQualFetchRowMarks(arg_epqstate) + ProcGlobalShmemSize() }) } -pub unsafe fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot { +pub unsafe fn InitProcGlobal() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot; + fn InitProcGlobal(); } - EvalPlanQualNext(arg_epqstate) + InitProcGlobal() }) } -pub unsafe fn EvalPlanQualBegin(arg_epqstate: *mut EPQState, arg_parentestate: *mut EState) { +pub unsafe fn InitProcess() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualBegin(arg_epqstate: *mut EPQState, arg_parentestate: *mut EState); + fn InitProcess(); } - EvalPlanQualBegin(arg_epqstate, arg_parentestate) + InitProcess() }) } -pub unsafe fn EvalPlanQualEnd(arg_epqstate: *mut EPQState) { +pub unsafe fn InitProcessPhase2() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualEnd(arg_epqstate: *mut EPQState); + fn InitProcessPhase2(); } - EvalPlanQualEnd(arg_epqstate) + InitProcessPhase2() }) } -pub unsafe fn ExecInitNode( - arg_node: *mut Plan, - arg_estate: *mut EState, - arg_eflags: ::std::os::raw::c_int, -) -> *mut PlanState { +pub unsafe fn InitAuxiliaryProcess() { 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 InitAuxiliaryProcess(); } - ExecInitNode(arg_node, arg_estate, arg_eflags) + InitAuxiliaryProcess() }) } -pub unsafe fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node { +pub unsafe fn PublishStartupProcessInformation() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; + fn PublishStartupProcessInformation(); } - MultiExecProcNode(arg_node) + PublishStartupProcessInformation() }) } -pub unsafe fn ExecEndNode(arg_node: *mut PlanState) { +pub unsafe fn SetStartupBufferPinWaitBufId(arg_bufid: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecEndNode(arg_node: *mut PlanState); + fn SetStartupBufferPinWaitBufId(arg_bufid: ::std::os::raw::c_int); } - ExecEndNode(arg_node) + SetStartupBufferPinWaitBufId(arg_bufid) }) } -pub unsafe fn ExecShutdownNode(arg_node: *mut PlanState) -> bool { +pub unsafe fn GetStartupBufferPinWaitBufId() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecShutdownNode(arg_node: *mut PlanState) -> bool; + fn GetStartupBufferPinWaitBufId() -> ::std::os::raw::c_int; } - ExecShutdownNode(arg_node) + GetStartupBufferPinWaitBufId() }) } -pub unsafe fn ExecInitExpr(arg_node: *mut Expr, 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 ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState; + fn HaveNFreeProcs(arg_n: ::std::os::raw::c_int) -> bool; } - ExecInitExpr(arg_node, arg_parent) + HaveNFreeProcs(arg_n) }) } -pub unsafe fn ExecInitQual(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 ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; + fn ProcReleaseLocks(arg_isCommit: bool); } - ExecInitQual(arg_qual, arg_parent) + ProcReleaseLocks(arg_isCommit) }) } -pub unsafe fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { +pub unsafe fn ProcQueueInit(arg_queue: *mut PROC_QUEUE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; + fn ProcQueueInit(arg_queue: *mut PROC_QUEUE); } - ExecInitCheck(arg_qual, arg_parent) + ProcQueueInit(arg_queue) }) } -pub unsafe fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List { +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 ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List; + fn ProcSleep( + arg_locallock: *mut LOCALLOCK, + arg_lockMethodTable: LockMethod, + ) -> ::std::os::raw::c_int; } - ExecInitExprList(arg_nodes, arg_parent) + ProcSleep(arg_locallock, arg_lockMethodTable) }) } -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 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 ExecBuildProjectionInfo( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - ) -> *mut ProjectionInfo; + fn ProcWakeup( + arg_proc_: *mut PGPROC, + arg_waitStatus: ::std::os::raw::c_int, + ) -> *mut PGPROC; } - ExecBuildProjectionInfo( - arg_targetList, - arg_econtext, - arg_slot, - arg_parent, - arg_inputDesc, - ) + ProcWakeup(arg_proc_, arg_waitStatus) }) } -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 ProcLockWakeup(arg_lockMethodTable: LockMethod, arg_lock: *mut LOCK) { 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 ProcLockWakeup(arg_lockMethodTable: LockMethod, arg_lock: *mut LOCK); } - ExecBuildProjectionInfoExt( - arg_targetList, - arg_econtext, - arg_slot, - arg_assignJunkEntries, - arg_parent, - arg_inputDesc, - ) + ProcLockWakeup(arg_lockMethodTable, arg_lock) }) } -pub unsafe fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn CheckDeadLockAlert() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; + fn CheckDeadLockAlert(); } - ExecPrepareExpr(arg_node, arg_estate) + CheckDeadLockAlert() }) } -pub unsafe fn ExecPrepareQual(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 ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; + fn IsWaitingForLock() -> bool; } - ExecPrepareQual(arg_qual, arg_estate) + IsWaitingForLock() }) } -pub unsafe fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn LockErrorCleanup() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; + fn LockErrorCleanup(); } - ExecPrepareCheck(arg_qual, arg_estate) + LockErrorCleanup() }) } -pub unsafe fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List { +pub unsafe fn ProcWaitForSignal(arg_wait_event_info: uint32) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; + fn ProcWaitForSignal(arg_wait_event_info: uint32); } - ExecPrepareExprList(arg_nodes, arg_estate) + ProcWaitForSignal(arg_wait_event_info) }) } -pub unsafe fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool { +pub unsafe fn ProcSendSignal(arg_pid: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; + fn ProcSendSignal(arg_pid: ::std::os::raw::c_int); } - ExecCheck(arg_state, arg_context) + ProcSendSignal(arg_pid) }) } -pub unsafe fn ExecInitTableFunctionResult( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, -) -> *mut SetExprState { +pub unsafe fn AuxiliaryPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { 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 AuxiliaryPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; } - ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) + AuxiliaryPidGetProc(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 BecomeLockGroupLeader() { 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 BecomeLockGroupLeader(); } - ExecMakeTableFunctionResult( - arg_setexpr, - arg_econtext, - arg_argContext, - arg_expectedDesc, - arg_randomAccess, - ) + BecomeLockGroupLeader() }) } -pub unsafe fn ExecInitFunctionResultSet( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, -) -> *mut SetExprState { +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 ExecInitFunctionResultSet( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, - ) -> *mut SetExprState; + fn BecomeLockGroupMember( + arg_leader: *mut PGPROC, + arg_pid: ::std::os::raw::c_int, + ) -> bool; } - ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) + BecomeLockGroupMember(arg_leader, arg_pid) }) } -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 ExecMakeFunctionResultSet( - arg_fcache: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_isNull: *mut bool, - arg_isDone: *mut ExprDoneCond, - ) -> Datum; - } - ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_isNull, arg_isDone) - }) +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 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 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 ExecAssignScanProjectionInfo(arg_node: *mut ScanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); +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() } - ExecAssignScanProjectionInfo(arg_node) - }) + } } -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); - } - ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) - }) +#[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 ExecScanReScan(arg_node: *mut ScanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecScanReScan(arg_node: *mut ScanState); +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() } - ExecScanReScan(arg_node) - }) + } } -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); - } - ExecInitResultTupleSlot(arg_estate, arg_planstate) - }) +#[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 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); +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() } - ExecInitScanTupleSlot(arg_estate, arg_scanstate) - }) + } } -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; - } - ExecInitExtraTupleSlot(arg_estate) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgDummy { + pub m_hdr: PgStat_MsgHdr, } -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; +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() } - ExecInitNullTupleSlot(arg_estate, arg_tupType) - }) + } } -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; - } - ExecTypeFromTL(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 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; +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() } - ExecCleanTypeFromTL(arg_targetList, arg_hasoid) - }) + } } -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; - } - ExecTypeFromExprList(arg_exprList) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PgStat_TableEntry { + pub t_id: Oid, + pub t_counts: PgStat_TableCounts, } -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, 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 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); +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 { @@ -33719,535 +29535,291 @@ 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) - }) -} -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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgDropdb { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, } -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, - ); +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_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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgResetcounter { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, } -pub unsafe fn CreateExecutorState() -> *mut EState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateExecutorState() -> *mut EState; +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() } - 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) - }) +#[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 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; +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() } - CreateExprContext(arg_estate) - }) + } } -pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateStandaloneExprContext() -> *mut ExprContext; - } - CreateStandaloneExprContext() - }) +#[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 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); +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() } - 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) - }) +#[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 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; +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() } - 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) - }) +#[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 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); +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() } - 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) - }) +#[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 ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; +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() } - 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) - }) +#[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 ExecFreeExprContext(arg_planstate: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecFreeExprContext(arg_planstate: *mut PlanState); +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() } - 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) - }) +#[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 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; +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() } - 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_MsgRecoveryConflict { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_reason: ::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 ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: 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() } - 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_MsgTempFile { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_filesize: usize, } -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_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() } - 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, 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 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, - ); - } - check_exclusion_constraint( - arg_heap, - arg_index, - arg_indexInfo, - arg_tupleid, - arg_values, - arg_isnull, - arg_estate, - arg_newIndex, - ) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PgStat_BackendFunctionEntry { + pub f_id: Oid, + pub f_counts: PgStat_FunctionCounts, } -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, 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 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; - } - RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) - }) +#[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 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); +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() } - ExecSimpleRelationInsert(arg_estate, arg_slot) - }) + } } -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, - ); - } - ExecSimpleRelationUpdate(arg_estate, arg_epqstate, arg_searchslot, arg_slot) - }) +#[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 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, - ); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgDeadlock { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, } -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, - ); +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() } - CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) - }) + } } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AttInMetadata { - pub tupdesc: TupleDesc, - pub attinfuncs: *mut FmgrInfo, - pub attioparams: *mut Oid, - pub atttypmods: *mut int32, +#[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, } -impl Default for AttInMetadata { +impl Default for PgStat_Msg { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -34258,16 +29830,34 @@ 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_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 FuncCallContext { +impl Default for PgStat_StatDBEntry { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -34276,1083 +29866,1128 @@ 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; +#[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, +} +#[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, +} +#[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, +} +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() } - 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; +#[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() } - 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; +#[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() } - 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; +#[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() } - 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 { +#[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 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 BackendStatusShmemSize() -> Size; } - get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) + BackendStatusShmemSize() }) } -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 CreateSharedBackendStatus() { 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 CreateSharedBackendStatus(); } - get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) + CreateSharedBackendStatus() }) } -pub unsafe fn get_func_trftypes( - arg_procTup: HeapTuple, - arg_p_trftypes: *mut *mut Oid, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_init() { 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 pgstat_init(); } - get_func_trftypes(arg_procTup, arg_p_trftypes) + pgstat_init() }) } -pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn pgstat_start() -> ::std::os::raw::c_int { 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 pgstat_start() -> ::std::os::raw::c_int; } - get_func_result_name(arg_functionId) + pgstat_start() }) } -pub unsafe fn build_function_result_tupdesc_d( - arg_proallargtypes: Datum, - arg_proargmodes: Datum, - arg_proargnames: Datum, -) -> TupleDesc { +pub unsafe fn pgstat_reset_all() { 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; + fn pgstat_reset_all(); } - build_function_result_tupdesc_d(arg_proallargtypes, arg_proargmodes, arg_proargnames) + pgstat_reset_all() }) } -pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { +pub unsafe fn allow_immediate_pgstat_restart() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; + fn allow_immediate_pgstat_restart(); } - build_function_result_tupdesc_t(arg_procTuple) + allow_immediate_pgstat_restart() }) } -pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc { +pub unsafe fn pgstat_ping() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; + fn pgstat_ping(); } - RelationNameGetTupleDesc(arg_relname) + pgstat_ping() }) } -pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { +pub unsafe fn pgstat_report_stat(arg_force: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; + fn pgstat_report_stat(arg_force: bool); } - TypeGetTupleDesc(arg_typeoid, arg_colaliases) + pgstat_report_stat(arg_force) }) } -pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { +pub unsafe fn pgstat_vacuum_stat() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; + fn pgstat_vacuum_stat(); } - BlessTupleDesc(arg_tupdesc) + pgstat_vacuum_stat() }) } -pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { +pub unsafe fn pgstat_drop_database(arg_databaseid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; + fn pgstat_drop_database(arg_databaseid: Oid); } - TupleDescGetAttInMetadata(arg_tupdesc) + pgstat_drop_database(arg_databaseid) }) } -pub unsafe fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, -) -> HeapTuple { +pub unsafe fn pgstat_clear_snapshot() { 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 pgstat_clear_snapshot(); } - BuildTupleFromCStrings(arg_attinmeta, arg_values) + pgstat_clear_snapshot() }) } -pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { +pub unsafe fn pgstat_reset_counters() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; + fn pgstat_reset_counters(); } - HeapTupleHeaderGetDatum(arg_tuple) + pgstat_reset_counters() }) } -pub unsafe fn TupleDescGetSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot { +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 TupleDescGetSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot; + fn pgstat_reset_shared_counters(arg_arg1: *const ::std::os::raw::c_char); } - TupleDescGetSlot(arg_tupdesc) + pgstat_reset_shared_counters(arg_arg1) }) } -pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +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 init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn pgstat_reset_single_counter(arg_objectid: Oid, arg_type_: PgStat_Single_Reset_Type); } - init_MultiFuncCall(arg_fcinfo) + pgstat_reset_single_counter(arg_objectid, arg_type_) }) } -pub unsafe fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +pub unsafe fn pgstat_report_autovac(arg_dboid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn pgstat_report_autovac(arg_dboid: Oid); } - per_MultiFuncCall(arg_fcinfo) + pgstat_report_autovac(arg_dboid) }) } -pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { +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 end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); + fn pgstat_report_vacuum( + arg_tableoid: Oid, + arg_shared: bool, + arg_livetuples: PgStat_Counter, + arg_deadtuples: PgStat_Counter, + ); } - end_MultiFuncCall(arg_fcinfo, arg_funcctx) + pgstat_report_vacuum(arg_tableoid, arg_shared, arg_livetuples, arg_deadtuples) }) } -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 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 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 pgstat_report_analyze( + arg_rel: Relation, + arg_livetuples: PgStat_Counter, + arg_deadtuples: PgStat_Counter, + arg_resetcounter: bool, + ); } - extract_variadic_args( - arg_fcinfo, - arg_variadic_start, - arg_convert_unknown, - arg_values, - arg_types, - arg_nulls, - ) + pgstat_report_analyze(arg_rel, arg_livetuples, arg_deadtuples, arg_resetcounter) }) } -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() +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 pgstat_report_recovery_conflict(arg_reason: ::std::os::raw::c_int); } - } -} -#[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, + pgstat_report_recovery_conflict(arg_reason) + }) } -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() +pub unsafe fn pgstat_report_deadlock() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_report_deadlock(); } - } -} -#[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, + pgstat_report_deadlock() + }) } -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() +pub unsafe fn pgstat_initialize() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_initialize(); } - } + pgstat_initialize() + }) } -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 pgstat_bestart() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_bestart(); } - } + pgstat_bestart() + }) } -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 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, + ); } - } -} -#[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, + pgstat_report_activity(arg_state, arg_cmd_str) + }) } -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 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) + }) } -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 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) + }) } -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 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); } - } -} -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, + pgstat_report_xact_timestamp(arg_tstamp) + }) } -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 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) + }) } -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 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) + }) } -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 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 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 { +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 __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + 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; } - __sysv_signal(arg___sig, arg___handler) + pgstat_get_crashed_backend_activity(arg_pid, arg_buffer, arg_buflen) }) } -pub unsafe fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +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 signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + fn pgstat_get_backend_desc( + arg_backendType: BackendType, + ) -> *const ::std::os::raw::c_char; } - signal(arg___sig, arg___handler) + pgstat_get_backend_desc(arg_backendType) }) } -pub unsafe fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_progress_start_command(arg_cmdtype: ProgressCommandType, arg_relid: Oid) { 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 pgstat_progress_start_command(arg_cmdtype: ProgressCommandType, arg_relid: Oid); } - kill(arg___pid, arg___sig) + pgstat_progress_start_command(arg_cmdtype, arg_relid) }) } -pub unsafe fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +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 killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pgstat_progress_update_param(arg_index: ::std::os::raw::c_int, arg_val: int64); } - killpg(arg___pgrp, arg___sig) + pgstat_progress_update_param(arg_index, arg_val) }) } -pub unsafe fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +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 raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + 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, + ); } - raise(arg___sig) + pgstat_progress_update_multi_param(arg_nparam, arg_index, arg_val) }) } -pub unsafe fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn pgstat_progress_end_command() { 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 pgstat_progress_end_command(); } - ssignal(arg___sig, arg___handler) + pgstat_progress_end_command() }) } -pub unsafe fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn find_tabstat_entry(arg_rel_id: Oid) -> *mut PgStat_TableStatus { 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 find_tabstat_entry(arg_rel_id: Oid) -> *mut PgStat_TableStatus; } - gsignal(arg___sig) + find_tabstat_entry(arg_rel_id) }) } -pub unsafe fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn find_funcstat_entry(arg_func_id: Oid) -> *mut PgStat_BackendFunctionEntry { 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 find_funcstat_entry(arg_func_id: Oid) -> *mut PgStat_BackendFunctionEntry; } - psignal(arg___sig, arg___s) + find_funcstat_entry(arg_func_id) }) } -pub unsafe fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn pgstat_initstats(arg_rel: Relation) { 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 pgstat_initstats(arg_rel: Relation); } - psiginfo(arg___pinfo, arg___s) + pgstat_initstats(arg_rel) }) } -pub unsafe fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +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 sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn pgstat_count_heap_insert(arg_rel: Relation, arg_n: PgStat_Counter); } - sigblock(arg___mask) + pgstat_count_heap_insert(arg_rel, arg_n) }) } -pub unsafe fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_count_heap_update(arg_rel: Relation, arg_hot: 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 pgstat_count_heap_update(arg_rel: Relation, arg_hot: bool); } - sigsetmask(arg___mask) + pgstat_count_heap_update(arg_rel, arg_hot) }) } -pub unsafe fn siggetmask() -> ::std::os::raw::c_int { +pub unsafe fn pgstat_count_heap_delete(arg_rel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn siggetmask() -> ::std::os::raw::c_int; + fn pgstat_count_heap_delete(arg_rel: Relation); } - siggetmask() + pgstat_count_heap_delete(arg_rel) }) } -pub type sig_t = __sighandler_t; -pub unsafe fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_count_truncate(arg_rel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn pgstat_count_truncate(arg_rel: Relation); } - sigemptyset(arg___set) + pgstat_count_truncate(arg_rel) }) } -pub unsafe fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +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 sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn pgstat_update_heap_dead_tuples(arg_rel: Relation, arg_delta: ::std::os::raw::c_int); } - sigfillset(arg___set) + pgstat_update_heap_dead_tuples(arg_rel, arg_delta) }) } -pub unsafe fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +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 sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pgstat_init_function_usage( + arg_fcinfo: *mut FunctionCallInfoData, + arg_fcu: *mut PgStat_FunctionCallUsage, + ); } - sigaddset(arg___set, arg___signo) + pgstat_init_function_usage(arg_fcinfo, arg_fcu) }) } -pub unsafe fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +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 sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pgstat_end_function_usage( + arg_fcu: *mut PgStat_FunctionCallUsage, + arg_finalize: bool, + ); } - sigdelset(arg___set, arg___signo) + pgstat_end_function_usage(arg_fcu, arg_finalize) }) } -pub unsafe fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::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 sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn AtEOXact_PgStat(arg_isCommit: bool, arg_parallel: bool); } - sigismember(arg___set, arg___signo) + AtEOXact_PgStat(arg_isCommit, arg_parallel) }) } -#[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() +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 AtEOSubXact_PgStat(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); } - } + AtEOSubXact_PgStat(arg_isCommit, arg_nestDepth) + }) } -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 AtPrepare_PgStat() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AtPrepare_PgStat(); } - } + AtPrepare_PgStat() + }) } -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 unsafe fn PostPrepare_PgStat() { 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 PostPrepare_PgStat(); } - sigprocmask(arg___how, arg___set, arg___oset) + PostPrepare_PgStat() }) } -pub unsafe fn sigsuspend(arg___set: *const sigset_t) -> ::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 sigsuspend(arg___set: *const sigset_t) -> ::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, + ); } - sigsuspend(arg___set) + pgstat_twophase_postcommit(arg_xid, arg_info, arg_recdata, arg_len) }) } -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_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 sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, - ) -> ::std::os::raw::c_int; + fn pgstat_twophase_postabort( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, + ); } - sigaction(arg___sig, arg___act, arg___oact) + pgstat_twophase_postabort(arg_xid, arg_info, arg_recdata, arg_len) }) } -pub unsafe fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +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 sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn pgstat_send_archiver(arg_xlog: *const ::std::os::raw::c_char, arg_failed: bool); } - sigpending(arg___set) + pgstat_send_archiver(arg_xlog, arg_failed) }) } -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_send_bgwriter() { 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_send_bgwriter(); } - sigwait(arg___set, arg___sig) + pgstat_send_bgwriter() }) } -pub unsafe fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_fetch_stat_dbentry(arg_dbid: Oid) -> *mut PgStat_StatDBEntry { 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 pgstat_fetch_stat_dbentry(arg_dbid: Oid) -> *mut PgStat_StatDBEntry; } - sigwaitinfo(arg___set, arg___info) + pgstat_fetch_stat_dbentry(arg_dbid) }) } -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_fetch_stat_tabentry(arg_relid: Oid) -> *mut PgStat_StatTabEntry { 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_fetch_stat_tabentry(arg_relid: Oid) -> *mut PgStat_StatTabEntry; } - sigtimedwait(arg___set, arg___info, arg___timeout) + pgstat_fetch_stat_tabentry(arg_relid) }) } -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_fetch_stat_beentry(arg_beid: ::std::os::raw::c_int) -> *mut PgBackendStatus { 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_fetch_stat_beentry(arg_beid: ::std::os::raw::c_int) -> *mut PgBackendStatus; } - sigqueue(arg___pid, arg___sig, arg___val) + pgstat_fetch_stat_beentry(arg_beid) }) } -#[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_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) + }) } -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_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; } - } -} -#[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_fetch_stat_funcentry(arg_funcid) + }) } -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_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; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, + pgstat_fetch_stat_numbackends() + }) } -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_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 sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_fetch_global() -> *mut PgStat_GlobalStats { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int; + fn pgstat_fetch_global() -> *mut PgStat_GlobalStats; } - sigreturn(arg___scp) + pgstat_fetch_global() }) } -#[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 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 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], +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 _libc_xmmreg { - pub element: [__uint32_t; 4usize], +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 _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 struct GISTPageOpaqueData { + pub nsn: PageGistNSN, + pub rightlink: BlockNumber, + pub flags: uint16, + pub gist_page_id: uint16, } -pub type fpregset_t = *mut _libc_fpstate; +pub type GISTPageOpaque = *mut GISTPageOpaqueData; #[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], +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 mcontext_t { +impl Default for GIST_SPLITVEC { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -35363,16 +30998,14 @@ impl Default for mcontext_t { } #[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], +pub struct GISTENTRY { + pub key: Datum, + pub rel: Relation, + pub page: Page, + pub offset: OffsetNumber, + pub leafkey: bool, } -impl Default for ucontext_t { +impl Default for GISTENTRY { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -35381,44 +31014,13 @@ impl Default for ucontext_t { } } } -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_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 { - 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, +#[derive(Debug)] +pub struct GistEntryVector { + pub n: int32, + pub vector: __IncompleteArrayField, } -impl Default for sigstack { +impl Default for GistEntryVector { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -35427,1006 +31029,1069 @@ impl Default for sigstack { } } } -pub unsafe fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) -> ::std::os::raw::c_int { +#[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 sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) - -> ::std::os::raw::c_int; + fn TransactionStartedDuringRecovery() -> bool; } - sigstack(arg___ss, arg___oss) + TransactionStartedDuringRecovery() }) } -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 { +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 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 TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool; } - pthread_sigmask(arg___how, arg___newmask, arg___oldmask) + TransactionIdDidCommit(arg_transactionId) }) } -pub unsafe fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool { 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 TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool; } - pthread_kill(arg___threadid, arg___signo) + TransactionIdDidAbort(arg_transactionId) }) } -pub unsafe fn __libc_current_sigrtmin() -> ::std::os::raw::c_int { +pub unsafe fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __libc_current_sigrtmin() -> ::std::os::raw::c_int; + fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool; } - __libc_current_sigrtmin() + TransactionIdIsKnownCompleted(arg_transactionId) }) } -pub unsafe fn __libc_current_sigrtmax() -> ::std::os::raw::c_int { +pub unsafe fn TransactionIdAbort(arg_transactionId: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __libc_current_sigrtmax() -> ::std::os::raw::c_int; + fn TransactionIdAbort(arg_transactionId: TransactionId); } - __libc_current_sigrtmax() + TransactionIdAbort(arg_transactionId) }) } -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 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 pg_localtime(arg_timep: *const pg_time_t, arg_tz: *const pg_tz) -> *mut pg_tm; + fn TransactionIdCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - pg_localtime(arg_timep, arg_tz) + TransactionIdCommitTree(arg_xid, arg_nxids, arg_xids) }) } -pub unsafe fn pg_gmtime(arg_timep: *const pg_time_t) -> *mut pg_tm { +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 pg_gmtime(arg_timep: *const pg_time_t) -> *mut pg_tm; + fn TransactionIdAsyncCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + arg_lsn: XLogRecPtr, + ); } - pg_gmtime(arg_timep) + TransactionIdAsyncCommitTree(arg_xid, arg_nxids, arg_xids, arg_lsn) }) } -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 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_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 TransactionIdAbortTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - pg_next_dst_boundary( - arg_timep, - arg_before_gmtoff, - arg_before_isdst, - arg_boundary, - arg_after_gmtoff, - arg_after_isdst, - arg_tz, - ) + TransactionIdAbortTree(arg_xid, arg_nxids, arg_xids) }) } -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 TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { 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 TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; } - pg_interpret_timezone_abbrev(arg_abbrev, arg_timep, arg_gmtoff, arg_isdst, arg_tz) + TransactionIdPrecedes(arg_id1, arg_id2) }) } -pub unsafe fn pg_get_timezone_offset( - arg_tz: *const pg_tz, - arg_gmtoff: *mut ::std::os::raw::c_long, +pub unsafe fn TransactionIdPrecedesOrEquals( + arg_id1: TransactionId, + arg_id2: TransactionId, ) -> bool { 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, + fn TransactionIdPrecedesOrEquals( + arg_id1: TransactionId, + arg_id2: TransactionId, ) -> bool; } - pg_get_timezone_offset(arg_tz, arg_gmtoff) + TransactionIdPrecedesOrEquals(arg_id1, arg_id2) }) } -pub unsafe fn pg_get_timezone_name(arg_tz: *mut pg_tz) -> *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_get_timezone_name(arg_tz: *mut pg_tz) -> *const ::std::os::raw::c_char; + fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; } - pg_get_timezone_name(arg_tz) + TransactionIdFollows(arg_id1, arg_id2) }) } -pub unsafe fn pg_tz_acceptable(arg_tz: *mut pg_tz) -> bool { +pub unsafe fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tz_acceptable(arg_tz: *mut pg_tz) -> bool; + fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) + -> bool; } - pg_tz_acceptable(arg_tz) + TransactionIdFollowsOrEquals(arg_id1, arg_id2) }) } -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 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 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 TransactionIdLatest( + arg_mainxid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *const TransactionId, + ) -> TransactionId; } - pg_strftime(arg_s, arg_max, arg_format, arg_tm) + TransactionIdLatest(arg_mainxid, arg_nxids, arg_xids) }) } -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 TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_timezone_initialize(); + fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr; } - pg_timezone_initialize() + TransactionIdGetCommitLSN(arg_xid) }) } -pub unsafe fn pg_tzset(arg_tzname: *const ::std::os::raw::c_char) -> *mut pg_tz { +pub unsafe fn GetNewTransactionId(arg_isSubXact: bool) -> TransactionId { 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 GetNewTransactionId(arg_isSubXact: bool) -> TransactionId; } - pg_tzset(arg_tzname) + GetNewTransactionId(arg_isSubXact) }) } -pub unsafe fn pg_tzset_offset(arg_gmtoffset: ::std::os::raw::c_long) -> *mut pg_tz { +pub unsafe fn ReadNewTransactionId() -> TransactionId { 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 ReadNewTransactionId() -> TransactionId; } - pg_tzset_offset(arg_gmtoffset) + ReadNewTransactionId() }) } -pub unsafe fn pg_tzenumerate_start() -> *mut pg_tzenum { +pub unsafe fn SetTransactionIdLimit( + arg_oldest_datfrozenxid: TransactionId, + arg_oldest_datoid: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tzenumerate_start() -> *mut pg_tzenum; + fn SetTransactionIdLimit( + arg_oldest_datfrozenxid: TransactionId, + arg_oldest_datoid: Oid, + ); } - pg_tzenumerate_start() + SetTransactionIdLimit(arg_oldest_datfrozenxid, arg_oldest_datoid) }) } -pub unsafe fn pg_tzenumerate_next(arg_dir: *mut pg_tzenum) -> *mut pg_tz { +pub unsafe fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tzenumerate_next(arg_dir: *mut pg_tzenum) -> *mut pg_tz; + fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId); } - pg_tzenumerate_next(arg_dir) + AdvanceOldestClogXid(arg_oldest_datfrozenxid) }) } -pub unsafe fn pg_tzenumerate_end(arg_dir: *mut pg_tzenum) { +pub unsafe fn ForceTransactionIdLimitUpdate() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tzenumerate_end(arg_dir: *mut pg_tzenum); + fn ForceTransactionIdLimitUpdate() -> bool; } - pg_tzenumerate_end(arg_dir) + ForceTransactionIdLimitUpdate() }) } -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 GetNewObjectId() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcessInterrupts(); + fn GetNewObjectId() -> Oid; } - ProcessInterrupts() + GetNewObjectId() }) } -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; +#[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 VacuumCostDelay: ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union HeapTupleFields__bindgen_ty_1 { + pub t_cid: CommandId, + pub t_xvac: TransactionId, } -extern "C" { - pub static mut VacuumPageHit: ::std::os::raw::c_int; +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() + } + } } -extern "C" { - pub static mut VacuumPageMiss: ::std::os::raw::c_int; +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() + } + } } -extern "C" { - pub static mut VacuumPageDirty: ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct DatumTupleFields { + pub datum_len_: int32, + pub datum_typmod: int32, + pub datum_typeid: Oid, } -extern "C" { - pub static mut VacuumCostBalance: ::std::os::raw::c_int; +#[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, } -extern "C" { - pub static mut VacuumCostActive: bool; +#[repr(C)] +#[derive(Copy, Clone)] +pub union HeapTupleHeaderData__bindgen_ty_1 { + pub t_heap: HeapTupleFields, + pub t_datum: DatumTupleFields, } -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 set_stack_base() -> pg_stack_base_t; +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() } - set_stack_base() - }) + } } -pub unsafe fn restore_stack_base(arg_base: pg_stack_base_t) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn restore_stack_base(arg_base: pg_stack_base_t); +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() } - restore_stack_base(arg_base) - }) + } } -pub unsafe fn check_stack_depth() { +#[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 check_stack_depth(); + fn heap_compute_data_size( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> Size; } - check_stack_depth() + heap_compute_data_size(arg_tupleDesc, arg_values, arg_isnull) }) } -pub unsafe fn stack_is_too_deep() -> bool { +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 stack_is_too_deep() -> bool; + 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, + ); } - stack_is_too_deep() + heap_fill_tuple( + arg_tupleDesc, + arg_values, + arg_isnull, + arg_data, + arg_data_size, + arg_infomask, + arg_bit, + ) }) } -pub unsafe fn PostgresSigHupHandler(arg_postgres_signal_arg: ::std::os::raw::c_int) { +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 PostgresSigHupHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); + fn heap_attisnull(arg_tup: HeapTuple, arg_attnum: ::std::os::raw::c_int) -> bool; } - PostgresSigHupHandler(arg_postgres_signal_arg) + heap_attisnull(arg_tup, arg_attnum) }) } -pub unsafe fn PreventCommandIfReadOnly(arg_cmdname: *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 PreventCommandIfReadOnly(arg_cmdname: *const ::std::os::raw::c_char); + fn nocachegetattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_att: TupleDesc, + ) -> Datum; } - PreventCommandIfReadOnly(arg_cmdname) + nocachegetattr(arg_tup, arg_attnum, arg_att) }) } -pub unsafe fn PreventCommandIfParallelMode(arg_cmdname: *const ::std::os::raw::c_char) { +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 PreventCommandIfParallelMode(arg_cmdname: *const ::std::os::raw::c_char); + fn heap_getsysattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + arg_isnull: *mut bool, + ) -> Datum; } - PreventCommandIfParallelMode(arg_cmdname) + heap_getsysattr(arg_tup, arg_attnum, arg_tupleDesc, arg_isnull) }) } -pub unsafe fn PreventCommandDuringRecovery(arg_cmdname: *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 PreventCommandDuringRecovery(arg_cmdname: *const ::std::os::raw::c_char); + fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple; } - PreventCommandDuringRecovery(arg_cmdname) + heap_copytuple(arg_tuple) }) } -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 heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple) { 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 heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple); } - trace_recovery(arg_trace_level) + heap_copytuple_with_tuple(arg_src, arg_dest) }) } -extern "C" { - pub static mut DatabasePath: *mut ::std::os::raw::c_char; -} -pub unsafe fn InitPostmasterChild() { +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 InitPostmasterChild(); + fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum; } - InitPostmasterChild() + heap_copy_tuple_as_datum(arg_tuple, arg_tupleDesc) }) } -pub unsafe fn InitStandaloneProcess(arg_argv0: *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 InitStandaloneProcess(arg_argv0: *const ::std::os::raw::c_char); + fn heap_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> HeapTuple; } - InitStandaloneProcess(arg_argv0) + heap_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn SetDatabasePath(arg_path: *const ::std::os::raw::c_char) { +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 SetDatabasePath(arg_path: *const ::std::os::raw::c_char); + fn heap_modify_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, + arg_doReplace: *mut bool, + ) -> HeapTuple; } - SetDatabasePath(arg_path) + heap_modify_tuple(arg_tuple, arg_tupleDesc, arg_replValues, arg_replIsnull, arg_doReplace) }) } -pub unsafe fn GetUserNameFromId(arg_roleid: Oid, arg_noerr: bool) -> *mut ::std::os::raw::c_char { +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 GetUserNameFromId(arg_roleid: Oid, arg_noerr: bool) -> *mut ::std::os::raw::c_char; + 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; } - GetUserNameFromId(arg_roleid, arg_noerr) + heap_modify_tuple_by_cols( + arg_tuple, + arg_tupleDesc, + arg_nCols, + arg_replCols, + arg_replValues, + arg_replIsnull, + ) }) } -pub unsafe fn GetUserId() -> Oid { +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 GetUserId() -> Oid; + fn heap_deform_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - GetUserId() + heap_deform_tuple(arg_tuple, arg_tupleDesc, arg_values, arg_isnull) }) } -pub unsafe fn GetOuterUserId() -> Oid { +pub unsafe fn heap_freetuple(arg_htup: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetOuterUserId() -> Oid; + fn heap_freetuple(arg_htup: HeapTuple); } - GetOuterUserId() + heap_freetuple(arg_htup) }) } -pub unsafe fn GetSessionUserId() -> Oid { +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 GetSessionUserId() -> Oid; + fn heap_form_minimal_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> MinimalTuple; } - GetSessionUserId() + heap_form_minimal_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn GetAuthenticatedUserId() -> Oid { +pub unsafe fn heap_free_minimal_tuple(arg_mtup: MinimalTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAuthenticatedUserId() -> Oid; + fn heap_free_minimal_tuple(arg_mtup: MinimalTuple); } - GetAuthenticatedUserId() + heap_free_minimal_tuple(arg_mtup) }) } -pub unsafe fn GetUserIdAndSecContext( - arg_userid: *mut Oid, - arg_sec_context: *mut ::std::os::raw::c_int, -) { +pub unsafe fn heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple { 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 heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple; } - GetUserIdAndSecContext(arg_userid, arg_sec_context) + heap_copy_minimal_tuple(arg_mtup) }) } -pub unsafe fn SetUserIdAndSecContext(arg_userid: Oid, arg_sec_context: ::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 SetUserIdAndSecContext(arg_userid: Oid, arg_sec_context: ::std::os::raw::c_int); + fn heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple; } - SetUserIdAndSecContext(arg_userid, arg_sec_context) + heap_tuple_from_minimal_tuple(arg_mtup) }) } -pub unsafe fn InLocalUserIdChange() -> bool { +pub unsafe fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InLocalUserIdChange() -> bool; + fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple; } - InLocalUserIdChange() + minimal_tuple_from_heap_tuple(arg_htup) }) } -pub unsafe fn InSecurityRestrictedOperation() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InSecurityRestrictedOperation() -> bool; +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() } - InSecurityRestrictedOperation() - }) + } } -pub unsafe fn InNoForceRLSOperation() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InNoForceRLSOperation() -> bool; +#[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() } - InNoForceRLSOperation() - }) + } } -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 GetUserIdAndContext(arg_userid: *mut Oid, arg_sec_def_context: *mut bool); +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() } - GetUserIdAndContext(arg_userid, arg_sec_def_context) - }) + } } -pub unsafe fn SetUserIdAndContext(arg_userid: Oid, arg_sec_def_context: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetUserIdAndContext(arg_userid: Oid, arg_sec_def_context: bool); +#[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() } - SetUserIdAndContext(arg_userid, arg_sec_def_context) - }) + } } -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 InitializeSessionUserId( - arg_rolename: *const ::std::os::raw::c_char, - arg_useroid: Oid, - ); +#[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() } - InitializeSessionUserId(arg_rolename, arg_useroid) - }) + } } -pub unsafe fn InitializeSessionUserIdStandalone() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitializeSessionUserIdStandalone(); +#[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() } - InitializeSessionUserIdStandalone() - }) + } } -pub unsafe fn SetSessionAuthorization(arg_userid: Oid, arg_is_superuser: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetSessionAuthorization(arg_userid: Oid, arg_is_superuser: bool); +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() } - SetSessionAuthorization(arg_userid, arg_is_superuser) - }) + } } -pub unsafe fn GetCurrentRoleId() -> Oid { +#[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 GetCurrentRoleId() -> Oid; + fn add_reloption_kind() -> relopt_kind; } - GetCurrentRoleId() + add_reloption_kind() }) } -pub unsafe fn SetCurrentRoleId(arg_roleid: Oid, arg_is_superuser: bool) { +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 SetCurrentRoleId(arg_roleid: Oid, arg_is_superuser: bool); + 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, + ); } - SetCurrentRoleId(arg_roleid, arg_is_superuser) + add_bool_reloption(arg_kinds, arg_name, arg_desc, arg_default_val) }) } -pub unsafe fn SetDataDir(arg_dir: *const ::std::os::raw::c_char) { +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 SetDataDir(arg_dir: *const ::std::os::raw::c_char); + 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, + ); } - SetDataDir(arg_dir) + add_int_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_min_val, arg_max_val) }) } -pub unsafe fn ChangeToDataDir() { +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 ChangeToDataDir(); + 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, + ); } - ChangeToDataDir() + add_real_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_min_val, arg_max_val) }) } -pub unsafe fn SwitchToSharedLatch() { +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 SwitchToSharedLatch(); + 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, + ); } - SwitchToSharedLatch() + add_string_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_validator) }) } -pub unsafe fn SwitchBackToLocalLatch() { +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 SwitchBackToLocalLatch(); + 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; } - SwitchBackToLocalLatch() + transformRelOptions( + arg_oldOptions, + arg_defList, + arg_namspace, + arg_validnsps, + arg_ignoreOids, + arg_isReset, + ) }) } -pub unsafe fn superuser() -> bool { +pub unsafe fn untransformRelOptions(arg_options: Datum) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn superuser() -> bool; + fn untransformRelOptions(arg_options: Datum) -> *mut List; } - superuser() + untransformRelOptions(arg_options) }) } -pub unsafe fn superuser_arg(arg_roleid: Oid) -> bool { +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 superuser_arg(arg_roleid: Oid) -> bool; + fn extractRelOptions( + arg_tuple: HeapTuple, + arg_tupdesc: TupleDesc, + arg_amoptions: amoptions_function, + ) -> *mut bytea; } - superuser_arg(arg_roleid) + extractRelOptions(arg_tuple, arg_tupdesc, arg_amoptions) }) } -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 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 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 parseRelOptions( + arg_options: Datum, + arg_validate: bool, + arg_kind: relopt_kind, + arg_numrelopts: *mut ::std::os::raw::c_int, + ) -> *mut relopt_value; } - pg_split_opts(arg_argv, arg_argcp, arg_optstr) + parseRelOptions(arg_options, arg_validate, arg_kind, arg_numrelopts) }) } -pub unsafe fn InitializeMaxBackends() { +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 InitializeMaxBackends(); + fn allocateReloptStruct( + arg_base: Size, + arg_options: *mut relopt_value, + arg_numoptions: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - InitializeMaxBackends() + allocateReloptStruct(arg_base, arg_options, arg_numoptions) }) } -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 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 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 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, ); } - InitPostgres( - arg_in_dbname, - arg_dboid, - arg_username, - arg_useroid, - arg_out_dbname, + fillRelOptions( + arg_rdopts, + arg_basesize, + arg_options, + arg_numoptions, + arg_validate, + arg_elems, + arg_nelems, ) }) } -pub unsafe fn BaseInit() { +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 BaseInit(); + fn default_reloptions( + arg_reloptions: Datum, + arg_validate: bool, + arg_kind: relopt_kind, + ) -> *mut bytea; } - BaseInit() + default_reloptions(arg_reloptions, arg_validate, arg_kind) }) } -extern "C" { - pub static mut IgnoreSystemIndexes: bool; -} -extern "C" { - pub static mut process_shared_preload_libraries_in_progress: bool; -} -extern "C" { - pub static mut session_preload_libraries_string: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut shared_preload_libraries_string: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut local_preload_libraries_string: *mut ::std::os::raw::c_char; -} -pub unsafe fn CreateDataDirLockFile(arg_amPostmaster: bool) { +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 CreateDataDirLockFile(arg_amPostmaster: bool); + fn heap_reloptions( + arg_relkind: ::std::os::raw::c_char, + arg_reloptions: Datum, + arg_validate: bool, + ) -> *mut bytea; } - CreateDataDirLockFile(arg_amPostmaster) + heap_reloptions(arg_relkind, arg_reloptions, arg_validate) }) } -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 view_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { 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 view_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; } - CreateSocketLockFile(arg_socketfile, arg_amPostmaster, arg_socketDir) + view_reloptions(arg_reloptions, arg_validate) }) } -pub unsafe fn TouchSocketLockFiles() { +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 TouchSocketLockFiles(); + fn index_reloptions( + arg_amoptions: amoptions_function, + arg_reloptions: Datum, + arg_validate: bool, + ) -> *mut bytea; } - TouchSocketLockFiles() + index_reloptions(arg_amoptions, arg_reloptions, arg_validate) }) } -pub unsafe fn AddToDataDirLockFile( - arg_target_line: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, -) { +pub unsafe fn attribute_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { 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 attribute_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; } - AddToDataDirLockFile(arg_target_line, arg_str_) + attribute_reloptions(arg_reloptions, arg_validate) }) } -pub unsafe fn RecheckDataDirLockFile() -> bool { +pub unsafe fn tablespace_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RecheckDataDirLockFile() -> bool; + fn tablespace_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; } - RecheckDataDirLockFile() + tablespace_reloptions(arg_reloptions, arg_validate) }) } -pub unsafe fn ValidatePgVersion(arg_path: *const ::std::os::raw::c_char) { +pub unsafe fn AlterTableGetRelOptionsLockLevel(arg_defList: *mut List) -> LOCKMODE { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ValidatePgVersion(arg_path: *const ::std::os::raw::c_char); + fn AlterTableGetRelOptionsLockLevel(arg_defList: *mut List) -> LOCKMODE; } - ValidatePgVersion(arg_path) + AlterTableGetRelOptionsLockLevel(arg_defList) }) } -pub unsafe fn process_shared_preload_libraries() { +pub unsafe fn SpinlockSemas() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn process_shared_preload_libraries(); + fn SpinlockSemas() -> ::std::os::raw::c_int; } - process_shared_preload_libraries() + SpinlockSemas() }) } -pub unsafe fn process_session_preload_libraries() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn process_session_preload_libraries(); - } - process_session_preload_libraries() - }) -} -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_bindtextdomain(arg_domain: *const ::std::os::raw::c_char); - } - pg_bindtextdomain(arg_domain) - }) -} -pub unsafe fn has_rolreplication(arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn has_rolreplication(arg_roleid: Oid) -> bool; - } - has_rolreplication(arg_roleid) - }) -} -pub unsafe fn BackupInProgress() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BackupInProgress() -> bool; - } - BackupInProgress() - }) -} -pub unsafe fn CancelBackup() { +pub unsafe fn SpinlockSemaSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CancelBackup(); + fn SpinlockSemaSize() -> Size; } - CancelBackup() + SpinlockSemaSize() }) } #[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() - } - } +#[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 SockAddr { - pub addr: sockaddr_storage, - pub salen: socklen_t, +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 SockAddr { +impl Default for HeapScanDescData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36435,20 +32100,36 @@ 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], +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 StartupPacket { +impl Default for IndexScanDescData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36457,32 +32138,24 @@ 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() - }) +#[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 dlist_node { - pub prev: *mut dlist_node, - pub next: *mut dlist_node, +pub struct SysScanDescData { + pub heap_rel: Relation, + pub irel: Relation, + pub scan: HeapScanDesc, + pub iscan: IndexScanDesc, + pub snapshot: Snapshot, } -impl Default for dlist_node { +impl Default for SysScanDescData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36492,84 +32165,59 @@ impl Default for dlist_node { } } #[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() - } - } +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalCatcacheMsg { + pub id: int8, + pub dbId: Oid, + pub hashValue: uint32, } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct dlist_iter { - pub cur: *mut dlist_node, - pub end: *mut dlist_node, -} -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() - } - } +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalCatalogMsg { + pub id: int8, + pub dbId: Oid, + pub catId: Oid, } #[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() - } - } +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalRelcacheMsg { + pub id: int8, + pub dbId: Oid, + pub relId: Oid, } #[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() - } - } +#[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, Copy, Clone)] -pub struct slist_head { - pub head: slist_node, +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalRelmapMsg { + pub id: int8, + pub dbId: Oid, } -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() - } - } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalSnapshotMsg { + pub id: int8, + pub dbId: Oid, + pub relId: Oid, } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct slist_iter { - pub cur: *mut slist_node, +#[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 slist_iter { +impl Default for SharedInvalidationMessage { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36578,541 +32226,466 @@ impl Default for slist_iter { } } } -#[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, +extern "C" { + pub static mut SharedInvalidMessageCounter: uint64; } -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() - } - } +extern "C" { + pub static mut catchupInterruptPending: sig_atomic_t; } -pub unsafe fn slist_delete(arg_head: *mut slist_head, arg_node: *mut slist_node) { +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 slist_delete(arg_head: *mut slist_head, arg_node: *mut slist_node); + fn SendSharedInvalidMessages( + arg_msgs: *const SharedInvalidationMessage, + arg_n: ::std::os::raw::c_int, + ); } - slist_delete(arg_head, arg_node) + SendSharedInvalidMessages(arg_msgs, arg_n) }) } -#[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() { +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 InitializeLatchSupport(); + fn ReceiveSharedInvalidMessages( + arg_invalFunction: ::std::option::Option< + unsafe extern "C" fn(msg: *mut SharedInvalidationMessage), + >, + arg_resetFunction: ::std::option::Option, + ); } - InitializeLatchSupport() + ReceiveSharedInvalidMessages(arg_invalFunction, arg_resetFunction) }) } -pub unsafe fn InitLatch(arg_latch: *mut Latch) { +pub unsafe fn HandleCatchupInterrupt() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitLatch(arg_latch: *mut Latch); + fn HandleCatchupInterrupt(); } - InitLatch(arg_latch) + HandleCatchupInterrupt() }) } -pub unsafe fn InitSharedLatch(arg_latch: *mut Latch) { +pub unsafe fn ProcessCatchupInterrupt() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitSharedLatch(arg_latch: *mut Latch); + fn ProcessCatchupInterrupt(); } - InitSharedLatch(arg_latch) + ProcessCatchupInterrupt() }) } -pub unsafe fn OwnLatch(arg_latch: *mut Latch) { +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 OwnLatch(arg_latch: *mut Latch); + fn xactGetCommittedInvalidationMessages( + arg_msgs: *mut *mut SharedInvalidationMessage, + arg_RelcacheInitFileInval: *mut bool, + ) -> ::std::os::raw::c_int; } - OwnLatch(arg_latch) + xactGetCommittedInvalidationMessages(arg_msgs, arg_RelcacheInitFileInval) }) } -pub unsafe fn DisownLatch(arg_latch: *mut Latch) { +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 DisownLatch(arg_latch: *mut Latch); + fn ProcessCommittedInvalidationMessages( + arg_msgs: *mut SharedInvalidationMessage, + arg_nmsgs: ::std::os::raw::c_int, + arg_RelcacheInitFileInval: bool, + arg_dbid: Oid, + arg_tsid: Oid, + ); } - DisownLatch(arg_latch) + ProcessCommittedInvalidationMessages( + arg_msgs, + arg_nmsgs, + arg_RelcacheInitFileInval, + arg_dbid, + arg_tsid, + ) }) } -pub unsafe fn SetLatch(arg_latch: *mut Latch) { +pub unsafe fn LocalExecuteInvalidationMessage(arg_msg: *mut SharedInvalidationMessage) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetLatch(arg_latch: *mut Latch); + fn LocalExecuteInvalidationMessage(arg_msg: *mut SharedInvalidationMessage); } - SetLatch(arg_latch) + LocalExecuteInvalidationMessage(arg_msg) }) } -pub unsafe fn ResetLatch(arg_latch: *mut Latch) { +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 ResetLatch(arg_latch: *mut Latch); + fn anytimestamp_typmod_check(arg_istz: bool, arg_typmod: int32) -> int32; } - ResetLatch(arg_latch) + anytimestamp_typmod_check(arg_istz, arg_typmod) }) } -pub unsafe fn CreateWaitEventSet( - arg_context: MemoryContext, - arg_nevents: ::std::os::raw::c_int, -) -> *mut WaitEventSet { +pub unsafe fn GetCurrentTimestamp() -> TimestampTz { 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 GetCurrentTimestamp() -> TimestampTz; } - CreateWaitEventSet(arg_context, arg_nevents) + GetCurrentTimestamp() }) } -pub unsafe fn FreeWaitEventSet(arg_set: *mut WaitEventSet) { +pub unsafe fn GetSQLCurrentTimestamp(arg_typmod: int32) -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeWaitEventSet(arg_set: *mut WaitEventSet); + fn GetSQLCurrentTimestamp(arg_typmod: int32) -> TimestampTz; } - FreeWaitEventSet(arg_set) + GetSQLCurrentTimestamp(arg_typmod) }) } -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 GetSQLLocalTimestamp(arg_typmod: int32) -> Timestamp { 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 GetSQLLocalTimestamp(arg_typmod: int32) -> Timestamp; } - AddWaitEventToSet(arg_set, arg_events, arg_fd, arg_latch, arg_user_data) + GetSQLLocalTimestamp(arg_typmod) }) } -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 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 ModifyWaitEvent( - arg_set: *mut WaitEventSet, - arg_pos: ::std::os::raw::c_int, - arg_events: uint32, - arg_latch: *mut Latch, + 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, ); } - ModifyWaitEvent(arg_set, arg_pos, arg_events, arg_latch) + TimestampDifference(arg_start_time, arg_stop_time, arg_secs, arg_microsecs) }) } -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 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 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 TimestampDifferenceMilliseconds( + arg_start_time: TimestampTz, + arg_stop_time: TimestampTz, + ) -> ::std::os::raw::c_long; } - WaitEventSetWait( - arg_set, - arg_timeout, - arg_occurred_events, - arg_nevents, - arg_wait_event_info, - ) + TimestampDifferenceMilliseconds(arg_start_time, arg_stop_time) }) } -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 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 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; - } - WaitLatch(arg_latch, arg_wakeEvents, arg_timeout, arg_wait_event_info) - }) -} -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 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 TimestampDifferenceExceeds( + arg_start_time: TimestampTz, + arg_stop_time: TimestampTz, + arg_msec: ::std::os::raw::c_int, + ) -> bool; } - WaitLatchOrSocket( - arg_latch, - arg_wakeEvents, - arg_sock, - arg_timeout, - arg_wait_event_info, - ) + TimestampDifferenceExceeds(arg_start_time, arg_stop_time, arg_msec) }) } -pub unsafe fn latch_sigusr1_handler() { +pub unsafe fn time_t_to_timestamptz(arg_tm: pg_time_t) -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn latch_sigusr1_handler(); + fn time_t_to_timestamptz(arg_tm: pg_time_t) -> TimestampTz; } - latch_sigusr1_handler() + time_t_to_timestamptz(arg_tm) }) } -#[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(Copy, Clone)] -pub union LWLockPadded { - pub lock: LWLock, - pub pad: [::std::os::raw::c_char; 128usize], -} -impl Default for LWLockPadded { - fn default() -> Self { - 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 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 NamedLWLockTranche { - pub trancheId: ::std::os::raw::c_int, - pub trancheName: *mut ::std::os::raw::c_char, -} -impl Default for NamedLWLockTranche { - 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 NamedLWLockTrancheArray: *mut NamedLWLockTranche; -} -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 { +pub unsafe fn timestamptz_to_time_t(arg_t: TimestampTz) -> pg_time_t { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; + fn timestamptz_to_time_t(arg_t: TimestampTz) -> pg_time_t; } - LWLockAcquire(arg_lock, arg_mode) + timestamptz_to_time_t(arg_t) }) } -pub unsafe fn LWLockConditionalAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { +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 LWLockConditionalAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; + fn timestamptz_to_str(arg_t: TimestampTz) -> *const ::std::os::raw::c_char; } - LWLockConditionalAcquire(arg_lock, arg_mode) + timestamptz_to_str(arg_t) }) } -pub unsafe fn LWLockAcquireOrWait(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { +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 LWLockAcquireOrWait(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; + 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; } - LWLockAcquireOrWait(arg_lock, arg_mode) + tm2timestamp(arg_tm, arg_fsec, arg_tzp, arg_dt) }) } -pub unsafe fn LWLockRelease(arg_lock: *mut LWLock) { +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 LWLockRelease(arg_lock: *mut LWLock); + 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; } - LWLockRelease(arg_lock) + timestamp2tm(arg_dt, arg_tzp, arg_tm, arg_fsec, arg_tzn, arg_attimezone) }) } -pub unsafe fn LWLockReleaseClearVar( - arg_lock: *mut LWLock, - arg_valptr: *mut uint64, - arg_val: uint64, +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 LWLockReleaseClearVar( - arg_lock: *mut LWLock, - arg_valptr: *mut uint64, - arg_val: uint64, + 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, ); } - LWLockReleaseClearVar(arg_lock, arg_valptr, arg_val) - }) -} -pub unsafe fn LWLockReleaseAll() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LWLockReleaseAll(); - } - LWLockReleaseAll() - }) -} -pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool; - } - LWLockHeldByMe(arg_lock) - }) -} -pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; - } - LWLockHeldByMeInMode(arg_lock, arg_mode) + dt2time(arg_dt, arg_hour, arg_min, arg_sec, arg_fsec) }) } -pub unsafe fn LWLockWaitForVar( - arg_lock: *mut LWLock, - arg_valptr: *mut uint64, - arg_oldval: uint64, - arg_newval: *mut uint64, -) -> bool { +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 LWLockWaitForVar( - arg_lock: *mut LWLock, - arg_valptr: *mut uint64, - arg_oldval: uint64, - arg_newval: *mut uint64, - ) -> bool; + fn interval2tm( + arg_span: Interval, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + ) -> ::std::os::raw::c_int; } - LWLockWaitForVar(arg_lock, arg_valptr, arg_oldval, arg_newval) + interval2tm(arg_span, arg_tm, arg_fsec) }) } -pub unsafe fn LWLockUpdateVar(arg_lock: *mut LWLock, arg_valptr: *mut uint64, arg_value: uint64) { +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 LWLockUpdateVar(arg_lock: *mut LWLock, arg_valptr: *mut uint64, arg_value: uint64); + fn tm2interval( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_span: *mut Interval, + ) -> ::std::os::raw::c_int; } - LWLockUpdateVar(arg_lock, arg_valptr, arg_value) + tm2interval(arg_tm, arg_fsec, arg_span) }) } -pub unsafe fn LWLockShmemSize() -> Size { +pub unsafe fn SetEpochTimestamp() -> Timestamp { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockShmemSize() -> Size; + fn SetEpochTimestamp() -> Timestamp; } - LWLockShmemSize() + SetEpochTimestamp() }) } -pub unsafe fn CreateLWLocks() { +pub unsafe fn GetEpochTime(arg_tm: *mut pg_tm) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateLWLocks(); + fn GetEpochTime(arg_tm: *mut pg_tm); } - CreateLWLocks() + GetEpochTime(arg_tm) }) } -pub unsafe fn InitLWLockAccess() { +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 InitLWLockAccess(); + fn timestamp_cmp_internal( + arg_dt1: Timestamp, + arg_dt2: Timestamp, + ) -> ::std::os::raw::c_int; } - InitLWLockAccess() + timestamp_cmp_internal(arg_dt1, arg_dt2) }) } -pub unsafe fn GetLWLockIdentifier( - arg_classId: uint32, - arg_eventId: uint16, -) -> *const ::std::os::raw::c_char { +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 GetLWLockIdentifier( - arg_classId: uint32, - arg_eventId: uint16, - ) -> *const ::std::os::raw::c_char; + fn isoweek2j( + arg_year: ::std::os::raw::c_int, + arg_week: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - GetLWLockIdentifier(arg_classId, arg_eventId) + isoweek2j(arg_year, arg_week) }) } -pub unsafe fn RequestNamedLWLockTranche( - arg_tranche_name: *const ::std::os::raw::c_char, - arg_num_lwlocks: ::std::os::raw::c_int, +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 RequestNamedLWLockTranche( - arg_tranche_name: *const ::std::os::raw::c_char, - arg_num_lwlocks: ::std::os::raw::c_int, + 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, ); } - RequestNamedLWLockTranche(arg_tranche_name, arg_num_lwlocks) + isoweek2date(arg_woy, arg_year, arg_mon, arg_mday) }) } -pub unsafe fn GetNamedLWLockTranche( - arg_tranche_name: *const ::std::os::raw::c_char, -) -> *mut LWLockPadded { +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 GetNamedLWLockTranche( - arg_tranche_name: *const ::std::os::raw::c_char, - ) -> *mut LWLockPadded; + 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, + ); } - GetNamedLWLockTranche(arg_tranche_name) + isoweekdate2date(arg_isoweek, arg_wday, arg_year, arg_mon, arg_mday) }) } -pub unsafe fn LWLockNewTrancheId() -> ::std::os::raw::c_int { +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 LWLockNewTrancheId() -> ::std::os::raw::c_int; + 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; } - LWLockNewTrancheId() + date2isoweek(arg_year, arg_mon, arg_mday) }) } -pub unsafe fn LWLockRegisterTranche( - arg_tranche_id: ::std::os::raw::c_int, - arg_tranche_name: *mut ::std::os::raw::c_char, -) { +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 LWLockRegisterTranche( - arg_tranche_id: ::std::os::raw::c_int, - arg_tranche_name: *mut ::std::os::raw::c_char, - ); + 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; } - LWLockRegisterTranche(arg_tranche_id, arg_tranche_name) + date2isoyear(arg_year, arg_mon, arg_mday) }) } -pub unsafe fn LWLockInitialize(arg_lock: *mut LWLock, arg_tranche_id: ::std::os::raw::c_int) { +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 LWLockInitialize(arg_lock: *mut LWLock, arg_tranche_id: ::std::os::raw::c_int); + 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; } - LWLockInitialize(arg_lock, arg_tranche_id) + date2isoyearday(arg_year, arg_mon, arg_mday) }) } -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, +pub struct tzEntry { + _unused: [u8; 0], } -impl Default for SHM_QUEUE { +#[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 { @@ -37121,265 +32694,567 @@ impl Default for SHM_QUEUE { } } } -pub unsafe fn InitShmemAccess(arg_seghdr: *mut ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitShmemAccess(arg_seghdr: *mut ::std::os::raw::c_void); - } - InitShmemAccess(arg_seghdr) - }) +extern "C" { + pub static mut months: [*const ::std::os::raw::c_char; 0usize]; } -pub unsafe fn InitShmemAllocation() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitShmemAllocation(); - } - InitShmemAllocation() - }) +extern "C" { + pub static mut days: [*const ::std::os::raw::c_char; 0usize]; } -pub unsafe fn ShmemAlloc(arg_size: Size) -> *mut ::std::os::raw::c_void { +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 ShmemAlloc(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn GetCurrentDateTime(arg_tm: *mut pg_tm); } - ShmemAlloc(arg_size) + GetCurrentDateTime(arg_tm) }) } -pub unsafe fn ShmemAllocNoError(arg_size: Size) -> *mut ::std::os::raw::c_void { +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 ShmemAllocNoError(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn GetCurrentTimeUsec( + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + arg_tzp: *mut ::std::os::raw::c_int, + ); } - ShmemAllocNoError(arg_size) + GetCurrentTimeUsec(arg_tm, arg_fsec, arg_tzp) }) } -pub unsafe fn ShmemAllocUnlocked(arg_size: Size) -> *mut ::std::os::raw::c_void { +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 ShmemAllocUnlocked(arg_size: Size) -> *mut ::std::os::raw::c_void; + 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, + ); } - ShmemAllocUnlocked(arg_size) + j2date(arg_jd, arg_year, arg_month, arg_day) }) } -pub unsafe fn ShmemAddrIsValid(arg_addr: *const ::std::os::raw::c_void) -> 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 ShmemAddrIsValid(arg_addr: *const ::std::os::raw::c_void) -> 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; } - ShmemAddrIsValid(arg_addr) + date2j(arg_year, arg_month, arg_day) }) } -pub unsafe fn InitShmemIndex() { +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 InitShmemIndex(); + 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; } - InitShmemIndex() + ParseDateTime( + arg_timestr, + arg_workbuf, + arg_buflen, + arg_field, + arg_ftype, + arg_maxfields, + arg_numfields, + ) }) } -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 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 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 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; } - ShmemInitHash( - arg_name, - arg_init_size, - arg_max_size, - arg_infoP, - arg_hash_flags, - ) + DecodeDateTime(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } -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 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 ShmemInitStruct( - arg_name: *const ::std::os::raw::c_char, - arg_size: Size, - arg_foundPtr: *mut bool, - ) -> *mut ::std::os::raw::c_void; + fn DecodeTimezone( + arg_str_: *mut ::std::os::raw::c_char, + arg_tzp: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - ShmemInitStruct(arg_name, arg_size, arg_foundPtr) + DecodeTimezone(arg_str_, arg_tzp) }) } -pub unsafe fn add_size(arg_s1: Size, arg_s2: Size) -> Size { +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 add_size(arg_s1: Size, arg_s2: Size) -> Size; + 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; } - add_size(arg_s1, arg_s2) + DecodeTimeOnly(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } -pub unsafe fn mul_size(arg_s1: Size, arg_s2: Size) -> Size { +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 mul_size(arg_s1: Size, arg_s2: Size) -> Size; + 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; } - mul_size(arg_s1, arg_s2) + DecodeInterval(arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec) }) } -pub unsafe fn RequestAddinShmemSpace(arg_size: Size) { +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 RequestAddinShmemSpace(arg_size: Size); + 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; } - RequestAddinShmemSpace(arg_size) + DecodeISO8601Interval(arg_str_, arg_dtype, arg_tm, arg_fsec) }) } -#[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, +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) + }) } -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 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 SHMQueueInit(arg_queue: *mut SHM_QUEUE) { +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 SHMQueueInit(arg_queue: *mut SHM_QUEUE); + 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; } - SHMQueueInit(arg_queue) + DetermineTimeZoneAbbrevOffset(arg_tm, arg_abbr, arg_tzp) }) } -pub unsafe fn SHMQueueElemInit(arg_queue: *mut SHM_QUEUE) { +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 SHMQueueElemInit(arg_queue: *mut SHM_QUEUE); + 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; } - SHMQueueElemInit(arg_queue) + DetermineTimeZoneAbbrevOffsetTS(arg_ts, arg_abbr, arg_tzp, arg_isdst) }) } -pub unsafe fn SHMQueueDelete(arg_queue: *mut SHM_QUEUE) { +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 SHMQueueDelete(arg_queue: *mut SHM_QUEUE); + fn EncodeDateOnly( + arg_tm: *mut pg_tm, + arg_style: ::std::os::raw::c_int, + arg_str_: *mut ::std::os::raw::c_char, + ); } - SHMQueueDelete(arg_queue) + EncodeDateOnly(arg_tm, arg_style, arg_str_) }) } -pub unsafe fn SHMQueueInsertBefore(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE) { +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 SHMQueueInsertBefore(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE); + 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, + ); } - SHMQueueInsertBefore(arg_queue, arg_elem) + EncodeTimeOnly(arg_tm, arg_fsec, arg_print_tz, arg_tz, arg_style, arg_str_) }) } -pub unsafe fn SHMQueueInsertAfter(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE) { +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 SHMQueueInsertAfter(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE); + 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, + ); } - SHMQueueInsertAfter(arg_queue, arg_elem) + EncodeDateTime(arg_tm, arg_fsec, arg_print_tz, arg_tz, arg_tzn, arg_style, arg_str_) }) } -pub unsafe fn SHMQueueNext( - arg_queue: *const SHM_QUEUE, - arg_curElem: *const SHM_QUEUE, - arg_linkOffset: Size, -) -> Pointer { +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 SHMQueueNext( - arg_queue: *const SHM_QUEUE, - arg_curElem: *const SHM_QUEUE, - arg_linkOffset: Size, - ) -> Pointer; + 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, + ); } - SHMQueueNext(arg_queue, arg_curElem, arg_linkOffset) + EncodeInterval(arg_tm, arg_fsec, arg_style, arg_str_) }) } -pub unsafe fn SHMQueuePrev( - arg_queue: *const SHM_QUEUE, - arg_curElem: *const SHM_QUEUE, - arg_linkOffset: Size, -) -> Pointer { +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 SHMQueuePrev( - arg_queue: *const SHM_QUEUE, - arg_curElem: *const SHM_QUEUE, - arg_linkOffset: Size, - ) -> Pointer; + fn EncodeSpecialTimestamp(arg_dt: Timestamp, arg_str_: *mut ::std::os::raw::c_char); } - SHMQueuePrev(arg_queue, arg_curElem, arg_linkOffset) + EncodeSpecialTimestamp(arg_dt, arg_str_) }) } -pub unsafe fn SHMQueueEmpty(arg_queue: *const SHM_QUEUE) -> bool { +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 SHMQueueEmpty(arg_queue: *const SHM_QUEUE) -> bool; + 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; } - SHMQueueEmpty(arg_queue) + ValidateDate(arg_fmask, arg_isjulian, arg_is2digits, arg_bc, arg_tm) }) } -pub unsafe fn SHMQueueIsDetached(arg_queue: *const SHM_QUEUE) -> bool { +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 SHMQueueIsDetached(arg_queue: *const SHM_QUEUE) -> bool; + 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; } - SHMQueueIsDetached(arg_queue) + DecodeTimezoneAbbrev(arg_field, arg_lowtoken, arg_offset, arg_tz) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PROC_QUEUE { - pub links: SHM_QUEUE, - pub size: ::std::os::raw::c_int, +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) + }) } -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() +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 max_locks_per_xact: ::std::os::raw::c_int; + 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 VirtualTransactionId { - pub backendId: BackendId, - pub localTransactionId: LocalTransactionId, +pub struct xl_xact_xinfo { + pub xinfo: uint32, } #[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, +#[derive(Debug, Default, Copy, Clone)] +pub struct xl_xact_dbinfo { + pub dbId: Oid, + pub tsId: Oid, } -impl Default for LockMethodData { +#[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 { @@ -37388,152 +33263,45 @@ impl Default for LockMethodData { } } } -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 xl_xact_twophase { + pub xid: TransactionId, } #[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 xl_xact_origin { + pub origin_lsn: XLogRecPtr, + pub origin_timestamp: TimestampTz, } #[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 xl_xact_commit { + pub xact_time: TimestampTz, } #[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, +pub struct xl_xact_abort { + pub xact_time: TimestampTz, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct LockData { - pub nelements: ::std::os::raw::c_int, - pub locks: *mut LockInstanceData, +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 LockData { +impl Default for xl_xact_parsed_commit { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -37543,28 +33311,17 @@ 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, +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 BlockedProcsData { +impl Default for xl_xact_parsed_abort { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -37573,2786 +33330,2355 @@ impl Default for BlockedProcsData { } } } -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() { +pub unsafe fn IsTransactionState() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitLocks(); + fn IsTransactionState() -> bool; } - InitLocks() + IsTransactionState() }) } -pub unsafe fn GetLocksMethodTable(arg_lock: *const LOCK) -> LockMethod { +pub unsafe fn IsAbortedTransactionBlockState() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLocksMethodTable(arg_lock: *const LOCK) -> LockMethod; + fn IsAbortedTransactionBlockState() -> bool; } - GetLocksMethodTable(arg_lock) + IsAbortedTransactionBlockState() }) } -pub unsafe fn GetLockTagsMethodTable(arg_locktag: *const LOCKTAG) -> LockMethod { +pub unsafe fn GetTopTransactionId() -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLockTagsMethodTable(arg_locktag: *const LOCKTAG) -> LockMethod; + fn GetTopTransactionId() -> TransactionId; } - GetLockTagsMethodTable(arg_locktag) + GetTopTransactionId() }) } -pub unsafe fn LockTagHashCode(arg_locktag: *const LOCKTAG) -> uint32 { +pub unsafe fn GetTopTransactionIdIfAny() -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockTagHashCode(arg_locktag: *const LOCKTAG) -> uint32; + fn GetTopTransactionIdIfAny() -> TransactionId; } - LockTagHashCode(arg_locktag) + GetTopTransactionIdIfAny() }) } -pub unsafe fn DoLockModesConflict(arg_mode1: LOCKMODE, arg_mode2: LOCKMODE) -> bool { +pub unsafe fn GetCurrentTransactionId() -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DoLockModesConflict(arg_mode1: LOCKMODE, arg_mode2: LOCKMODE) -> bool; + fn GetCurrentTransactionId() -> TransactionId; } - DoLockModesConflict(arg_mode1, arg_mode2) + GetCurrentTransactionId() }) } -pub unsafe fn LockAcquire( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, - arg_dontWait: bool, -) -> LockAcquireResult { +pub unsafe fn GetCurrentTransactionIdIfAny() -> TransactionId { 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 GetCurrentTransactionIdIfAny() -> TransactionId; } - LockAcquire(arg_locktag, arg_lockmode, arg_sessionLock, arg_dontWait) + GetCurrentTransactionIdIfAny() }) } -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 GetStableLatestTransactionId() -> TransactionId { 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 GetStableLatestTransactionId() -> TransactionId; } - LockAcquireExtended( - arg_locktag, - arg_lockmode, - arg_sessionLock, - arg_dontWait, - arg_reportMemoryError, - arg_locallockp, - ) + GetStableLatestTransactionId() }) } -pub unsafe fn AbortStrongLockAcquire() { +pub unsafe fn GetCurrentSubTransactionId() -> SubTransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AbortStrongLockAcquire(); + fn GetCurrentSubTransactionId() -> SubTransactionId; } - AbortStrongLockAcquire() + GetCurrentSubTransactionId() }) } -pub unsafe fn MarkLockClear(arg_locallock: *mut LOCALLOCK) { +pub unsafe fn MarkCurrentTransactionIdLoggedIfAny() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MarkLockClear(arg_locallock: *mut LOCALLOCK); + fn MarkCurrentTransactionIdLoggedIfAny(); } - MarkLockClear(arg_locallock) + MarkCurrentTransactionIdLoggedIfAny() }) } -pub unsafe fn LockRelease( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, -) -> bool { +pub unsafe fn SubTransactionIsActive(arg_subxid: SubTransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockRelease( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, - ) -> bool; + fn SubTransactionIsActive(arg_subxid: SubTransactionId) -> bool; } - LockRelease(arg_locktag, arg_lockmode, arg_sessionLock) + SubTransactionIsActive(arg_subxid) }) } -pub unsafe fn LockReleaseAll(arg_lockmethodid: LOCKMETHODID, arg_allLocks: bool) { +pub unsafe fn GetCurrentCommandId(arg_used: bool) -> CommandId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockReleaseAll(arg_lockmethodid: LOCKMETHODID, arg_allLocks: bool); + fn GetCurrentCommandId(arg_used: bool) -> CommandId; } - LockReleaseAll(arg_lockmethodid, arg_allLocks) + GetCurrentCommandId(arg_used) }) } -pub unsafe fn LockReleaseSession(arg_lockmethodid: LOCKMETHODID) { +pub unsafe fn SetParallelStartTimestamps(arg_xact_ts: TimestampTz, arg_stmt_ts: TimestampTz) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockReleaseSession(arg_lockmethodid: LOCKMETHODID); + fn SetParallelStartTimestamps(arg_xact_ts: TimestampTz, arg_stmt_ts: TimestampTz); } - LockReleaseSession(arg_lockmethodid) + SetParallelStartTimestamps(arg_xact_ts, arg_stmt_ts) }) } -pub unsafe fn LockReleaseCurrentOwner( - arg_locallocks: *mut *mut LOCALLOCK, - arg_nlocks: ::std::os::raw::c_int, -) { +pub unsafe fn GetCurrentTransactionStartTimestamp() -> TimestampTz { 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 GetCurrentTransactionStartTimestamp() -> TimestampTz; } - LockReleaseCurrentOwner(arg_locallocks, arg_nlocks) + GetCurrentTransactionStartTimestamp() }) } -pub unsafe fn LockReassignCurrentOwner( - arg_locallocks: *mut *mut LOCALLOCK, - arg_nlocks: ::std::os::raw::c_int, -) { +pub unsafe fn GetCurrentStatementStartTimestamp() -> TimestampTz { 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 GetCurrentStatementStartTimestamp() -> TimestampTz; } - LockReassignCurrentOwner(arg_locallocks, arg_nlocks) + GetCurrentStatementStartTimestamp() }) } -pub unsafe fn LockHasWaiters( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, -) -> bool { +pub unsafe fn GetCurrentTransactionStopTimestamp() -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockHasWaiters( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, - ) -> bool; + fn GetCurrentTransactionStopTimestamp() -> TimestampTz; } - LockHasWaiters(arg_locktag, arg_lockmode, arg_sessionLock) + GetCurrentTransactionStopTimestamp() }) } -pub unsafe fn GetLockConflicts( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, -) -> *mut VirtualTransactionId { +pub unsafe fn SetCurrentStatementStartTimestamp() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLockConflicts( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - ) -> *mut VirtualTransactionId; + fn SetCurrentStatementStartTimestamp(); } - GetLockConflicts(arg_locktag, arg_lockmode) + SetCurrentStatementStartTimestamp() }) } -pub unsafe fn AtPrepare_Locks() { +pub unsafe fn GetCurrentTransactionNestLevel() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtPrepare_Locks(); + fn GetCurrentTransactionNestLevel() -> ::std::os::raw::c_int; } - AtPrepare_Locks() + GetCurrentTransactionNestLevel() }) } -pub unsafe fn PostPrepare_Locks(arg_xid: TransactionId) { +pub unsafe fn TransactionIdIsCurrentTransactionId(arg_xid: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PostPrepare_Locks(arg_xid: TransactionId); + fn TransactionIdIsCurrentTransactionId(arg_xid: TransactionId) -> bool; } - PostPrepare_Locks(arg_xid) + TransactionIdIsCurrentTransactionId(arg_xid) }) } -pub unsafe fn LockCheckConflicts( - arg_lockMethodTable: LockMethod, - arg_lockmode: LOCKMODE, - arg_lock: *mut LOCK, - arg_proclock: *mut PROCLOCK, -) -> ::std::os::raw::c_int { +pub unsafe fn CommandCounterIncrement() { 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, - ) -> ::std::os::raw::c_int; + fn CommandCounterIncrement(); } - LockCheckConflicts(arg_lockMethodTable, arg_lockmode, arg_lock, arg_proclock) + CommandCounterIncrement() }) } -pub unsafe fn GrantLock(arg_lock: *mut LOCK, arg_proclock: *mut PROCLOCK, arg_lockmode: LOCKMODE) { +pub unsafe fn ForceSyncCommit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GrantLock(arg_lock: *mut LOCK, arg_proclock: *mut PROCLOCK, arg_lockmode: LOCKMODE); + fn ForceSyncCommit(); } - GrantLock(arg_lock, arg_proclock, arg_lockmode) + ForceSyncCommit() }) } -pub unsafe fn GrantAwaitedLock() { +pub unsafe fn StartTransactionCommand() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GrantAwaitedLock(); + fn StartTransactionCommand(); } - GrantAwaitedLock() + StartTransactionCommand() }) } -pub unsafe fn RemoveFromWaitQueue(arg_proc_: *mut PGPROC, arg_hashcode: uint32) { +pub unsafe fn CommitTransactionCommand() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemoveFromWaitQueue(arg_proc_: *mut PGPROC, arg_hashcode: uint32); + fn CommitTransactionCommand(); } - RemoveFromWaitQueue(arg_proc_, arg_hashcode) + CommitTransactionCommand() }) } -pub unsafe fn LockShmemSize() -> Size { +pub unsafe fn AbortCurrentTransaction() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockShmemSize() -> Size; + fn AbortCurrentTransaction(); } - LockShmemSize() + AbortCurrentTransaction() }) } -pub unsafe fn GetLockStatusData() -> *mut LockData { +pub unsafe fn BeginTransactionBlock() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLockStatusData() -> *mut LockData; + fn BeginTransactionBlock(); } - GetLockStatusData() + BeginTransactionBlock() }) } -pub unsafe fn GetBlockerStatusData( - arg_blocked_pid: ::std::os::raw::c_int, -) -> *mut BlockedProcsData { +pub unsafe fn EndTransactionBlock() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetBlockerStatusData( - arg_blocked_pid: ::std::os::raw::c_int, - ) -> *mut BlockedProcsData; + fn EndTransactionBlock() -> bool; } - GetBlockerStatusData(arg_blocked_pid) + EndTransactionBlock() }) } -pub unsafe fn GetRunningTransactionLocks( - arg_nlocks: *mut ::std::os::raw::c_int, -) -> *mut xl_standby_lock { +pub unsafe fn PrepareTransactionBlock(arg_gid: *mut ::std::os::raw::c_char) -> bool { 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 PrepareTransactionBlock(arg_gid: *mut ::std::os::raw::c_char) -> bool; } - GetRunningTransactionLocks(arg_nlocks) + PrepareTransactionBlock(arg_gid) }) } -pub unsafe fn GetLockmodeName( - arg_lockmethodid: LOCKMETHODID, - arg_mode: LOCKMODE, -) -> *const ::std::os::raw::c_char { +pub unsafe fn UserAbortTransactionBlock() { 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 UserAbortTransactionBlock(); } - GetLockmodeName(arg_lockmethodid, arg_mode) + UserAbortTransactionBlock() }) } -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 ReleaseSavepoint(arg_options: *mut List) { 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 ReleaseSavepoint(arg_options: *mut List); } - lock_twophase_recover(arg_xid, arg_info, arg_recdata, arg_len) + ReleaseSavepoint(arg_options) }) } -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 DefineSavepoint(arg_name: *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 DefineSavepoint(arg_name: *mut ::std::os::raw::c_char); } - lock_twophase_postcommit(arg_xid, arg_info, arg_recdata, arg_len) + DefineSavepoint(arg_name) }) } -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 RollbackToSavepoint(arg_options: *mut List) { 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 RollbackToSavepoint(arg_options: *mut List); } - lock_twophase_postabort(arg_xid, arg_info, arg_recdata, arg_len) + RollbackToSavepoint(arg_options) }) } -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 BeginInternalSubTransaction(arg_name: *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 BeginInternalSubTransaction(arg_name: *mut ::std::os::raw::c_char); } - lock_twophase_standby_recover(arg_xid, arg_info, arg_recdata, arg_len) + BeginInternalSubTransaction(arg_name) }) } -pub unsafe fn DeadLockCheck(arg_proc_: *mut PGPROC) -> DeadLockState { +pub unsafe fn ReleaseCurrentSubTransaction() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DeadLockCheck(arg_proc_: *mut PGPROC) -> DeadLockState; + fn ReleaseCurrentSubTransaction(); } - DeadLockCheck(arg_proc_) + ReleaseCurrentSubTransaction() }) } -pub unsafe fn GetBlockingAutoVacuumPgproc() -> *mut PGPROC { +pub unsafe fn RollbackAndReleaseCurrentSubTransaction() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetBlockingAutoVacuumPgproc() -> *mut PGPROC; + fn RollbackAndReleaseCurrentSubTransaction(); } - GetBlockingAutoVacuumPgproc() + RollbackAndReleaseCurrentSubTransaction() }) } -pub unsafe fn DeadLockReport() { +pub unsafe fn IsSubTransaction() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DeadLockReport(); + fn IsSubTransaction() -> bool; } - DeadLockReport() + IsSubTransaction() }) } -pub unsafe fn RememberSimpleDeadLock( - arg_proc1: *mut PGPROC, - arg_lockmode: LOCKMODE, - arg_lock: *mut LOCK, - arg_proc2: *mut PGPROC, +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 RememberSimpleDeadLock( - arg_proc1: *mut PGPROC, - arg_lockmode: LOCKMODE, - arg_lock: *mut LOCK, - arg_proc2: *mut PGPROC, + fn SerializeTransactionState( + arg_maxsize: Size, + arg_start_address: *mut ::std::os::raw::c_char, ); } - RememberSimpleDeadLock(arg_proc1, arg_lockmode, arg_lock, arg_proc2) + SerializeTransactionState(arg_maxsize, arg_start_address) }) } -pub unsafe fn InitDeadLockChecking() { +pub unsafe fn StartParallelWorkerTransaction(arg_tstatespace: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitDeadLockChecking(); + fn StartParallelWorkerTransaction(arg_tstatespace: *mut ::std::os::raw::c_char); } - InitDeadLockChecking() + StartParallelWorkerTransaction(arg_tstatespace) }) } -pub unsafe fn LockWaiterCount(arg_locktag: *const LOCKTAG) -> ::std::os::raw::c_int { +pub unsafe fn EndParallelWorkerTransaction() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockWaiterCount(arg_locktag: *const LOCKTAG) -> ::std::os::raw::c_int; + fn EndParallelWorkerTransaction(); } - LockWaiterCount(arg_locktag) + EndParallelWorkerTransaction() }) } -pub unsafe fn VirtualXactLockTableInsert(arg_vxid: VirtualTransactionId) { +pub unsafe fn IsTransactionBlock() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn VirtualXactLockTableInsert(arg_vxid: VirtualTransactionId); + fn IsTransactionBlock() -> bool; } - VirtualXactLockTableInsert(arg_vxid) + IsTransactionBlock() }) } -pub unsafe fn VirtualXactLockTableCleanup() { +pub unsafe fn IsTransactionOrTransactionBlock() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn VirtualXactLockTableCleanup(); + fn IsTransactionOrTransactionBlock() -> bool; } - VirtualXactLockTableCleanup() + IsTransactionOrTransactionBlock() }) } -pub unsafe fn VirtualXactLock(arg_vxid: VirtualTransactionId, arg_wait: bool) -> bool { +pub unsafe fn TransactionBlockStatusCode() -> ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn VirtualXactLock(arg_vxid: VirtualTransactionId, arg_wait: bool) -> bool; + fn TransactionBlockStatusCode() -> ::std::os::raw::c_char; } - VirtualXactLock(arg_vxid, arg_wait) + TransactionBlockStatusCode() }) } -#[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 AbortOutOfAnyTransaction() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PGSemaphoreShmemSize(arg_maxSemas: ::std::os::raw::c_int) -> Size; + fn AbortOutOfAnyTransaction(); } - PGSemaphoreShmemSize(arg_maxSemas) + AbortOutOfAnyTransaction() }) } -pub unsafe fn PGReserveSemaphores( - arg_maxSemas: ::std::os::raw::c_int, - arg_port: ::std::os::raw::c_int, +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 PGReserveSemaphores( - arg_maxSemas: ::std::os::raw::c_int, - arg_port: ::std::os::raw::c_int, + fn PreventTransactionChain( + arg_isTopLevel: bool, + arg_stmtType: *const ::std::os::raw::c_char, ); } - PGReserveSemaphores(arg_maxSemas, arg_port) + PreventTransactionChain(arg_isTopLevel, arg_stmtType) }) } -pub unsafe fn PGSemaphoreCreate() -> PGSemaphore { +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 PGSemaphoreCreate() -> PGSemaphore; + fn RequireTransactionChain( + arg_isTopLevel: bool, + arg_stmtType: *const ::std::os::raw::c_char, + ); } - PGSemaphoreCreate() + RequireTransactionChain(arg_isTopLevel, arg_stmtType) }) } -pub unsafe fn PGSemaphoreReset(arg_sema: PGSemaphore) { +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 PGSemaphoreReset(arg_sema: PGSemaphore); + fn WarnNoTransactionChain( + arg_isTopLevel: bool, + arg_stmtType: *const ::std::os::raw::c_char, + ); } - PGSemaphoreReset(arg_sema) + WarnNoTransactionChain(arg_isTopLevel, arg_stmtType) }) } -pub unsafe fn PGSemaphoreLock(arg_sema: PGSemaphore) { +pub unsafe fn IsInTransactionChain(arg_isTopLevel: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PGSemaphoreLock(arg_sema: PGSemaphore); + fn IsInTransactionChain(arg_isTopLevel: bool) -> bool; } - PGSemaphoreLock(arg_sema) + IsInTransactionChain(arg_isTopLevel) }) } -pub unsafe fn PGSemaphoreUnlock(arg_sema: PGSemaphore) { +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 PGSemaphoreUnlock(arg_sema: PGSemaphore); + fn RegisterXactCallback( + arg_callback: XactCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); } - PGSemaphoreUnlock(arg_sema) + RegisterXactCallback(arg_callback, arg_arg) }) } -pub unsafe fn PGSemaphoreTryLock(arg_sema: PGSemaphore) -> bool { +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 PGSemaphoreTryLock(arg_sema: PGSemaphore) -> bool; + fn UnregisterXactCallback( + arg_callback: XactCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); } - PGSemaphoreTryLock(arg_sema) + UnregisterXactCallback(arg_callback, arg_arg) }) } -#[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 { +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 ProcGlobalSemas() -> ::std::os::raw::c_int; + fn RegisterSubXactCallback( + arg_callback: SubXactCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); } - ProcGlobalSemas() + RegisterSubXactCallback(arg_callback, arg_arg) }) } -pub unsafe fn ProcGlobalShmemSize() -> Size { +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 ProcGlobalShmemSize() -> Size; + fn UnregisterSubXactCallback( + arg_callback: SubXactCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); } - ProcGlobalShmemSize() + UnregisterSubXactCallback(arg_callback, arg_arg) }) } -pub unsafe fn InitProcGlobal() { +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 InitProcGlobal(); + fn xactGetCommittedChildren(arg_ptr: *mut *mut TransactionId) -> ::std::os::raw::c_int; } - InitProcGlobal() + xactGetCommittedChildren(arg_ptr) }) } -pub unsafe fn InitProcess() { +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 InitProcess(); + 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; } - InitProcess() + 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 InitProcessPhase2() { +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 InitProcessPhase2(); + 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; } - InitProcessPhase2() + XactLogAbortRecord( + arg_abort_time, + arg_nsubxacts, + arg_subxacts, + arg_nrels, + arg_rels, + arg_xactflags, + arg_twophase_xid, + ) }) } -pub unsafe fn InitAuxiliaryProcess() { +pub unsafe fn xact_redo(arg_record: *mut XLogReaderState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitAuxiliaryProcess(); + fn xact_redo(arg_record: *mut XLogReaderState); } - InitAuxiliaryProcess() + xact_redo(arg_record) }) } -pub unsafe fn PublishStartupProcessInformation() { +pub unsafe fn xact_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PublishStartupProcessInformation(); + fn xact_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState); } - PublishStartupProcessInformation() + xact_desc(arg_buf, arg_record) }) } -pub unsafe fn SetStartupBufferPinWaitBufId(arg_bufid: ::std::os::raw::c_int) { +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 SetStartupBufferPinWaitBufId(arg_bufid: ::std::os::raw::c_int); + fn xact_identify(arg_info: uint8) -> *const ::std::os::raw::c_char; } - SetStartupBufferPinWaitBufId(arg_bufid) + xact_identify(arg_info) }) } -pub unsafe fn GetStartupBufferPinWaitBufId() -> ::std::os::raw::c_int { +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 GetStartupBufferPinWaitBufId() -> ::std::os::raw::c_int; + fn ParseCommitRecord( + arg_info: uint8, + arg_xlrec: *mut xl_xact_commit, + arg_parsed: *mut xl_xact_parsed_commit, + ); } - GetStartupBufferPinWaitBufId() + ParseCommitRecord(arg_info, arg_xlrec, arg_parsed) }) } -pub unsafe fn HaveNFreeProcs(arg_n: ::std::os::raw::c_int) -> bool { +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 HaveNFreeProcs(arg_n: ::std::os::raw::c_int) -> bool; + fn ParseAbortRecord( + arg_info: uint8, + arg_xlrec: *mut xl_xact_abort, + arg_parsed: *mut xl_xact_parsed_abort, + ); } - HaveNFreeProcs(arg_n) + ParseAbortRecord(arg_info, arg_xlrec, arg_parsed) }) } -pub unsafe fn ProcReleaseLocks(arg_isCommit: bool) { +pub unsafe fn EnterParallelMode() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcReleaseLocks(arg_isCommit: bool); + fn EnterParallelMode(); } - ProcReleaseLocks(arg_isCommit) + EnterParallelMode() }) } -pub unsafe fn ProcQueueInit(arg_queue: *mut PROC_QUEUE) { +pub unsafe fn ExitParallelMode() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcQueueInit(arg_queue: *mut PROC_QUEUE); + fn ExitParallelMode(); } - ProcQueueInit(arg_queue) + ExitParallelMode() }) } -pub unsafe fn ProcSleep( - arg_locallock: *mut LOCALLOCK, - arg_lockMethodTable: LockMethod, -) -> ::std::os::raw::c_int { +pub unsafe fn IsInParallelMode() -> bool { 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 IsInParallelMode() -> bool; } - ProcSleep(arg_locallock, arg_lockMethodTable) + IsInParallelMode() }) } -pub unsafe fn ProcWakeup( - arg_proc_: *mut PGPROC, - arg_waitStatus: ::std::os::raw::c_int, -) -> *mut PGPROC { +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 ProcWakeup( - arg_proc_: *mut PGPROC, - arg_waitStatus: ::std::os::raw::c_int, - ) -> *mut PGPROC; + fn AcquireDeletionLock( + arg_object: *const ObjectAddress, + arg_flags: ::std::os::raw::c_int, + ); } - ProcWakeup(arg_proc_, arg_waitStatus) + AcquireDeletionLock(arg_object, arg_flags) }) } -pub unsafe fn ProcLockWakeup(arg_lockMethodTable: LockMethod, arg_lock: *mut LOCK) { +pub unsafe fn ReleaseDeletionLock(arg_object: *const ObjectAddress) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcLockWakeup(arg_lockMethodTable: LockMethod, arg_lock: *mut LOCK); + fn ReleaseDeletionLock(arg_object: *const ObjectAddress); } - ProcLockWakeup(arg_lockMethodTable, arg_lock) + ReleaseDeletionLock(arg_object) }) } -pub unsafe fn CheckDeadLockAlert() { +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 CheckDeadLockAlert(); + fn performDeletion( + arg_object: *const ObjectAddress, + arg_behavior: DropBehavior, + arg_flags: ::std::os::raw::c_int, + ); } - CheckDeadLockAlert() + performDeletion(arg_object, arg_behavior, arg_flags) }) } -pub unsafe fn IsWaitingForLock() -> bool { +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 IsWaitingForLock() -> bool; + fn performMultipleDeletions( + arg_objects: *const ObjectAddresses, + arg_behavior: DropBehavior, + arg_flags: ::std::os::raw::c_int, + ); } - IsWaitingForLock() + performMultipleDeletions(arg_objects, arg_behavior, arg_flags) }) } -pub unsafe fn LockErrorCleanup() { +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 LockErrorCleanup(); + fn recordDependencyOnExpr( + arg_depender: *const ObjectAddress, + arg_expr: *mut Node, + arg_rtable: *mut List, + arg_behavior: DependencyType, + ); } - LockErrorCleanup() + recordDependencyOnExpr(arg_depender, arg_expr, arg_rtable, arg_behavior) }) } -pub unsafe fn ProcWaitForSignal(arg_wait_event_info: uint32) { +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 ProcWaitForSignal(arg_wait_event_info: uint32); + fn recordDependencyOnSingleRelExpr( + arg_depender: *const ObjectAddress, + arg_expr: *mut Node, + arg_relId: Oid, + arg_behavior: DependencyType, + arg_self_behavior: DependencyType, + arg_reverse_self: bool, + ); } - ProcWaitForSignal(arg_wait_event_info) + recordDependencyOnSingleRelExpr( + arg_depender, + arg_expr, + arg_relId, + arg_behavior, + arg_self_behavior, + arg_reverse_self, + ) }) } -pub unsafe fn ProcSendSignal(arg_pid: ::std::os::raw::c_int) { +pub unsafe fn getObjectClass(arg_object: *const ObjectAddress) -> ObjectClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcSendSignal(arg_pid: ::std::os::raw::c_int); + fn getObjectClass(arg_object: *const ObjectAddress) -> ObjectClass; } - ProcSendSignal(arg_pid) + getObjectClass(arg_object) }) } -pub unsafe fn AuxiliaryPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { +pub unsafe fn new_object_addresses() -> *mut ObjectAddresses { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AuxiliaryPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; + fn new_object_addresses() -> *mut ObjectAddresses; } - AuxiliaryPidGetProc(arg_pid) + new_object_addresses() }) } -pub unsafe fn BecomeLockGroupLeader() { +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 BecomeLockGroupLeader(); + fn add_exact_object_address( + arg_object: *const ObjectAddress, + arg_addrs: *mut ObjectAddresses, + ); } - BecomeLockGroupLeader() + add_exact_object_address(arg_object, arg_addrs) }) } -pub unsafe fn BecomeLockGroupMember( - arg_leader: *mut PGPROC, - arg_pid: ::std::os::raw::c_int, +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 BecomeLockGroupMember( - arg_leader: *mut PGPROC, - arg_pid: ::std::os::raw::c_int, + fn object_address_present( + arg_object: *const ObjectAddress, + arg_addrs: *const ObjectAddresses, ) -> bool; } - BecomeLockGroupMember(arg_leader, arg_pid) + object_address_present(arg_object, arg_addrs) }) } -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 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 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_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 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_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 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_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 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, Copy, Clone)] -pub struct PgStat_MsgHdr { - pub m_type: StatMsgType, - pub m_size: ::std::os::raw::c_int, +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) + }) } -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 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_MsgDummy { - pub m_hdr: PgStat_MsgHdr, +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_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 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, 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 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, + ) + }) } -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 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) + }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PgStat_TableEntry { - pub t_id: Oid, - pub t_counts: PgStat_TableCounts, +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) + }) } -#[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 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) + }) } -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 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) + }) } -#[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 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) + }) } -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 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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgDropdb { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, +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) + }) } -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 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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgResetcounter { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, +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) + }) } -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 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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgResetsharedcounter { - pub m_hdr: PgStat_MsgHdr, - pub m_resettarget: PgStat_Shared_Reset_Target, -} -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 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); } - } -} -#[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, + changeDependencyOnOwner(arg_classId, arg_objectId, arg_newOwnerId) + }) } -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 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, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgAutovacStart { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_start_time: TimestampTz, + updateAclDependencies( + arg_classId, + arg_objectId, + arg_objectSubId, + arg_ownerId, + arg_noldmembers, + arg_oldmembers, + arg_nnewmembers, + arg_newmembers, + ) + }) } -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 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; } - } -} -#[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, + checkSharedDependencies(arg_classId, arg_objectId, arg_detail_msg, arg_detail_log_msg) + }) } -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 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); } - } -} -#[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, + shdepLockAndCheckObject(arg_classId, arg_objectId) + }) } -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 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); } - } -} -#[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, + copyTemplateDependencies(arg_templateDbId, arg_newDbId) + }) } -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 dropDatabaseDependencies(arg_databaseId: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn dropDatabaseDependencies(arg_databaseId: Oid); } - } -} -#[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, + dropDatabaseDependencies(arg_databaseId) + }) } -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 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); } - } -} -#[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, + shdepDropOwned(arg_relids, arg_behavior) + }) } -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 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); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgTempFile { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_filesize: usize, + shdepReassignOwned(arg_relids, arg_newrole) + }) } -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 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, + ); } - } -} -#[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, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PgStat_BackendFunctionEntry { - pub f_id: Oid, - pub f_counts: PgStat_FunctionCounts, -} -#[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 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], + index_check_primary_key(arg_heapRel, arg_indexInfo, arg_is_alter_table, arg_stmt) + }) } -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 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, + ) + }) } -#[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 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, + ) + }) } -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 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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgDeadlock { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, +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) + }) } -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 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) + }) } -#[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 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) + }) } -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 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) + }) } -#[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, -} -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() - } - } -} -#[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, -} -#[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, -} -#[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, -} -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() - } - } -} -#[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 { +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 BackendStatusShmemSize() -> Size; + fn index_build( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_indexInfo: *mut IndexInfo, + arg_isprimary: bool, + arg_isreindex: bool, + ); } - BackendStatusShmemSize() + index_build( + arg_heapRelation, + arg_indexRelation, + arg_indexInfo, + arg_isprimary, + arg_isreindex, + ) }) } -pub unsafe fn CreateSharedBackendStatus() { +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 CreateSharedBackendStatus(); + 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; } - CreateSharedBackendStatus() + IndexBuildHeapScan( + arg_heapRelation, + arg_indexRelation, + arg_indexInfo, + arg_allow_sync, + arg_callback, + arg_callback_state, + ) }) } -pub unsafe fn pgstat_init() { +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 pgstat_init(); + 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; } - pgstat_init() + 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 pgstat_start() -> ::std::os::raw::c_int { +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 pgstat_start() -> ::std::os::raw::c_int; + fn validate_index(arg_heapId: Oid, arg_indexId: Oid, arg_snapshot: Snapshot); } - pgstat_start() + validate_index(arg_heapId, arg_indexId, arg_snapshot) }) } -pub unsafe fn pgstat_reset_all() { +pub unsafe fn index_set_state_flags(arg_indexId: Oid, arg_action: IndexStateFlagsAction) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_reset_all(); + fn index_set_state_flags(arg_indexId: Oid, arg_action: IndexStateFlagsAction); } - pgstat_reset_all() + index_set_state_flags(arg_indexId, arg_action) }) } -pub unsafe fn allow_immediate_pgstat_restart() { +pub unsafe fn IndexGetRelation(arg_indexId: Oid, arg_missing_ok: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn allow_immediate_pgstat_restart(); + fn IndexGetRelation(arg_indexId: Oid, arg_missing_ok: bool) -> Oid; } - allow_immediate_pgstat_restart() + IndexGetRelation(arg_indexId, arg_missing_ok) }) } -pub unsafe fn pgstat_ping() { +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 pgstat_ping(); + 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, + ); } - pgstat_ping() + reindex_index(arg_indexId, arg_skip_constraint_checks, arg_relpersistence, arg_options) }) } -pub unsafe fn pgstat_report_stat(arg_force: bool) { +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 pgstat_report_stat(arg_force: bool); + fn reindex_relation( + arg_relid: Oid, + arg_flags: ::std::os::raw::c_int, + arg_options: ::std::os::raw::c_int, + ) -> bool; } - pgstat_report_stat(arg_force) + reindex_relation(arg_relid, arg_flags, arg_options) }) } -pub unsafe fn pgstat_vacuum_stat() { +pub unsafe fn ReindexIsProcessingHeap(arg_heapOid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_vacuum_stat(); + fn ReindexIsProcessingHeap(arg_heapOid: Oid) -> bool; } - pgstat_vacuum_stat() + ReindexIsProcessingHeap(arg_heapOid) }) } -pub unsafe fn pgstat_drop_database(arg_databaseid: Oid) { +pub unsafe fn ReindexIsProcessingIndex(arg_indexOid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_drop_database(arg_databaseid: Oid); + fn ReindexIsProcessingIndex(arg_indexOid: Oid) -> bool; } - pgstat_drop_database(arg_databaseid) + ReindexIsProcessingIndex(arg_indexOid) }) } -pub unsafe fn pgstat_clear_snapshot() { +pub unsafe fn ResetReindexState(arg_nestLevel: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_clear_snapshot(); + fn ResetReindexState(arg_nestLevel: ::std::os::raw::c_int); } - pgstat_clear_snapshot() + ResetReindexState(arg_nestLevel) }) } -pub unsafe fn pgstat_reset_counters() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_reset_counters(); - } - pgstat_reset_counters() +#[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 pgstat_reset_shared_counters(arg_arg1: *const ::std::os::raw::c_char) { +pub unsafe fn RangeVarGetCreationNamespace(arg_newRelation: *const RangeVar) -> 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 RangeVarGetCreationNamespace(arg_newRelation: *const RangeVar) -> Oid; } - pgstat_reset_shared_counters(arg_arg1) + RangeVarGetCreationNamespace(arg_newRelation) }) } -pub unsafe fn pgstat_reset_single_counter(arg_objectid: Oid, arg_type_: PgStat_Single_Reset_Type) { +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 pgstat_reset_single_counter(arg_objectid: Oid, arg_type_: PgStat_Single_Reset_Type); + fn RangeVarGetAndCheckCreationNamespace( + arg_newRelation: *mut RangeVar, + arg_lockmode: LOCKMODE, + arg_existing_relation_id: *mut Oid, + ) -> Oid; } - pgstat_reset_single_counter(arg_objectid, arg_type_) + RangeVarGetAndCheckCreationNamespace( + arg_newRelation, + arg_lockmode, + arg_existing_relation_id, + ) }) } -pub unsafe fn pgstat_report_autovac(arg_dboid: Oid) { +pub unsafe fn RangeVarAdjustRelationPersistence(arg_newRelation: *mut RangeVar, arg_nspid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_report_autovac(arg_dboid: Oid); + fn RangeVarAdjustRelationPersistence(arg_newRelation: *mut RangeVar, arg_nspid: Oid); } - pgstat_report_autovac(arg_dboid) + RangeVarAdjustRelationPersistence(arg_newRelation, arg_nspid) }) } -pub unsafe fn pgstat_report_vacuum( - arg_tableoid: Oid, - arg_shared: bool, - arg_livetuples: PgStat_Counter, - arg_deadtuples: PgStat_Counter, -) { +pub unsafe fn RelnameGetRelid(arg_relname: *const ::std::os::raw::c_char) -> 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 RelnameGetRelid(arg_relname: *const ::std::os::raw::c_char) -> Oid; } - pgstat_report_vacuum(arg_tableoid, arg_shared, arg_livetuples, arg_deadtuples) + RelnameGetRelid(arg_relname) }) } -pub unsafe fn pgstat_report_analyze( - arg_rel: Relation, - arg_livetuples: PgStat_Counter, - arg_deadtuples: PgStat_Counter, - arg_resetcounter: bool, -) { +pub unsafe fn RelationIsVisible(arg_relid: Oid) -> bool { 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 RelationIsVisible(arg_relid: Oid) -> bool; } - pgstat_report_analyze(arg_rel, arg_livetuples, arg_deadtuples, arg_resetcounter) + RelationIsVisible(arg_relid) }) } -pub unsafe fn pgstat_report_recovery_conflict(arg_reason: ::std::os::raw::c_int) { +pub unsafe fn TypenameGetTypid(arg_typname: *const ::std::os::raw::c_char) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_report_recovery_conflict(arg_reason: ::std::os::raw::c_int); + fn TypenameGetTypid(arg_typname: *const ::std::os::raw::c_char) -> Oid; } - pgstat_report_recovery_conflict(arg_reason) + TypenameGetTypid(arg_typname) }) } -pub unsafe fn pgstat_report_deadlock() { +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 pgstat_report_deadlock(); + fn TypenameGetTypidExtended( + arg_typname: *const ::std::os::raw::c_char, + arg_temp_ok: bool, + ) -> Oid; } - pgstat_report_deadlock() + TypenameGetTypidExtended(arg_typname, arg_temp_ok) }) } -pub unsafe fn pgstat_initialize() { +pub unsafe fn TypeIsVisible(arg_typid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_initialize(); + fn TypeIsVisible(arg_typid: Oid) -> bool; } - pgstat_initialize() + TypeIsVisible(arg_typid) }) } -pub unsafe fn pgstat_bestart() { +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 pgstat_bestart(); + 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; } - pgstat_bestart() + FuncnameGetCandidates( + arg_names, + arg_nargs, + arg_argnames, + arg_expand_variadic, + arg_expand_defaults, + arg_missing_ok, + ) }) } -pub unsafe fn pgstat_report_activity( - arg_state: BackendState, - arg_cmd_str: *const ::std::os::raw::c_char, -) { +pub unsafe fn FunctionIsVisible(arg_funcid: Oid) -> bool { 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, - ); + fn FunctionIsVisible(arg_funcid: Oid) -> bool; } - pgstat_report_activity(arg_state, arg_cmd_str) + FunctionIsVisible(arg_funcid) }) } -pub unsafe fn pgstat_report_tempfile(arg_filesize: usize) { +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 pgstat_report_tempfile(arg_filesize: usize); + fn OpernameGetOprid(arg_names: *mut List, arg_oprleft: Oid, arg_oprright: Oid) -> Oid; } - pgstat_report_tempfile(arg_filesize) + OpernameGetOprid(arg_names, arg_oprleft, arg_oprright) }) } -pub unsafe fn pgstat_report_appname(arg_appname: *const ::std::os::raw::c_char) { +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 pgstat_report_appname(arg_appname: *const ::std::os::raw::c_char); + fn OpernameGetCandidates( + arg_names: *mut List, + arg_oprkind: ::std::os::raw::c_char, + arg_missing_schema_ok: bool, + ) -> FuncCandidateList; } - pgstat_report_appname(arg_appname) + OpernameGetCandidates(arg_names, arg_oprkind, arg_missing_schema_ok) }) } -pub unsafe fn pgstat_report_xact_timestamp(arg_tstamp: TimestampTz) { +pub unsafe fn OperatorIsVisible(arg_oprid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_report_xact_timestamp(arg_tstamp: TimestampTz); + fn OperatorIsVisible(arg_oprid: Oid) -> bool; } - pgstat_report_xact_timestamp(arg_tstamp) + OperatorIsVisible(arg_oprid) }) } -pub unsafe fn pgstat_get_wait_event(arg_wait_event_info: uint32) -> *const ::std::os::raw::c_char { +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 pgstat_get_wait_event(arg_wait_event_info: uint32) -> *const ::std::os::raw::c_char; + fn OpclassnameGetOpcid( + arg_amid: Oid, + arg_opcname: *const ::std::os::raw::c_char, + ) -> Oid; } - pgstat_get_wait_event(arg_wait_event_info) + OpclassnameGetOpcid(arg_amid, arg_opcname) }) } -pub unsafe fn pgstat_get_wait_event_type( - arg_wait_event_info: uint32, -) -> *const ::std::os::raw::c_char { +pub unsafe fn OpclassIsVisible(arg_opcid: Oid) -> bool { 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; + fn OpclassIsVisible(arg_opcid: Oid) -> bool; } - pgstat_get_wait_event_type(arg_wait_event_info) + OpclassIsVisible(arg_opcid) }) } -pub unsafe fn pgstat_get_backend_current_activity( - arg_pid: ::std::os::raw::c_int, - arg_checkUser: bool, -) -> *const ::std::os::raw::c_char { +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 pgstat_get_backend_current_activity( - arg_pid: ::std::os::raw::c_int, - arg_checkUser: bool, - ) -> *const ::std::os::raw::c_char; + fn OpfamilynameGetOpfid( + arg_amid: Oid, + arg_opfname: *const ::std::os::raw::c_char, + ) -> Oid; } - pgstat_get_backend_current_activity(arg_pid, arg_checkUser) + OpfamilynameGetOpfid(arg_amid, arg_opfname) }) } -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 { +pub unsafe fn OpfamilyIsVisible(arg_opfid: Oid) -> bool { 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; + fn OpfamilyIsVisible(arg_opfid: Oid) -> bool; } - pgstat_get_crashed_backend_activity(arg_pid, arg_buffer, arg_buflen) + OpfamilyIsVisible(arg_opfid) }) } -pub unsafe fn pgstat_get_backend_desc( - arg_backendType: BackendType, -) -> *const ::std::os::raw::c_char { +pub unsafe fn CollationGetCollid(arg_collname: *const ::std::os::raw::c_char) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_get_backend_desc( - arg_backendType: BackendType, - ) -> *const ::std::os::raw::c_char; + fn CollationGetCollid(arg_collname: *const ::std::os::raw::c_char) -> Oid; } - pgstat_get_backend_desc(arg_backendType) + CollationGetCollid(arg_collname) }) } -pub unsafe fn pgstat_progress_start_command(arg_cmdtype: ProgressCommandType, arg_relid: Oid) { +pub unsafe fn CollationIsVisible(arg_collid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_progress_start_command(arg_cmdtype: ProgressCommandType, arg_relid: Oid); + fn CollationIsVisible(arg_collid: Oid) -> bool; } - pgstat_progress_start_command(arg_cmdtype, arg_relid) + CollationIsVisible(arg_collid) }) } -pub unsafe fn pgstat_progress_update_param(arg_index: ::std::os::raw::c_int, arg_val: int64) { +pub unsafe fn ConversionGetConid(arg_conname: *const ::std::os::raw::c_char) -> Oid { 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); + fn ConversionGetConid(arg_conname: *const ::std::os::raw::c_char) -> Oid; } - pgstat_progress_update_param(arg_index, arg_val) + ConversionGetConid(arg_conname) }) } -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, -) { +pub unsafe fn ConversionIsVisible(arg_conid: Oid) -> bool { 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, - ); + fn ConversionIsVisible(arg_conid: Oid) -> bool; } - pgstat_progress_update_multi_param(arg_nparam, arg_index, arg_val) + ConversionIsVisible(arg_conid) }) } -pub unsafe fn pgstat_progress_end_command() { +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 pgstat_progress_end_command(); + fn get_statistics_object_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; } - pgstat_progress_end_command() + get_statistics_object_oid(arg_names, arg_missing_ok) }) } -pub unsafe fn find_tabstat_entry(arg_rel_id: Oid) -> *mut PgStat_TableStatus { +pub unsafe fn StatisticsObjIsVisible(arg_stxid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_tabstat_entry(arg_rel_id: Oid) -> *mut PgStat_TableStatus; + fn StatisticsObjIsVisible(arg_stxid: Oid) -> bool; } - find_tabstat_entry(arg_rel_id) + StatisticsObjIsVisible(arg_stxid) }) } -pub unsafe fn find_funcstat_entry(arg_func_id: Oid) -> *mut PgStat_BackendFunctionEntry { +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 find_funcstat_entry(arg_func_id: Oid) -> *mut PgStat_BackendFunctionEntry; + fn get_ts_parser_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; } - find_funcstat_entry(arg_func_id) + get_ts_parser_oid(arg_names, arg_missing_ok) }) } -pub unsafe fn pgstat_initstats(arg_rel: Relation) { +pub unsafe fn TSParserIsVisible(arg_prsId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_initstats(arg_rel: Relation); + fn TSParserIsVisible(arg_prsId: Oid) -> bool; } - pgstat_initstats(arg_rel) + TSParserIsVisible(arg_prsId) }) } -pub unsafe fn pgstat_count_heap_insert(arg_rel: Relation, arg_n: PgStat_Counter) { +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 pgstat_count_heap_insert(arg_rel: Relation, arg_n: PgStat_Counter); + fn get_ts_dict_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; } - pgstat_count_heap_insert(arg_rel, arg_n) + get_ts_dict_oid(arg_names, arg_missing_ok) }) } -pub unsafe fn pgstat_count_heap_update(arg_rel: Relation, arg_hot: bool) { +pub unsafe fn TSDictionaryIsVisible(arg_dictId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_count_heap_update(arg_rel: Relation, arg_hot: bool); + fn TSDictionaryIsVisible(arg_dictId: Oid) -> bool; } - pgstat_count_heap_update(arg_rel, arg_hot) + TSDictionaryIsVisible(arg_dictId) }) } -pub unsafe fn pgstat_count_heap_delete(arg_rel: Relation) { +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 pgstat_count_heap_delete(arg_rel: Relation); + fn get_ts_template_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; } - pgstat_count_heap_delete(arg_rel) + get_ts_template_oid(arg_names, arg_missing_ok) }) } -pub unsafe fn pgstat_count_truncate(arg_rel: Relation) { +pub unsafe fn TSTemplateIsVisible(arg_tmplId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_count_truncate(arg_rel: Relation); + fn TSTemplateIsVisible(arg_tmplId: Oid) -> bool; } - pgstat_count_truncate(arg_rel) + TSTemplateIsVisible(arg_tmplId) }) } -pub unsafe fn pgstat_update_heap_dead_tuples(arg_rel: Relation, arg_delta: ::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 pgstat_update_heap_dead_tuples(arg_rel: Relation, arg_delta: ::std::os::raw::c_int); + fn get_ts_config_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; } - pgstat_update_heap_dead_tuples(arg_rel, arg_delta) + get_ts_config_oid(arg_names, arg_missing_ok) }) } -pub unsafe fn pgstat_init_function_usage( - arg_fcinfo: *mut FunctionCallInfoData, - arg_fcu: *mut PgStat_FunctionCallUsage, -) { +pub unsafe fn TSConfigIsVisible(arg_cfgid: Oid) -> bool { 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 TSConfigIsVisible(arg_cfgid: Oid) -> bool; } - pgstat_init_function_usage(arg_fcinfo, arg_fcu) + TSConfigIsVisible(arg_cfgid) }) } -pub unsafe fn pgstat_end_function_usage( - arg_fcu: *mut PgStat_FunctionCallUsage, - arg_finalize: bool, +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 pgstat_end_function_usage( - arg_fcu: *mut PgStat_FunctionCallUsage, - arg_finalize: bool, + 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, ); } - pgstat_end_function_usage(arg_fcu, arg_finalize) + DeconstructQualifiedName(arg_names, arg_nspname_p, arg_objname_p) }) } -pub unsafe fn AtEOXact_PgStat(arg_isCommit: bool, arg_parallel: bool) { +pub unsafe fn LookupNamespaceNoError(arg_nspname: *const ::std::os::raw::c_char) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOXact_PgStat(arg_isCommit: bool, arg_parallel: bool); + fn LookupNamespaceNoError(arg_nspname: *const ::std::os::raw::c_char) -> Oid; } - AtEOXact_PgStat(arg_isCommit, arg_parallel) + LookupNamespaceNoError(arg_nspname) }) } -pub unsafe fn AtEOSubXact_PgStat(arg_isCommit: bool, arg_nestDepth: ::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 AtEOSubXact_PgStat(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); + fn LookupExplicitNamespace( + arg_nspname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - AtEOSubXact_PgStat(arg_isCommit, arg_nestDepth) + LookupExplicitNamespace(arg_nspname, arg_missing_ok) }) } -pub unsafe fn AtPrepare_PgStat() { +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 AtPrepare_PgStat(); + fn get_namespace_oid( + arg_nspname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - AtPrepare_PgStat() + get_namespace_oid(arg_nspname, arg_missing_ok) }) } -pub unsafe fn PostPrepare_PgStat() { +pub unsafe fn LookupCreationNamespace(arg_nspname: *const ::std::os::raw::c_char) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PostPrepare_PgStat(); + fn LookupCreationNamespace(arg_nspname: *const ::std::os::raw::c_char) -> Oid; } - PostPrepare_PgStat() + LookupCreationNamespace(arg_nspname) }) } -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 CheckSetNamespace(arg_oldNspOid: Oid, arg_nspOid: Oid) { 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 CheckSetNamespace(arg_oldNspOid: Oid, arg_nspOid: Oid); } - pgstat_twophase_postcommit(arg_xid, arg_info, arg_recdata, arg_len) + CheckSetNamespace(arg_oldNspOid, arg_nspOid) }) } -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 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 pgstat_twophase_postabort( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, - ); + fn QualifiedNameGetCreationNamespace( + arg_names: *mut List, + arg_objname_p: *mut *mut ::std::os::raw::c_char, + ) -> Oid; } - pgstat_twophase_postabort(arg_xid, arg_info, arg_recdata, arg_len) + QualifiedNameGetCreationNamespace(arg_names, arg_objname_p) }) } -pub unsafe fn pgstat_send_archiver(arg_xlog: *const ::std::os::raw::c_char, arg_failed: bool) { +pub unsafe fn makeRangeVarFromNameList(arg_names: *mut List) -> *mut RangeVar { 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); + fn makeRangeVarFromNameList(arg_names: *mut List) -> *mut RangeVar; } - pgstat_send_archiver(arg_xlog, arg_failed) + makeRangeVarFromNameList(arg_names) }) } -pub unsafe fn pgstat_send_bgwriter() { +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 pgstat_send_bgwriter(); + fn NameListToString(arg_names: *mut List) -> *mut ::std::os::raw::c_char; } - pgstat_send_bgwriter() + NameListToString(arg_names) }) } -pub unsafe fn pgstat_fetch_stat_dbentry(arg_dbid: Oid) -> *mut PgStat_StatDBEntry { +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 pgstat_fetch_stat_dbentry(arg_dbid: Oid) -> *mut PgStat_StatDBEntry; + fn NameListToQuotedString(arg_names: *mut List) -> *mut ::std::os::raw::c_char; } - pgstat_fetch_stat_dbentry(arg_dbid) + NameListToQuotedString(arg_names) }) } -pub unsafe fn pgstat_fetch_stat_tabentry(arg_relid: Oid) -> *mut PgStat_StatTabEntry { +pub unsafe fn isTempNamespace(arg_namespaceId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_fetch_stat_tabentry(arg_relid: Oid) -> *mut PgStat_StatTabEntry; + fn isTempNamespace(arg_namespaceId: Oid) -> bool; } - pgstat_fetch_stat_tabentry(arg_relid) + isTempNamespace(arg_namespaceId) }) } -pub unsafe fn pgstat_fetch_stat_beentry(arg_beid: ::std::os::raw::c_int) -> *mut PgBackendStatus { +pub unsafe fn isTempToastNamespace(arg_namespaceId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_fetch_stat_beentry(arg_beid: ::std::os::raw::c_int) -> *mut PgBackendStatus; + fn isTempToastNamespace(arg_namespaceId: Oid) -> bool; } - pgstat_fetch_stat_beentry(arg_beid) + isTempToastNamespace(arg_namespaceId) }) } -pub unsafe fn pgstat_fetch_stat_local_beentry( - arg_beid: ::std::os::raw::c_int, -) -> *mut LocalPgBackendStatus { +pub unsafe fn isTempOrTempToastNamespace(arg_namespaceId: Oid) -> bool { 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; + fn isTempOrTempToastNamespace(arg_namespaceId: Oid) -> bool; } - pgstat_fetch_stat_local_beentry(arg_beid) + isTempOrTempToastNamespace(arg_namespaceId) }) } -pub unsafe fn pgstat_fetch_stat_funcentry(arg_funcid: Oid) -> *mut PgStat_StatFuncEntry { +pub unsafe fn isAnyTempNamespace(arg_namespaceId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_fetch_stat_funcentry(arg_funcid: Oid) -> *mut PgStat_StatFuncEntry; + fn isAnyTempNamespace(arg_namespaceId: Oid) -> bool; } - pgstat_fetch_stat_funcentry(arg_funcid) + isAnyTempNamespace(arg_namespaceId) }) } -pub unsafe fn pgstat_fetch_stat_numbackends() -> ::std::os::raw::c_int { +pub unsafe fn isOtherTempNamespace(arg_namespaceId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_fetch_stat_numbackends() -> ::std::os::raw::c_int; + fn isOtherTempNamespace(arg_namespaceId: Oid) -> bool; } - pgstat_fetch_stat_numbackends() + isOtherTempNamespace(arg_namespaceId) }) } -pub unsafe fn pgstat_fetch_stat_archiver() -> *mut PgStat_ArchiverStats { +pub unsafe fn GetTempNamespaceBackendId(arg_namespaceId: Oid) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_fetch_stat_archiver() -> *mut PgStat_ArchiverStats; + fn GetTempNamespaceBackendId(arg_namespaceId: Oid) -> ::std::os::raw::c_int; } - pgstat_fetch_stat_archiver() + GetTempNamespaceBackendId(arg_namespaceId) }) } -pub unsafe fn pgstat_fetch_global() -> *mut PgStat_GlobalStats { +pub unsafe fn GetTempToastNamespace() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_fetch_global() -> *mut PgStat_GlobalStats; + fn GetTempToastNamespace() -> Oid; } - pgstat_fetch_global() + GetTempToastNamespace() }) } -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 { +pub unsafe fn GetTempNamespaceState( + arg_tempNamespaceId: *mut Oid, + arg_tempToastNamespaceId: *mut Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetIndexAmRoutine(arg_amhandler: Oid) -> *mut IndexAmRoutine; + fn GetTempNamespaceState( + arg_tempNamespaceId: *mut Oid, + arg_tempToastNamespaceId: *mut Oid, + ); } - GetIndexAmRoutine(arg_amhandler) + GetTempNamespaceState(arg_tempNamespaceId, arg_tempToastNamespaceId) }) } -pub unsafe fn GetIndexAmRoutineByAmId(arg_amoid: Oid, arg_noerror: bool) -> *mut IndexAmRoutine { +pub unsafe fn SetTempNamespaceState(arg_tempNamespaceId: Oid, arg_tempToastNamespaceId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetIndexAmRoutineByAmId(arg_amoid: Oid, arg_noerror: bool) -> *mut IndexAmRoutine; + fn SetTempNamespaceState(arg_tempNamespaceId: Oid, arg_tempToastNamespaceId: Oid); } - GetIndexAmRoutineByAmId(arg_amoid, arg_noerror) + SetTempNamespaceState(arg_tempNamespaceId, arg_tempToastNamespaceId) }) } -#[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) { +pub unsafe fn ResetTempTableNamespace() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginGetStats(arg_index: Relation, arg_stats: *mut GinStatsData); + fn ResetTempTableNamespace(); } - ginGetStats(arg_index, arg_stats) + ResetTempTableNamespace() }) } -pub unsafe fn ginUpdateStats(arg_index: Relation, arg_stats: *const GinStatsData) { +pub unsafe fn GetOverrideSearchPath(arg_context: MemoryContext) -> *mut OverrideSearchPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginUpdateStats(arg_index: Relation, arg_stats: *const GinStatsData); + fn GetOverrideSearchPath(arg_context: MemoryContext) -> *mut OverrideSearchPath; } - ginUpdateStats(arg_index, arg_stats) + GetOverrideSearchPath(arg_context) }) } -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)] -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)] -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)] -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 { +pub unsafe fn CopyOverrideSearchPath(arg_path: *mut OverrideSearchPath) -> *mut OverrideSearchPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionStartedDuringRecovery() -> bool; + fn CopyOverrideSearchPath(arg_path: *mut OverrideSearchPath) + -> *mut OverrideSearchPath; } - TransactionStartedDuringRecovery() + CopyOverrideSearchPath(arg_path) }) } -extern "C" { - pub static mut ShmemVariableCache: VariableCache; -} -pub unsafe fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool { +pub unsafe fn OverrideSearchPathMatchesCurrent(arg_path: *mut OverrideSearchPath) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool; + fn OverrideSearchPathMatchesCurrent(arg_path: *mut OverrideSearchPath) -> bool; } - TransactionIdDidCommit(arg_transactionId) + OverrideSearchPathMatchesCurrent(arg_path) }) } -pub unsafe fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool { +pub unsafe fn PushOverrideSearchPath(arg_newpath: *mut OverrideSearchPath) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool; + fn PushOverrideSearchPath(arg_newpath: *mut OverrideSearchPath); } - TransactionIdDidAbort(arg_transactionId) + PushOverrideSearchPath(arg_newpath) }) } -pub unsafe fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool { +pub unsafe fn PopOverrideSearchPath() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool; + fn PopOverrideSearchPath(); } - TransactionIdIsKnownCompleted(arg_transactionId) + PopOverrideSearchPath() }) } -pub unsafe fn TransactionIdAbort(arg_transactionId: TransactionId) { +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 TransactionIdAbort(arg_transactionId: TransactionId); + fn get_collation_oid(arg_collname: *mut List, arg_missing_ok: bool) -> Oid; } - TransactionIdAbort(arg_transactionId) + get_collation_oid(arg_collname, arg_missing_ok) }) } -pub unsafe fn TransactionIdCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, -) { +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 TransactionIdCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - ); + fn get_conversion_oid(arg_conname: *mut List, arg_missing_ok: bool) -> Oid; } - TransactionIdCommitTree(arg_xid, arg_nxids, arg_xids) + get_conversion_oid(arg_conname, arg_missing_ok) }) } -pub unsafe fn TransactionIdAsyncCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - arg_lsn: XLogRecPtr, -) { +pub unsafe fn FindDefaultConversionProc(arg_for_encoding: int32, arg_to_encoding: int32) -> Oid { 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, - ); + fn FindDefaultConversionProc(arg_for_encoding: int32, arg_to_encoding: int32) -> Oid; } - TransactionIdAsyncCommitTree(arg_xid, arg_nxids, arg_xids, arg_lsn) + FindDefaultConversionProc(arg_for_encoding, arg_to_encoding) }) } -pub unsafe fn TransactionIdAbortTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, -) { +pub unsafe fn InitializeSearchPath() { 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, - ); + fn InitializeSearchPath(); } - TransactionIdAbortTree(arg_xid, arg_nxids, arg_xids) + InitializeSearchPath() }) } -pub unsafe fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { +pub unsafe fn AtEOXact_Namespace(arg_isCommit: bool, arg_parallel: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; + fn AtEOXact_Namespace(arg_isCommit: bool, arg_parallel: bool); } - TransactionIdPrecedes(arg_id1, arg_id2) + AtEOXact_Namespace(arg_isCommit, arg_parallel) }) } -pub unsafe fn TransactionIdPrecedesOrEquals( - arg_id1: TransactionId, - arg_id2: TransactionId, -) -> bool { +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 TransactionIdPrecedesOrEquals( - arg_id1: TransactionId, - arg_id2: TransactionId, - ) -> bool; + fn AtEOSubXact_Namespace( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - TransactionIdPrecedesOrEquals(arg_id1, arg_id2) + AtEOSubXact_Namespace(arg_isCommit, arg_mySubid, arg_parentSubid) }) } -pub unsafe fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { +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 TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; + fn fetch_search_path(arg_includeImplicit: bool) -> *mut List; } - TransactionIdFollows(arg_id1, arg_id2) + fetch_search_path(arg_includeImplicit) }) } -pub unsafe fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { +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 TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) - -> bool; + fn fetch_search_path_array( + arg_sarray: *mut Oid, + arg_sarray_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - TransactionIdFollowsOrEquals(arg_id1, arg_id2) + fetch_search_path_array(arg_sarray, arg_sarray_len) }) } -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; +#[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() } - 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; +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() } - TransactionIdGetCommitLSN(arg_xid) - }) + } } -pub unsafe fn GetNewTransactionId(arg_isSubXact: bool) -> TransactionId { +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 GetNewTransactionId(arg_isSubXact: bool) -> TransactionId; + fn EnumValuesCreate(arg_enumTypeOid: Oid, arg_vals: *mut List); } - GetNewTransactionId(arg_isSubXact) + EnumValuesCreate(arg_enumTypeOid, arg_vals) }) } -pub unsafe fn ReadNewTransactionId() -> TransactionId { +pub unsafe fn EnumValuesDelete(arg_enumTypeOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReadNewTransactionId() -> TransactionId; + fn EnumValuesDelete(arg_enumTypeOid: Oid); } - ReadNewTransactionId() + EnumValuesDelete(arg_enumTypeOid) }) } -pub unsafe fn SetTransactionIdLimit( - arg_oldest_datfrozenxid: TransactionId, - arg_oldest_datoid: Oid, +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 SetTransactionIdLimit( - arg_oldest_datfrozenxid: TransactionId, - arg_oldest_datoid: Oid, + 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, ); } - 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() + AddEnumLabel(arg_enumTypeOid, arg_newVal, arg_neighbor, arg_newValIsAfter, arg_skipIfExists) }) } -pub unsafe fn GetNewObjectId() -> Oid { +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 GetNewObjectId() -> Oid; + fn RenameEnumLabel( + arg_enumTypeOid: Oid, + arg_oldVal: *const ::std::os::raw::c_char, + arg_newVal: *const ::std::os::raw::c_char, + ); } - GetNewObjectId() + RenameEnumLabel(arg_enumTypeOid, arg_oldVal, arg_newVal) }) } #[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 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 HeapTupleFields__bindgen_ty_1 { +impl Default for FormData_pg_operator { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -40361,7 +35687,32 @@ impl Default for HeapTupleFields__bindgen_ty_1 { } } } -impl Default for HeapTupleFields { +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 { @@ -40370,29 +35721,25 @@ impl Default for HeapTupleFields { } } } +pub type Form_pg_proc = *mut FormData_pg_proc; #[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, +#[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 HeapTupleHeaderData__bindgen_ty_1 { +impl Default for FormData_pg_trigger { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -40401,7 +35748,39 @@ impl Default for HeapTupleHeaderData__bindgen_ty_1 { } } } -impl Default for HeapTupleHeaderData { +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 { @@ -40410,1973 +35789,1237 @@ 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 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 heap_compute_data_size( - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> Size { +pub unsafe fn DeleteComments(arg_oid: Oid, arg_classoid: Oid, arg_subid: int32) { 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; + fn DeleteComments(arg_oid: Oid, arg_classoid: Oid, arg_subid: int32); } - heap_compute_data_size(arg_tupleDesc, arg_values, arg_isnull) + DeleteComments(arg_oid, arg_classoid, arg_subid) }) } -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, +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 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, + fn CreateComments( + arg_oid: Oid, + arg_classoid: Oid, + arg_subid: int32, + arg_comment: *mut ::std::os::raw::c_char, ); } - heap_fill_tuple( - arg_tupleDesc, - arg_values, - arg_isnull, - arg_data, - arg_data_size, - arg_infomask, - arg_bit, - ) + CreateComments(arg_oid, arg_classoid, arg_subid, arg_comment) }) } -pub unsafe fn heap_attisnull(arg_tup: HeapTuple, arg_attnum: ::std::os::raw::c_int) -> bool { +pub unsafe fn DeleteSharedComments(arg_oid: Oid, arg_classoid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn heap_attisnull(arg_tup: HeapTuple, arg_attnum: ::std::os::raw::c_int) -> bool; + fn DeleteSharedComments(arg_oid: Oid, arg_classoid: Oid); } - heap_attisnull(arg_tup, arg_attnum) + DeleteSharedComments(arg_oid, arg_classoid) }) } -pub unsafe fn nocachegetattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_att: TupleDesc, -) -> Datum { +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 nocachegetattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_att: TupleDesc, - ) -> Datum; + fn CreateSharedComments( + arg_oid: Oid, + arg_classoid: Oid, + arg_comment: *mut ::std::os::raw::c_char, + ); } - nocachegetattr(arg_tup, arg_attnum, arg_att) + CreateSharedComments(arg_oid, arg_classoid, arg_comment) }) } -pub unsafe fn heap_getsysattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, - arg_isnull: *mut bool, -) -> Datum { +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 heap_getsysattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, - arg_isnull: *mut bool, - ) -> Datum; + fn GetComment( + arg_oid: Oid, + arg_classoid: Oid, + arg_subid: int32, + ) -> *mut ::std::os::raw::c_char; } - heap_getsysattr(arg_tup, arg_attnum, arg_tupleDesc, arg_isnull) + GetComment(arg_oid, arg_classoid, arg_subid) }) } -pub unsafe fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple { +pub unsafe fn createdb(arg_pstate: *mut ParseState, arg_stmt: *const CreatedbStmt) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple; + fn createdb(arg_pstate: *mut ParseState, arg_stmt: *const CreatedbStmt) -> Oid; } - heap_copytuple(arg_tuple) + createdb(arg_pstate, arg_stmt) }) } -pub unsafe fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple) { +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 heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple); + fn dropdb(arg_dbname: *const ::std::os::raw::c_char, arg_missing_ok: bool); } - heap_copytuple_with_tuple(arg_src, arg_dest) + dropdb(arg_dbname, arg_missing_ok) }) } -pub unsafe fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum { +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 heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum; + fn RenameDatabase( + arg_oldname: *const ::std::os::raw::c_char, + arg_newname: *const ::std::os::raw::c_char, + ) -> ObjectAddress; } - heap_copy_tuple_as_datum(arg_tuple, arg_tupleDesc) + RenameDatabase(arg_oldname, arg_newname) }) } -pub unsafe fn heap_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> HeapTuple { +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 heap_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> HeapTuple; + fn AlterDatabase( + arg_pstate: *mut ParseState, + arg_stmt: *mut AlterDatabaseStmt, + arg_isTopLevel: bool, + ) -> Oid; } - heap_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) + AlterDatabase(arg_pstate, arg_stmt, arg_isTopLevel) }) } -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 { +pub unsafe fn AlterDatabaseSet(arg_stmt: *mut AlterDatabaseSetStmt) -> Oid { 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; + fn AlterDatabaseSet(arg_stmt: *mut AlterDatabaseSetStmt) -> Oid; } - heap_modify_tuple( - arg_tuple, - arg_tupleDesc, - arg_replValues, - arg_replIsnull, - arg_doReplace, - ) + AlterDatabaseSet(arg_stmt) }) } -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 { +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 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; + fn AlterDatabaseOwner( + arg_dbname: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, + ) -> ObjectAddress; } - heap_modify_tuple_by_cols( - arg_tuple, - arg_tupleDesc, - arg_nCols, - arg_replCols, - arg_replValues, - arg_replIsnull, - ) + AlterDatabaseOwner(arg_dbname, arg_newOwnerId) }) } -pub unsafe fn heap_deform_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { +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 heap_deform_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); + fn get_database_oid( + arg_dbname: *const ::std::os::raw::c_char, + arg_missingok: bool, + ) -> Oid; } - heap_deform_tuple(arg_tuple, arg_tupleDesc, arg_values, arg_isnull) + get_database_oid(arg_dbname, arg_missingok) }) } -pub unsafe fn heap_freetuple(arg_htup: HeapTuple) { +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 heap_freetuple(arg_htup: HeapTuple); + fn get_database_name(arg_dbid: Oid) -> *mut ::std::os::raw::c_char; } - heap_freetuple(arg_htup) + get_database_name(arg_dbid) }) } -pub unsafe fn heap_form_minimal_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> MinimalTuple { +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 heap_form_minimal_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> MinimalTuple; + 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, + ); } - heap_form_minimal_tuple(arg_tupleDescriptor, arg_values, arg_isnull) + check_encoding_locale_matches(arg_encoding, arg_collate, arg_ctype) }) } -pub unsafe fn heap_free_minimal_tuple(arg_mtup: MinimalTuple) { +pub unsafe fn RemoveObjects(arg_stmt: *mut DropStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn heap_free_minimal_tuple(arg_mtup: MinimalTuple); + fn RemoveObjects(arg_stmt: *mut DropStmt); } - heap_free_minimal_tuple(arg_mtup) + RemoveObjects(arg_stmt) }) } -pub unsafe fn heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple { +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 heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple; + 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; } - heap_copy_minimal_tuple(arg_mtup) + 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 heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple { +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 heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple; + fn ReindexIndex( + arg_indexRelation: *mut RangeVar, + arg_options: ::std::os::raw::c_int, + ) -> Oid; } - heap_tuple_from_minimal_tuple(arg_mtup) + ReindexIndex(arg_indexRelation, arg_options) }) } -pub unsafe fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple { +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 minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple; + fn ReindexTable(arg_relation: *mut RangeVar, arg_options: ::std::os::raw::c_int) + -> Oid; } - minimal_tuple_from_heap_tuple(arg_htup) + ReindexTable(arg_relation, arg_options) }) } -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, +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 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, + fn ReindexMultipleTables( + arg_objectName: *const ::std::os::raw::c_char, + arg_objectKind: ReindexObjectType, + arg_options: ::std::os::raw::c_int, ); } - add_bool_reloption(arg_kinds, arg_name, arg_desc, arg_default_val) + ReindexMultipleTables(arg_objectName, arg_objectKind, arg_options) }) } -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, -) { +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 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, - ); + 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; } - add_int_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_min_val, - arg_max_val, - ) + makeObjectName(arg_name1, arg_name2, arg_label) }) } -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, -) { +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 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, - ); + 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; } - add_real_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_min_val, - arg_max_val, - ) + ChooseRelationName(arg_name1, arg_name2, arg_label, arg_namespaceid) }) } -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, -) { +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 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, - ); + fn CheckIndexCompatible( + arg_oldId: Oid, + arg_accessMethodName: *mut ::std::os::raw::c_char, + arg_attributeList: *mut List, + arg_exclusionOpNames: *mut List, + ) -> bool; } - add_string_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_validator, + CheckIndexCompatible( + arg_oldId, + arg_accessMethodName, + arg_attributeList, + arg_exclusionOpNames, ) }) } -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 { +pub unsafe fn GetDefaultOpClass(arg_type_id: Oid, arg_am_id: Oid) -> Oid { 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; + fn GetDefaultOpClass(arg_type_id: Oid, arg_am_id: Oid) -> Oid; } - transformRelOptions( - arg_oldOptions, - arg_defList, - arg_namspace, - arg_validnsps, - arg_ignoreOids, - arg_isReset, - ) + GetDefaultOpClass(arg_type_id, arg_am_id) }) } -pub unsafe fn untransformRelOptions(arg_options: Datum) -> *mut List { +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 untransformRelOptions(arg_options: Datum) -> *mut List; + fn ResolveOpClass( + arg_opclass: *mut List, + arg_attrType: Oid, + arg_accessMethodName: *mut ::std::os::raw::c_char, + arg_accessMethodId: Oid, + ) -> Oid; } - untransformRelOptions(arg_options) + ResolveOpClass(arg_opclass, arg_attrType, arg_accessMethodName, arg_accessMethodId) }) } -pub unsafe fn extractRelOptions( - arg_tuple: HeapTuple, - arg_tupdesc: TupleDesc, - arg_amoptions: amoptions_function, -) -> *mut bytea { +pub unsafe fn CreateFunction( + arg_pstate: *mut ParseState, + arg_stmt: *mut CreateFunctionStmt, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn extractRelOptions( - arg_tuple: HeapTuple, - arg_tupdesc: TupleDesc, - arg_amoptions: amoptions_function, - ) -> *mut bytea; + fn CreateFunction( + arg_pstate: *mut ParseState, + arg_stmt: *mut CreateFunctionStmt, + ) -> ObjectAddress; } - extractRelOptions(arg_tuple, arg_tupdesc, arg_amoptions) + CreateFunction(arg_pstate, arg_stmt) }) } -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 { +pub unsafe fn RemoveFunctionById(arg_funcOid: Oid) { 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; + fn RemoveFunctionById(arg_funcOid: Oid); } - parseRelOptions(arg_options, arg_validate, arg_kind, arg_numrelopts) + RemoveFunctionById(arg_funcOid) }) } -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 { +pub unsafe fn SetFunctionReturnType(arg_funcOid: Oid, arg_newRetType: Oid) { 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; + fn SetFunctionReturnType(arg_funcOid: Oid, arg_newRetType: Oid); } - allocateReloptStruct(arg_base, arg_options, arg_numoptions) + SetFunctionReturnType(arg_funcOid, arg_newRetType) }) } -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, +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 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, + fn SetFunctionArgType( + arg_funcOid: Oid, + arg_argIndex: ::std::os::raw::c_int, + arg_newArgType: Oid, ); } - fillRelOptions( - arg_rdopts, - arg_basesize, - arg_options, - arg_numoptions, - arg_validate, - arg_elems, - arg_nelems, - ) + SetFunctionArgType(arg_funcOid, arg_argIndex, arg_newArgType) }) } -pub unsafe fn default_reloptions( - arg_reloptions: Datum, - arg_validate: bool, - arg_kind: relopt_kind, -) -> *mut bytea { +pub unsafe fn AlterFunction( + arg_pstate: *mut ParseState, + arg_stmt: *mut AlterFunctionStmt, +) -> ObjectAddress { 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; + fn AlterFunction( + arg_pstate: *mut ParseState, + arg_stmt: *mut AlterFunctionStmt, + ) -> ObjectAddress; } - default_reloptions(arg_reloptions, arg_validate, arg_kind) + AlterFunction(arg_pstate, arg_stmt) }) } -pub unsafe fn heap_reloptions( - arg_relkind: ::std::os::raw::c_char, - arg_reloptions: Datum, - arg_validate: bool, -) -> *mut bytea { +pub unsafe fn CreateCast(arg_stmt: *mut CreateCastStmt) -> ObjectAddress { 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; + fn CreateCast(arg_stmt: *mut CreateCastStmt) -> ObjectAddress; } - heap_reloptions(arg_relkind, arg_reloptions, arg_validate) + CreateCast(arg_stmt) }) } -pub unsafe fn view_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { +pub unsafe fn DropCastById(arg_castOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn view_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; + fn DropCastById(arg_castOid: Oid); } - view_reloptions(arg_reloptions, arg_validate) + DropCastById(arg_castOid) }) } -pub unsafe fn index_reloptions( - arg_amoptions: amoptions_function, - arg_reloptions: Datum, - arg_validate: bool, -) -> *mut bytea { +pub unsafe fn CreateTransform(arg_stmt: *mut CreateTransformStmt) -> ObjectAddress { 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; + fn CreateTransform(arg_stmt: *mut CreateTransformStmt) -> ObjectAddress; } - index_reloptions(arg_amoptions, arg_reloptions, arg_validate) + CreateTransform(arg_stmt) }) } -pub unsafe fn attribute_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { +pub unsafe fn DropTransformById(arg_transformOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn attribute_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; + fn DropTransformById(arg_transformOid: Oid); } - attribute_reloptions(arg_reloptions, arg_validate) + DropTransformById(arg_transformOid) }) } -pub unsafe fn tablespace_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { +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 tablespace_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; + fn IsThereFunctionInNamespace( + arg_proname: *const ::std::os::raw::c_char, + arg_pronargs: ::std::os::raw::c_int, + arg_proargtypes: *mut oidvector, + arg_nspOid: Oid, + ); } - tablespace_reloptions(arg_reloptions, arg_validate) + IsThereFunctionInNamespace(arg_proname, arg_pronargs, arg_proargtypes, arg_nspOid) }) } -pub unsafe fn AlterTableGetRelOptionsLockLevel(arg_defList: *mut List) -> LOCKMODE { +pub unsafe fn ExecuteDoStmt(arg_stmt: *mut DoStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AlterTableGetRelOptionsLockLevel(arg_defList: *mut List) -> LOCKMODE; + fn ExecuteDoStmt(arg_stmt: *mut DoStmt); } - AlterTableGetRelOptionsLockLevel(arg_defList) + ExecuteDoStmt(arg_stmt) }) } -pub unsafe fn SpinlockSemas() -> ::std::os::raw::c_int { +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 SpinlockSemas() -> ::std::os::raw::c_int; + fn get_cast_oid( + arg_sourcetypeid: Oid, + arg_targettypeid: Oid, + arg_missing_ok: bool, + ) -> Oid; } - SpinlockSemas() + get_cast_oid(arg_sourcetypeid, arg_targettypeid, arg_missing_ok) }) } -pub unsafe fn SpinlockSemaSize() -> Size { +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 SpinlockSemaSize() -> Size; + fn get_transform_oid(arg_type_id: Oid, arg_lang_id: Oid, arg_missing_ok: bool) -> Oid; } - SpinlockSemaSize() + get_transform_oid(arg_type_id, arg_lang_id, arg_missing_ok) }) } -#[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() +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, + ); } - } -} -#[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, + 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, + ) + }) } -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() +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; } - } -} -#[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, + DefineOperator(arg_names, arg_parameters) + }) } -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() +pub unsafe fn RemoveOperatorById(arg_operOid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RemoveOperatorById(arg_operOid: Oid); } - } -} -#[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, + RemoveOperatorById(arg_operOid) + }) } -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() +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; } - } -} -extern "C" { - pub static mut SharedInvalidMessageCounter: uint64; + AlterOperator(arg_stmt) + }) } -extern "C" { - pub static mut catchupInterruptPending: sig_atomic_t; +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 SendSharedInvalidMessages( - arg_msgs: *const SharedInvalidationMessage, - arg_n: ::std::os::raw::c_int, -) { +pub unsafe fn RemoveStatisticsById(arg_statsOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SendSharedInvalidMessages( - arg_msgs: *const SharedInvalidationMessage, - arg_n: ::std::os::raw::c_int, - ); + fn RemoveStatisticsById(arg_statsOid: Oid); } - SendSharedInvalidMessages(arg_msgs, arg_n) + RemoveStatisticsById(arg_statsOid) }) } -pub unsafe fn ReceiveSharedInvalidMessages( - arg_invalFunction: ::std::option::Option< - unsafe extern "C" fn(msg: *mut SharedInvalidationMessage), - >, - arg_resetFunction: ::std::option::Option, +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 ReceiveSharedInvalidMessages( - arg_invalFunction: ::std::option::Option< - unsafe extern "C" fn(msg: *mut SharedInvalidationMessage), - >, - arg_resetFunction: ::std::option::Option, + fn UpdateStatisticsForTypeChange( + arg_statsOid: Oid, + arg_relationOid: Oid, + arg_attnum: ::std::os::raw::c_int, + arg_oldColumnType: Oid, + arg_newColumnType: Oid, ); } - ReceiveSharedInvalidMessages(arg_invalFunction, arg_resetFunction) + UpdateStatisticsForTypeChange( + arg_statsOid, + arg_relationOid, + arg_attnum, + arg_oldColumnType, + arg_newColumnType, + ) }) } -pub unsafe fn HandleCatchupInterrupt() { +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 HandleCatchupInterrupt(); + fn DefineAggregate( + arg_pstate: *mut ParseState, + arg_name: *mut List, + arg_args: *mut List, + arg_oldstyle: bool, + arg_parameters: *mut List, + ) -> ObjectAddress; } - HandleCatchupInterrupt() + DefineAggregate(arg_pstate, arg_name, arg_args, arg_oldstyle, arg_parameters) }) } -pub unsafe fn ProcessCatchupInterrupt() { +pub unsafe fn DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcessCatchupInterrupt(); + fn DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress; } - ProcessCatchupInterrupt() + DefineOpClass(arg_stmt) }) } -pub unsafe fn xactGetCommittedInvalidationMessages( - arg_msgs: *mut *mut SharedInvalidationMessage, - arg_RelcacheInitFileInval: *mut bool, -) -> ::std::os::raw::c_int { +pub unsafe fn DefineOpFamily(arg_stmt: *mut CreateOpFamilyStmt) -> ObjectAddress { 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; + fn DefineOpFamily(arg_stmt: *mut CreateOpFamilyStmt) -> ObjectAddress; } - xactGetCommittedInvalidationMessages(arg_msgs, arg_RelcacheInitFileInval) + DefineOpFamily(arg_stmt) }) } -pub unsafe fn ProcessCommittedInvalidationMessages( - arg_msgs: *mut SharedInvalidationMessage, - arg_nmsgs: ::std::os::raw::c_int, - arg_RelcacheInitFileInval: bool, - arg_dbid: Oid, - arg_tsid: Oid, -) { +pub unsafe fn AlterOpFamily(arg_stmt: *mut AlterOpFamilyStmt) -> 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, - ); + fn AlterOpFamily(arg_stmt: *mut AlterOpFamilyStmt) -> Oid; } - ProcessCommittedInvalidationMessages( - arg_msgs, - arg_nmsgs, - arg_RelcacheInitFileInval, - arg_dbid, - arg_tsid, - ) + AlterOpFamily(arg_stmt) }) } -pub unsafe fn LocalExecuteInvalidationMessage(arg_msg: *mut SharedInvalidationMessage) { +pub unsafe fn RemoveOpClassById(arg_opclassOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LocalExecuteInvalidationMessage(arg_msg: *mut SharedInvalidationMessage); + fn RemoveOpClassById(arg_opclassOid: Oid); } - LocalExecuteInvalidationMessage(arg_msg) + RemoveOpClassById(arg_opclassOid) }) } -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 { +pub unsafe fn RemoveOpFamilyById(arg_opfamilyOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anytimestamp_typmod_check(arg_istz: bool, arg_typmod: int32) -> int32; + fn RemoveOpFamilyById(arg_opfamilyOid: Oid); } - anytimestamp_typmod_check(arg_istz, arg_typmod) + RemoveOpFamilyById(arg_opfamilyOid) }) } -pub unsafe fn GetCurrentTimestamp() -> TimestampTz { +pub unsafe fn RemoveAmOpEntryById(arg_entryOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentTimestamp() -> TimestampTz; + fn RemoveAmOpEntryById(arg_entryOid: Oid); } - GetCurrentTimestamp() + RemoveAmOpEntryById(arg_entryOid) }) } -pub unsafe fn GetSQLCurrentTimestamp(arg_typmod: int32) -> TimestampTz { +pub unsafe fn RemoveAmProcEntryById(arg_entryOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetSQLCurrentTimestamp(arg_typmod: int32) -> TimestampTz; + fn RemoveAmProcEntryById(arg_entryOid: Oid); } - GetSQLCurrentTimestamp(arg_typmod) + RemoveAmProcEntryById(arg_entryOid) }) } -pub unsafe fn GetSQLLocalTimestamp(arg_typmod: int32) -> Timestamp { +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 GetSQLLocalTimestamp(arg_typmod: int32) -> Timestamp; + fn IsThereOpClassInNamespace( + arg_opcname: *const ::std::os::raw::c_char, + arg_opcmethod: Oid, + arg_opcnamespace: Oid, + ); } - GetSQLLocalTimestamp(arg_typmod) + IsThereOpClassInNamespace(arg_opcname, arg_opcmethod, arg_opcnamespace) }) } -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, +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 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, + fn IsThereOpFamilyInNamespace( + arg_opfname: *const ::std::os::raw::c_char, + arg_opfmethod: Oid, + arg_opfnamespace: Oid, ); } - TimestampDifference(arg_start_time, arg_stop_time, arg_secs, arg_microsecs) + IsThereOpFamilyInNamespace(arg_opfname, arg_opfmethod, arg_opfnamespace) }) } -pub unsafe fn TimestampDifferenceMilliseconds( - arg_start_time: TimestampTz, - arg_stop_time: TimestampTz, -) -> ::std::os::raw::c_long { +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 TimestampDifferenceMilliseconds( - arg_start_time: TimestampTz, - arg_stop_time: TimestampTz, - ) -> ::std::os::raw::c_long; + fn get_opclass_oid( + arg_amID: Oid, + arg_opclassname: *mut List, + arg_missing_ok: bool, + ) -> Oid; } - TimestampDifferenceMilliseconds(arg_start_time, arg_stop_time) + get_opclass_oid(arg_amID, arg_opclassname, arg_missing_ok) }) } -pub unsafe fn TimestampDifferenceExceeds( - arg_start_time: TimestampTz, - arg_stop_time: TimestampTz, - arg_msec: ::std::os::raw::c_int, -) -> bool { +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 TimestampDifferenceExceeds( - arg_start_time: TimestampTz, - arg_stop_time: TimestampTz, - arg_msec: ::std::os::raw::c_int, - ) -> bool; + fn get_opfamily_oid( + arg_amID: Oid, + arg_opfamilyname: *mut List, + arg_missing_ok: bool, + ) -> Oid; } - TimestampDifferenceExceeds(arg_start_time, arg_stop_time, arg_msec) + get_opfamily_oid(arg_amID, arg_opfamilyname, arg_missing_ok) }) } -pub unsafe fn time_t_to_timestamptz(arg_tm: pg_time_t) -> TimestampTz { +pub unsafe fn DefineTSParser(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_t_to_timestamptz(arg_tm: pg_time_t) -> TimestampTz; + fn DefineTSParser(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; } - time_t_to_timestamptz(arg_tm) + DefineTSParser(arg_names, arg_parameters) }) } -pub unsafe fn timestamptz_to_time_t(arg_t: TimestampTz) -> pg_time_t { +pub unsafe fn RemoveTSParserById(arg_prsId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_to_time_t(arg_t: TimestampTz) -> pg_time_t; + fn RemoveTSParserById(arg_prsId: Oid); } - timestamptz_to_time_t(arg_t) + RemoveTSParserById(arg_prsId) }) } -pub unsafe fn timestamptz_to_str(arg_t: TimestampTz) -> *const ::std::os::raw::c_char { +pub unsafe fn DefineTSDictionary(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_to_str(arg_t: TimestampTz) -> *const ::std::os::raw::c_char; + fn DefineTSDictionary(arg_names: *mut List, arg_parameters: *mut List) + -> ObjectAddress; } - timestamptz_to_str(arg_t) + DefineTSDictionary(arg_names, arg_parameters) }) } -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 { +pub unsafe fn RemoveTSDictionaryById(arg_dictId: Oid) { 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; + fn RemoveTSDictionaryById(arg_dictId: Oid); } - tm2timestamp(arg_tm, arg_fsec, arg_tzp, arg_dt) + RemoveTSDictionaryById(arg_dictId) }) } -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 { +pub unsafe fn AlterTSDictionary(arg_stmt: *mut AlterTSDictionaryStmt) -> ObjectAddress { 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; + fn AlterTSDictionary(arg_stmt: *mut AlterTSDictionaryStmt) -> ObjectAddress; } - timestamp2tm(arg_dt, arg_tzp, arg_tm, arg_fsec, arg_tzn, arg_attimezone) + AlterTSDictionary(arg_stmt) }) } -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, -) { +pub unsafe fn DefineTSTemplate(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { 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, - ); + fn DefineTSTemplate(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; } - dt2time(arg_dt, arg_hour, arg_min, arg_sec, arg_fsec) + DefineTSTemplate(arg_names, arg_parameters) }) } -pub unsafe fn interval2tm( - arg_span: Interval, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, -) -> ::std::os::raw::c_int { +pub unsafe fn RemoveTSTemplateById(arg_tmplId: Oid) { 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; + fn RemoveTSTemplateById(arg_tmplId: Oid); } - interval2tm(arg_span, arg_tm, arg_fsec) + RemoveTSTemplateById(arg_tmplId) }) } -pub unsafe fn tm2interval( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_span: *mut Interval, -) -> ::std::os::raw::c_int { +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 tm2interval( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_span: *mut Interval, - ) -> ::std::os::raw::c_int; + fn DefineTSConfiguration( + arg_names: *mut List, + arg_parameters: *mut List, + arg_copied: *mut ObjectAddress, + ) -> ObjectAddress; } - tm2interval(arg_tm, arg_fsec, arg_span) + DefineTSConfiguration(arg_names, arg_parameters, arg_copied) }) } -pub unsafe fn SetEpochTimestamp() -> Timestamp { +pub unsafe fn RemoveTSConfigurationById(arg_cfgId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetEpochTimestamp() -> Timestamp; + fn RemoveTSConfigurationById(arg_cfgId: Oid); } - SetEpochTimestamp() + RemoveTSConfigurationById(arg_cfgId) }) } -pub unsafe fn GetEpochTime(arg_tm: *mut pg_tm) { +pub unsafe fn AlterTSConfiguration(arg_stmt: *mut AlterTSConfigurationStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetEpochTime(arg_tm: *mut pg_tm); + fn AlterTSConfiguration(arg_stmt: *mut AlterTSConfigurationStmt) -> ObjectAddress; } - GetEpochTime(arg_tm) + AlterTSConfiguration(arg_stmt) }) } -pub unsafe fn timestamp_cmp_internal( - arg_dt1: Timestamp, - arg_dt2: Timestamp, -) -> ::std::os::raw::c_int { +pub unsafe fn serialize_deflist(arg_deflist: *mut List) -> *mut text { 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; + fn serialize_deflist(arg_deflist: *mut List) -> *mut text; } - timestamp_cmp_internal(arg_dt1, arg_dt2) + serialize_deflist(arg_deflist) }) } -pub unsafe fn isoweek2j( - arg_year: ::std::os::raw::c_int, - arg_week: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn deserialize_deflist(arg_txt: Datum) -> *mut List { 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; + fn deserialize_deflist(arg_txt: Datum) -> *mut List; } - isoweek2j(arg_year, arg_week) + deserialize_deflist(arg_txt) }) } -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, -) { +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 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, - ); + fn AlterForeignServerOwner( + arg_name: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, + ) -> ObjectAddress; } - isoweek2date(arg_woy, arg_year, arg_mon, arg_mday) + AlterForeignServerOwner(arg_name, arg_newOwnerId) }) } -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, -) { +pub unsafe fn AlterForeignServerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid) { 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, - ); + fn AlterForeignServerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid); } - isoweekdate2date(arg_isoweek, arg_wday, arg_year, arg_mon, arg_mday) + AlterForeignServerOwner_oid(arg_arg1, arg_newOwnerId) }) } -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 { +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 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; + fn AlterForeignDataWrapperOwner( + arg_name: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, + ) -> ObjectAddress; } - date2isoweek(arg_year, arg_mon, arg_mday) + AlterForeignDataWrapperOwner(arg_name, arg_newOwnerId) }) } -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 { +pub unsafe fn AlterForeignDataWrapperOwner_oid(arg_fwdId: Oid, arg_newOwnerId: Oid) { 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; + fn AlterForeignDataWrapperOwner_oid(arg_fwdId: Oid, arg_newOwnerId: Oid); } - date2isoyear(arg_year, arg_mon, arg_mday) + AlterForeignDataWrapperOwner_oid(arg_fwdId, arg_newOwnerId) }) } -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 { +pub unsafe fn CreateForeignDataWrapper(arg_stmt: *mut CreateFdwStmt) -> ObjectAddress { 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; + fn CreateForeignDataWrapper(arg_stmt: *mut CreateFdwStmt) -> ObjectAddress; } - date2isoyearday(arg_year, arg_mon, arg_mday) + CreateForeignDataWrapper(arg_stmt) }) } -#[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) { +pub unsafe fn AlterForeignDataWrapper(arg_stmt: *mut AlterFdwStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentDateTime(arg_tm: *mut pg_tm); + fn AlterForeignDataWrapper(arg_stmt: *mut AlterFdwStmt) -> ObjectAddress; } - GetCurrentDateTime(arg_tm) + AlterForeignDataWrapper(arg_stmt) }) } -pub unsafe fn GetCurrentTimeUsec( - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - arg_tzp: *mut ::std::os::raw::c_int, -) { +pub unsafe fn RemoveForeignDataWrapperById(arg_fdwId: Oid) { 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, - ); + fn RemoveForeignDataWrapperById(arg_fdwId: Oid); } - GetCurrentTimeUsec(arg_tm, arg_fsec, arg_tzp) + RemoveForeignDataWrapperById(arg_fdwId) }) } -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, -) { +pub unsafe fn CreateForeignServer(arg_stmt: *mut CreateForeignServerStmt) -> ObjectAddress { 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, - ); + fn CreateForeignServer(arg_stmt: *mut CreateForeignServerStmt) -> ObjectAddress; } - j2date(arg_jd, arg_year, arg_month, arg_day) + CreateForeignServer(arg_stmt) }) } -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 { +pub unsafe fn AlterForeignServer(arg_stmt: *mut AlterForeignServerStmt) -> ObjectAddress { 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; + fn AlterForeignServer(arg_stmt: *mut AlterForeignServerStmt) -> ObjectAddress; } - date2j(arg_year, arg_month, arg_day) + AlterForeignServer(arg_stmt) }) } -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 { +pub unsafe fn RemoveForeignServerById(arg_srvId: Oid) { 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; + fn RemoveForeignServerById(arg_srvId: Oid); } - ParseDateTime( - arg_timestr, - arg_workbuf, - arg_buflen, - arg_field, - arg_ftype, - arg_maxfields, - arg_numfields, - ) + RemoveForeignServerById(arg_srvId) }) } -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 { +pub unsafe fn CreateUserMapping(arg_stmt: *mut CreateUserMappingStmt) -> ObjectAddress { 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; + fn CreateUserMapping(arg_stmt: *mut CreateUserMappingStmt) -> ObjectAddress; } - DecodeDateTime( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) + CreateUserMapping(arg_stmt) }) } -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 { +pub unsafe fn AlterUserMapping(arg_stmt: *mut AlterUserMappingStmt) -> ObjectAddress { 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; + fn AlterUserMapping(arg_stmt: *mut AlterUserMappingStmt) -> ObjectAddress; } - DecodeTimezone(arg_str_, arg_tzp) + AlterUserMapping(arg_stmt) }) } -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 { +pub unsafe fn RemoveUserMapping(arg_stmt: *mut DropUserMappingStmt) -> Oid { 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; + fn RemoveUserMapping(arg_stmt: *mut DropUserMappingStmt) -> Oid; } - DecodeTimeOnly( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) + RemoveUserMapping(arg_stmt) }) } -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 { +pub unsafe fn RemoveUserMappingById(arg_umId: Oid) { 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; + fn RemoveUserMappingById(arg_umId: Oid); } - DecodeInterval( - arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec, - ) + RemoveUserMappingById(arg_umId) }) } -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 { +pub unsafe fn CreateForeignTable(arg_stmt: *mut CreateForeignTableStmt, arg_relid: Oid) { 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; + fn CreateForeignTable(arg_stmt: *mut CreateForeignTableStmt, arg_relid: Oid); } - DecodeISO8601Interval(arg_str_, arg_dtype, arg_tm, arg_fsec) + CreateForeignTable(arg_stmt, arg_relid) }) } -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, -) { +pub unsafe fn ImportForeignSchema(arg_stmt: *mut ImportForeignSchemaStmt) { 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, - ); + fn ImportForeignSchema(arg_stmt: *mut ImportForeignSchemaStmt); } - DateTimeParseError(arg_dterr, arg_str_, arg_datatype) + ImportForeignSchema(arg_stmt) }) } -pub unsafe fn DetermineTimeZoneOffset( - arg_tm: *mut pg_tm, - arg_tzp: *mut pg_tz, -) -> ::std::os::raw::c_int { +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 DetermineTimeZoneOffset( - arg_tm: *mut pg_tm, - arg_tzp: *mut pg_tz, - ) -> ::std::os::raw::c_int; + fn transformGenericOptions( + arg_catalogId: Oid, + arg_oldOptions: Datum, + arg_options: *mut List, + arg_fdwvalidator: Oid, + ) -> Datum; } - DetermineTimeZoneOffset(arg_tm, arg_tzp) + transformGenericOptions(arg_catalogId, arg_oldOptions, arg_options, arg_fdwvalidator) }) } -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 { +pub unsafe fn CreateAccessMethod(arg_stmt: *mut CreateAmStmt) -> ObjectAddress { 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; + fn CreateAccessMethod(arg_stmt: *mut CreateAmStmt) -> ObjectAddress; } - DetermineTimeZoneAbbrevOffset(arg_tm, arg_abbr, arg_tzp) + CreateAccessMethod(arg_stmt) }) } -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 { +pub unsafe fn RemoveAccessMethodById(arg_amOid: Oid) { 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; + fn RemoveAccessMethodById(arg_amOid: Oid); } - DetermineTimeZoneAbbrevOffsetTS(arg_ts, arg_abbr, arg_tzp, arg_isdst) + RemoveAccessMethodById(arg_amOid) }) } -pub unsafe fn EncodeDateOnly( - arg_tm: *mut pg_tm, - arg_style: ::std::os::raw::c_int, - arg_str_: *mut ::std::os::raw::c_char, -) { +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 EncodeDateOnly( - arg_tm: *mut pg_tm, - arg_style: ::std::os::raw::c_int, - arg_str_: *mut ::std::os::raw::c_char, - ); + fn get_index_am_oid( + arg_amname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - EncodeDateOnly(arg_tm, arg_style, arg_str_) + get_index_am_oid(arg_amname, arg_missing_ok) }) } -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, -) { +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 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, - ); + fn get_am_oid(arg_amname: *const ::std::os::raw::c_char, arg_missing_ok: bool) -> Oid; } - EncodeTimeOnly(arg_tm, arg_fsec, arg_print_tz, arg_tz, arg_style, arg_str_) + get_am_oid(arg_amname, arg_missing_ok) }) } -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, -) { +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 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, - ); + fn get_am_name(arg_amOid: Oid) -> *mut ::std::os::raw::c_char; } - EncodeDateTime( - arg_tm, - arg_fsec, - arg_print_tz, - arg_tz, - arg_tzn, - arg_style, - arg_str_, - ) + get_am_name(arg_amOid) }) } -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, -) { +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 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, - ); + fn defGetString(arg_def: *mut DefElem) -> *mut ::std::os::raw::c_char; } - EncodeInterval(arg_tm, arg_fsec, arg_style, arg_str_) + defGetString(arg_def) }) } -pub unsafe fn EncodeSpecialTimestamp(arg_dt: Timestamp, arg_str_: *mut ::std::os::raw::c_char) { +pub unsafe fn defGetNumeric(arg_def: *mut DefElem) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EncodeSpecialTimestamp(arg_dt: Timestamp, arg_str_: *mut ::std::os::raw::c_char); + fn defGetNumeric(arg_def: *mut DefElem) -> f64; } - EncodeSpecialTimestamp(arg_dt, arg_str_) + defGetNumeric(arg_def) }) } -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 { +pub unsafe fn defGetBoolean(arg_def: *mut DefElem) -> bool { 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; + fn defGetBoolean(arg_def: *mut DefElem) -> bool; } - ValidateDate(arg_fmask, arg_isjulian, arg_is2digits, arg_bc, arg_tm) + defGetBoolean(arg_def) }) } -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 { +pub unsafe fn defGetInt32(arg_def: *mut DefElem) -> int32 { 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; + fn defGetInt32(arg_def: *mut DefElem) -> int32; } - DecodeTimezoneAbbrev(arg_field, arg_lowtoken, arg_offset, arg_tz) + defGetInt32(arg_def) }) } -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 { +pub unsafe fn defGetInt64(arg_def: *mut DefElem) -> int64 { 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; + fn defGetInt64(arg_def: *mut DefElem) -> int64; } - DecodeSpecial(arg_field, arg_lowtoken, arg_val) + defGetInt64(arg_def) }) } -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 { +pub unsafe fn defGetQualifiedName(arg_def: *mut DefElem) -> *mut List { 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; + fn defGetQualifiedName(arg_def: *mut DefElem) -> *mut List; } - DecodeUnits(arg_field, arg_lowtoken, arg_val) + defGetQualifiedName(arg_def) }) } -pub unsafe fn j2day(arg_jd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn defGetTypeName(arg_def: *mut DefElem) -> *mut TypeName { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j2day(arg_jd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn defGetTypeName(arg_def: *mut DefElem) -> *mut TypeName; } - j2day(arg_jd) + defGetTypeName(arg_def) }) } -pub unsafe fn TemporalTransform(arg_max_precis: int32, arg_node: *mut Node) -> *mut Node { +pub unsafe fn defGetTypeLength(arg_def: *mut DefElem) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TemporalTransform(arg_max_precis: int32, arg_node: *mut Node) -> *mut Node; + fn defGetTypeLength(arg_def: *mut DefElem) -> ::std::os::raw::c_int; } - TemporalTransform(arg_max_precis, arg_node) + defGetTypeLength(arg_def) }) } -pub unsafe fn CheckDateTokenTables() -> bool { +pub unsafe fn defGetStringList(arg_def: *mut DefElem) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckDateTokenTables() -> bool; + fn defGetStringList(arg_def: *mut DefElem) -> *mut List; } - CheckDateTokenTables() + defGetStringList(arg_def) }) } -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) - }) +#[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, } -pub unsafe fn InstallTimeZoneAbbrevs(arg_tbl: *mut TimeZoneAbbrevTable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstallTimeZoneAbbrevs(arg_tbl: *mut TimeZoneAbbrevTable); +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() } - 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; +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, } -extern "C" { - pub static mut XactDeferrable: bool; +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 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; +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, } -extern "C" { - pub static mut MyXactFlags: ::std::os::raw::c_int; +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() + } + } } -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, +#[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(Debug, Default, Copy, Clone)] -pub struct xl_xact_xinfo { - pub xinfo: uint32, +#[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 xl_xact_dbinfo { - pub dbId: Oid, - pub tsId: Oid, +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_1 { + pub address: ObjectAddress, + pub secondaryObject: ObjectAddress, } #[repr(C)] -#[derive(Debug, Default)] -pub struct xl_xact_subxacts { - pub nsubxacts: ::std::os::raw::c_int, - pub subxacts: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_2 { + pub objectId: Oid, + pub classId: Oid, + pub subcmds: *mut List, } -#[repr(C)] -#[derive(Debug, Default)] -pub struct xl_xact_relfilenodes { - pub nrels: ::std::os::raw::c_int, - pub xnodes: __IncompleteArrayField, +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)] -pub struct xl_xact_invals { - pub nmsgs: ::std::os::raw::c_int, - pub msgs: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_3 { + pub istmt: *mut InternalGrant, } -impl Default for xl_xact_invals { +impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_3 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -42386,44 +37029,77 @@ impl Default for xl_xact_invals { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct xl_xact_twophase { - pub xid: TransactionId, +#[derive(Debug, Copy, Clone)] +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_4 { + pub address: ObjectAddress, + pub operators: *mut List, + pub procedures: *mut List, } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct xl_xact_origin { - pub origin_lsn: XLogRecPtr, - pub origin_timestamp: TimestampTz, +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, Default, Copy, Clone)] -pub struct xl_xact_commit { - pub xact_time: TimestampTz, +#[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, Default, Copy, Clone)] -pub struct xl_xact_abort { - pub xact_time: TimestampTz, +#[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 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, +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_7 { + pub objtype: GrantObjectType, } -impl Default for xl_xact_parsed_commit { +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 { @@ -42434,16 +37110,13 @@ impl Default for xl_xact_parsed_commit { } #[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, +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 xl_xact_parsed_abort { +impl Default for EventTriggerData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -42452,2432 +37125,2611 @@ impl Default for xl_xact_parsed_abort { } } } -pub unsafe fn IsTransactionState() -> bool { +pub unsafe fn CreateEventTrigger(arg_stmt: *mut CreateEventTrigStmt) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsTransactionState() -> bool; + fn CreateEventTrigger(arg_stmt: *mut CreateEventTrigStmt) -> Oid; } - IsTransactionState() + CreateEventTrigger(arg_stmt) }) } -pub unsafe fn IsAbortedTransactionBlockState() -> bool { +pub unsafe fn RemoveEventTriggerById(arg_ctrigOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsAbortedTransactionBlockState() -> bool; + fn RemoveEventTriggerById(arg_ctrigOid: Oid); } - IsAbortedTransactionBlockState() + RemoveEventTriggerById(arg_ctrigOid) }) } -pub unsafe fn GetTopTransactionId() -> TransactionId { +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 GetTopTransactionId() -> TransactionId; + fn get_event_trigger_oid( + arg_trigname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - GetTopTransactionId() + get_event_trigger_oid(arg_trigname, arg_missing_ok) }) } -pub unsafe fn GetTopTransactionIdIfAny() -> TransactionId { +pub unsafe fn AlterEventTrigger(arg_stmt: *mut AlterEventTrigStmt) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetTopTransactionIdIfAny() -> TransactionId; + fn AlterEventTrigger(arg_stmt: *mut AlterEventTrigStmt) -> Oid; } - GetTopTransactionIdIfAny() + AlterEventTrigger(arg_stmt) }) } -pub unsafe fn GetCurrentTransactionId() -> TransactionId { +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 GetCurrentTransactionId() -> TransactionId; + fn AlterEventTriggerOwner( + arg_name: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, + ) -> ObjectAddress; } - GetCurrentTransactionId() + AlterEventTriggerOwner(arg_name, arg_newOwnerId) }) } -pub unsafe fn GetCurrentTransactionIdIfAny() -> TransactionId { +pub unsafe fn AlterEventTriggerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentTransactionIdIfAny() -> TransactionId; + fn AlterEventTriggerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid); } - GetCurrentTransactionIdIfAny() + AlterEventTriggerOwner_oid(arg_arg1, arg_newOwnerId) }) } -pub unsafe fn GetStableLatestTransactionId() -> TransactionId { +pub unsafe fn EventTriggerSupportsObjectType(arg_obtype: ObjectType) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetStableLatestTransactionId() -> TransactionId; + fn EventTriggerSupportsObjectType(arg_obtype: ObjectType) -> bool; } - GetStableLatestTransactionId() + EventTriggerSupportsObjectType(arg_obtype) }) } -pub unsafe fn GetCurrentSubTransactionId() -> SubTransactionId { +pub unsafe fn EventTriggerSupportsObjectClass(arg_objclass: ObjectClass) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentSubTransactionId() -> SubTransactionId; + fn EventTriggerSupportsObjectClass(arg_objclass: ObjectClass) -> bool; } - GetCurrentSubTransactionId() + EventTriggerSupportsObjectClass(arg_objclass) }) } -pub unsafe fn MarkCurrentTransactionIdLoggedIfAny() { +pub unsafe fn EventTriggerSupportsGrantObjectType(arg_objtype: GrantObjectType) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MarkCurrentTransactionIdLoggedIfAny(); + fn EventTriggerSupportsGrantObjectType(arg_objtype: GrantObjectType) -> bool; } - MarkCurrentTransactionIdLoggedIfAny() + EventTriggerSupportsGrantObjectType(arg_objtype) }) } -pub unsafe fn SubTransactionIsActive(arg_subxid: SubTransactionId) -> bool { +pub unsafe fn EventTriggerDDLCommandStart(arg_parsetree: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SubTransactionIsActive(arg_subxid: SubTransactionId) -> bool; + fn EventTriggerDDLCommandStart(arg_parsetree: *mut Node); } - SubTransactionIsActive(arg_subxid) + EventTriggerDDLCommandStart(arg_parsetree) }) } -pub unsafe fn GetCurrentCommandId(arg_used: bool) -> CommandId { +pub unsafe fn EventTriggerDDLCommandEnd(arg_parsetree: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentCommandId(arg_used: bool) -> CommandId; + fn EventTriggerDDLCommandEnd(arg_parsetree: *mut Node); } - GetCurrentCommandId(arg_used) + EventTriggerDDLCommandEnd(arg_parsetree) }) } -pub unsafe fn SetParallelStartTimestamps(arg_xact_ts: TimestampTz, arg_stmt_ts: TimestampTz) { +pub unsafe fn EventTriggerSQLDrop(arg_parsetree: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetParallelStartTimestamps(arg_xact_ts: TimestampTz, arg_stmt_ts: TimestampTz); + fn EventTriggerSQLDrop(arg_parsetree: *mut Node); } - SetParallelStartTimestamps(arg_xact_ts, arg_stmt_ts) + EventTriggerSQLDrop(arg_parsetree) }) } -pub unsafe fn GetCurrentTransactionStartTimestamp() -> TimestampTz { +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 GetCurrentTransactionStartTimestamp() -> TimestampTz; + fn EventTriggerTableRewrite( + arg_parsetree: *mut Node, + arg_tableOid: Oid, + arg_reason: ::std::os::raw::c_int, + ); } - GetCurrentTransactionStartTimestamp() + EventTriggerTableRewrite(arg_parsetree, arg_tableOid, arg_reason) }) } -pub unsafe fn GetCurrentStatementStartTimestamp() -> TimestampTz { +pub unsafe fn EventTriggerBeginCompleteQuery() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentStatementStartTimestamp() -> TimestampTz; + fn EventTriggerBeginCompleteQuery() -> bool; } - GetCurrentStatementStartTimestamp() + EventTriggerBeginCompleteQuery() }) } -pub unsafe fn GetCurrentTransactionStopTimestamp() -> TimestampTz { +pub unsafe fn EventTriggerEndCompleteQuery() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentTransactionStopTimestamp() -> TimestampTz; + fn EventTriggerEndCompleteQuery(); } - GetCurrentTransactionStopTimestamp() + EventTriggerEndCompleteQuery() }) } -pub unsafe fn SetCurrentStatementStartTimestamp() { +pub unsafe fn trackDroppedObjectsNeeded() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetCurrentStatementStartTimestamp(); + fn trackDroppedObjectsNeeded() -> bool; } - SetCurrentStatementStartTimestamp() + trackDroppedObjectsNeeded() }) } -pub unsafe fn GetCurrentTransactionNestLevel() -> ::std::os::raw::c_int { +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 GetCurrentTransactionNestLevel() -> ::std::os::raw::c_int; + fn EventTriggerSQLDropAddObject( + arg_object: *const ObjectAddress, + arg_original: bool, + arg_normal: bool, + ); } - GetCurrentTransactionNestLevel() + EventTriggerSQLDropAddObject(arg_object, arg_original, arg_normal) }) } -pub unsafe fn TransactionIdIsCurrentTransactionId(arg_xid: TransactionId) -> bool { +pub unsafe fn EventTriggerInhibitCommandCollection() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdIsCurrentTransactionId(arg_xid: TransactionId) -> bool; + fn EventTriggerInhibitCommandCollection(); } - TransactionIdIsCurrentTransactionId(arg_xid) + EventTriggerInhibitCommandCollection() }) } -pub unsafe fn CommandCounterIncrement() { +pub unsafe fn EventTriggerUndoInhibitCommandCollection() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CommandCounterIncrement(); + fn EventTriggerUndoInhibitCommandCollection(); } - CommandCounterIncrement() + EventTriggerUndoInhibitCommandCollection() }) } -pub unsafe fn ForceSyncCommit() { +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 ForceSyncCommit(); + fn EventTriggerCollectSimpleCommand( + arg_address: ObjectAddress, + arg_secondaryObject: ObjectAddress, + arg_parsetree: *mut Node, + ); } - ForceSyncCommit() + EventTriggerCollectSimpleCommand(arg_address, arg_secondaryObject, arg_parsetree) }) } -pub unsafe fn StartTransactionCommand() { +pub unsafe fn EventTriggerAlterTableStart(arg_parsetree: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StartTransactionCommand(); + fn EventTriggerAlterTableStart(arg_parsetree: *mut Node); } - StartTransactionCommand() + EventTriggerAlterTableStart(arg_parsetree) }) } -pub unsafe fn CommitTransactionCommand() { +pub unsafe fn EventTriggerAlterTableRelid(arg_objectId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CommitTransactionCommand(); + fn EventTriggerAlterTableRelid(arg_objectId: Oid); } - CommitTransactionCommand() + EventTriggerAlterTableRelid(arg_objectId) }) } -pub unsafe fn AbortCurrentTransaction() { +pub unsafe fn EventTriggerCollectAlterTableSubcmd( + arg_subcmd: *mut Node, + arg_address: ObjectAddress, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AbortCurrentTransaction(); + fn EventTriggerCollectAlterTableSubcmd( + arg_subcmd: *mut Node, + arg_address: ObjectAddress, + ); } - AbortCurrentTransaction() + EventTriggerCollectAlterTableSubcmd(arg_subcmd, arg_address) }) } -pub unsafe fn BeginTransactionBlock() { +pub unsafe fn EventTriggerAlterTableEnd() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BeginTransactionBlock(); + fn EventTriggerAlterTableEnd(); } - BeginTransactionBlock() + EventTriggerAlterTableEnd() }) } -pub unsafe fn EndTransactionBlock() -> bool { +pub unsafe fn EventTriggerCollectGrant(arg_istmt: *mut InternalGrant) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EndTransactionBlock() -> bool; + fn EventTriggerCollectGrant(arg_istmt: *mut InternalGrant); } - EndTransactionBlock() + EventTriggerCollectGrant(arg_istmt) }) } -pub unsafe fn PrepareTransactionBlock(arg_gid: *mut ::std::os::raw::c_char) -> bool { +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 PrepareTransactionBlock(arg_gid: *mut ::std::os::raw::c_char) -> bool; + fn EventTriggerCollectAlterOpFam( + arg_stmt: *mut AlterOpFamilyStmt, + arg_opfamoid: Oid, + arg_operators: *mut List, + arg_procedures: *mut List, + ); } - PrepareTransactionBlock(arg_gid) + EventTriggerCollectAlterOpFam(arg_stmt, arg_opfamoid, arg_operators, arg_procedures) }) } -pub unsafe fn UserAbortTransactionBlock() { +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 UserAbortTransactionBlock(); + fn EventTriggerCollectCreateOpClass( + arg_stmt: *mut CreateOpClassStmt, + arg_opcoid: Oid, + arg_operators: *mut List, + arg_procedures: *mut List, + ); } - UserAbortTransactionBlock() + EventTriggerCollectCreateOpClass(arg_stmt, arg_opcoid, arg_operators, arg_procedures) }) } -pub unsafe fn ReleaseSavepoint(arg_options: *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 ReleaseSavepoint(arg_options: *mut List); + fn EventTriggerCollectAlterTSConfig( + arg_stmt: *mut AlterTSConfigurationStmt, + arg_cfgId: Oid, + arg_dictIds: *mut Oid, + arg_ndicts: ::std::os::raw::c_int, + ); } - ReleaseSavepoint(arg_options) + EventTriggerCollectAlterTSConfig(arg_stmt, arg_cfgId, arg_dictIds, arg_ndicts) }) } -pub unsafe fn DefineSavepoint(arg_name: *mut ::std::os::raw::c_char) { +pub unsafe fn EventTriggerCollectAlterDefPrivs(arg_stmt: *mut AlterDefaultPrivilegesStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DefineSavepoint(arg_name: *mut ::std::os::raw::c_char); + fn EventTriggerCollectAlterDefPrivs(arg_stmt: *mut AlterDefaultPrivilegesStmt); } - DefineSavepoint(arg_name) + EventTriggerCollectAlterDefPrivs(arg_stmt) }) } -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 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 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); +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() } - BeginInternalSubTransaction(arg_name) - }) + } } -pub unsafe fn ReleaseCurrentSubTransaction() { +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 ReleaseCurrentSubTransaction(); + 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, + ); } - ReleaseCurrentSubTransaction() + ExplainQuery(arg_pstate, arg_stmt, arg_queryString, arg_params, arg_queryEnv, arg_dest) }) } -pub unsafe fn RollbackAndReleaseCurrentSubTransaction() { +pub unsafe fn NewExplainState() -> *mut ExplainState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RollbackAndReleaseCurrentSubTransaction(); + fn NewExplainState() -> *mut ExplainState; } - RollbackAndReleaseCurrentSubTransaction() + NewExplainState() }) } -pub unsafe fn IsSubTransaction() -> bool { +pub unsafe fn ExplainResultDesc(arg_stmt: *mut ExplainStmt) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsSubTransaction() -> bool; + fn ExplainResultDesc(arg_stmt: *mut ExplainStmt) -> TupleDesc; } - IsSubTransaction() + ExplainResultDesc(arg_stmt) }) } -pub unsafe fn EstimateTransactionStateSpace() -> Size { +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 EstimateTransactionStateSpace() -> Size; + 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, + ); } - EstimateTransactionStateSpace() + ExplainOneUtility( + arg_utilityStmt, + arg_into, + arg_es, + arg_queryString, + arg_params, + arg_queryEnv, + ) }) } -pub unsafe fn SerializeTransactionState( - arg_maxsize: Size, - arg_start_address: *mut ::std::os::raw::c_char, +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 SerializeTransactionState( - arg_maxsize: Size, - arg_start_address: *mut ::std::os::raw::c_char, + 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, ); } - SerializeTransactionState(arg_maxsize, arg_start_address) + ExplainOnePlan( + arg_plannedstmt, + arg_into, + arg_es, + arg_queryString, + arg_params, + arg_queryEnv, + arg_planduration, + ) }) } -pub unsafe fn StartParallelWorkerTransaction(arg_tstatespace: *mut ::std::os::raw::c_char) { +pub unsafe fn ExplainPrintPlan(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StartParallelWorkerTransaction(arg_tstatespace: *mut ::std::os::raw::c_char); + fn ExplainPrintPlan(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc); } - StartParallelWorkerTransaction(arg_tstatespace) + ExplainPrintPlan(arg_es, arg_queryDesc) }) } -pub unsafe fn EndParallelWorkerTransaction() { +pub unsafe fn ExplainPrintTriggers(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EndParallelWorkerTransaction(); + fn ExplainPrintTriggers(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc); } - EndParallelWorkerTransaction() + ExplainPrintTriggers(arg_es, arg_queryDesc) }) } -pub unsafe fn IsTransactionBlock() -> bool { +pub unsafe fn ExplainQueryText(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsTransactionBlock() -> bool; + fn ExplainQueryText(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc); } - IsTransactionBlock() + ExplainQueryText(arg_es, arg_queryDesc) }) } -pub unsafe fn IsTransactionOrTransactionBlock() -> bool { +pub unsafe fn ExplainBeginOutput(arg_es: *mut ExplainState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsTransactionOrTransactionBlock() -> bool; + fn ExplainBeginOutput(arg_es: *mut ExplainState); } - IsTransactionOrTransactionBlock() + ExplainBeginOutput(arg_es) }) } -pub unsafe fn TransactionBlockStatusCode() -> ::std::os::raw::c_char { +pub unsafe fn ExplainEndOutput(arg_es: *mut ExplainState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionBlockStatusCode() -> ::std::os::raw::c_char; + fn ExplainEndOutput(arg_es: *mut ExplainState); } - TransactionBlockStatusCode() + ExplainEndOutput(arg_es) }) } -pub unsafe fn AbortOutOfAnyTransaction() { +pub unsafe fn ExplainSeparatePlans(arg_es: *mut ExplainState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AbortOutOfAnyTransaction(); + fn ExplainSeparatePlans(arg_es: *mut ExplainState); } - AbortOutOfAnyTransaction() + ExplainSeparatePlans(arg_es) }) } -pub unsafe fn PreventTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, +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 PreventTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, + fn ExplainPropertyList( + arg_qlabel: *const ::std::os::raw::c_char, + arg_data: *mut List, + arg_es: *mut ExplainState, ); } - PreventTransactionChain(arg_isTopLevel, arg_stmtType) + ExplainPropertyList(arg_qlabel, arg_data, arg_es) }) } -pub unsafe fn RequireTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, +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 RequireTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, + fn ExplainPropertyListNested( + arg_qlabel: *const ::std::os::raw::c_char, + arg_data: *mut List, + arg_es: *mut ExplainState, ); } - RequireTransactionChain(arg_isTopLevel, arg_stmtType) + ExplainPropertyListNested(arg_qlabel, arg_data, arg_es) }) } -pub unsafe fn WarnNoTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, +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 WarnNoTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, + fn ExplainPropertyText( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: *const ::std::os::raw::c_char, + arg_es: *mut ExplainState, ); } - 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) + ExplainPropertyText(arg_qlabel, arg_value, arg_es) }) } -pub unsafe fn RegisterXactCallback( - arg_callback: XactCallback, - arg_arg: *mut ::std::os::raw::c_void, +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 RegisterXactCallback( - arg_callback: XactCallback, - arg_arg: *mut ::std::os::raw::c_void, + fn ExplainPropertyInteger( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: ::std::os::raw::c_int, + arg_es: *mut ExplainState, ); } - RegisterXactCallback(arg_callback, arg_arg) + ExplainPropertyInteger(arg_qlabel, arg_value, arg_es) }) } -pub unsafe fn UnregisterXactCallback( - arg_callback: XactCallback, - arg_arg: *mut ::std::os::raw::c_void, +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 UnregisterXactCallback( - arg_callback: XactCallback, - arg_arg: *mut ::std::os::raw::c_void, + fn ExplainPropertyLong( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: ::std::os::raw::c_long, + arg_es: *mut ExplainState, ); } - UnregisterXactCallback(arg_callback, arg_arg) + ExplainPropertyLong(arg_qlabel, arg_value, arg_es) }) } -pub unsafe fn RegisterSubXactCallback( - arg_callback: SubXactCallback, - arg_arg: *mut ::std::os::raw::c_void, +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 RegisterSubXactCallback( - arg_callback: SubXactCallback, - arg_arg: *mut ::std::os::raw::c_void, + fn ExplainPropertyFloat( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: f64, + arg_ndigits: ::std::os::raw::c_int, + arg_es: *mut ExplainState, ); } - RegisterSubXactCallback(arg_callback, arg_arg) + ExplainPropertyFloat(arg_qlabel, arg_value, arg_ndigits, arg_es) }) } -pub unsafe fn UnregisterSubXactCallback( - arg_callback: SubXactCallback, - arg_arg: *mut ::std::os::raw::c_void, +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 UnregisterSubXactCallback( - arg_callback: SubXactCallback, - arg_arg: *mut ::std::os::raw::c_void, + fn ExplainPropertyBool( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: bool, + arg_es: *mut ExplainState, ); } - UnregisterSubXactCallback(arg_callback, arg_arg) + ExplainPropertyBool(arg_qlabel, arg_value, arg_es) }) } -pub unsafe fn xactGetCommittedChildren(arg_ptr: *mut *mut TransactionId) -> ::std::os::raw::c_int { +pub unsafe fn CreateProceduralLanguage(arg_stmt: *mut CreatePLangStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xactGetCommittedChildren(arg_ptr: *mut *mut TransactionId) -> ::std::os::raw::c_int; + fn CreateProceduralLanguage(arg_stmt: *mut CreatePLangStmt) -> ObjectAddress; } - xactGetCommittedChildren(arg_ptr) + CreateProceduralLanguage(arg_stmt) }) } -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 { +pub unsafe fn DropProceduralLanguageById(arg_langOid: Oid) { 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; + fn DropProceduralLanguageById(arg_langOid: Oid); } - 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, - ) + DropProceduralLanguageById(arg_langOid) }) } -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 { +pub unsafe fn PLTemplateExists(arg_languageName: *const ::std::os::raw::c_char) -> bool { 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; + fn PLTemplateExists(arg_languageName: *const ::std::os::raw::c_char) -> bool; } - XactLogAbortRecord( - arg_abort_time, - arg_nsubxacts, - arg_subxacts, - arg_nrels, - arg_rels, - arg_xactflags, - arg_twophase_xid, - ) + PLTemplateExists(arg_languageName) }) } -pub unsafe fn xact_redo(arg_record: *mut XLogReaderState) { +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 xact_redo(arg_record: *mut XLogReaderState); + fn get_language_oid( + arg_langname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - xact_redo(arg_record) + get_language_oid(arg_langname, arg_missing_ok) }) } -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, -) { +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 ParseCommitRecord( - arg_info: uint8, - arg_xlrec: *mut xl_xact_commit, - arg_parsed: *mut xl_xact_parsed_commit, - ); + 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; } - ParseCommitRecord(arg_info, arg_xlrec, arg_parsed) + DefineRelation(arg_stmt, arg_relkind, arg_ownerId, arg_typaddress, arg_queryString) }) } -pub unsafe fn ParseAbortRecord( - arg_info: uint8, - arg_xlrec: *mut xl_xact_abort, - arg_parsed: *mut xl_xact_parsed_abort, -) { +pub unsafe fn RemoveRelations(arg_drop: *mut DropStmt) { 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, - ); + fn RemoveRelations(arg_drop: *mut DropStmt); } - ParseAbortRecord(arg_info, arg_xlrec, arg_parsed) + RemoveRelations(arg_drop) }) } -pub unsafe fn EnterParallelMode() { +pub unsafe fn AlterTableLookupRelation( + arg_stmt: *mut AlterTableStmt, + arg_lockmode: LOCKMODE, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EnterParallelMode(); + fn AlterTableLookupRelation( + arg_stmt: *mut AlterTableStmt, + arg_lockmode: LOCKMODE, + ) -> Oid; } - EnterParallelMode() + AlterTableLookupRelation(arg_stmt, arg_lockmode) }) } -pub unsafe fn ExitParallelMode() { +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 ExitParallelMode(); + fn AlterTable(arg_relid: Oid, arg_lockmode: LOCKMODE, arg_stmt: *mut AlterTableStmt); } - ExitParallelMode() + AlterTable(arg_relid, arg_lockmode, arg_stmt) }) } -pub unsafe fn IsInParallelMode() -> bool { +pub unsafe fn AlterTableGetLockLevel(arg_cmds: *mut List) -> LOCKMODE { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsInParallelMode() -> bool; + fn AlterTableGetLockLevel(arg_cmds: *mut List) -> LOCKMODE; } - IsInParallelMode() + AlterTableGetLockLevel(arg_cmds) }) } -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, +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 AcquireDeletionLock( - arg_object: *const ObjectAddress, - arg_flags: ::std::os::raw::c_int, + fn ATExecChangeOwner( + arg_relationOid: Oid, + arg_newOwnerId: Oid, + arg_recursing: bool, + arg_lockmode: LOCKMODE, ); } - AcquireDeletionLock(arg_object, arg_flags) + ATExecChangeOwner(arg_relationOid, arg_newOwnerId, arg_recursing, arg_lockmode) }) } -pub unsafe fn ReleaseDeletionLock(arg_object: *const ObjectAddress) { +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 ReleaseDeletionLock(arg_object: *const ObjectAddress); + fn AlterTableInternal(arg_relid: Oid, arg_cmds: *mut List, arg_recurse: bool); } - ReleaseDeletionLock(arg_object) + AlterTableInternal(arg_relid, arg_cmds, arg_recurse) }) } -pub unsafe fn performDeletion( - arg_object: *const ObjectAddress, - arg_behavior: DropBehavior, - arg_flags: ::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 performDeletion( - arg_object: *const ObjectAddress, - arg_behavior: DropBehavior, - arg_flags: ::std::os::raw::c_int, - ); + fn AlterTableMoveAll(arg_stmt: *mut AlterTableMoveAllStmt) -> Oid; } - performDeletion(arg_object, arg_behavior, arg_flags) + AlterTableMoveAll(arg_stmt) }) } -pub unsafe fn performMultipleDeletions( - arg_objects: *const ObjectAddresses, - arg_behavior: DropBehavior, - arg_flags: ::std::os::raw::c_int, -) { +pub unsafe fn AlterTableNamespace( + arg_stmt: *mut AlterObjectSchemaStmt, + arg_oldschema: *mut Oid, +) -> ObjectAddress { 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, - ); + fn AlterTableNamespace( + arg_stmt: *mut AlterObjectSchemaStmt, + arg_oldschema: *mut Oid, + ) -> ObjectAddress; } - performMultipleDeletions(arg_objects, arg_behavior, arg_flags) + AlterTableNamespace(arg_stmt, arg_oldschema) }) } -pub unsafe fn recordDependencyOnExpr( - arg_depender: *const ObjectAddress, - arg_expr: *mut Node, - arg_rtable: *mut List, - arg_behavior: DependencyType, +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 recordDependencyOnExpr( - arg_depender: *const ObjectAddress, - arg_expr: *mut Node, - arg_rtable: *mut List, - arg_behavior: DependencyType, + fn AlterTableNamespaceInternal( + arg_rel: Relation, + arg_oldNspOid: Oid, + arg_nspOid: Oid, + arg_objsMoved: *mut ObjectAddresses, ); } - recordDependencyOnExpr(arg_depender, arg_expr, arg_rtable, arg_behavior) + AlterTableNamespaceInternal(arg_rel, arg_oldNspOid, arg_nspOid, arg_objsMoved) }) } -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, +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 recordDependencyOnSingleRelExpr( - arg_depender: *const ObjectAddress, - arg_expr: *mut Node, - arg_relId: Oid, - arg_behavior: DependencyType, - arg_self_behavior: DependencyType, - arg_reverse_self: bool, + fn AlterRelationNamespaceInternal( + arg_classRel: Relation, + arg_relOid: Oid, + arg_oldNspOid: Oid, + arg_newNspOid: Oid, + arg_hasDependEntry: bool, + arg_objsMoved: *mut ObjectAddresses, ); } - recordDependencyOnSingleRelExpr( - arg_depender, - arg_expr, - arg_relId, - arg_behavior, - arg_self_behavior, - arg_reverse_self, + AlterRelationNamespaceInternal( + arg_classRel, + arg_relOid, + arg_oldNspOid, + arg_newNspOid, + arg_hasDependEntry, + arg_objsMoved, ) }) } -pub unsafe fn getObjectClass(arg_object: *const ObjectAddress) -> ObjectClass { +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 getObjectClass(arg_object: *const ObjectAddress) -> ObjectClass; + fn CheckTableNotInUse(arg_rel: Relation, arg_stmt: *const ::std::os::raw::c_char); } - getObjectClass(arg_object) + CheckTableNotInUse(arg_rel, arg_stmt) }) } -pub unsafe fn new_object_addresses() -> *mut ObjectAddresses { +pub unsafe fn ExecuteTruncate(arg_stmt: *mut TruncateStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn new_object_addresses() -> *mut ObjectAddresses; + fn ExecuteTruncate(arg_stmt: *mut TruncateStmt); } - new_object_addresses() + ExecuteTruncate(arg_stmt) }) } -pub unsafe fn add_exact_object_address( - arg_object: *const ObjectAddress, - arg_addrs: *mut ObjectAddresses, -) { +pub unsafe fn SetRelationHasSubclass(arg_relationId: Oid, arg_relhassubclass: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_exact_object_address( - arg_object: *const ObjectAddress, - arg_addrs: *mut ObjectAddresses, - ); + fn SetRelationHasSubclass(arg_relationId: Oid, arg_relhassubclass: bool); } - add_exact_object_address(arg_object, arg_addrs) + SetRelationHasSubclass(arg_relationId, arg_relhassubclass) }) } -pub unsafe fn object_address_present( - arg_object: *const ObjectAddress, - arg_addrs: *const ObjectAddresses, -) -> bool { +pub unsafe fn renameatt(arg_stmt: *mut RenameStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn object_address_present( - arg_object: *const ObjectAddress, - arg_addrs: *const ObjectAddresses, - ) -> bool; + fn renameatt(arg_stmt: *mut RenameStmt) -> ObjectAddress; } - object_address_present(arg_object, arg_addrs) + renameatt(arg_stmt) }) } -pub unsafe fn record_object_address_dependencies( - arg_depender: *const ObjectAddress, - arg_referenced: *mut ObjectAddresses, - arg_behavior: DependencyType, -) { +pub unsafe fn renameatt_type(arg_stmt: *mut RenameStmt) -> ObjectAddress { 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, - ); + fn renameatt_type(arg_stmt: *mut RenameStmt) -> ObjectAddress; } - record_object_address_dependencies(arg_depender, arg_referenced, arg_behavior) + renameatt_type(arg_stmt) }) } -pub unsafe fn free_object_addresses(arg_addrs: *mut ObjectAddresses) { +pub unsafe fn RenameConstraint(arg_stmt: *mut RenameStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn free_object_addresses(arg_addrs: *mut ObjectAddresses); + fn RenameConstraint(arg_stmt: *mut RenameStmt) -> ObjectAddress; } - free_object_addresses(arg_addrs) + RenameConstraint(arg_stmt) }) } -pub unsafe fn recordDependencyOn( - arg_depender: *const ObjectAddress, - arg_referenced: *const ObjectAddress, - arg_behavior: DependencyType, -) { +pub unsafe fn RenameRelation(arg_stmt: *mut RenameStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn recordDependencyOn( - arg_depender: *const ObjectAddress, - arg_referenced: *const ObjectAddress, - arg_behavior: DependencyType, - ); + fn RenameRelation(arg_stmt: *mut RenameStmt) -> ObjectAddress; } - recordDependencyOn(arg_depender, arg_referenced, arg_behavior) + RenameRelation(arg_stmt) }) } -pub unsafe fn recordMultipleDependencies( - arg_depender: *const ObjectAddress, - arg_referenced: *const ObjectAddress, - arg_nreferenced: ::std::os::raw::c_int, - arg_behavior: DependencyType, +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 recordMultipleDependencies( - arg_depender: *const ObjectAddress, - arg_referenced: *const ObjectAddress, - arg_nreferenced: ::std::os::raw::c_int, - arg_behavior: DependencyType, + fn RenameRelationInternal( + arg_myrelid: Oid, + arg_newrelname: *const ::std::os::raw::c_char, + arg_is_internal: bool, ); } - recordMultipleDependencies(arg_depender, arg_referenced, arg_nreferenced, arg_behavior) + RenameRelationInternal(arg_myrelid, arg_newrelname, arg_is_internal) }) } -pub unsafe fn recordDependencyOnCurrentExtension( - arg_object: *const ObjectAddress, - arg_isReplace: bool, +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 recordDependencyOnCurrentExtension( - arg_object: *const ObjectAddress, - arg_isReplace: bool, + fn find_composite_type_dependencies( + arg_typeOid: Oid, + arg_origRelation: Relation, + arg_origTypeName: *const ::std::os::raw::c_char, ); } - recordDependencyOnCurrentExtension(arg_object, arg_isReplace) + find_composite_type_dependencies(arg_typeOid, arg_origRelation, arg_origTypeName) }) } -pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { +pub unsafe fn check_of_type(arg_typetuple: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + fn check_of_type(arg_typetuple: HeapTuple); } - checkMembershipInCurrentExtension(arg_object) + check_of_type(arg_typetuple) }) } -pub unsafe fn deleteDependencyRecordsFor( - arg_classId: Oid, - arg_objectId: Oid, - arg_skipExtensionDeps: bool, -) -> ::std::os::raw::c_long { +pub unsafe fn register_on_commit_action(arg_relid: Oid, arg_action: OnCommitAction) { 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; + fn register_on_commit_action(arg_relid: Oid, arg_action: OnCommitAction); } - deleteDependencyRecordsFor(arg_classId, arg_objectId, arg_skipExtensionDeps) + register_on_commit_action(arg_relid, arg_action) }) } -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 { +pub unsafe fn remove_on_commit_action(arg_relid: Oid) { 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; + fn remove_on_commit_action(arg_relid: Oid); } - deleteDependencyRecordsForClass(arg_classId, arg_objectId, arg_refclassId, arg_deptype) + remove_on_commit_action(arg_relid) }) } -pub unsafe fn changeDependencyFor( - arg_classId: Oid, - arg_objectId: Oid, - arg_refClassId: Oid, - arg_oldRefObjectId: Oid, - arg_newRefObjectId: Oid, -) -> ::std::os::raw::c_long { +pub unsafe fn PreCommit_on_commit_actions() { 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; + fn PreCommit_on_commit_actions(); } - changeDependencyFor( - arg_classId, - arg_objectId, - arg_refClassId, - arg_oldRefObjectId, - arg_newRefObjectId, - ) + PreCommit_on_commit_actions() }) } -pub unsafe fn getExtensionOfObject(arg_classId: Oid, arg_objectId: Oid) -> Oid { +pub unsafe fn AtEOXact_on_commit_actions(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getExtensionOfObject(arg_classId: Oid, arg_objectId: Oid) -> Oid; + fn AtEOXact_on_commit_actions(arg_isCommit: bool); } - getExtensionOfObject(arg_classId, arg_objectId) + AtEOXact_on_commit_actions(arg_isCommit) }) } -pub unsafe fn getAutoExtensionsOfObject(arg_classId: Oid, arg_objectId: Oid) -> *mut List { +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 getAutoExtensionsOfObject(arg_classId: Oid, arg_objectId: Oid) -> *mut List; + fn AtEOSubXact_on_commit_actions( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - getAutoExtensionsOfObject(arg_classId, arg_objectId) + AtEOSubXact_on_commit_actions(arg_isCommit, arg_mySubid, arg_parentSubid) }) } -pub unsafe fn sequenceIsOwned( - arg_seqId: Oid, - arg_deptype: ::std::os::raw::c_char, - arg_tableId: *mut Oid, - arg_colId: *mut int32, -) -> bool { +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 sequenceIsOwned( - arg_seqId: Oid, - arg_deptype: ::std::os::raw::c_char, - arg_tableId: *mut Oid, - arg_colId: *mut int32, - ) -> bool; + fn RangeVarCallbackOwnsTable( + arg_relation: *const RangeVar, + arg_relId: Oid, + arg_oldRelId: Oid, + arg_arg: *mut ::std::os::raw::c_void, + ); } - sequenceIsOwned(arg_seqId, arg_deptype, arg_tableId, arg_colId) + RangeVarCallbackOwnsTable(arg_relation, arg_relId, arg_oldRelId, arg_arg) }) } -pub unsafe fn getOwnedSequences(arg_relid: Oid, arg_attnum: AttrNumber) -> *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 getOwnedSequences(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List; + fn RangeVarCallbackOwnsRelation( + arg_relation: *const RangeVar, + arg_relId: Oid, + arg_oldRelId: Oid, + arg_noCatalogs: *mut ::std::os::raw::c_void, + ); } - getOwnedSequences(arg_relid, arg_attnum) + RangeVarCallbackOwnsRelation(arg_relation, arg_relId, arg_oldRelId, arg_noCatalogs) }) } -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 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, } -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; +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() } - 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; +#[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() } - get_index_constraint(arg_indexId) - }) + } } -pub unsafe fn recordSharedDependencyOn( - arg_depender: *mut ObjectAddress, - arg_referenced: *mut ObjectAddress, - arg_deptype: SharedDependencyType, -) { +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 recordSharedDependencyOn( - arg_depender: *mut ObjectAddress, - arg_referenced: *mut ObjectAddress, - arg_deptype: SharedDependencyType, - ); + 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; } - recordSharedDependencyOn(arg_depender, arg_referenced, arg_deptype) + CreateTrigger( + arg_stmt, + arg_queryString, + arg_relOid, + arg_refRelOid, + arg_constraintOid, + arg_indexOid, + arg_isInternal, + ) }) } -pub unsafe fn deleteSharedDependencyRecordsFor( - arg_classId: Oid, - arg_objectId: Oid, - arg_objectSubId: int32, -) { +pub unsafe fn RemoveTriggerById(arg_trigOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn deleteSharedDependencyRecordsFor( - arg_classId: Oid, - arg_objectId: Oid, - arg_objectSubId: int32, - ); + fn RemoveTriggerById(arg_trigOid: Oid); } - deleteSharedDependencyRecordsFor(arg_classId, arg_objectId, arg_objectSubId) + RemoveTriggerById(arg_trigOid) }) } -pub unsafe fn recordDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_owner: Oid) { +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 recordDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_owner: Oid); + fn get_trigger_oid( + arg_relid: Oid, + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - recordDependencyOnOwner(arg_classId, arg_objectId, arg_owner) + get_trigger_oid(arg_relid, arg_name, arg_missing_ok) }) } -pub unsafe fn changeDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_newOwnerId: Oid) { +pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn changeDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_newOwnerId: Oid); + fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress; } - changeDependencyOnOwner(arg_classId, arg_objectId, arg_newOwnerId) + renametrig(arg_stmt) }) } -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, +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 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, + 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, ); } - updateAclDependencies( - arg_classId, - arg_objectId, - arg_objectSubId, - arg_ownerId, - arg_noldmembers, - arg_oldmembers, - arg_nnewmembers, - arg_newmembers, - ) + EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system) }) } -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 { +pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { 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; + fn RelationBuildTriggers(arg_relation: Relation); } - checkSharedDependencies( - arg_classId, - arg_objectId, - arg_detail_msg, - arg_detail_log_msg, - ) + RelationBuildTriggers(arg_relation) }) } -pub unsafe fn shdepLockAndCheckObject(arg_classId: Oid, arg_objectId: Oid) { +pub unsafe fn CopyTriggerDesc(arg_trigdesc: *mut TriggerDesc) -> *mut TriggerDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn shdepLockAndCheckObject(arg_classId: Oid, arg_objectId: Oid); + fn CopyTriggerDesc(arg_trigdesc: *mut TriggerDesc) -> *mut TriggerDesc; } - shdepLockAndCheckObject(arg_classId, arg_objectId) + CopyTriggerDesc(arg_trigdesc) }) } -pub unsafe fn copyTemplateDependencies(arg_templateDbId: Oid, arg_newDbId: Oid) { +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 copyTemplateDependencies(arg_templateDbId: Oid, arg_newDbId: Oid); + fn FindTriggerIncompatibleWithInheritance( + arg_trigdesc: *mut TriggerDesc, + ) -> *const ::std::os::raw::c_char; } - copyTemplateDependencies(arg_templateDbId, arg_newDbId) + FindTriggerIncompatibleWithInheritance(arg_trigdesc) }) } -pub unsafe fn dropDatabaseDependencies(arg_databaseId: Oid) { +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 dropDatabaseDependencies(arg_databaseId: Oid); + fn MakeTransitionCaptureState( + arg_trigdesc: *mut TriggerDesc, + arg_relid: Oid, + arg_cmdType: CmdType, + ) -> *mut TransitionCaptureState; } - dropDatabaseDependencies(arg_databaseId) + MakeTransitionCaptureState(arg_trigdesc, arg_relid, arg_cmdType) }) } -pub unsafe fn shdepDropOwned(arg_relids: *mut List, arg_behavior: DropBehavior) { +pub unsafe fn FreeTriggerDesc(arg_trigdesc: *mut TriggerDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn shdepDropOwned(arg_relids: *mut List, arg_behavior: DropBehavior); + fn FreeTriggerDesc(arg_trigdesc: *mut TriggerDesc); } - shdepDropOwned(arg_relids, arg_behavior) + FreeTriggerDesc(arg_trigdesc) }) } -pub unsafe fn shdepReassignOwned(arg_relids: *mut List, arg_newrole: Oid) { +pub unsafe fn ExecBSInsertTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn shdepReassignOwned(arg_relids: *mut List, arg_newrole: Oid); + fn ExecBSInsertTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); } - shdepReassignOwned(arg_relids, arg_newrole) + ExecBSInsertTriggers(arg_estate, arg_relinfo) }) } -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, +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 index_check_primary_key( - arg_heapRel: Relation, - arg_indexInfo: *mut IndexInfo, - arg_is_alter_table: bool, - arg_stmt: *mut IndexStmt, + fn ExecASInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_transition_capture: *mut TransitionCaptureState, ); } - index_check_primary_key(arg_heapRel, arg_indexInfo, arg_is_alter_table, arg_stmt) + ExecASInsertTriggers(arg_estate, arg_relinfo, arg_transition_capture) }) } -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 { +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 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; + fn ExecBRInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - 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, - ) + ExecBRInsertTriggers(arg_estate, arg_relinfo, arg_slot) }) } -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 { +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 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; + fn ExecARInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_trigtuple: HeapTuple, + arg_recheckIndexes: *mut List, + arg_transition_capture: *mut TransitionCaptureState, + ); } - 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, + ExecARInsertTriggers( + arg_estate, + arg_relinfo, + arg_trigtuple, + arg_recheckIndexes, + arg_transition_capture, ) }) } -pub unsafe fn index_drop(arg_indexId: Oid, arg_concurrent: bool) { +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 index_drop(arg_indexId: Oid, arg_concurrent: bool); + fn ExecIRInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - index_drop(arg_indexId, arg_concurrent) + ExecIRInsertTriggers(arg_estate, arg_relinfo, arg_slot) }) } -pub unsafe fn BuildIndexInfo(arg_index: Relation) -> *mut IndexInfo { +pub unsafe fn ExecBSDeleteTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BuildIndexInfo(arg_index: Relation) -> *mut IndexInfo; + fn ExecBSDeleteTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); } - BuildIndexInfo(arg_index) + ExecBSDeleteTriggers(arg_estate, arg_relinfo) }) } -pub unsafe fn BuildDummyIndexInfo(arg_index: Relation) -> *mut IndexInfo { +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 BuildDummyIndexInfo(arg_index: Relation) -> *mut IndexInfo; + fn ExecASDeleteTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_transition_capture: *mut TransitionCaptureState, + ); } - BuildDummyIndexInfo(arg_index) + ExecASDeleteTriggers(arg_estate, arg_relinfo, arg_transition_capture) }) } -pub unsafe fn BuildSpeculativeIndexInfo(arg_index: Relation, arg_ii: *mut IndexInfo) { +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 BuildSpeculativeIndexInfo(arg_index: Relation, arg_ii: *mut IndexInfo); + fn ExecBRDeleteTriggers( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_relinfo: *mut ResultRelInfo, + arg_tupleid: ItemPointer, + arg_fdw_trigtuple: HeapTuple, + ) -> bool; } - BuildSpeculativeIndexInfo(arg_index, arg_ii) + ExecBRDeleteTriggers(arg_estate, arg_epqstate, arg_relinfo, arg_tupleid, arg_fdw_trigtuple) }) } -pub unsafe fn FormIndexDatum( - arg_indexInfo: *mut IndexInfo, - arg_slot: *mut TupleTableSlot, +pub unsafe fn ExecARDeleteTriggers( arg_estate: *mut EState, - arg_values: *mut Datum, - arg_isnull: *mut bool, + 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 FormIndexDatum( - arg_indexInfo: *mut IndexInfo, - arg_slot: *mut TupleTableSlot, + fn ExecARDeleteTriggers( arg_estate: *mut EState, - arg_values: *mut Datum, - arg_isnull: *mut bool, + arg_relinfo: *mut ResultRelInfo, + arg_tupleid: ItemPointer, + arg_fdw_trigtuple: HeapTuple, + arg_transition_capture: *mut TransitionCaptureState, ); } - FormIndexDatum(arg_indexInfo, arg_slot, arg_estate, arg_values, arg_isnull) + ExecARDeleteTriggers( + arg_estate, + arg_relinfo, + arg_tupleid, + arg_fdw_trigtuple, + arg_transition_capture, + ) }) } -pub unsafe fn index_build( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_indexInfo: *mut IndexInfo, - arg_isprimary: bool, - arg_isreindex: bool, -) { +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 index_build( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_indexInfo: *mut IndexInfo, - arg_isprimary: bool, - arg_isreindex: bool, - ); + fn ExecIRDeleteTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_trigtuple: HeapTuple, + ) -> bool; } - index_build( - arg_heapRelation, - arg_indexRelation, - arg_indexInfo, - arg_isprimary, - arg_isreindex, - ) + ExecIRDeleteTriggers(arg_estate, arg_relinfo, arg_trigtuple) }) } -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 { +pub unsafe fn ExecBSUpdateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { 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; + fn ExecBSUpdateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); } - 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) + ExecBSUpdateTriggers(arg_estate, arg_relinfo) }) } -pub unsafe fn index_set_state_flags(arg_indexId: Oid, arg_action: IndexStateFlagsAction) { +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 index_set_state_flags(arg_indexId: Oid, arg_action: IndexStateFlagsAction); + fn ExecASUpdateTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_transition_capture: *mut TransitionCaptureState, + ); } - index_set_state_flags(arg_indexId, arg_action) + ExecASUpdateTriggers(arg_estate, arg_relinfo, arg_transition_capture) }) } -pub unsafe fn IndexGetRelation(arg_indexId: Oid, arg_missing_ok: bool) -> Oid { +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 IndexGetRelation(arg_indexId: Oid, arg_missing_ok: bool) -> Oid; + 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; } - IndexGetRelation(arg_indexId, arg_missing_ok) + ExecBRUpdateTriggers( + arg_estate, + arg_epqstate, + arg_relinfo, + arg_tupleid, + arg_fdw_trigtuple, + arg_slot, + ) }) } -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, +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 reindex_index( - arg_indexId: Oid, - arg_skip_constraint_checks: bool, - arg_relpersistence: ::std::os::raw::c_char, - arg_options: ::std::os::raw::c_int, + 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, ); } - reindex_index( - arg_indexId, - arg_skip_constraint_checks, - arg_relpersistence, - arg_options, + ExecARUpdateTriggers( + arg_estate, + arg_relinfo, + arg_tupleid, + arg_fdw_trigtuple, + arg_newtuple, + arg_recheckIndexes, + arg_transition_capture, ) }) } -pub unsafe fn reindex_relation( - arg_relid: Oid, - arg_flags: ::std::os::raw::c_int, - arg_options: ::std::os::raw::c_int, -) -> bool { +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 reindex_relation( - arg_relid: Oid, - arg_flags: ::std::os::raw::c_int, - arg_options: ::std::os::raw::c_int, - ) -> bool; + fn ExecIRUpdateTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_trigtuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - reindex_relation(arg_relid, arg_flags, arg_options) + ExecIRUpdateTriggers(arg_estate, arg_relinfo, arg_trigtuple, arg_slot) }) } -pub unsafe fn ReindexIsProcessingHeap(arg_heapOid: Oid) -> bool { +pub unsafe fn ExecBSTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReindexIsProcessingHeap(arg_heapOid: Oid) -> bool; + fn ExecBSTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); } - ReindexIsProcessingHeap(arg_heapOid) + ExecBSTruncateTriggers(arg_estate, arg_relinfo) }) } -pub unsafe fn ReindexIsProcessingIndex(arg_indexOid: Oid) -> bool { +pub unsafe fn ExecASTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReindexIsProcessingIndex(arg_indexOid: Oid) -> bool; + fn ExecASTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); } - ReindexIsProcessingIndex(arg_indexOid) + ExecASTruncateTriggers(arg_estate, arg_relinfo) }) } -pub unsafe fn ResetReindexState(arg_nestLevel: ::std::os::raw::c_int) { +pub unsafe fn AfterTriggerBeginXact() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResetReindexState(arg_nestLevel: ::std::os::raw::c_int); + fn AfterTriggerBeginXact(); } - ResetReindexState(arg_nestLevel) + AfterTriggerBeginXact() }) } -#[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 { +pub unsafe fn AfterTriggerBeginQuery() { 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; + fn AfterTriggerBeginQuery(); } - RangeVarGetRelidExtended( - arg_relation, - arg_lockmode, - arg_missing_ok, - arg_nowait, - arg_callback, - arg_callback_arg, - ) + AfterTriggerBeginQuery() }) } -pub unsafe fn RangeVarGetCreationNamespace(arg_newRelation: *const RangeVar) -> Oid { +pub unsafe fn AfterTriggerEndQuery(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RangeVarGetCreationNamespace(arg_newRelation: *const RangeVar) -> Oid; + fn AfterTriggerEndQuery(arg_estate: *mut EState); } - RangeVarGetCreationNamespace(arg_newRelation) + AfterTriggerEndQuery(arg_estate) }) } -pub unsafe fn RangeVarGetAndCheckCreationNamespace( - arg_newRelation: *mut RangeVar, - arg_lockmode: LOCKMODE, - arg_existing_relation_id: *mut Oid, -) -> Oid { +pub unsafe fn AfterTriggerFireDeferred() { 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; + fn AfterTriggerFireDeferred(); } - RangeVarGetAndCheckCreationNamespace( - arg_newRelation, - arg_lockmode, - arg_existing_relation_id, - ) + AfterTriggerFireDeferred() }) } -pub unsafe fn RangeVarAdjustRelationPersistence(arg_newRelation: *mut RangeVar, arg_nspid: Oid) { +pub unsafe fn AfterTriggerEndXact(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RangeVarAdjustRelationPersistence(arg_newRelation: *mut RangeVar, arg_nspid: Oid); + fn AfterTriggerEndXact(arg_isCommit: bool); } - RangeVarAdjustRelationPersistence(arg_newRelation, arg_nspid) + AfterTriggerEndXact(arg_isCommit) }) } -pub unsafe fn RelnameGetRelid(arg_relname: *const ::std::os::raw::c_char) -> Oid { +pub unsafe fn AfterTriggerBeginSubXact() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelnameGetRelid(arg_relname: *const ::std::os::raw::c_char) -> Oid; + fn AfterTriggerBeginSubXact(); } - RelnameGetRelid(arg_relname) + AfterTriggerBeginSubXact() }) } -pub unsafe fn RelationIsVisible(arg_relid: Oid) -> bool { +pub unsafe fn AfterTriggerEndSubXact(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationIsVisible(arg_relid: Oid) -> bool; + fn AfterTriggerEndSubXact(arg_isCommit: bool); } - RelationIsVisible(arg_relid) + AfterTriggerEndSubXact(arg_isCommit) }) } -pub unsafe fn TypenameGetTypid(arg_typname: *const ::std::os::raw::c_char) -> Oid { +pub unsafe fn AfterTriggerSetState(arg_stmt: *mut ConstraintsSetStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TypenameGetTypid(arg_typname: *const ::std::os::raw::c_char) -> Oid; + fn AfterTriggerSetState(arg_stmt: *mut ConstraintsSetStmt); } - TypenameGetTypid(arg_typname) + AfterTriggerSetState(arg_stmt) }) } -pub unsafe fn TypenameGetTypidExtended( - arg_typname: *const ::std::os::raw::c_char, - arg_temp_ok: bool, -) -> Oid { +pub unsafe fn AfterTriggerPendingOnRel(arg_relid: Oid) -> bool { 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; + fn AfterTriggerPendingOnRel(arg_relid: Oid) -> bool; } - TypenameGetTypidExtended(arg_typname, arg_temp_ok) + AfterTriggerPendingOnRel(arg_relid) }) } -pub unsafe fn TypeIsVisible(arg_typid: Oid) -> bool { +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 TypeIsVisible(arg_typid: Oid) -> bool; + fn RI_FKey_pk_upd_check_required( + arg_trigger: *mut Trigger, + arg_pk_rel: Relation, + arg_old_row: HeapTuple, + arg_new_row: HeapTuple, + ) -> bool; } - TypeIsVisible(arg_typid) + RI_FKey_pk_upd_check_required(arg_trigger, arg_pk_rel, arg_old_row, arg_new_row) }) } -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 { +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 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; + fn RI_FKey_fk_upd_check_required( + arg_trigger: *mut Trigger, + arg_fk_rel: Relation, + arg_old_row: HeapTuple, + arg_new_row: HeapTuple, + ) -> bool; } - FuncnameGetCandidates( - arg_names, - arg_nargs, - arg_argnames, - arg_expand_variadic, - arg_expand_defaults, - arg_missing_ok, - ) + RI_FKey_fk_upd_check_required(arg_trigger, arg_fk_rel, arg_old_row, arg_new_row) }) } -pub unsafe fn FunctionIsVisible(arg_funcid: Oid) -> bool { +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 FunctionIsVisible(arg_funcid: Oid) -> bool; + fn RI_Initial_Check( + arg_trigger: *mut Trigger, + arg_fk_rel: Relation, + arg_pk_rel: Relation, + ) -> bool; } - FunctionIsVisible(arg_funcid) + RI_Initial_Check(arg_trigger, arg_fk_rel, arg_pk_rel) }) } -pub unsafe fn OpernameGetOprid(arg_names: *mut List, arg_oprleft: Oid, arg_oprright: Oid) -> Oid { +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 OpernameGetOprid(arg_names: *mut List, arg_oprleft: Oid, arg_oprright: Oid) -> Oid; + fn RI_FKey_trigger_type(arg_tgfoid: Oid) -> ::std::os::raw::c_int; } - OpernameGetOprid(arg_names, arg_oprleft, arg_oprright) + RI_FKey_trigger_type(arg_tgfoid) }) } -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) - }) +#[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 unsafe fn OperatorIsVisible(arg_oprid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OperatorIsVisible(arg_oprid: Oid) -> bool; +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() } - OperatorIsVisible(arg_oprid) - }) + } } -pub unsafe fn OpclassnameGetOpcid( - arg_amid: Oid, - arg_opcname: *const ::std::os::raw::c_char, -) -> Oid { +#[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 OpclassnameGetOpcid( - arg_amid: Oid, - arg_opcname: *const ::std::os::raw::c_char, - ) -> Oid; + fn ExecVacuum(arg_vacstmt: *mut VacuumStmt, arg_isTopLevel: bool); } - OpclassnameGetOpcid(arg_amid, arg_opcname) + ExecVacuum(arg_vacstmt, arg_isTopLevel) }) } -pub unsafe fn OpclassIsVisible(arg_opcid: Oid) -> bool { +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 OpclassIsVisible(arg_opcid: Oid) -> bool; + 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, + ); } - OpclassIsVisible(arg_opcid) + vacuum( + arg_options, + arg_relation, + arg_relid, + arg_params, + arg_va_cols, + arg_bstrategy, + arg_isTopLevel, + ) }) } -pub unsafe fn OpfamilynameGetOpfid( - arg_amid: Oid, - arg_opfname: *const ::std::os::raw::c_char, -) -> Oid { +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 OpfamilynameGetOpfid( - arg_amid: Oid, - arg_opfname: *const ::std::os::raw::c_char, - ) -> Oid; + fn vac_open_indexes( + arg_relation: Relation, + arg_lockmode: LOCKMODE, + arg_nindexes: *mut ::std::os::raw::c_int, + arg_Irel: *mut *mut Relation, + ); } - OpfamilynameGetOpfid(arg_amid, arg_opfname) + vac_open_indexes(arg_relation, arg_lockmode, arg_nindexes, arg_Irel) }) } -pub unsafe fn OpfamilyIsVisible(arg_opfid: Oid) -> bool { +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 OpfamilyIsVisible(arg_opfid: Oid) -> bool; + fn vac_close_indexes( + arg_nindexes: ::std::os::raw::c_int, + arg_Irel: *mut Relation, + arg_lockmode: LOCKMODE, + ); } - OpfamilyIsVisible(arg_opfid) + vac_close_indexes(arg_nindexes, arg_Irel, arg_lockmode) }) } -pub unsafe fn CollationGetCollid(arg_collname: *const ::std::os::raw::c_char) -> Oid { +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 CollationGetCollid(arg_collname: *const ::std::os::raw::c_char) -> Oid; + fn vac_estimate_reltuples( + arg_relation: Relation, + arg_is_analyze: bool, + arg_total_pages: BlockNumber, + arg_scanned_pages: BlockNumber, + arg_scanned_tuples: f64, + ) -> f64; } - CollationGetCollid(arg_collname) + vac_estimate_reltuples( + arg_relation, + arg_is_analyze, + arg_total_pages, + arg_scanned_pages, + arg_scanned_tuples, + ) }) } -pub unsafe fn CollationIsVisible(arg_collid: Oid) -> bool { +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 CollationIsVisible(arg_collid: Oid) -> bool; + 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, + ); } - CollationIsVisible(arg_collid) + 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 ConversionGetConid(arg_conname: *const ::std::os::raw::c_char) -> Oid { +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 ConversionGetConid(arg_conname: *const ::std::os::raw::c_char) -> Oid; + 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, + ); } - ConversionGetConid(arg_conname) + 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 ConversionIsVisible(arg_conid: Oid) -> bool { +pub unsafe fn vac_update_datfrozenxid() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ConversionIsVisible(arg_conid: Oid) -> bool; + fn vac_update_datfrozenxid(); } - ConversionIsVisible(arg_conid) + vac_update_datfrozenxid() }) } -pub unsafe fn get_statistics_object_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { +pub unsafe fn vacuum_delay_point() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_statistics_object_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; + fn vacuum_delay_point(); } - get_statistics_object_oid(arg_names, arg_missing_ok) + vacuum_delay_point() }) } -pub unsafe fn StatisticsObjIsVisible(arg_stxid: Oid) -> bool { +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 StatisticsObjIsVisible(arg_stxid: Oid) -> bool; + fn lazy_vacuum_rel( + arg_onerel: Relation, + arg_options: ::std::os::raw::c_int, + arg_params: *mut VacuumParams, + arg_bstrategy: BufferAccessStrategy, + ); } - StatisticsObjIsVisible(arg_stxid) + lazy_vacuum_rel(arg_onerel, arg_options, arg_params, arg_bstrategy) }) } -pub unsafe fn get_ts_parser_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { +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 get_ts_parser_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; + 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, + ); } - get_ts_parser_oid(arg_names, arg_missing_ok) + analyze_rel( + arg_relid, + arg_relation, + arg_options, + arg_params, + arg_va_cols, + arg_in_outer_xact, + arg_bstrategy, + ) }) } -pub unsafe fn TSParserIsVisible(arg_prsId: Oid) -> bool { +pub unsafe fn std_typanalyze(arg_stats: *mut VacAttrStats) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TSParserIsVisible(arg_prsId: Oid) -> bool; + fn std_typanalyze(arg_stats: *mut VacAttrStats) -> bool; } - TSParserIsVisible(arg_prsId) + std_typanalyze(arg_stats) }) } -pub unsafe fn get_ts_dict_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { +pub unsafe fn anl_random_fract() -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_ts_dict_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; + fn anl_random_fract() -> f64; } - get_ts_dict_oid(arg_names, arg_missing_ok) + anl_random_fract() }) } -pub unsafe fn TSDictionaryIsVisible(arg_dictId: Oid) -> bool { +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 TSDictionaryIsVisible(arg_dictId: Oid) -> bool; + fn anl_init_selection_state(arg_n: ::std::os::raw::c_int) -> f64; } - TSDictionaryIsVisible(arg_dictId) + anl_init_selection_state(arg_n) }) } -pub unsafe fn get_ts_template_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { +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 get_ts_template_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; + fn anl_get_next_S( + arg_t: f64, + arg_n: ::std::os::raw::c_int, + arg_stateptr: *mut f64, + ) -> f64; } - get_ts_template_oid(arg_names, arg_missing_ok) + anl_get_next_S(arg_t, arg_n, arg_stateptr) }) } -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) - }) +#[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, } -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; +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() } - 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) - }) +#[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, } -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, - ); +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() } - DeconstructQualifiedName(arg_names, arg_nspname_p, arg_objname_p) - }) + } } -pub unsafe fn LookupNamespaceNoError(arg_nspname: *const ::std::os::raw::c_char) -> Oid { +pub unsafe fn InitPlanCache() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LookupNamespaceNoError(arg_nspname: *const ::std::os::raw::c_char) -> Oid; + fn InitPlanCache(); } - LookupNamespaceNoError(arg_nspname) + InitPlanCache() }) } -pub unsafe fn LookupExplicitNamespace( - arg_nspname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { +pub unsafe fn ResetPlanCache() { 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; + fn ResetPlanCache(); } - LookupExplicitNamespace(arg_nspname, arg_missing_ok) + ResetPlanCache() }) } -pub unsafe fn get_namespace_oid( - arg_nspname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { +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 get_namespace_oid( - arg_nspname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; + 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; } - get_namespace_oid(arg_nspname, arg_missing_ok) + CreateCachedPlan(arg_raw_parse_tree, arg_query_string, arg_commandTag) }) } -pub unsafe fn LookupCreationNamespace(arg_nspname: *const ::std::os::raw::c_char) -> Oid { +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 LookupCreationNamespace(arg_nspname: *const ::std::os::raw::c_char) -> Oid; + 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; } - LookupCreationNamespace(arg_nspname) + CreateOneShotCachedPlan(arg_raw_parse_tree, arg_query_string, arg_commandTag) }) } -pub unsafe fn CheckSetNamespace(arg_oldNspOid: Oid, arg_nspOid: Oid) { +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 CheckSetNamespace(arg_oldNspOid: Oid, arg_nspOid: Oid); + 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, + ); } - CheckSetNamespace(arg_oldNspOid, arg_nspOid) + 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 QualifiedNameGetCreationNamespace( - arg_names: *mut List, - arg_objname_p: *mut *mut ::std::os::raw::c_char, -) -> Oid { +pub unsafe fn SaveCachedPlan(arg_plansource: *mut CachedPlanSource) { 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; + fn SaveCachedPlan(arg_plansource: *mut CachedPlanSource); } - QualifiedNameGetCreationNamespace(arg_names, arg_objname_p) + SaveCachedPlan(arg_plansource) }) } -pub unsafe fn makeRangeVarFromNameList(arg_names: *mut List) -> *mut RangeVar { +pub unsafe fn DropCachedPlan(arg_plansource: *mut CachedPlanSource) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeRangeVarFromNameList(arg_names: *mut List) -> *mut RangeVar; + fn DropCachedPlan(arg_plansource: *mut CachedPlanSource); } - makeRangeVarFromNameList(arg_names) + DropCachedPlan(arg_plansource) }) } -pub unsafe fn NameListToString(arg_names: *mut List) -> *mut ::std::os::raw::c_char { +pub unsafe fn CachedPlanSetParentContext( + arg_plansource: *mut CachedPlanSource, + arg_newcontext: MemoryContext, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn NameListToString(arg_names: *mut List) -> *mut ::std::os::raw::c_char; + fn CachedPlanSetParentContext( + arg_plansource: *mut CachedPlanSource, + arg_newcontext: MemoryContext, + ); } - NameListToString(arg_names) + CachedPlanSetParentContext(arg_plansource, arg_newcontext) }) } -pub unsafe fn NameListToQuotedString(arg_names: *mut List) -> *mut ::std::os::raw::c_char { +pub unsafe fn CopyCachedPlan(arg_plansource: *mut CachedPlanSource) -> *mut CachedPlanSource { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn NameListToQuotedString(arg_names: *mut List) -> *mut ::std::os::raw::c_char; + fn CopyCachedPlan(arg_plansource: *mut CachedPlanSource) -> *mut CachedPlanSource; } - NameListToQuotedString(arg_names) + CopyCachedPlan(arg_plansource) }) } -pub unsafe fn isTempNamespace(arg_namespaceId: Oid) -> bool { +pub unsafe fn CachedPlanIsValid(arg_plansource: *mut CachedPlanSource) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isTempNamespace(arg_namespaceId: Oid) -> bool; + fn CachedPlanIsValid(arg_plansource: *mut CachedPlanSource) -> bool; } - isTempNamespace(arg_namespaceId) + CachedPlanIsValid(arg_plansource) }) } -pub unsafe fn isTempToastNamespace(arg_namespaceId: Oid) -> bool { +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 isTempToastNamespace(arg_namespaceId: Oid) -> bool; + fn CachedPlanGetTargetList( + arg_plansource: *mut CachedPlanSource, + arg_queryEnv: *mut QueryEnvironment, + ) -> *mut List; } - isTempToastNamespace(arg_namespaceId) + CachedPlanGetTargetList(arg_plansource, arg_queryEnv) }) } -pub unsafe fn isTempOrTempToastNamespace(arg_namespaceId: Oid) -> bool { +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 isTempOrTempToastNamespace(arg_namespaceId: Oid) -> bool; + fn GetCachedPlan( + arg_plansource: *mut CachedPlanSource, + arg_boundParams: ParamListInfo, + arg_useResOwner: bool, + arg_queryEnv: *mut QueryEnvironment, + ) -> *mut CachedPlan; } - isTempOrTempToastNamespace(arg_namespaceId) + GetCachedPlan(arg_plansource, arg_boundParams, arg_useResOwner, arg_queryEnv) }) } -pub unsafe fn isAnyTempNamespace(arg_namespaceId: Oid) -> bool { +pub unsafe fn ReleaseCachedPlan(arg_plan: *mut CachedPlan, arg_useResOwner: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isAnyTempNamespace(arg_namespaceId: Oid) -> bool; + fn ReleaseCachedPlan(arg_plan: *mut CachedPlan, arg_useResOwner: bool); } - isAnyTempNamespace(arg_namespaceId) + ReleaseCachedPlan(arg_plan, arg_useResOwner) }) } -pub unsafe fn isOtherTempNamespace(arg_namespaceId: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { +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 isOtherTempNamespace(arg_namespaceId: Oid) -> bool; + fn ResourceOwnerCreate( + arg_parent: ResourceOwner, + arg_name: *const ::std::os::raw::c_char, + ) -> ResourceOwner; } - isOtherTempNamespace(arg_namespaceId) + ResourceOwnerCreate(arg_parent, arg_name) }) } -pub unsafe fn GetTempNamespaceBackendId(arg_namespaceId: Oid) -> ::std::os::raw::c_int { +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 GetTempNamespaceBackendId(arg_namespaceId: Oid) -> ::std::os::raw::c_int; + fn ResourceOwnerRelease( + arg_owner: ResourceOwner, + arg_phase: ResourceReleasePhase, + arg_isCommit: bool, + arg_isTopLevel: bool, + ); } - GetTempNamespaceBackendId(arg_namespaceId) + ResourceOwnerRelease(arg_owner, arg_phase, arg_isCommit, arg_isTopLevel) }) } -pub unsafe fn GetTempToastNamespace() -> Oid { +pub unsafe fn ResourceOwnerDelete(arg_owner: ResourceOwner) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetTempToastNamespace() -> Oid; + fn ResourceOwnerDelete(arg_owner: ResourceOwner); } - GetTempToastNamespace() + ResourceOwnerDelete(arg_owner) }) } -pub unsafe fn GetTempNamespaceState( - arg_tempNamespaceId: *mut Oid, - arg_tempToastNamespaceId: *mut Oid, -) { +pub unsafe fn ResourceOwnerGetParent(arg_owner: ResourceOwner) -> ResourceOwner { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetTempNamespaceState( - arg_tempNamespaceId: *mut Oid, - arg_tempToastNamespaceId: *mut Oid, - ); + fn ResourceOwnerGetParent(arg_owner: ResourceOwner) -> ResourceOwner; } - GetTempNamespaceState(arg_tempNamespaceId, arg_tempToastNamespaceId) + ResourceOwnerGetParent(arg_owner) }) } -pub unsafe fn SetTempNamespaceState(arg_tempNamespaceId: Oid, arg_tempToastNamespaceId: Oid) { +pub unsafe fn ResourceOwnerNewParent(arg_owner: ResourceOwner, arg_newparent: ResourceOwner) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetTempNamespaceState(arg_tempNamespaceId: Oid, arg_tempToastNamespaceId: Oid); + fn ResourceOwnerNewParent(arg_owner: ResourceOwner, arg_newparent: ResourceOwner); } - SetTempNamespaceState(arg_tempNamespaceId, arg_tempToastNamespaceId) + ResourceOwnerNewParent(arg_owner, arg_newparent) }) } -pub unsafe fn ResetTempTableNamespace() { +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 ResetTempTableNamespace(); + fn RegisterResourceReleaseCallback( + arg_callback: ResourceReleaseCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); } - ResetTempTableNamespace() + RegisterResourceReleaseCallback(arg_callback, arg_arg) }) } -pub unsafe fn GetOverrideSearchPath(arg_context: MemoryContext) -> *mut OverrideSearchPath { +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 GetOverrideSearchPath(arg_context: MemoryContext) -> *mut OverrideSearchPath; + fn UnregisterResourceReleaseCallback( + arg_callback: ResourceReleaseCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); } - GetOverrideSearchPath(arg_context) + UnregisterResourceReleaseCallback(arg_callback, arg_arg) }) } -pub unsafe fn CopyOverrideSearchPath(arg_path: *mut OverrideSearchPath) -> *mut OverrideSearchPath { +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 CopyOverrideSearchPath(arg_path: *mut OverrideSearchPath) - -> *mut OverrideSearchPath; + fn EnablePortalManager(); } - CopyOverrideSearchPath(arg_path) + EnablePortalManager() }) } -pub unsafe fn OverrideSearchPathMatchesCurrent(arg_path: *mut OverrideSearchPath) -> bool { +pub unsafe fn PreCommit_Portals(arg_isPrepare: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OverrideSearchPathMatchesCurrent(arg_path: *mut OverrideSearchPath) -> bool; + fn PreCommit_Portals(arg_isPrepare: bool) -> bool; } - OverrideSearchPathMatchesCurrent(arg_path) + PreCommit_Portals(arg_isPrepare) }) } -pub unsafe fn PushOverrideSearchPath(arg_newpath: *mut OverrideSearchPath) { +pub unsafe fn AtAbort_Portals() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PushOverrideSearchPath(arg_newpath: *mut OverrideSearchPath); + fn AtAbort_Portals(); } - PushOverrideSearchPath(arg_newpath) + AtAbort_Portals() }) } -pub unsafe fn PopOverrideSearchPath() { +pub unsafe fn AtCleanup_Portals() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PopOverrideSearchPath(); + fn AtCleanup_Portals(); } - PopOverrideSearchPath() + AtCleanup_Portals() }) } -pub unsafe fn get_collation_oid(arg_collname: *mut List, arg_missing_ok: bool) -> Oid { +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 get_collation_oid(arg_collname: *mut List, arg_missing_ok: bool) -> Oid; + fn AtSubCommit_Portals( + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + arg_parentXactOwner: ResourceOwner, + ); } - get_collation_oid(arg_collname, arg_missing_ok) + AtSubCommit_Portals(arg_mySubid, arg_parentSubid, arg_parentXactOwner) }) } -pub unsafe fn get_conversion_oid(arg_conname: *mut List, arg_missing_ok: bool) -> Oid { +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 get_conversion_oid(arg_conname: *mut List, arg_missing_ok: bool) -> Oid; + fn AtSubAbort_Portals( + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + arg_myXactOwner: ResourceOwner, + arg_parentXactOwner: ResourceOwner, + ); } - get_conversion_oid(arg_conname, arg_missing_ok) + AtSubAbort_Portals(arg_mySubid, arg_parentSubid, arg_myXactOwner, arg_parentXactOwner) }) } -pub unsafe fn FindDefaultConversionProc(arg_for_encoding: int32, arg_to_encoding: int32) -> Oid { +pub unsafe fn AtSubCleanup_Portals(arg_mySubid: SubTransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FindDefaultConversionProc(arg_for_encoding: int32, arg_to_encoding: int32) -> Oid; + fn AtSubCleanup_Portals(arg_mySubid: SubTransactionId); } - FindDefaultConversionProc(arg_for_encoding, arg_to_encoding) + AtSubCleanup_Portals(arg_mySubid) }) } -pub unsafe fn InitializeSearchPath() { +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 InitializeSearchPath(); + fn CreatePortal( + arg_name: *const ::std::os::raw::c_char, + arg_allowDup: bool, + arg_dupSilent: bool, + ) -> Portal; } - InitializeSearchPath() + CreatePortal(arg_name, arg_allowDup, arg_dupSilent) }) } -pub unsafe fn AtEOXact_Namespace(arg_isCommit: bool, arg_parallel: bool) { +pub unsafe fn CreateNewPortal() -> Portal { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOXact_Namespace(arg_isCommit: bool, arg_parallel: bool); + fn CreateNewPortal() -> Portal; } - AtEOXact_Namespace(arg_isCommit, arg_parallel) + CreateNewPortal() }) } -pub unsafe fn AtEOSubXact_Namespace( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, -) { +pub unsafe fn PinPortal(arg_portal: Portal) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOSubXact_Namespace( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - ); + fn PinPortal(arg_portal: Portal); } - AtEOSubXact_Namespace(arg_isCommit, arg_mySubid, arg_parentSubid) + PinPortal(arg_portal) }) } -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 { +pub unsafe fn UnpinPortal(arg_portal: Portal) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fetch_search_path(arg_includeImplicit: bool) -> *mut List; + fn UnpinPortal(arg_portal: Portal); } - fetch_search_path(arg_includeImplicit) + UnpinPortal(arg_portal) }) } -pub unsafe fn fetch_search_path_array( - arg_sarray: *mut Oid, - arg_sarray_len: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn MarkPortalActive(arg_portal: Portal) { 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; + fn MarkPortalActive(arg_portal: Portal); } - fetch_search_path_array(arg_sarray, arg_sarray_len) + MarkPortalActive(arg_portal) }) } -#[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 unsafe fn MarkPortalDone(arg_portal: Portal) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn MarkPortalDone(arg_portal: Portal); } - } -} -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, + MarkPortalDone(arg_portal) + }) } -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 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 type Form_pg_enum = *mut FormData_pg_enum; -pub unsafe fn EnumValuesCreate(arg_enumTypeOid: Oid, arg_vals: *mut List) { +pub unsafe fn PortalDrop(arg_portal: Portal, arg_isTopCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EnumValuesCreate(arg_enumTypeOid: Oid, arg_vals: *mut List); + fn PortalDrop(arg_portal: Portal, arg_isTopCommit: bool); } - EnumValuesCreate(arg_enumTypeOid, arg_vals) + PortalDrop(arg_portal, arg_isTopCommit) }) } -pub unsafe fn EnumValuesDelete(arg_enumTypeOid: Oid) { +pub unsafe fn GetPortalByName(arg_name: *const ::std::os::raw::c_char) -> Portal { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EnumValuesDelete(arg_enumTypeOid: Oid); + fn GetPortalByName(arg_name: *const ::std::os::raw::c_char) -> Portal; } - EnumValuesDelete(arg_enumTypeOid) + GetPortalByName(arg_name) }) } -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, +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 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, + 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, ); } - AddEnumLabel( - arg_enumTypeOid, - arg_newVal, - arg_neighbor, - arg_newValIsAfter, - arg_skipIfExists, + PortalDefineQuery( + arg_portal, + arg_prepStmtName, + arg_sourceText, + arg_commandTag, + arg_stmts, + arg_cplan, ) }) } -pub unsafe fn RenameEnumLabel( - arg_enumTypeOid: Oid, - arg_oldVal: *const ::std::os::raw::c_char, - arg_newVal: *const ::std::os::raw::c_char, -) { +pub unsafe fn PortalGetPrimaryStmt(arg_portal: Portal) -> *mut PlannedStmt { 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, - ); + fn PortalGetPrimaryStmt(arg_portal: Portal) -> *mut PlannedStmt; } - RenameEnumLabel(arg_enumTypeOid, arg_oldVal, arg_newVal) + PortalGetPrimaryStmt(arg_portal) }) } -#[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 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 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, +pub unsafe fn PortalHashTableDeleteAll() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn PortalHashTableDeleteAll(); + } + PortalHashTableDeleteAll() + }) } -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 unsafe fn ThereAreNoReadyPortals() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ThereAreNoReadyPortals() -> bool; } - } + ThereAreNoReadyPortals() + }) } -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, +#[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 FormData_pg_trigger { +impl Default for SPITupleTable { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -44886,1204 +39738,1382 @@ impl Default for FormData_pg_trigger { } } } -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, +pub struct _SPI_plan { + _unused: [u8; 0], } -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 SPIPlanPtr = *mut _SPI_plan; +extern "C" { + pub static mut SPI_processed: uint64; } -pub type Form_pg_type = *mut FormData_pg_type; -pub unsafe fn CommentObject(arg_stmt: *mut CommentStmt) -> ObjectAddress { +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 CommentObject(arg_stmt: *mut CommentStmt) -> ObjectAddress; + fn SPI_connect() -> ::std::os::raw::c_int; } - CommentObject(arg_stmt) + SPI_connect() }) } -pub unsafe fn DeleteComments(arg_oid: Oid, arg_classoid: Oid, arg_subid: int32) { +pub unsafe fn SPI_finish() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DeleteComments(arg_oid: Oid, arg_classoid: Oid, arg_subid: int32); + fn SPI_finish() -> ::std::os::raw::c_int; } - DeleteComments(arg_oid, arg_classoid, arg_subid) + SPI_finish() }) } -pub unsafe fn CreateComments( - arg_oid: Oid, - arg_classoid: Oid, - arg_subid: int32, - arg_comment: *mut ::std::os::raw::c_char, -) { +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 CreateComments( - arg_oid: Oid, - arg_classoid: Oid, - arg_subid: int32, - arg_comment: *mut ::std::os::raw::c_char, - ); + 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; } - CreateComments(arg_oid, arg_classoid, arg_subid, arg_comment) + SPI_execute(arg_src, arg_read_only, arg_tcount) }) } -pub unsafe fn DeleteSharedComments(arg_oid: Oid, arg_classoid: Oid) { +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 DeleteSharedComments(arg_oid: Oid, arg_classoid: Oid); + 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; } - DeleteSharedComments(arg_oid, arg_classoid) + SPI_execute_plan(arg_plan, arg_Values, arg_Nulls, arg_read_only, arg_tcount) }) } -pub unsafe fn CreateSharedComments( - arg_oid: Oid, - arg_classoid: Oid, - arg_comment: *mut ::std::os::raw::c_char, -) { +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 CreateSharedComments( - arg_oid: Oid, - arg_classoid: Oid, - arg_comment: *mut ::std::os::raw::c_char, - ); + 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; } - CreateSharedComments(arg_oid, arg_classoid, arg_comment) + SPI_execute_plan_with_paramlist(arg_plan, arg_params, arg_read_only, arg_tcount) }) } -pub unsafe fn GetComment( - arg_oid: Oid, - arg_classoid: Oid, - arg_subid: int32, -) -> *mut ::std::os::raw::c_char { +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 GetComment( - arg_oid: Oid, - arg_classoid: Oid, - arg_subid: int32, - ) -> *mut ::std::os::raw::c_char; + fn SPI_exec( + arg_src: *const ::std::os::raw::c_char, + arg_tcount: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } - GetComment(arg_oid, arg_classoid, arg_subid) + SPI_exec(arg_src, arg_tcount) }) } -pub unsafe fn createdb(arg_pstate: *mut ParseState, arg_stmt: *const CreatedbStmt) -> Oid { +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 createdb(arg_pstate: *mut ParseState, arg_stmt: *const CreatedbStmt) -> Oid; + 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; } - createdb(arg_pstate, arg_stmt) + SPI_execp(arg_plan, arg_Values, arg_Nulls, arg_tcount) }) } -pub unsafe fn dropdb(arg_dbname: *const ::std::os::raw::c_char, arg_missing_ok: bool) { +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 dropdb(arg_dbname: *const ::std::os::raw::c_char, arg_missing_ok: bool); + 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; } - dropdb(arg_dbname, arg_missing_ok) + 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 RenameDatabase( - arg_oldname: *const ::std::os::raw::c_char, - arg_newname: *const ::std::os::raw::c_char, -) -> ObjectAddress { +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 RenameDatabase( - arg_oldname: *const ::std::os::raw::c_char, - arg_newname: *const ::std::os::raw::c_char, - ) -> ObjectAddress; + 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; } - RenameDatabase(arg_oldname, arg_newname) + SPI_execute_with_args( + arg_src, + arg_nargs, + arg_argtypes, + arg_Values, + arg_Nulls, + arg_read_only, + arg_tcount, + ) }) } -pub unsafe fn AlterDatabase( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterDatabaseStmt, - arg_isTopLevel: bool, -) -> Oid { +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 AlterDatabase( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterDatabaseStmt, - arg_isTopLevel: bool, - ) -> Oid; + fn SPI_prepare( + arg_src: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + ) -> SPIPlanPtr; } - AlterDatabase(arg_pstate, arg_stmt, arg_isTopLevel) + SPI_prepare(arg_src, arg_nargs, arg_argtypes) }) } -pub unsafe fn AlterDatabaseSet(arg_stmt: *mut AlterDatabaseSetStmt) -> Oid { +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 AlterDatabaseSet(arg_stmt: *mut AlterDatabaseSetStmt) -> Oid; + 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; } - AlterDatabaseSet(arg_stmt) + SPI_prepare_cursor(arg_src, arg_nargs, arg_argtypes, arg_cursorOptions) }) } -pub unsafe fn AlterDatabaseOwner( - arg_dbname: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, -) -> ObjectAddress { +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 AlterDatabaseOwner( - arg_dbname: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, - ) -> ObjectAddress; + 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; } - AlterDatabaseOwner(arg_dbname, arg_newOwnerId) + SPI_prepare_params(arg_src, arg_parserSetup, arg_parserSetupArg, arg_cursorOptions) }) } -pub unsafe fn get_database_oid( - arg_dbname: *const ::std::os::raw::c_char, - arg_missingok: bool, -) -> Oid { +pub unsafe fn SPI_keepplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { 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; + fn SPI_keepplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int; } - get_database_oid(arg_dbname, arg_missingok) + SPI_keepplan(arg_plan) }) } -pub unsafe fn get_database_name(arg_dbid: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn SPI_saveplan(arg_plan: SPIPlanPtr) -> SPIPlanPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_database_name(arg_dbid: Oid) -> *mut ::std::os::raw::c_char; + fn SPI_saveplan(arg_plan: SPIPlanPtr) -> SPIPlanPtr; } - get_database_name(arg_dbid) + SPI_saveplan(arg_plan) }) } -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, -) { +pub unsafe fn SPI_freeplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { 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, - ); + fn SPI_freeplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int; } - check_encoding_locale_matches(arg_encoding, arg_collate, arg_ctype) + SPI_freeplan(arg_plan) }) } -pub unsafe fn RemoveObjects(arg_stmt: *mut DropStmt) { +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 RemoveObjects(arg_stmt: *mut DropStmt); + fn SPI_getargtypeid(arg_plan: SPIPlanPtr, arg_argIndex: ::std::os::raw::c_int) -> Oid; } - RemoveObjects(arg_stmt) + SPI_getargtypeid(arg_plan, arg_argIndex) }) } -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 { +pub unsafe fn SPI_getargcount(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { 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; + fn SPI_getargcount(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int; } - DefineIndex( - arg_relationId, - arg_stmt, - arg_indexRelationId, - arg_is_alter_table, - arg_check_rights, - arg_check_not_in_use, - arg_skip_build, - arg_quiet, - ) + SPI_getargcount(arg_plan) }) } -pub unsafe fn ReindexIndex( - arg_indexRelation: *mut RangeVar, - arg_options: ::std::os::raw::c_int, -) -> Oid { +pub unsafe fn SPI_is_cursor_plan(arg_plan: SPIPlanPtr) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReindexIndex( - arg_indexRelation: *mut RangeVar, - arg_options: ::std::os::raw::c_int, - ) -> Oid; + fn SPI_is_cursor_plan(arg_plan: SPIPlanPtr) -> bool; } - ReindexIndex(arg_indexRelation, arg_options) + SPI_is_cursor_plan(arg_plan) }) } -pub unsafe fn ReindexTable(arg_relation: *mut RangeVar, arg_options: ::std::os::raw::c_int) -> Oid { +pub unsafe fn SPI_plan_is_valid(arg_plan: SPIPlanPtr) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReindexTable(arg_relation: *mut RangeVar, arg_options: ::std::os::raw::c_int) - -> Oid; + fn SPI_plan_is_valid(arg_plan: SPIPlanPtr) -> bool; } - ReindexTable(arg_relation, arg_options) + SPI_plan_is_valid(arg_plan) }) } -pub unsafe fn ReindexMultipleTables( - arg_objectName: *const ::std::os::raw::c_char, - arg_objectKind: ReindexObjectType, - arg_options: ::std::os::raw::c_int, -) { +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 ReindexMultipleTables( - arg_objectName: *const ::std::os::raw::c_char, - arg_objectKind: ReindexObjectType, - arg_options: ::std::os::raw::c_int, - ); + fn SPI_result_code_string( + arg_code: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char; } - ReindexMultipleTables(arg_objectName, arg_objectKind, arg_options) + SPI_result_code_string(arg_code) }) } -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 { +pub unsafe fn SPI_plan_get_plan_sources(arg_plan: SPIPlanPtr) -> *mut List { 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; + fn SPI_plan_get_plan_sources(arg_plan: SPIPlanPtr) -> *mut List; } - makeObjectName(arg_name1, arg_name2, arg_label) + SPI_plan_get_plan_sources(arg_plan) }) } -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 { +pub unsafe fn SPI_plan_get_cached_plan(arg_plan: SPIPlanPtr) -> *mut CachedPlan { 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; + fn SPI_plan_get_cached_plan(arg_plan: SPIPlanPtr) -> *mut CachedPlan; } - ChooseRelationName(arg_name1, arg_name2, arg_label, arg_namespaceid) + SPI_plan_get_cached_plan(arg_plan) }) } -pub unsafe fn CheckIndexCompatible( - arg_oldId: Oid, - arg_accessMethodName: *mut ::std::os::raw::c_char, - arg_attributeList: *mut List, - arg_exclusionOpNames: *mut List, -) -> bool { +pub unsafe fn SPI_copytuple(arg_tuple: HeapTuple) -> HeapTuple { 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; + fn SPI_copytuple(arg_tuple: HeapTuple) -> HeapTuple; } - CheckIndexCompatible( - arg_oldId, - arg_accessMethodName, - arg_attributeList, - arg_exclusionOpNames, - ) + SPI_copytuple(arg_tuple) }) } -pub unsafe fn GetDefaultOpClass(arg_type_id: Oid, arg_am_id: Oid) -> Oid { +pub unsafe fn SPI_returntuple(arg_tuple: HeapTuple, arg_tupdesc: TupleDesc) -> HeapTupleHeader { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetDefaultOpClass(arg_type_id: Oid, arg_am_id: Oid) -> Oid; + fn SPI_returntuple(arg_tuple: HeapTuple, arg_tupdesc: TupleDesc) -> HeapTupleHeader; } - GetDefaultOpClass(arg_type_id, arg_am_id) + SPI_returntuple(arg_tuple, arg_tupdesc) }) } -pub unsafe fn ResolveOpClass( - arg_opclass: *mut List, - arg_attrType: Oid, - arg_accessMethodName: *mut ::std::os::raw::c_char, - arg_accessMethodId: Oid, -) -> Oid { +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 ResolveOpClass( - arg_opclass: *mut List, - arg_attrType: Oid, - arg_accessMethodName: *mut ::std::os::raw::c_char, - arg_accessMethodId: Oid, - ) -> Oid; + 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; } - ResolveOpClass( - arg_opclass, - arg_attrType, - arg_accessMethodName, - arg_accessMethodId, - ) + SPI_modifytuple(arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls) }) } -pub unsafe fn CreateFunction( - arg_pstate: *mut ParseState, - arg_stmt: *mut CreateFunctionStmt, -) -> ObjectAddress { +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 CreateFunction( - arg_pstate: *mut ParseState, - arg_stmt: *mut CreateFunctionStmt, - ) -> ObjectAddress; + fn SPI_fnumber( + arg_tupdesc: TupleDesc, + arg_fname: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - CreateFunction(arg_pstate, arg_stmt) + SPI_fnumber(arg_tupdesc, arg_fname) }) } -pub unsafe fn RemoveFunctionById(arg_funcOid: Oid) { +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 RemoveFunctionById(arg_funcOid: Oid); + fn SPI_fname( + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - RemoveFunctionById(arg_funcOid) + SPI_fname(arg_tupdesc, arg_fnumber) }) } -pub unsafe fn SetFunctionReturnType(arg_funcOid: Oid, arg_newRetType: Oid) { +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 SetFunctionReturnType(arg_funcOid: Oid, arg_newRetType: Oid); + fn SPI_getvalue( + arg_tuple: HeapTuple, + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - SetFunctionReturnType(arg_funcOid, arg_newRetType) + SPI_getvalue(arg_tuple, arg_tupdesc, arg_fnumber) }) } -pub unsafe fn SetFunctionArgType( - arg_funcOid: Oid, - arg_argIndex: ::std::os::raw::c_int, - arg_newArgType: Oid, -) { +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 SetFunctionArgType( - arg_funcOid: Oid, - arg_argIndex: ::std::os::raw::c_int, - arg_newArgType: Oid, - ); + fn SPI_getbinval( + arg_tuple: HeapTuple, + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, + arg_isnull: *mut bool, + ) -> Datum; } - SetFunctionArgType(arg_funcOid, arg_argIndex, arg_newArgType) + SPI_getbinval(arg_tuple, arg_tupdesc, arg_fnumber, arg_isnull) }) } -pub unsafe fn AlterFunction( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterFunctionStmt, -) -> ObjectAddress { +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 AlterFunction( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterFunctionStmt, - ) -> ObjectAddress; + fn SPI_gettype( + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - AlterFunction(arg_pstate, arg_stmt) + SPI_gettype(arg_tupdesc, arg_fnumber) }) } -pub unsafe fn CreateCast(arg_stmt: *mut CreateCastStmt) -> ObjectAddress { +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 CreateCast(arg_stmt: *mut CreateCastStmt) -> ObjectAddress; + fn SPI_gettypeid(arg_tupdesc: TupleDesc, arg_fnumber: ::std::os::raw::c_int) -> Oid; } - CreateCast(arg_stmt) + SPI_gettypeid(arg_tupdesc, arg_fnumber) }) } -pub unsafe fn DropCastById(arg_castOid: Oid) { +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 DropCastById(arg_castOid: Oid); + fn SPI_getrelname(arg_rel: Relation) -> *mut ::std::os::raw::c_char; } - DropCastById(arg_castOid) + SPI_getrelname(arg_rel) }) } -pub unsafe fn CreateTransform(arg_stmt: *mut CreateTransformStmt) -> ObjectAddress { +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 CreateTransform(arg_stmt: *mut CreateTransformStmt) -> ObjectAddress; + fn SPI_getnspname(arg_rel: Relation) -> *mut ::std::os::raw::c_char; } - CreateTransform(arg_stmt) + SPI_getnspname(arg_rel) }) } -pub unsafe fn DropTransformById(arg_transformOid: Oid) { +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 DropTransformById(arg_transformOid: Oid); + fn SPI_palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; } - DropTransformById(arg_transformOid) + SPI_palloc(arg_size) }) } -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, -) { +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 IsThereFunctionInNamespace( - arg_proname: *const ::std::os::raw::c_char, - arg_pronargs: ::std::os::raw::c_int, - arg_proargtypes: *mut oidvector, - arg_nspOid: Oid, - ); + fn SPI_repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - IsThereFunctionInNamespace(arg_proname, arg_pronargs, arg_proargtypes, arg_nspOid) + SPI_repalloc(arg_pointer, arg_size) }) } -pub unsafe fn ExecuteDoStmt(arg_stmt: *mut DoStmt) { +pub unsafe fn SPI_pfree(arg_pointer: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecuteDoStmt(arg_stmt: *mut DoStmt); + fn SPI_pfree(arg_pointer: *mut ::std::os::raw::c_void); } - ExecuteDoStmt(arg_stmt) + SPI_pfree(arg_pointer) }) } -pub unsafe fn get_cast_oid( - arg_sourcetypeid: Oid, - arg_targettypeid: Oid, - arg_missing_ok: bool, -) -> Oid { +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 get_cast_oid( - arg_sourcetypeid: Oid, - arg_targettypeid: Oid, - arg_missing_ok: bool, - ) -> Oid; + fn SPI_datumTransfer( + arg_value: Datum, + arg_typByVal: bool, + arg_typLen: ::std::os::raw::c_int, + ) -> Datum; } - get_cast_oid(arg_sourcetypeid, arg_targettypeid, arg_missing_ok) + SPI_datumTransfer(arg_value, arg_typByVal, arg_typLen) }) } -pub unsafe fn get_transform_oid(arg_type_id: Oid, arg_lang_id: Oid, arg_missing_ok: bool) -> Oid { +pub unsafe fn SPI_freetuple(arg_pointer: HeapTuple) { 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; + fn SPI_freetuple(arg_pointer: HeapTuple); } - get_transform_oid(arg_type_id, arg_lang_id, arg_missing_ok) + SPI_freetuple(arg_pointer) }) } -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, -) { +pub unsafe fn SPI_freetuptable(arg_tuptable: *mut SPITupleTable) { 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, - ); + fn SPI_freetuptable(arg_tuptable: *mut SPITupleTable); } - 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, - ) + SPI_freetuptable(arg_tuptable) }) } -pub unsafe fn DefineOperator(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { +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 DefineOperator(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; + 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; } - DefineOperator(arg_names, arg_parameters) + SPI_cursor_open(arg_name, arg_plan, arg_Values, arg_Nulls, arg_read_only) }) } -pub unsafe fn RemoveOperatorById(arg_operOid: Oid) { +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 RemoveOperatorById(arg_operOid: Oid); + 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; } - RemoveOperatorById(arg_operOid) + 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 AlterOperator(arg_stmt: *mut AlterOperatorStmt) -> ObjectAddress { +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 AlterOperator(arg_stmt: *mut AlterOperatorStmt) -> ObjectAddress; + 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; } - AlterOperator(arg_stmt) + SPI_cursor_open_with_paramlist(arg_name, arg_plan, arg_params, arg_read_only) }) } -pub unsafe fn CreateStatistics(arg_stmt: *mut CreateStatsStmt) -> ObjectAddress { +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 CreateStatistics(arg_stmt: *mut CreateStatsStmt) -> ObjectAddress; + fn SPI_cursor_find(arg_name: *const ::std::os::raw::c_char) -> Portal; } - CreateStatistics(arg_stmt) + SPI_cursor_find(arg_name) }) } -pub unsafe fn RemoveStatisticsById(arg_statsOid: Oid) { +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 RemoveStatisticsById(arg_statsOid: Oid); + fn SPI_cursor_fetch( + arg_portal: Portal, + arg_forward: bool, + arg_count: ::std::os::raw::c_long, + ); } - RemoveStatisticsById(arg_statsOid) + SPI_cursor_fetch(arg_portal, arg_forward, arg_count) }) } -pub unsafe fn UpdateStatisticsForTypeChange( - arg_statsOid: Oid, - arg_relationOid: Oid, - arg_attnum: ::std::os::raw::c_int, - arg_oldColumnType: Oid, - arg_newColumnType: Oid, +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 UpdateStatisticsForTypeChange( - arg_statsOid: Oid, - arg_relationOid: Oid, - arg_attnum: ::std::os::raw::c_int, - arg_oldColumnType: Oid, - arg_newColumnType: Oid, + fn SPI_cursor_move( + arg_portal: Portal, + arg_forward: bool, + arg_count: ::std::os::raw::c_long, ); } - UpdateStatisticsForTypeChange( - arg_statsOid, - arg_relationOid, - arg_attnum, - arg_oldColumnType, - arg_newColumnType, - ) + SPI_cursor_move(arg_portal, arg_forward, arg_count) }) } -pub unsafe fn DefineAggregate( - arg_pstate: *mut ParseState, - arg_name: *mut List, - arg_args: *mut List, - arg_oldstyle: bool, - arg_parameters: *mut List, -) -> ObjectAddress { +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 DefineAggregate( - arg_pstate: *mut ParseState, - arg_name: *mut List, - arg_args: *mut List, - arg_oldstyle: bool, - arg_parameters: *mut List, - ) -> ObjectAddress; + fn SPI_scroll_cursor_fetch( + arg_arg1: Portal, + arg_direction: FetchDirection, + arg_count: ::std::os::raw::c_long, + ); } - DefineAggregate(arg_pstate, arg_name, arg_args, arg_oldstyle, arg_parameters) + SPI_scroll_cursor_fetch(arg_arg1, arg_direction, arg_count) }) } -pub unsafe fn DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress { +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 DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress; + fn SPI_scroll_cursor_move( + arg_arg1: Portal, + arg_direction: FetchDirection, + arg_count: ::std::os::raw::c_long, + ); } - DefineOpClass(arg_stmt) + SPI_scroll_cursor_move(arg_arg1, arg_direction, arg_count) }) } -pub unsafe fn DefineOpFamily(arg_stmt: *mut CreateOpFamilyStmt) -> ObjectAddress { +pub unsafe fn SPI_cursor_close(arg_portal: Portal) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DefineOpFamily(arg_stmt: *mut CreateOpFamilyStmt) -> ObjectAddress; + fn SPI_cursor_close(arg_portal: Portal); } - DefineOpFamily(arg_stmt) + SPI_cursor_close(arg_portal) }) } -pub unsafe fn AlterOpFamily(arg_stmt: *mut AlterOpFamilyStmt) -> Oid { +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 AlterOpFamily(arg_stmt: *mut AlterOpFamilyStmt) -> Oid; + fn SPI_register_relation(arg_enr: EphemeralNamedRelation) -> ::std::os::raw::c_int; } - AlterOpFamily(arg_stmt) + SPI_register_relation(arg_enr) }) } -pub unsafe fn RemoveOpClassById(arg_opclassOid: Oid) { +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 RemoveOpClassById(arg_opclassOid: Oid); + fn SPI_unregister_relation( + arg_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - RemoveOpClassById(arg_opclassOid) + SPI_unregister_relation(arg_name) }) } -pub unsafe fn RemoveOpFamilyById(arg_opfamilyOid: Oid) { +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 RemoveOpFamilyById(arg_opfamilyOid: Oid); + fn SPI_register_trigger_data(arg_tdata: *mut TriggerData) -> ::std::os::raw::c_int; } - RemoveOpFamilyById(arg_opfamilyOid) + SPI_register_trigger_data(arg_tdata) }) } -pub unsafe fn RemoveAmOpEntryById(arg_entryOid: Oid) { +pub unsafe fn AtEOXact_SPI(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemoveAmOpEntryById(arg_entryOid: Oid); + fn AtEOXact_SPI(arg_isCommit: bool); } - RemoveAmOpEntryById(arg_entryOid) + AtEOXact_SPI(arg_isCommit) }) } -pub unsafe fn RemoveAmProcEntryById(arg_entryOid: Oid) { +pub unsafe fn AtEOSubXact_SPI(arg_isCommit: bool, arg_mySubid: SubTransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemoveAmProcEntryById(arg_entryOid: Oid); + fn AtEOSubXact_SPI(arg_isCommit: bool, arg_mySubid: SubTransactionId); } - RemoveAmProcEntryById(arg_entryOid) + AtEOSubXact_SPI(arg_isCommit, arg_mySubid) }) } -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, - ); +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() } - 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, -) { +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 IsThereOpFamilyInNamespace( - arg_opfname: *const ::std::os::raw::c_char, - arg_opfmethod: Oid, - arg_opfnamespace: Oid, - ); + fn RegisterBackgroundWorker(arg_worker: *mut BackgroundWorker); } - IsThereOpFamilyInNamespace(arg_opfname, arg_opfmethod, arg_opfnamespace) + RegisterBackgroundWorker(arg_worker) }) } -pub unsafe fn get_opclass_oid( - arg_amID: Oid, - arg_opclassname: *mut List, - arg_missing_ok: bool, -) -> Oid { +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 get_opclass_oid( - arg_amID: Oid, - arg_opclassname: *mut List, - arg_missing_ok: bool, - ) -> Oid; + fn RegisterDynamicBackgroundWorker( + arg_worker: *mut BackgroundWorker, + arg_handle: *mut *mut BackgroundWorkerHandle, + ) -> bool; } - get_opclass_oid(arg_amID, arg_opclassname, arg_missing_ok) + RegisterDynamicBackgroundWorker(arg_worker, arg_handle) }) } -pub unsafe fn get_opfamily_oid( - arg_amID: Oid, - arg_opfamilyname: *mut List, - arg_missing_ok: bool, -) -> Oid { +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 get_opfamily_oid( - arg_amID: Oid, - arg_opfamilyname: *mut List, - arg_missing_ok: bool, - ) -> Oid; + fn GetBackgroundWorkerPid( + arg_handle: *mut BackgroundWorkerHandle, + arg_pidp: *mut pid_t, + ) -> BgwHandleStatus; } - get_opfamily_oid(arg_amID, arg_opfamilyname, arg_missing_ok) + GetBackgroundWorkerPid(arg_handle, arg_pidp) }) } -pub unsafe fn DefineTSParser(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { +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 DefineTSParser(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; + fn WaitForBackgroundWorkerStartup( + arg_handle: *mut BackgroundWorkerHandle, + arg_pid: *mut pid_t, + ) -> BgwHandleStatus; } - DefineTSParser(arg_names, arg_parameters) + WaitForBackgroundWorkerStartup(arg_handle, arg_pid) }) } -pub unsafe fn RemoveTSParserById(arg_prsId: Oid) { +pub unsafe fn WaitForBackgroundWorkerShutdown( + arg_arg1: *mut BackgroundWorkerHandle, +) -> BgwHandleStatus { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemoveTSParserById(arg_prsId: Oid); + fn WaitForBackgroundWorkerShutdown( + arg_arg1: *mut BackgroundWorkerHandle, + ) -> BgwHandleStatus; } - RemoveTSParserById(arg_prsId) + WaitForBackgroundWorkerShutdown(arg_arg1) }) } -pub unsafe fn DefineTSDictionary(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { +pub unsafe fn TerminateBackgroundWorker(arg_handle: *mut BackgroundWorkerHandle) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DefineTSDictionary(arg_names: *mut List, arg_parameters: *mut List) - -> ObjectAddress; + fn TerminateBackgroundWorker(arg_handle: *mut BackgroundWorkerHandle); } - DefineTSDictionary(arg_names, arg_parameters) + TerminateBackgroundWorker(arg_handle) }) } -pub unsafe fn RemoveTSDictionaryById(arg_dictId: Oid) { +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 RemoveTSDictionaryById(arg_dictId: Oid); + fn BackgroundWorkerInitializeConnection( + arg_dbname: *mut ::std::os::raw::c_char, + arg_username: *mut ::std::os::raw::c_char, + ); } - RemoveTSDictionaryById(arg_dictId) + BackgroundWorkerInitializeConnection(arg_dbname, arg_username) }) } -pub unsafe fn AlterTSDictionary(arg_stmt: *mut AlterTSDictionaryStmt) -> ObjectAddress { +pub unsafe fn BackgroundWorkerInitializeConnectionByOid(arg_dboid: Oid, arg_useroid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AlterTSDictionary(arg_stmt: *mut AlterTSDictionaryStmt) -> ObjectAddress; + fn BackgroundWorkerInitializeConnectionByOid(arg_dboid: Oid, arg_useroid: Oid); } - AlterTSDictionary(arg_stmt) + BackgroundWorkerInitializeConnectionByOid(arg_dboid, arg_useroid) }) } -pub unsafe fn DefineTSTemplate(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { +pub unsafe fn BackgroundWorkerBlockSignals() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DefineTSTemplate(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; + fn BackgroundWorkerBlockSignals(); } - DefineTSTemplate(arg_names, arg_parameters) + BackgroundWorkerBlockSignals() }) } -pub unsafe fn RemoveTSTemplateById(arg_tmplId: Oid) { +pub unsafe fn BackgroundWorkerUnblockSignals() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemoveTSTemplateById(arg_tmplId: Oid); + fn BackgroundWorkerUnblockSignals(); } - RemoveTSTemplateById(arg_tmplId) + BackgroundWorkerUnblockSignals() }) } -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; +#[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() } - DefineTSConfiguration(arg_names, arg_parameters, arg_copied) - }) + } } -pub unsafe fn RemoveTSConfigurationById(arg_cfgId: Oid) { +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 RemoveTSConfigurationById(arg_cfgId: Oid); + fn shm_mq_create( + arg_address: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut shm_mq; } - RemoveTSConfigurationById(arg_cfgId) + shm_mq_create(arg_address, arg_size) }) } -pub unsafe fn AlterTSConfiguration(arg_stmt: *mut AlterTSConfigurationStmt) -> ObjectAddress { +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 AlterTSConfiguration(arg_stmt: *mut AlterTSConfigurationStmt) -> ObjectAddress; + fn shm_mq_set_receiver(arg_mq: *mut shm_mq, arg_arg1: *mut PGPROC); } - AlterTSConfiguration(arg_stmt) + shm_mq_set_receiver(arg_mq, arg_arg1) }) } -pub unsafe fn serialize_deflist(arg_deflist: *mut List) -> *mut text { +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 serialize_deflist(arg_deflist: *mut List) -> *mut text; + fn shm_mq_set_sender(arg_mq: *mut shm_mq, arg_arg1: *mut PGPROC); } - serialize_deflist(arg_deflist) + shm_mq_set_sender(arg_mq, arg_arg1) }) } -pub unsafe fn deserialize_deflist(arg_txt: Datum) -> *mut List { +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 deserialize_deflist(arg_txt: Datum) -> *mut List; + fn shm_mq_get_receiver(arg_arg1: *mut shm_mq) -> *mut PGPROC; } - deserialize_deflist(arg_txt) + shm_mq_get_receiver(arg_arg1) }) } -pub unsafe fn AlterForeignServerOwner( - arg_name: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, -) -> ObjectAddress { +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 AlterForeignServerOwner( - arg_name: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, - ) -> ObjectAddress; + fn shm_mq_get_sender(arg_arg1: *mut shm_mq) -> *mut PGPROC; } - AlterForeignServerOwner(arg_name, arg_newOwnerId) + shm_mq_get_sender(arg_arg1) }) } -pub unsafe fn AlterForeignServerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid) { +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 AlterForeignServerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid); + fn shm_mq_attach( + arg_mq: *mut shm_mq, + arg_seg: *mut dsm_segment, + arg_handle: *mut BackgroundWorkerHandle, + ) -> *mut shm_mq_handle; } - AlterForeignServerOwner_oid(arg_arg1, arg_newOwnerId) + shm_mq_attach(arg_mq, arg_seg, arg_handle) }) } -pub unsafe fn AlterForeignDataWrapperOwner( - arg_name: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, -) -> ObjectAddress { +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 AlterForeignDataWrapperOwner( - arg_name: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, - ) -> ObjectAddress; + fn shm_mq_set_handle( + arg_arg1: *mut shm_mq_handle, + arg_arg2: *mut BackgroundWorkerHandle, + ); } - AlterForeignDataWrapperOwner(arg_name, arg_newOwnerId) + shm_mq_set_handle(arg_arg1, arg_arg2) }) } -pub unsafe fn AlterForeignDataWrapperOwner_oid(arg_fwdId: Oid, arg_newOwnerId: Oid) { +pub unsafe fn shm_mq_detach(arg_mqh: *mut shm_mq_handle) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AlterForeignDataWrapperOwner_oid(arg_fwdId: Oid, arg_newOwnerId: Oid); + fn shm_mq_detach(arg_mqh: *mut shm_mq_handle); } - AlterForeignDataWrapperOwner_oid(arg_fwdId, arg_newOwnerId) + shm_mq_detach(arg_mqh) }) } -pub unsafe fn CreateForeignDataWrapper(arg_stmt: *mut CreateFdwStmt) -> ObjectAddress { +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 CreateForeignDataWrapper(arg_stmt: *mut CreateFdwStmt) -> ObjectAddress; + fn shm_mq_get_queue(arg_mqh: *mut shm_mq_handle) -> *mut shm_mq; } - CreateForeignDataWrapper(arg_stmt) + shm_mq_get_queue(arg_mqh) }) } -pub unsafe fn AlterForeignDataWrapper(arg_stmt: *mut AlterFdwStmt) -> ObjectAddress { +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 AlterForeignDataWrapper(arg_stmt: *mut AlterFdwStmt) -> ObjectAddress; + 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; } - AlterForeignDataWrapper(arg_stmt) + shm_mq_send(arg_mqh, arg_nbytes, arg_data, arg_nowait) }) } -pub unsafe fn RemoveForeignDataWrapperById(arg_fdwId: Oid) { +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 RemoveForeignDataWrapperById(arg_fdwId: Oid); + 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; } - RemoveForeignDataWrapperById(arg_fdwId) + shm_mq_sendv(arg_mqh, arg_iov, arg_iovcnt, arg_nowait) }) } -pub unsafe fn CreateForeignServer(arg_stmt: *mut CreateForeignServerStmt) -> ObjectAddress { +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 CreateForeignServer(arg_stmt: *mut CreateForeignServerStmt) -> ObjectAddress; + 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; } - CreateForeignServer(arg_stmt) + shm_mq_receive(arg_mqh, arg_nbytesp, arg_datap, arg_nowait) }) } -pub unsafe fn AlterForeignServer(arg_stmt: *mut AlterForeignServerStmt) -> ObjectAddress { +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 AlterForeignServer(arg_stmt: *mut AlterForeignServerStmt) -> ObjectAddress; + fn shm_mq_wait_for_attach(arg_mqh: *mut shm_mq_handle) -> shm_mq_result; } - AlterForeignServer(arg_stmt) + shm_mq_wait_for_attach(arg_mqh) }) } -pub unsafe fn RemoveForeignServerById(arg_srvId: Oid) { +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 RemoveForeignServerById(arg_srvId: Oid); + fn shm_toc_create( + arg_magic: uint64, + arg_address: *mut ::std::os::raw::c_void, + arg_nbytes: Size, + ) -> *mut shm_toc; } - RemoveForeignServerById(arg_srvId) + shm_toc_create(arg_magic, arg_address, arg_nbytes) }) } -pub unsafe fn CreateUserMapping(arg_stmt: *mut CreateUserMappingStmt) -> ObjectAddress { +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 CreateUserMapping(arg_stmt: *mut CreateUserMappingStmt) -> ObjectAddress; + fn shm_toc_attach( + arg_magic: uint64, + arg_address: *mut ::std::os::raw::c_void, + ) -> *mut shm_toc; } - CreateUserMapping(arg_stmt) + shm_toc_attach(arg_magic, arg_address) }) } -pub unsafe fn AlterUserMapping(arg_stmt: *mut AlterUserMappingStmt) -> ObjectAddress { +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 AlterUserMapping(arg_stmt: *mut AlterUserMappingStmt) -> ObjectAddress; + fn shm_toc_allocate( + arg_toc: *mut shm_toc, + arg_nbytes: Size, + ) -> *mut ::std::os::raw::c_void; } - AlterUserMapping(arg_stmt) + shm_toc_allocate(arg_toc, arg_nbytes) }) } -pub unsafe fn RemoveUserMapping(arg_stmt: *mut DropUserMappingStmt) -> Oid { +pub unsafe fn shm_toc_freespace(arg_toc: *mut shm_toc) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemoveUserMapping(arg_stmt: *mut DropUserMappingStmt) -> Oid; + fn shm_toc_freespace(arg_toc: *mut shm_toc) -> Size; } - RemoveUserMapping(arg_stmt) + shm_toc_freespace(arg_toc) }) } -pub unsafe fn RemoveUserMappingById(arg_umId: Oid) { +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 RemoveUserMappingById(arg_umId: Oid); + fn shm_toc_insert( + arg_toc: *mut shm_toc, + arg_key: uint64, + arg_address: *mut ::std::os::raw::c_void, + ); } - RemoveUserMappingById(arg_umId) + shm_toc_insert(arg_toc, arg_key, arg_address) }) } -pub unsafe fn CreateForeignTable(arg_stmt: *mut CreateForeignTableStmt, arg_relid: Oid) { +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 CreateForeignTable(arg_stmt: *mut CreateForeignTableStmt, arg_relid: Oid); + fn shm_toc_lookup( + arg_toc: *mut shm_toc, + arg_key: uint64, + arg_noError: bool, + ) -> *mut ::std::os::raw::c_void; } - CreateForeignTable(arg_stmt, arg_relid) + shm_toc_lookup(arg_toc, arg_key, arg_noError) }) } -pub unsafe fn ImportForeignSchema(arg_stmt: *mut ImportForeignSchemaStmt) { +#[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 ImportForeignSchema(arg_stmt: *mut ImportForeignSchemaStmt); + fn shm_toc_estimate(arg_e: *mut shm_toc_estimator) -> Size; } - ImportForeignSchema(arg_stmt) + shm_toc_estimate(arg_e) }) } -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; +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() } - 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; +#[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() } - CreateAccessMethod(arg_stmt) - }) + } } -pub unsafe fn RemoveAccessMethodById(arg_amOid: Oid) { +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 RemoveAccessMethodById(arg_amOid: Oid); + 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; } - RemoveAccessMethodById(arg_amOid) + CreateParallelContext(arg_library_name, arg_function_name, arg_nworkers) }) } -pub unsafe fn get_index_am_oid( - arg_amname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { +pub unsafe fn InitializeParallelDSM(arg_pcxt: *mut ParallelContext) { 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; + fn InitializeParallelDSM(arg_pcxt: *mut ParallelContext); } - get_index_am_oid(arg_amname, arg_missing_ok) + InitializeParallelDSM(arg_pcxt) }) } -pub unsafe fn get_am_oid(arg_amname: *const ::std::os::raw::c_char, arg_missing_ok: bool) -> Oid { +pub unsafe fn ReinitializeParallelDSM(arg_pcxt: *mut ParallelContext) { 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; + fn ReinitializeParallelDSM(arg_pcxt: *mut ParallelContext); } - get_am_oid(arg_amname, arg_missing_ok) + ReinitializeParallelDSM(arg_pcxt) }) } -pub unsafe fn get_am_name(arg_amOid: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn LaunchParallelWorkers(arg_pcxt: *mut ParallelContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_am_name(arg_amOid: Oid) -> *mut ::std::os::raw::c_char; + fn LaunchParallelWorkers(arg_pcxt: *mut ParallelContext); } - get_am_name(arg_amOid) + LaunchParallelWorkers(arg_pcxt) }) } -pub unsafe fn defGetString(arg_def: *mut DefElem) -> *mut ::std::os::raw::c_char { +pub unsafe fn WaitForParallelWorkersToFinish(arg_pcxt: *mut ParallelContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn defGetString(arg_def: *mut DefElem) -> *mut ::std::os::raw::c_char; + fn WaitForParallelWorkersToFinish(arg_pcxt: *mut ParallelContext); } - defGetString(arg_def) + WaitForParallelWorkersToFinish(arg_pcxt) }) } -pub unsafe fn defGetNumeric(arg_def: *mut DefElem) -> f64 { +pub unsafe fn DestroyParallelContext(arg_pcxt: *mut ParallelContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn defGetNumeric(arg_def: *mut DefElem) -> f64; + fn DestroyParallelContext(arg_pcxt: *mut ParallelContext); } - defGetNumeric(arg_def) + DestroyParallelContext(arg_pcxt) }) } -pub unsafe fn defGetBoolean(arg_def: *mut DefElem) -> bool { +pub unsafe fn ParallelContextActive() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn defGetBoolean(arg_def: *mut DefElem) -> bool; + fn ParallelContextActive() -> bool; } - defGetBoolean(arg_def) + ParallelContextActive() }) } -pub unsafe fn defGetInt32(arg_def: *mut DefElem) -> int32 { +pub unsafe fn HandleParallelMessageInterrupt() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn defGetInt32(arg_def: *mut DefElem) -> int32; + fn HandleParallelMessageInterrupt(); } - defGetInt32(arg_def) + HandleParallelMessageInterrupt() }) } -pub unsafe fn defGetInt64(arg_def: *mut DefElem) -> int64 { +pub unsafe fn HandleParallelMessages() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn defGetInt64(arg_def: *mut DefElem) -> int64; + fn HandleParallelMessages(); } - defGetInt64(arg_def) + HandleParallelMessages() }) } -pub unsafe fn defGetQualifiedName(arg_def: *mut DefElem) -> *mut List { +pub unsafe fn AtEOXact_Parallel(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn defGetQualifiedName(arg_def: *mut DefElem) -> *mut List; + fn AtEOXact_Parallel(arg_isCommit: bool); } - defGetQualifiedName(arg_def) + AtEOXact_Parallel(arg_isCommit) }) } -pub unsafe fn defGetTypeName(arg_def: *mut DefElem) -> *mut TypeName { +pub unsafe fn AtEOSubXact_Parallel(arg_isCommit: bool, arg_mySubId: SubTransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn defGetTypeName(arg_def: *mut DefElem) -> *mut TypeName; + fn AtEOSubXact_Parallel(arg_isCommit: bool, arg_mySubId: SubTransactionId); } - defGetTypeName(arg_def) + AtEOSubXact_Parallel(arg_isCommit, arg_mySubId) }) } -pub unsafe fn defGetTypeLength(arg_def: *mut DefElem) -> ::std::os::raw::c_int { +pub unsafe fn ParallelWorkerReportLastRecEnd(arg_last_xlog_end: XLogRecPtr) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn defGetTypeLength(arg_def: *mut DefElem) -> ::std::os::raw::c_int; + fn ParallelWorkerReportLastRecEnd(arg_last_xlog_end: XLogRecPtr); } - defGetTypeLength(arg_def) + ParallelWorkerReportLastRecEnd(arg_last_xlog_end) }) } -pub unsafe fn defGetStringList(arg_def: *mut DefElem) -> *mut List { +pub unsafe fn ParallelWorkerMain(arg_main_arg: Datum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn defGetStringList(arg_def: *mut DefElem) -> *mut List; + fn ParallelWorkerMain(arg_main_arg: Datum); } - defGetStringList(arg_def) + 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, 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, +#[derive(Debug, Default, Copy, Clone)] +pub struct QualCost { + pub startup: Cost, + pub per_tuple: Cost, } -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() - } - } +#[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 type Form_pg_event_trigger = *mut FormData_pg_event_trigger; +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 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, +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 InternalGrant { +impl Default for PlannerGlobal { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -46092,21 +41122,69 @@ impl Default for InternalGrant { } } } -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, +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 CollectedATSubcmd { +impl Default for PlannerInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -46115,40 +41193,136 @@ impl Default for CollectedATSubcmd { } } } +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(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, +#[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, } -#[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, +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, Default, Copy, Clone)] -pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_1 { - pub address: ObjectAddress, - pub secondaryObject: ObjectAddress, +#[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 CollectedCommand__bindgen_ty_1__bindgen_ty_2 { - pub objectId: Oid, - pub classId: Oid, - pub subcmds: *mut List, +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 CollectedCommand__bindgen_ty_1__bindgen_ty_2 { +impl Default for ForeignKeyOptInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -46159,10 +41333,14 @@ impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_2 { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_3 { - pub istmt: *mut InternalGrant, +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 CollectedCommand__bindgen_ty_1__bindgen_ty_3 { +impl Default for StatisticExtInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -46173,12 +41351,24 @@ impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_3 { } #[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, +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 CollectedCommand__bindgen_ty_1__bindgen_ty_4 { +impl Default for EquivalenceClass { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -46189,12 +41379,16 @@ impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_4 { } #[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, +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 CollectedCommand__bindgen_ty_1__bindgen_ty_5 { +impl Default for EquivalenceMember { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -46205,12 +41399,14 @@ impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_5 { } #[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, +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 CollectedCommand__bindgen_ty_1__bindgen_ty_6 { +impl Default for PathKey { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -46221,10 +41417,14 @@ impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_6 { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_7 { - pub objtype: GrantObjectType, +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 CollectedCommand__bindgen_ty_1__bindgen_ty_7 { +impl Default for PathTarget { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -46233,7 +41433,15 @@ impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_7 { } } } -impl Default for CollectedCommand__bindgen_ty_1 { +#[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 { @@ -46242,7 +41450,23 @@ impl Default for CollectedCommand__bindgen_ty_1 { } } } -impl Default for CollectedCommand { +#[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 { @@ -46253,13 +41477,19 @@ impl Default for CollectedCommand { } #[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, +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 EventTriggerData { +impl Default for IndexPath { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -46268,335 +41498,321 @@ impl Default for EventTriggerData { } } } -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; +#[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() } - 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); +#[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() } - 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; +#[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() } - 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; +#[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() } - 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; +#[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() } - 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); +#[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() } - 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; +#[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() } - 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; +#[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() } - EventTriggerSupportsObjectClass(arg_objclass) - }) + } } -pub unsafe fn EventTriggerSupportsGrantObjectType(arg_objtype: GrantObjectType) -> bool { +pub unsafe fn is_dummy_rel(arg_rel: *mut RelOptInfo) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EventTriggerSupportsGrantObjectType(arg_objtype: GrantObjectType) -> bool; + fn is_dummy_rel(arg_rel: *mut RelOptInfo) -> bool; } - EventTriggerSupportsGrantObjectType(arg_objtype) + is_dummy_rel(arg_rel) }) } -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) - }) +#[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, } -pub unsafe fn EventTriggerDDLCommandEnd(arg_parsetree: *mut Node) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerDDLCommandEnd(arg_parsetree: *mut Node); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ResultPath { + pub path: Path, + pub quals: *mut List, } -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, - ); +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() } - 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() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MaterialPath { + pub path: Path, + pub subpath: *mut Path, } -pub unsafe fn EventTriggerEndCompleteQuery() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerEndCompleteQuery(); +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() } - EventTriggerEndCompleteQuery() - }) + } } -pub unsafe fn trackDroppedObjectsNeeded() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn trackDroppedObjectsNeeded() -> bool; - } - trackDroppedObjectsNeeded() - }) +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, } -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, - ); +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() } - EventTriggerSQLDropAddObject(arg_object, arg_original, arg_normal) - }) + } } -pub unsafe fn EventTriggerInhibitCommandCollection() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerInhibitCommandCollection(); - } - EventTriggerInhibitCommandCollection() - }) +#[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 EventTriggerUndoInhibitCommandCollection() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerUndoInhibitCommandCollection(); +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() } - 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) - }) +#[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 EventTriggerAlterTableStart(arg_parsetree: *mut Node) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerAlterTableStart(arg_parsetree: *mut Node); +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() } - 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) - }) +#[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 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, - ); +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() } - EventTriggerCollectAlterTableSubcmd(arg_subcmd, arg_address) - }) + } } -pub unsafe fn EventTriggerAlterTableEnd() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerAlterTableEnd(); - } - EventTriggerAlterTableEnd() - }) +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 EventTriggerCollectGrant(arg_istmt: *mut InternalGrant) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerCollectGrant(arg_istmt: *mut InternalGrant); +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() } - 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) - }) +#[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, } -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, - ); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ProjectionPath { + pub path: Path, + pub subpath: *mut Path, + pub dummypp: bool, } -pub unsafe fn EventTriggerCollectAlterDefPrivs(arg_stmt: *mut AlterDefaultPrivilegesStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerCollectAlterDefPrivs(arg_stmt: *mut AlterDefaultPrivilegesStmt); +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() } - 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, +pub struct ProjectSetPath { + pub path: Path, + pub subpath: *mut Path, } -impl Default for ExplainState { +impl Default for ProjectSetPath { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -46605,685 +41821,443 @@ impl Default for ExplainState { } } } -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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SortPath { + pub path: Path, + pub subpath: *mut Path, } -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; +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() + } + } } -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, - ); +#[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() } - 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; +#[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() } - 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; +#[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() } - 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, - ); +#[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() } - 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, - ) - }) +#[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, } -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); +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() } - 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) - }) +#[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, } -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); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MinMaxAggPath { + pub path: Path, + pub mmaggregates: *mut List, + pub quals: *mut List, } -pub unsafe fn ExplainEndOutput(arg_es: *mut ExplainState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainEndOutput(arg_es: *mut ExplainState); +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() } - 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) - }) +#[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 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, - ); +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() } - 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) - }) +#[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, } -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, - ); +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() } - 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) - }) +#[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, } -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, - ); +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() } - 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) - }) +#[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, } -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, - ); +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() } - 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) - }) +#[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 DropProceduralLanguageById(arg_langOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DropProceduralLanguageById(arg_langOid: 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() } - 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) - }) +#[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_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; +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_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, - ) - }) +#[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, } -pub unsafe fn RemoveRelations(arg_drop: *mut DropStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveRelations(arg_drop: *mut DropStmt); +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() } - 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) - }) +#[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, } -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) - }) +#[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, } -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; +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() } - 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) - }) +#[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, } -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); +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() } - 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) - }) +#[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, } -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); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionedChildRelInfo { + pub type_: NodeTag, + pub parent_relid: Index, + pub child_rels: *mut List, } -pub unsafe fn PreCommit_on_commit_actions() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PreCommit_on_commit_actions(); +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() } - 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) - }) +#[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, } -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, - ); +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() } - 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) - }) +#[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, } -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, - ); +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() } - RangeVarCallbackOwnsRelation(arg_relation, arg_relId, arg_oldRelId, arg_noCatalogs) - }) + } } -pub type TriggerEvent = uint32; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TriggerData { +pub struct PlannerParamItem { 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, + pub item: *mut Node, + pub paramId: ::std::os::raw::c_int, } -impl Default for TriggerData { +impl Default for PlannerParamItem { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -47293,22 +42267,22 @@ impl Default for TriggerData { } } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AfterTriggersTableData { - _unused: [u8; 0], +#[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 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, +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 TransitionCaptureState { +impl Default for JoinPathExtraData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -47317,13334 +42291,364 @@ impl Default for TransitionCaptureState { } } } -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) - }) +#[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 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 GetForeignRelSize_function = ::std::option::Option< + unsafe extern "C" fn(root: *mut PlannerInfo, baserel: *mut RelOptInfo, foreigntableid: Oid), >; -pub type AnalyzeAttrComputeStatsFunc = ::std::option::Option< +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( - stats: VacAttrStatsP, - fetchfunc: AnalyzeAttrFetchFunc, - samplerows: ::std::os::raw::c_int, - totalrows: f64, - ), + 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, >; -#[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)] -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 GetFdwRoutine(arg_fdwhandler: Oid) -> *mut FdwRoutine { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetFdwRoutine(arg_fdwhandler: Oid) -> *mut FdwRoutine; - } - GetFdwRoutine(arg_fdwhandler) - }) -} -pub unsafe fn GetForeignServerIdByRelId(arg_relid: Oid) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetForeignServerIdByRelId(arg_relid: Oid) -> Oid; - } - GetForeignServerIdByRelId(arg_relid) - }) -} -pub unsafe fn GetFdwRoutineByServerId(arg_serverid: Oid) -> *mut FdwRoutine { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetFdwRoutineByServerId(arg_serverid: Oid) -> *mut FdwRoutine; - } - GetFdwRoutineByServerId(arg_serverid) - }) -} -pub unsafe fn GetFdwRoutineByRelId(arg_relid: Oid) -> *mut FdwRoutine { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetFdwRoutineByRelId(arg_relid: Oid) -> *mut FdwRoutine; - } - GetFdwRoutineByRelId(arg_relid) - }) -} -pub unsafe fn GetFdwRoutineForRelation( - arg_relation: Relation, - arg_makecopy: bool, -) -> *mut FdwRoutine { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetFdwRoutineForRelation( - arg_relation: Relation, - arg_makecopy: bool, - ) -> *mut FdwRoutine; - } - GetFdwRoutineForRelation(arg_relation, arg_makecopy) - }) -} -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 IsImportableForeignTable( - arg_tablename: *const ::std::os::raw::c_char, - arg_stmt: *mut ImportForeignSchemaStmt, - ) -> bool; - } - IsImportableForeignTable(arg_tablename, arg_stmt) - }) -} -pub unsafe fn GetExistingLocalJoinPath(arg_joinrel: *mut RelOptInfo) -> *mut Path { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetExistingLocalJoinPath(arg_joinrel: *mut RelOptInfo) -> *mut Path; - } - GetExistingLocalJoinPath(arg_joinrel) - }) -} -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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UserMapping { - pub umid: Oid, - pub userid: Oid, - pub serverid: Oid, - pub options: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForeignTable { - pub relid: Oid, - pub serverid: Oid, - pub options: *mut List, -} -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 GetForeignServer(arg_serverid: Oid) -> *mut ForeignServer { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetForeignServer(arg_serverid: Oid) -> *mut ForeignServer; - } - GetForeignServer(arg_serverid) - }) -} -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 GetForeignServerByName( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> *mut ForeignServer; - } - GetForeignServerByName(arg_name, arg_missing_ok) - }) -} -pub unsafe fn GetUserMapping(arg_userid: Oid, arg_serverid: Oid) -> *mut UserMapping { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetUserMapping(arg_userid: Oid, arg_serverid: Oid) -> *mut UserMapping; - } - GetUserMapping(arg_userid, arg_serverid) - }) -} -pub unsafe fn GetForeignDataWrapper(arg_fdwid: Oid) -> *mut ForeignDataWrapper { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetForeignDataWrapper(arg_fdwid: Oid) -> *mut ForeignDataWrapper; - } - 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 GetForeignDataWrapperByName( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> *mut ForeignDataWrapper; - } - GetForeignDataWrapperByName(arg_name, arg_missing_ok) - }) -} -pub unsafe fn GetForeignTable(arg_relid: Oid) -> *mut ForeignTable { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetForeignTable(arg_relid: Oid) -> *mut ForeignTable; - } - GetForeignTable(arg_relid) - }) -} -pub unsafe fn GetForeignColumnOptions(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetForeignColumnOptions(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List; - } - GetForeignColumnOptions(arg_relid, arg_attnum) - }) -} -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 get_foreign_data_wrapper_oid( - arg_fdwname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; - } - get_foreign_data_wrapper_oid(arg_fdwname, arg_missing_ok) - }) -} -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 get_foreign_server_oid( - arg_servername: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; - } - 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 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]; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pg_enc2gettext { - pub encoding: pg_enc, - pub name: *const ::std::os::raw::c_char, -} -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() - } - } -} -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( - 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, -} -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 pg_char_to_encoding( - arg_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_char_to_encoding(arg_name) - }) -} -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 pg_encoding_to_char( - arg_encoding: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; - } - pg_encoding_to_char(arg_encoding) - }) -} -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 pg_valid_server_encoding_id( - arg_encoding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - pg_valid_server_encoding_id(arg_encoding) - }) -} -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 pg_mb2wchar( - arg_from: *const ::std::os::raw::c_char, - arg_to: *mut pg_wchar, - ) -> ::std::os::raw::c_int; - } - pg_mb2wchar(arg_from, arg_to) - }) -} -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 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; - } - pg_mb2wchar_with_len(arg_from, arg_to, arg_len) - }) -} -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 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; - } - pg_encoding_mb2wchar_with_len(arg_encoding, arg_from, arg_to, arg_len) - }) -} -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 pg_wchar2mb( - arg_from: *const pg_wchar, - arg_to: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_wchar2mb(arg_from, arg_to) - }) -} -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 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; - } - pg_wchar2mb_with_len(arg_from, arg_to, arg_len) - }) -} -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 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; - } - pg_encoding_wchar2mb_with_len(arg_encoding, arg_from, arg_to, arg_len) - }) -} -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 pg_char_and_wchar_strcmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const pg_wchar, - ) -> ::std::os::raw::c_int; - } - pg_char_and_wchar_strcmp(arg_s1, arg_s2) - }) -} -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 pg_wchar_strncmp( - arg_s1: *const pg_wchar, - arg_s2: *const pg_wchar, - arg_n: usize, - ) -> ::std::os::raw::c_int; - } - pg_wchar_strncmp(arg_s1, arg_s2, arg_n) - }) -} -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 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; - } - pg_char_and_wchar_strncmp(arg_s1, arg_s2, arg_n) - }) -} -pub unsafe fn pg_wchar_strlen(arg_wstr: *const pg_wchar) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_wchar_strlen(arg_wstr: *const pg_wchar) -> usize; - } - pg_wchar_strlen(arg_wstr) - }) -} -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 pg_mblen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - pg_mblen(arg_mbstr) - }) -} -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) - }) -} -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 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 pg_encoding_dsplen( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_encoding_dsplen(arg_encoding, arg_mbstr) - }) -} -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 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; - } - pg_encoding_verifymb(arg_encoding, arg_mbstr, arg_len) - }) -} -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 pg_mule_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; - } - pg_mule_mblen(arg_mbstr) - }) -} -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 pg_mic_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; - } - pg_mic_mblen(arg_mbstr) - }) -} -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 pg_mbstrlen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - pg_mbstrlen(arg_mbstr) - }) -} -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 pg_mbstrlen_with_len( - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - pg_mbstrlen_with_len(arg_mbstr, arg_len) - }) -} -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 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; - } - pg_mbcliplen(arg_mbstr, arg_len, arg_limit) - }) -} -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 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; - } - pg_encoding_mbcliplen(arg_encoding, arg_mbstr, arg_len, arg_limit) - }) -} -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 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; - } - pg_mbcharcliplen(arg_mbstr, arg_len, arg_imit) - }) -} -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 pg_encoding_max_length(arg_encoding: ::std::os::raw::c_int) - -> ::std::os::raw::c_int; - } - pg_encoding_max_length(arg_encoding) - }) -} -pub unsafe fn pg_database_encoding_max_length() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_database_encoding_max_length() -> ::std::os::raw::c_int; - } - pg_database_encoding_max_length() - }) -} -pub unsafe fn pg_database_encoding_character_incrementer() -> mbcharacter_incrementer { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_database_encoding_character_incrementer() -> mbcharacter_incrementer; - } - pg_database_encoding_character_incrementer() - }) -} -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 PrepareClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - PrepareClientEncoding(arg_encoding) - }) -} -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 SetClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - SetClientEncoding(arg_encoding) - }) -} -pub unsafe fn InitializeClientEncoding() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitializeClientEncoding(); - } - InitializeClientEncoding() - }) -} -pub unsafe fn pg_get_client_encoding() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_get_client_encoding() -> ::std::os::raw::c_int; - } - pg_get_client_encoding() - }) -} -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 pg_get_client_encoding_name() -> *const ::std::os::raw::c_char; - } - pg_get_client_encoding_name() - }) -} -pub unsafe fn SetDatabaseEncoding(arg_encoding: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetDatabaseEncoding(arg_encoding: ::std::os::raw::c_int); - } - SetDatabaseEncoding(arg_encoding) - }) -} -pub unsafe fn GetDatabaseEncoding() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetDatabaseEncoding() -> ::std::os::raw::c_int; - } - GetDatabaseEncoding() - }) -} -pub unsafe fn GetDatabaseEncodingName() -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetDatabaseEncodingName() -> *const ::std::os::raw::c_char; - } - GetDatabaseEncodingName() - }) -} -pub unsafe fn SetMessageEncoding(arg_encoding: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetMessageEncoding(arg_encoding: ::std::os::raw::c_int); - } - SetMessageEncoding(arg_encoding) - }) -} -pub unsafe fn GetMessageEncoding() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetMessageEncoding() -> ::std::os::raw::c_int; - } - GetMessageEncoding() - }) -} -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 pg_valid_client_encoding( - arg_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_valid_client_encoding(arg_name) - }) -} -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 pg_valid_server_encoding( - arg_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_valid_server_encoding(arg_name) - }) -} -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 unicode_to_utf8( - arg_c: pg_wchar, - arg_utf8string: *mut ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; - } - unicode_to_utf8(arg_c, arg_utf8string) - }) -} -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 utf8_to_unicode(arg_c: *const ::std::os::raw::c_uchar) -> pg_wchar; - } - utf8_to_unicode(arg_c) - }) -} -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 pg_utf_mblen(arg_arg1: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; - } - pg_utf_mblen(arg_arg1) - }) -} -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 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; - } - pg_do_encoding_conversion(arg_src, arg_len, arg_src_encoding, arg_dest_encoding) - }) -} -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 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; - } - pg_client_to_server(arg_s, arg_len) - }) -} -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 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; - } - pg_server_to_client(arg_s, arg_len) - }) -} -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 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; - } - pg_any_to_server(arg_s, arg_len, arg_encoding) - }) -} -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 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; - } - pg_server_to_any(arg_s, arg_len, arg_encoding) - }) -} -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 BIG5toCNS( - arg_big5: ::std::os::raw::c_ushort, - arg_lc: *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_ushort; - } - BIG5toCNS(arg_big5, arg_lc) - }) -} -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 CNStoBIG5( - arg_cns: ::std::os::raw::c_ushort, - arg_lc: ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_ushort; - } - CNStoBIG5(arg_cns, arg_lc) - }) -} -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 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, - ); - } - UtfToLocal( - arg_utf, - arg_len, - arg_iso, - arg_map, - arg_cmap, - arg_cmapsize, - arg_conv_func, - arg_encoding, - ) - }) -} -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 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, - ); - } - LocalToUtf( - arg_iso, - arg_len, - arg_utf, - arg_map, - arg_cmap, - arg_cmapsize, - arg_conv_func, - arg_encoding, - ) - }) -} -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 pg_verifymbstr( - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_noError: bool, - ) -> bool; - } - pg_verifymbstr(arg_mbstr, arg_len, arg_noError) - }) -} -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 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; - } - pg_verify_mbstr(arg_encoding, arg_mbstr, arg_len, arg_noError) - }) -} -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 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; - } - pg_verify_mbstr_len(arg_encoding, arg_mbstr, arg_len, arg_noError) - }) -} -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 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, - ); - } - report_invalid_encoding(arg_encoding, arg_mbstr, arg_len) - }) -} -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 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, - ); - } - report_untranslatable_char(arg_src_encoding, arg_dest_encoding, arg_mbstr, arg_len) - }) -} -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 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, - ); - } - local2local( - arg_l, - arg_p, - arg_len, - arg_src_encoding, - arg_dest_encoding, - arg_tab, - ) - }) -} -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 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, - ); - } - pg_ascii2mic(arg_l, arg_p, arg_len) - }) -} -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 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, - ); - } - pg_mic2ascii(arg_mic, arg_p, arg_len) - }) -} -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 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, - ); - } - latin2mic(arg_l, arg_p, arg_len, arg_lc, arg_encoding) - }) -} -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 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, - ); - } - mic2latin(arg_mic, arg_p, arg_len, arg_lc, arg_encoding) - }) -} -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 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, - ); - } - latin2mic_with_table(arg_l, arg_p, arg_len, arg_lc, arg_encoding, arg_tab) - }) -} -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 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, - ); - } - mic2latin_with_table(arg_mic, arg_p, arg_len, arg_lc, arg_encoding, arg_tab) - }) -} -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 pg_utf8_islegal( - arg_source: *const ::std::os::raw::c_uchar, - arg_length: ::std::os::raw::c_int, - ) -> bool; - } - pg_utf8_islegal(arg_source, arg_length) - }) -} -#[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() - } - } -} -#[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, -} -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 RegisterExtensibleNodeMethods(arg_method: *const ExtensibleNodeMethods) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RegisterExtensibleNodeMethods(arg_method: *const ExtensibleNodeMethods); - } - RegisterExtensibleNodeMethods(arg_method) - }) -} -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) - }) -} -#[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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CustomScanMethods { - pub CustomName: *const ::std::os::raw::c_char, - pub CreateCustomScanState: - ::std::option::Option *mut Node>, -} -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() - } - } -} -#[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, - ), - >, -} -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 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 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 GetCustomScanMethods( - arg_CustomName: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> *const CustomScanMethods; - } - GetCustomScanMethods(arg_CustomName, 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 { - 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; - } - makeA_Expr(arg_kind, arg_name, arg_lexpr, arg_rexpr, arg_location) - }) -} -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 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; - } - makeSimpleA_Expr(arg_kind, arg_name, arg_lexpr, arg_rexpr, arg_location) - }) -} -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 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; - } - makeVarFromTargetEntry(arg_varno, arg_tle) - }) -} -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 makeWholeRowVar( - arg_rte: *mut RangeTblEntry, - arg_varno: Index, - arg_varlevelsup: Index, - arg_allowScalar: bool, - ) -> *mut Var; - } - makeWholeRowVar(arg_rte, arg_varno, arg_varlevelsup, arg_allowScalar) - }) -} -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 makeTargetEntry( - arg_expr: *mut Expr, - arg_resno: AttrNumber, - arg_resname: *mut ::std::os::raw::c_char, - arg_resjunk: bool, - ) -> *mut TargetEntry; - } - makeTargetEntry(arg_expr, arg_resno, arg_resname, arg_resjunk) - }) -} -pub unsafe fn flatCopyTargetEntry(arg_src_tle: *mut TargetEntry) -> *mut TargetEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn flatCopyTargetEntry(arg_src_tle: *mut TargetEntry) -> *mut TargetEntry; - } - flatCopyTargetEntry(arg_src_tle) - }) -} -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 makeFromExpr(arg_fromlist: *mut List, arg_quals: *mut Node) -> *mut FromExpr; - } - makeFromExpr(arg_fromlist, arg_quals) - }) -} -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 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; - } - makeConst( - arg_consttype, - arg_consttypmod, - arg_constcollid, - arg_constlen, - arg_constvalue, - arg_constisnull, - arg_constbyval, - ) - }) -} -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 makeNullConst( - arg_consttype: Oid, - arg_consttypmod: int32, - arg_constcollid: Oid, - ) -> *mut Const; - } - makeNullConst(arg_consttype, arg_consttypmod, arg_constcollid) - }) -} -pub unsafe fn makeBoolConst(arg_value: bool, arg_isnull: bool) -> *mut Node { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeBoolConst(arg_value: bool, arg_isnull: bool) -> *mut Node; - } - makeBoolConst(arg_value, arg_isnull) - }) -} -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 makeBoolExpr( - arg_boolop: BoolExprType, - arg_args: *mut List, - arg_location: ::std::os::raw::c_int, - ) -> *mut Expr; - } - makeBoolExpr(arg_boolop, arg_args, arg_location) - }) -} -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 makeAlias( - arg_aliasname: *const ::std::os::raw::c_char, - arg_colnames: *mut List, - ) -> *mut Alias; - } - makeAlias(arg_aliasname, arg_colnames) - }) -} -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 makeRelabelType( - arg_arg: *mut Expr, - arg_rtype: Oid, - arg_rtypmod: int32, - arg_rcollid: Oid, - arg_rformat: CoercionForm, - ) -> *mut RelabelType; - } - makeRelabelType(arg_arg, arg_rtype, arg_rtypmod, arg_rcollid, arg_rformat) - }) -} -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 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; - } - makeRangeVar(arg_schemaname, arg_relname, arg_location) - }) -} -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 makeTypeName(arg_typnam: *mut ::std::os::raw::c_char) -> *mut TypeName; - } - makeTypeName(arg_typnam) - }) -} -pub unsafe fn makeTypeNameFromNameList(arg_names: *mut List) -> *mut TypeName { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeTypeNameFromNameList(arg_names: *mut List) -> *mut TypeName; - } - makeTypeNameFromNameList(arg_names) - }) -} -pub unsafe fn makeTypeNameFromOid(arg_typeOid: Oid, arg_typmod: int32) -> *mut TypeName { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeTypeNameFromOid(arg_typeOid: Oid, arg_typmod: int32) -> *mut TypeName; - } - makeTypeNameFromOid(arg_typeOid, arg_typmod) - }) -} -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 makeColumnDef( - arg_colname: *const ::std::os::raw::c_char, - arg_typeOid: Oid, - arg_typmod: int32, - arg_collOid: Oid, - ) -> *mut ColumnDef; - } - makeColumnDef(arg_colname, arg_typeOid, arg_typmod, arg_collOid) - }) -} -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 makeFuncExpr( - arg_funcid: Oid, - arg_rettype: Oid, - arg_args: *mut List, - arg_funccollid: Oid, - arg_inputcollid: Oid, - arg_fformat: CoercionForm, - ) -> *mut FuncExpr; - } - makeFuncExpr( - arg_funcid, - arg_rettype, - arg_args, - arg_funccollid, - arg_inputcollid, - arg_fformat, - ) - }) -} -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 makeFuncCall( - arg_name: *mut List, - arg_args: *mut List, - arg_location: ::std::os::raw::c_int, - ) -> *mut FuncCall; - } - makeFuncCall(arg_name, arg_args, arg_location) - }) -} -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 makeDefElem( - arg_name: *mut ::std::os::raw::c_char, - arg_arg: *mut Node, - arg_location: ::std::os::raw::c_int, - ) -> *mut DefElem; - } - makeDefElem(arg_name, arg_arg, arg_location) - }) -} -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 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; - } - makeDefElemExtended( - arg_nameSpace, - arg_name, - arg_arg, - arg_defaction, - arg_location, - ) - }) -} -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 makeGroupingSet( - arg_kind: GroupingSetKind, - arg_content: *mut List, - arg_location: ::std::os::raw::c_int, - ) -> *mut GroupingSet; - } - makeGroupingSet(arg_kind, arg_content, arg_location) - }) -} -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 exprType(arg_expr: *const Node) -> Oid; - } - exprType(arg_expr) - }) -} -pub unsafe fn exprTypmod(arg_expr: *const Node) -> int32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exprTypmod(arg_expr: *const Node) -> int32; - } - exprTypmod(arg_expr) - }) -} -pub unsafe fn exprIsLengthCoercion(arg_expr: *const Node, arg_coercedTypmod: *mut int32) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exprIsLengthCoercion(arg_expr: *const Node, arg_coercedTypmod: *mut int32) -> bool; - } - exprIsLengthCoercion(arg_expr, arg_coercedTypmod) - }) -} -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 relabel_to_typmod(arg_expr: *mut Node, arg_typmod: int32) -> *mut Node; - } - relabel_to_typmod(arg_expr, arg_typmod) - }) -} -pub unsafe fn strip_implicit_coercions(arg_node: *mut Node) -> *mut Node { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strip_implicit_coercions(arg_node: *mut Node) -> *mut Node; - } - strip_implicit_coercions(arg_node) - }) -} -pub unsafe fn expression_returns_set(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expression_returns_set(arg_clause: *mut Node) -> bool; - } - expression_returns_set(arg_clause) - }) -} -pub unsafe fn exprCollation(arg_expr: *const Node) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exprCollation(arg_expr: *const Node) -> Oid; - } - exprCollation(arg_expr) - }) -} -pub unsafe fn exprInputCollation(arg_expr: *const Node) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exprInputCollation(arg_expr: *const Node) -> Oid; - } - exprInputCollation(arg_expr) - }) -} -pub unsafe fn exprSetCollation(arg_expr: *mut Node, arg_collation: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exprSetCollation(arg_expr: *mut Node, arg_collation: Oid); - } - exprSetCollation(arg_expr, arg_collation) - }) -} -pub unsafe fn exprSetInputCollation(arg_expr: *mut Node, arg_inputcollation: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exprSetInputCollation(arg_expr: *mut Node, arg_inputcollation: Oid); - } - exprSetInputCollation(arg_expr, arg_inputcollation) - }) -} -pub unsafe fn exprLocation(arg_expr: *const Node) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exprLocation(arg_expr: *const Node) -> ::std::os::raw::c_int; - } - exprLocation(arg_expr) - }) -} -pub unsafe fn fix_opfuncids(arg_node: *mut Node) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fix_opfuncids(arg_node: *mut Node); - } - fix_opfuncids(arg_node) - }) -} -pub unsafe fn set_opfuncid(arg_opexpr: *mut OpExpr) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_opfuncid(arg_opexpr: *mut OpExpr); - } - set_opfuncid(arg_opexpr) - }) -} -pub unsafe fn set_sa_opfuncid(arg_opexpr: *mut ScalarArrayOpExpr) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_sa_opfuncid(arg_opexpr: *mut ScalarArrayOpExpr); - } - set_sa_opfuncid(arg_opexpr) - }) -} -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 check_functions_in_node( - arg_node: *mut Node, - arg_checker: check_function_callback, - arg_context: *mut ::std::os::raw::c_void, - ) -> bool; - } - check_functions_in_node(arg_node, arg_checker, arg_context) - }) -} -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 expression_tree_mutator( - arg_node: *mut Node, - arg_mutator: ::std::option::Option *mut Node>, - arg_context: *mut ::std::os::raw::c_void, - ) -> *mut Node; - } - expression_tree_mutator(arg_node, arg_mutator, arg_context) - }) -} -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 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; - } - query_tree_mutator(arg_query, arg_mutator, arg_context, arg_flags) - }) -} -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 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; - } - range_table_walker(arg_rtable, arg_walker, arg_context, arg_flags) - }) -} -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 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; - } - range_table_mutator(arg_rtable, arg_mutator, arg_context, arg_flags) - }) -} -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 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 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; - } - query_or_expression_tree_mutator(arg_node, arg_mutator, arg_context, arg_flags) - }) -} -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 raw_expression_tree_walker( - arg_node: *mut Node, - arg_walker: ::std::option::Option bool>, - arg_context: *mut ::std::os::raw::c_void, - ) -> bool; - } - raw_expression_tree_walker(arg_node, arg_walker, arg_context) - }) -} -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 planstate_tree_walker( - arg_planstate: *mut PlanState, - arg_walker: ::std::option::Option bool>, - arg_context: *mut ::std::os::raw::c_void, - ) -> bool; - } - planstate_tree_walker(arg_planstate, arg_walker, arg_context) - }) -} -pub unsafe fn print(arg_obj: *const ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn print(arg_obj: *const ::std::os::raw::c_void); - } - print(arg_obj) - }) -} -pub unsafe fn pprint(arg_obj: *const ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pprint(arg_obj: *const ::std::os::raw::c_void); - } - pprint(arg_obj) - }) -} -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 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, - ); - } - elog_node_display(arg_lev, arg_title, arg_obj, arg_pretty) - }) -} -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 format_node_dump( - arg_dump: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - format_node_dump(arg_dump) - }) -} -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 pretty_format_node_dump( - arg_dump: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - pretty_format_node_dump(arg_dump) - }) -} -pub unsafe fn print_rt(arg_rtable: *const List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn print_rt(arg_rtable: *const List); - } - print_rt(arg_rtable) - }) -} -pub unsafe fn print_expr(arg_expr: *const Node, arg_rtable: *const List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn print_expr(arg_expr: *const Node, arg_rtable: *const List); - } - print_expr(arg_expr, arg_rtable) - }) -} -pub unsafe fn print_pathkeys(arg_pathkeys: *const List, arg_rtable: *const List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn print_pathkeys(arg_pathkeys: *const List, arg_rtable: *const List); - } - print_pathkeys(arg_pathkeys, arg_rtable) - }) -} -pub unsafe fn print_tl(arg_tlist: *const List, arg_rtable: *const List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn print_tl(arg_tlist: *const List, arg_rtable: *const List); - } - print_tl(arg_tlist, arg_rtable) - }) -} -pub unsafe fn print_slot(arg_slot: *mut TupleTableSlot) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn print_slot(arg_slot: *mut TupleTableSlot); - } - print_slot(arg_slot) - }) -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BaseBackupCmd { - pub type_: NodeTag, - pub options: *mut List, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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() - } - } -} -#[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() - } - } -} -#[repr(C)] -#[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, 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)] -#[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 WindowFuncLists { - fn default() -> Self { - 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_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; - } - make_opclause( - arg_opno, - arg_opresulttype, - arg_opretset, - arg_leftop, - arg_rightop, - arg_opcollid, - arg_inputcollid, - ) - }) -} -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; - } - get_leftop(arg_clause) - }) -} -pub unsafe fn get_rightop(arg_clause: *const Expr) -> *mut Node { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_rightop(arg_clause: *const Expr) -> *mut Node; - } - get_rightop(arg_clause) - }) -} -pub unsafe fn not_clause(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn not_clause(arg_clause: *mut Node) -> bool; - } - not_clause(arg_clause) - }) -} -pub unsafe fn make_notclause(arg_notclause: *mut Expr) -> *mut Expr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_notclause(arg_notclause: *mut Expr) -> *mut Expr; - } - make_notclause(arg_notclause) - }) -} -pub unsafe fn get_notclausearg(arg_notclause: *mut Expr) -> *mut Expr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_notclausearg(arg_notclause: *mut Expr) -> *mut Expr; - } - get_notclausearg(arg_notclause) - }) -} -pub unsafe fn or_clause(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn or_clause(arg_clause: *mut Node) -> bool; - } - or_clause(arg_clause) - }) -} -pub unsafe fn make_orclause(arg_orclauses: *mut List) -> *mut Expr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_orclause(arg_orclauses: *mut List) -> *mut Expr; - } - make_orclause(arg_orclauses) - }) -} -pub unsafe fn and_clause(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn and_clause(arg_clause: *mut Node) -> bool; - } - and_clause(arg_clause) - }) -} -pub unsafe fn make_andclause(arg_andclauses: *mut List) -> *mut Expr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_andclause(arg_andclauses: *mut List) -> *mut Expr; - } - make_andclause(arg_andclauses) - }) -} -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 make_and_qual(arg_qual1: *mut Node, arg_qual2: *mut Node) -> *mut Node; - } - make_and_qual(arg_qual1, arg_qual2) - }) -} -pub unsafe fn make_ands_explicit(arg_andclauses: *mut List) -> *mut Expr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_ands_explicit(arg_andclauses: *mut List) -> *mut Expr; - } - make_ands_explicit(arg_andclauses) - }) -} -pub unsafe fn make_ands_implicit(arg_clause: *mut Expr) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_ands_implicit(arg_clause: *mut Expr) -> *mut List; - } - make_ands_implicit(arg_clause) - }) -} -pub unsafe fn contain_agg_clause(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn contain_agg_clause(arg_clause: *mut Node) -> bool; - } - contain_agg_clause(arg_clause) - }) -} -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 get_agg_clause_costs( - arg_root: *mut PlannerInfo, - arg_clause: *mut Node, - arg_aggsplit: AggSplit, - arg_costs: *mut AggClauseCosts, - ); - } - get_agg_clause_costs(arg_root, arg_clause, arg_aggsplit, arg_costs) - }) -} -pub unsafe fn contain_window_function(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn contain_window_function(arg_clause: *mut Node) -> bool; - } - contain_window_function(arg_clause) - }) -} -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 find_window_functions( - arg_clause: *mut Node, - arg_maxWinRef: Index, - ) -> *mut WindowFuncLists; - } - find_window_functions(arg_clause, arg_maxWinRef) - }) -} -pub unsafe fn expression_returns_set_rows(arg_clause: *mut Node) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expression_returns_set_rows(arg_clause: *mut Node) -> f64; - } - expression_returns_set_rows(arg_clause) - }) -} -pub unsafe fn contain_subplans(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn contain_subplans(arg_clause: *mut Node) -> bool; - } - contain_subplans(arg_clause) - }) -} -pub unsafe fn contain_mutable_functions(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn contain_mutable_functions(arg_clause: *mut Node) -> bool; - } - contain_mutable_functions(arg_clause) - }) -} -pub unsafe fn contain_volatile_functions(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn contain_volatile_functions(arg_clause: *mut Node) -> bool; - } - contain_volatile_functions(arg_clause) - }) -} -pub unsafe fn contain_volatile_functions_not_nextval(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn contain_volatile_functions_not_nextval(arg_clause: *mut Node) -> bool; - } - contain_volatile_functions_not_nextval(arg_clause) - }) -} -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 max_parallel_hazard(arg_parse: *mut Query) -> ::std::os::raw::c_char; - } - max_parallel_hazard(arg_parse) - }) -} -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 is_parallel_safe(arg_root: *mut PlannerInfo, arg_node: *mut Node) -> bool; - } - is_parallel_safe(arg_root, arg_node) - }) -} -pub unsafe fn contain_nonstrict_functions(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn contain_nonstrict_functions(arg_clause: *mut Node) -> bool; - } - contain_nonstrict_functions(arg_clause) - }) -} -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 contain_exec_param(arg_clause: *mut Node, arg_param_ids: *mut List) -> bool; - } - contain_exec_param(arg_clause, arg_param_ids) - }) -} -pub unsafe fn contain_leaked_vars(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn contain_leaked_vars(arg_clause: *mut Node) -> bool; - } - contain_leaked_vars(arg_clause) - }) -} -pub unsafe fn find_nonnullable_rels(arg_clause: *mut Node) -> Relids { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_nonnullable_rels(arg_clause: *mut Node) -> Relids; - } - find_nonnullable_rels(arg_clause) - }) -} -pub unsafe fn find_nonnullable_vars(arg_clause: *mut Node) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_nonnullable_vars(arg_clause: *mut Node) -> *mut List; - } - find_nonnullable_vars(arg_clause) - }) -} -pub unsafe fn find_forced_null_vars(arg_clause: *mut Node) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_forced_null_vars(arg_clause: *mut Node) -> *mut List; - } - find_forced_null_vars(arg_clause) - }) -} -pub unsafe fn find_forced_null_var(arg_clause: *mut Node) -> *mut Var { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_forced_null_var(arg_clause: *mut Node) -> *mut Var; - } - find_forced_null_var(arg_clause) - }) -} -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 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; - } - 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 unsafe fn CommuteOpExpr(arg_clause: *mut OpExpr) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CommuteOpExpr(arg_clause: *mut OpExpr); - } - CommuteOpExpr(arg_clause) - }) -} -pub unsafe fn CommuteRowCompareExpr(arg_clause: *mut RowCompareExpr) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CommuteRowCompareExpr(arg_clause: *mut RowCompareExpr); - } - CommuteRowCompareExpr(arg_clause) - }) -} -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 eval_const_expressions(arg_root: *mut PlannerInfo, arg_node: *mut Node) - -> *mut Node; - } - eval_const_expressions(arg_root, arg_node) - }) -} -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 estimate_expression_value( - arg_root: *mut PlannerInfo, - arg_node: *mut Node, - ) -> *mut Node; - } - estimate_expression_value(arg_root, arg_node) - }) -} -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 inline_set_returning_function( - arg_root: *mut PlannerInfo, - arg_rte: *mut RangeTblEntry, - ) -> *mut Query; - } - 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; -} -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 clamp_row_est(arg_nrows: f64) -> f64; - } - clamp_row_est(arg_nrows) - }) -} -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 index_pages_fetched( - arg_tuples_fetched: f64, - arg_pages: BlockNumber, - arg_index_pages: f64, - arg_root: *mut PlannerInfo, - ) -> f64; - } - index_pages_fetched(arg_tuples_fetched, arg_pages, arg_index_pages, arg_root) - }) -} -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 cost_seqscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); - } - cost_seqscan(arg_path, arg_root, arg_baserel, arg_param_info) - }) -} -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 cost_samplescan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); - } - cost_samplescan(arg_path, arg_root, arg_baserel, arg_param_info) - }) -} -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 cost_index( - arg_path: *mut IndexPath, - arg_root: *mut PlannerInfo, - arg_loop_count: f64, - arg_partial_path: bool, - ); - } - cost_index(arg_path, arg_root, arg_loop_count, arg_partial_path) - }) -} -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 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, - ); - } - cost_bitmap_heap_scan( - arg_path, - arg_root, - arg_baserel, - arg_param_info, - arg_bitmapqual, - arg_loop_count, - ) - }) -} -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 cost_bitmap_and_node(arg_path: *mut BitmapAndPath, arg_root: *mut PlannerInfo); - } - cost_bitmap_and_node(arg_path, arg_root) - }) -} -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 cost_bitmap_or_node(arg_path: *mut BitmapOrPath, arg_root: *mut PlannerInfo); - } - cost_bitmap_or_node(arg_path, arg_root) - }) -} -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 cost_bitmap_tree_node( - arg_path: *mut Path, - arg_cost: *mut Cost, - arg_selec: *mut Selectivity, - ); - } - cost_bitmap_tree_node(arg_path, arg_cost, arg_selec) - }) -} -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 cost_tidscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_tidquals: *mut List, - arg_param_info: *mut ParamPathInfo, - ); - } - cost_tidscan( - arg_path, - arg_root, - arg_baserel, - arg_tidquals, - arg_param_info, - ) - }) -} -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 cost_subqueryscan( - arg_path: *mut SubqueryScanPath, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); - } - cost_subqueryscan(arg_path, arg_root, arg_baserel, arg_param_info) - }) -} -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 cost_functionscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); - } - cost_functionscan(arg_path, arg_root, arg_baserel, arg_param_info) - }) -} -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 cost_tableexprscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); - } - cost_tableexprscan(arg_path, arg_root, arg_baserel, arg_param_info) - }) -} -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 cost_valuesscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); - } - cost_valuesscan(arg_path, arg_root, arg_baserel, arg_param_info) - }) -} -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 cost_tablefuncscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); - } - cost_tablefuncscan(arg_path, arg_root, arg_baserel, arg_param_info) - }) -} -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 cost_ctescan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); - } - cost_ctescan(arg_path, arg_root, arg_baserel, arg_param_info) - }) -} -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 cost_namedtuplestorescan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); - } - cost_namedtuplestorescan(arg_path, arg_root, arg_baserel, arg_param_info) - }) -} -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 cost_recursive_union( - arg_runion: *mut Path, - arg_nrterm: *mut Path, - arg_rterm: *mut Path, - ); - } - cost_recursive_union(arg_runion, arg_nrterm, arg_rterm) - }) -} -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 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, - ); - } - 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 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 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, - ); - } - 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 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 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, - ); - } - cost_material( - arg_path, - arg_input_startup_cost, - arg_input_total_cost, - arg_tuples, - arg_width, - ) - }) -} -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 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, - ); - } - 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 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 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, - ); - } - 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 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 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, - ); - } - cost_group( - arg_path, - arg_root, - arg_numGroupCols, - arg_numGroups, - arg_input_startup_cost, - arg_input_total_cost, - arg_input_tuples, - ) - }) -} -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 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, - ); - } - initial_cost_nestloop( - arg_root, - arg_workspace, - arg_jointype, - arg_outer_path, - arg_inner_path, - arg_extra, - ) - }) -} -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 final_cost_nestloop( - arg_root: *mut PlannerInfo, - arg_path: *mut NestPath, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - ); - } - final_cost_nestloop(arg_root, arg_path, arg_workspace, arg_extra) - }) -} -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 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, - ); - } - 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 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 final_cost_mergejoin( - arg_root: *mut PlannerInfo, - arg_path: *mut MergePath, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - ); - } - final_cost_mergejoin(arg_root, arg_path, arg_workspace, arg_extra) - }) -} -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 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, - ); - } - initial_cost_hashjoin( - arg_root, - arg_workspace, - arg_jointype, - arg_hashclauses, - arg_outer_path, - arg_inner_path, - arg_extra, - ) - }) -} -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 final_cost_hashjoin( - arg_root: *mut PlannerInfo, - arg_path: *mut HashPath, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - ); - } - final_cost_hashjoin(arg_root, arg_path, arg_workspace, arg_extra) - }) -} -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 cost_gather( - arg_path: *mut GatherPath, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - arg_rows: *mut f64, - ); - } - cost_gather(arg_path, arg_root, arg_baserel, arg_param_info, arg_rows) - }) -} -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 cost_subplan( - arg_root: *mut PlannerInfo, - arg_subplan: *mut SubPlan, - arg_plan: *mut Plan, - ); - } - cost_subplan(arg_root, arg_subplan, arg_plan) - }) -} -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, - ); - } - cost_qual_eval(arg_cost, arg_quals, arg_root) - }) -} -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 cost_qual_eval_node( - arg_cost: *mut QualCost, - arg_qual: *mut Node, - arg_root: *mut PlannerInfo, - ); - } - cost_qual_eval_node(arg_cost, arg_qual, arg_root) - }) -} -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 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, - ); - } - compute_semi_anti_join_factors( - arg_root, - arg_outerrel, - arg_innerrel, - arg_jointype, - arg_sjinfo, - arg_restrictlist, - arg_semifactors, - ) - }) -} -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 set_baserel_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); - } - 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 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 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, - ); - } - set_joinrel_size_estimates( - arg_root, - arg_rel, - arg_outer_rel, - arg_inner_rel, - arg_sjinfo, - arg_restrictlist, - ) - }) -} -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 set_cte_size_estimates( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_cte_rows: f64, - ); - } - 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) - }) -} -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 set_namedtuplestore_size_estimates( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - ); - } - set_namedtuplestore_size_estimates(arg_root, arg_rel) - }) -} -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 set_foreign_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); - } - set_foreign_size_estimates(arg_root, arg_rel) - }) -} -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 set_pathtarget_cost_width( - arg_root: *mut PlannerInfo, - arg_target: *mut PathTarget, - ) -> *mut PathTarget; - } - set_pathtarget_cost_width(arg_root, arg_target) - }) -} -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 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; - } - compute_bitmap_pages( - arg_root, - arg_baserel, - arg_bitmapqual, - arg_loop_count, - arg_cost, - arg_tuple, - ) - }) -} -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 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; - } - clauselist_selectivity( - arg_root, - arg_clauses, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) - }) -} -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 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; - } - clause_selectivity(arg_root, arg_clause, arg_varRelid, arg_jointype, arg_sjinfo) - }) -} -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 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, - ); - } - 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) - }) -} -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 compare_fractional_path_costs( - arg_path1: *mut Path, - arg_path2: *mut Path, - arg_fraction: f64, - ) -> ::std::os::raw::c_int; - } - compare_fractional_path_costs(arg_path1, arg_path2, arg_fraction) - }) -} -pub unsafe fn set_cheapest(arg_parent_rel: *mut RelOptInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_cheapest(arg_parent_rel: *mut RelOptInfo); - } - set_cheapest(arg_parent_rel) - }) -} -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 add_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path); - } - add_path(arg_parent_rel, arg_new_path) - }) -} -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 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; - } - add_path_precheck( - arg_parent_rel, - arg_startup_cost, - arg_total_cost, - arg_pathkeys, - arg_required_outer, - ) - }) -} -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 add_partial_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path); - } - add_partial_path(arg_parent_rel, arg_new_path) - }) -} -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 add_partial_path_precheck( - arg_parent_rel: *mut RelOptInfo, - arg_total_cost: Cost, - arg_pathkeys: *mut List, - ) -> 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) - }) -} -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 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; - } - 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 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 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; - } - create_bitmap_heap_path( - arg_root, - arg_rel, - arg_bitmapqual, - arg_required_outer, - arg_loop_count, - arg_parallel_degree, - ) - }) -} -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 create_bitmap_and_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_bitmapquals: *mut List, - ) -> *mut BitmapAndPath; - } - create_bitmap_and_path(arg_root, arg_rel, arg_bitmapquals) - }) -} -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 create_bitmap_or_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_bitmapquals: *mut List, - ) -> *mut BitmapOrPath; - } - 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 { - 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; - } - create_tidscan_path(arg_root, arg_rel, arg_tidquals, arg_required_outer) - }) -} -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 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; - } - create_append_path( - arg_rel, - arg_subpaths, - arg_required_outer, - arg_parallel_workers, - arg_partitioned_rels, - ) - }) -} -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 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; - } - create_merge_append_path( - arg_root, - arg_rel, - arg_subpaths, - arg_pathkeys, - arg_required_outer, - arg_partitioned_rels, - ) - }) -} -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 create_result_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_target: *mut PathTarget, - arg_resconstantqual: *mut List, - ) -> *mut ResultPath; - } - create_result_path(arg_root, arg_rel, arg_target, arg_resconstantqual) - }) -} -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 create_material_path( - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - ) -> *mut MaterialPath; - } - create_material_path(arg_rel, arg_subpath) - }) -} -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 create_unique_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_sjinfo: *mut SpecialJoinInfo, - ) -> *mut UniquePath; - } - create_unique_path(arg_root, arg_rel, arg_subpath, arg_sjinfo) - }) -} -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 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; - } - create_gather_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_required_outer, - arg_rows, - ) - }) -} -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 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; - } - create_gather_merge_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_pathkeys, - arg_required_outer, - arg_rows, - ) - }) -} -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 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; - } - create_subqueryscan_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_required_outer, - ) - }) -} -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 create_functionscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - ) -> *mut Path; - } - create_functionscan_path(arg_root, arg_rel, arg_pathkeys, arg_required_outer) - }) -} -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 create_tablexprscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - ) -> *mut Path; - } - create_tablexprscan_path(arg_root, arg_rel, arg_pathkeys, arg_required_outer) - }) -} -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 create_valuesscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; - } - create_valuesscan_path(arg_root, arg_rel, arg_required_outer) - }) -} -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 create_tablefuncscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; - } - create_tablefuncscan_path(arg_root, arg_rel, arg_required_outer) - }) -} -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 create_ctescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; - } - create_ctescan_path(arg_root, arg_rel, arg_required_outer) - }) -} -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 create_namedtuplestorescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; - } - create_namedtuplestorescan_path(arg_root, arg_rel, arg_required_outer) - }) -} -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 create_worktablescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; - } - create_worktablescan_path(arg_root, arg_rel, arg_required_outer) - }) -} -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 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; - } - 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 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 calc_nestloop_required_outer( - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - ) -> Relids; - } - calc_nestloop_required_outer(arg_outer_path, arg_inner_path) - }) -} -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 calc_non_nestloop_required_outer( - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - ) -> Relids; - } - calc_non_nestloop_required_outer(arg_outer_path, arg_inner_path) - }) -} -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 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; - } - 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, - ) - }) -} -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 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; - } - 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 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 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; - } - 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 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 create_projection_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - ) -> *mut ProjectionPath; - } - create_projection_path(arg_root, arg_rel, arg_subpath, arg_target) - }) -} -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 apply_projection_to_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_path: *mut Path, - arg_target: *mut PathTarget, - ) -> *mut Path; - } - apply_projection_to_path(arg_root, arg_rel, arg_path, arg_target) - }) -} -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 create_set_projection_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - ) -> *mut ProjectSetPath; - } - create_set_projection_path(arg_root, arg_rel, arg_subpath, arg_target) - }) -} -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 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; - } - create_sort_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_limit_tuples, - ) - }) -} -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 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; - } - create_group_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_groupClause, - arg_qual, - arg_numGroups, - ) - }) -} -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 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; - } - create_upper_unique_path(arg_root, arg_rel, arg_subpath, arg_numCols, arg_numGroups) - }) -} -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 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; - } - 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 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 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; - } - 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 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 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; - } - create_minmaxagg_path(arg_root, arg_rel, arg_target, arg_mmaggregates, arg_quals) - }) -} -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 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; - } - create_windowagg_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_windowFuncs, - arg_winclause, - arg_winpathkeys, - ) - }) -} -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 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; - } - 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 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 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; - } - create_recursiveunion_path( - arg_root, - arg_rel, - arg_leftpath, - arg_rightpath, - arg_target, - arg_distinctList, - arg_wtParam, - arg_numGroups, - ) - }) -} -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 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; - } - create_lockrows_path(arg_root, arg_rel, arg_subpath, arg_rowMarks, arg_epqParam) - }) -} -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 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; - } - 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 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 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; - } - create_limit_path( - arg_root, - arg_rel, - arg_subpath, - arg_limitOffset, - arg_limitCount, - arg_offset_est, - arg_count_est, - ) - }) -} -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 reparameterize_path( - arg_root: *mut PlannerInfo, - arg_path: *mut Path, - arg_required_outer: Relids, - arg_loop_count: f64, - ) -> *mut Path; - } - reparameterize_path(arg_root, arg_path, arg_required_outer, arg_loop_count) - }) -} -pub unsafe fn setup_simple_rel_arrays(arg_root: *mut PlannerInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setup_simple_rel_arrays(arg_root: *mut PlannerInfo); - } - setup_simple_rel_arrays(arg_root) - }) -} -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 build_simple_rel( - arg_root: *mut PlannerInfo, - arg_relid: ::std::os::raw::c_int, - arg_parent: *mut RelOptInfo, - ) -> *mut RelOptInfo; - } - build_simple_rel(arg_root, arg_relid, arg_parent) - }) -} -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 find_base_rel( - arg_root: *mut PlannerInfo, - arg_relid: ::std::os::raw::c_int, - ) -> *mut RelOptInfo; - } - find_base_rel(arg_root, arg_relid) - }) -} -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 find_join_rel(arg_root: *mut PlannerInfo, arg_relids: Relids) -> *mut RelOptInfo; - } - find_join_rel(arg_root, arg_relids) - }) -} -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 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; - } - build_join_rel( - arg_root, - arg_joinrelids, - arg_outer_rel, - arg_inner_rel, - arg_sjinfo, - arg_restrictlist_ptr, - ) - }) -} -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 min_join_parameterization( - arg_root: *mut PlannerInfo, - arg_joinrelids: Relids, - arg_outer_rel: *mut RelOptInfo, - arg_inner_rel: *mut RelOptInfo, - ) -> Relids; - } - min_join_parameterization(arg_root, arg_joinrelids, arg_outer_rel, arg_inner_rel) - }) -} -pub unsafe fn build_empty_join_rel(arg_root: *mut PlannerInfo) -> *mut RelOptInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn build_empty_join_rel(arg_root: *mut PlannerInfo) -> *mut RelOptInfo; - } - build_empty_join_rel(arg_root) - }) -} -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 fetch_upper_rel( - arg_root: *mut PlannerInfo, - arg_kind: UpperRelationKind, - arg_relids: Relids, - ) -> *mut RelOptInfo; - } - fetch_upper_rel(arg_root, arg_kind, arg_relids) - }) -} -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 find_childrel_appendrelinfo( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - ) -> *mut AppendRelInfo; - } - find_childrel_appendrelinfo(arg_root, arg_rel) - }) -} -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 find_childrel_parents( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - ) -> Relids; - } - find_childrel_parents(arg_root, arg_rel) - }) -} -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 get_baserel_parampathinfo( - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut ParamPathInfo; - } - get_baserel_parampathinfo(arg_root, arg_baserel, arg_required_outer) - }) -} -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 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; - } - get_joinrel_parampathinfo( - arg_root, - arg_joinrel, - arg_outer_path, - arg_inner_path, - arg_sjinfo, - arg_required_outer, - arg_restrict_clauses, - ) - }) -} -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 get_appendrel_parampathinfo( - arg_appendrel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut ParamPathInfo; - } - get_appendrel_parampathinfo(arg_appendrel, arg_required_outer) - }) -} -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 { - 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 set_dummy_rel_pathlist(arg_rel: *mut RelOptInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_dummy_rel_pathlist(arg_rel: *mut RelOptInfo); - } - set_dummy_rel_pathlist(arg_rel) - }) -} -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 standard_join_search( - arg_root: *mut PlannerInfo, - arg_levels_needed: ::std::os::raw::c_int, - arg_initial_rels: *mut List, - ) -> *mut RelOptInfo; - } - standard_join_search(arg_root, arg_levels_needed, arg_initial_rels) - }) -} -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 generate_gather_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); - } - generate_gather_paths(arg_root, arg_rel) - }) -} -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 compute_parallel_worker( - arg_rel: *mut RelOptInfo, - arg_heap_pages: f64, - arg_index_pages: f64, - ) -> ::std::os::raw::c_int; - } - 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 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 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; - } - relation_has_unique_index_for( - arg_root, - arg_rel, - arg_restrictlist, - arg_exprlist, - arg_oprlist, - ) - }) -} -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 indexcol_is_bool_constant_for_query( - arg_index: *mut IndexOptInfo, - arg_indexcol: ::std::os::raw::c_int, - ) -> bool; - } - indexcol_is_bool_constant_for_query(arg_index, arg_indexcol) - }) -} -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 match_index_to_operand( - arg_operand: *mut Node, - arg_indexcol: ::std::os::raw::c_int, - arg_index: *mut IndexOptInfo, - ) -> bool; - } - match_index_to_operand(arg_operand, arg_indexcol, arg_index) - }) -} -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 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, - ); - } - expand_indexqual_conditions( - arg_index, - arg_indexclauses, - arg_indexclausecols, - arg_indexquals_p, - arg_indexqualcols_p, - ) - }) -} -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 check_index_predicates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); - } - check_index_predicates(arg_root, arg_rel) - }) -} -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 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; - } - adjust_rowcompare_for_index( - arg_clause, - arg_index, - arg_indexcol, - arg_indexcolnos, - arg_var_on_left_p, - ) - }) -} -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 create_tidscan_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); - } - create_tidscan_paths(arg_root, arg_rel) - }) -} -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 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, - ); - } - add_paths_to_joinrel( - arg_root, - arg_joinrel, - arg_outerrel, - arg_innerrel, - arg_jointype, - arg_sjinfo, - arg_restrictlist, - ) - }) -} -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 join_search_one_level(arg_root: *mut PlannerInfo, arg_level: ::std::os::raw::c_int); - } - join_search_one_level(arg_root, arg_level) - }) -} -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 make_join_rel( - arg_root: *mut PlannerInfo, - arg_rel1: *mut RelOptInfo, - arg_rel2: *mut RelOptInfo, - ) -> *mut RelOptInfo; - } - make_join_rel(arg_root, arg_rel1, arg_rel2) - }) -} -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 have_join_order_restriction( - arg_root: *mut PlannerInfo, - arg_rel1: *mut RelOptInfo, - arg_rel2: *mut RelOptInfo, - ) -> bool; - } - have_join_order_restriction(arg_root, arg_rel1, arg_rel2) - }) -} -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 have_dangerous_phv( - arg_root: *mut PlannerInfo, - arg_outer_relids: Relids, - arg_inner_params: Relids, - ) -> bool; - } - have_dangerous_phv(arg_root, arg_outer_relids, arg_inner_params) - }) -} -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 process_equivalence( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, - arg_below_outer_join: bool, - ) -> bool; - } - process_equivalence(arg_root, arg_restrictinfo, arg_below_outer_join) - }) -} -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 canonicalize_ec_expression( - arg_expr: *mut Expr, - arg_req_type: Oid, - arg_req_collation: Oid, - ) -> *mut Expr; - } - canonicalize_ec_expression(arg_expr, arg_req_type, arg_req_collation) - }) -} -pub unsafe fn reconsider_outer_join_clauses(arg_root: *mut PlannerInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn reconsider_outer_join_clauses(arg_root: *mut PlannerInfo); - } - reconsider_outer_join_clauses(arg_root) - }) -} -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; - } - 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) - }) -} -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; - } - 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; - } - 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; - } - 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; - } - 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, - ); - } - 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; - } - 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; - } - 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; - } - has_relevant_eclass_joinclause(arg_root, arg_rel1) - }) -} -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) - }) -} -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 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 compare_pathkeys(arg_keys1: *mut List, arg_keys2: *mut List) -> PathKeysComparison; - } - compare_pathkeys(arg_keys1, arg_keys2) - }) -} -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) - }) -} -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 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 get_cheapest_fractional_path_for_pathkeys( - arg_paths: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_fraction: f64, - ) -> *mut Path; - } - get_cheapest_fractional_path_for_pathkeys( - arg_paths, - arg_pathkeys, - arg_required_outer, - arg_fraction, - ) - }) -} -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 get_cheapest_parallel_safe_total_inner(arg_paths: *mut List) -> *mut Path; - } - get_cheapest_parallel_safe_total_inner(arg_paths) - }) -} -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) - }) -} -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, - ) - }) -} -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) - }) -} -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; - } - build_join_pathkeys(arg_root, arg_joinrel, arg_jointype, arg_outer_pathkeys) - }) -} -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 make_pathkeys_for_sortclauses( - arg_root: *mut PlannerInfo, - arg_sortclauses: *mut List, - arg_tlist: *mut List, - ) -> *mut List; - } - make_pathkeys_for_sortclauses(arg_root, arg_sortclauses, arg_tlist) - }) -} -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 initialize_mergeclause_eclasses( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, - ); - } - initialize_mergeclause_eclasses(arg_root, arg_restrictinfo) - }) -} -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 update_mergeclause_eclasses( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, - ); - } - update_mergeclause_eclasses(arg_root, arg_restrictinfo) - }) -} -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 find_mergeclauses_for_outer_pathkeys( - arg_root: *mut PlannerInfo, - arg_pathkeys: *mut List, - arg_restrictinfos: *mut List, - ) -> *mut List; - } - find_mergeclauses_for_outer_pathkeys(arg_root, arg_pathkeys, arg_restrictinfos) - }) -} -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 select_outer_pathkeys_for_merge( - arg_root: *mut PlannerInfo, - arg_mergeclauses: *mut List, - arg_joinrel: *mut RelOptInfo, - ) -> *mut List; - } - select_outer_pathkeys_for_merge(arg_root, arg_mergeclauses, arg_joinrel) - }) -} -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 make_inner_pathkeys_for_merge( - arg_root: *mut PlannerInfo, - arg_mergeclauses: *mut List, - arg_outer_pathkeys: *mut List, - ) -> *mut List; - } - make_inner_pathkeys_for_merge(arg_root, arg_mergeclauses, arg_outer_pathkeys) - }) -} -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 trim_mergeclauses_for_inner_pathkeys( - arg_root: *mut PlannerInfo, - arg_mergeclauses: *mut List, - arg_pathkeys: *mut List, - ) -> *mut List; - } - trim_mergeclauses_for_inner_pathkeys(arg_root, arg_mergeclauses, arg_pathkeys) - }) -} -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 truncate_useless_pathkeys( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_pathkeys: *mut List, - ) -> *mut List; - } - truncate_useless_pathkeys(arg_root, arg_rel, arg_pathkeys) - }) -} -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) - }) -} -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, - ) - }) -} -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 { - 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; - } - query_planner(arg_root, arg_tlist, arg_qp_callback, arg_qp_extra) - }) -} -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 preprocess_minmax_aggregates(arg_root: *mut PlannerInfo, arg_tlist: *mut List); - } - preprocess_minmax_aggregates(arg_root, arg_tlist) - }) -} -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 create_plan(arg_root: *mut PlannerInfo, arg_best_path: *mut Path) -> *mut Plan; - } - create_plan(arg_root, arg_best_path) - }) -} -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 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 change_plan_targetlist( - arg_subplan: *mut Plan, - arg_tlist: *mut List, - arg_tlist_parallel_safe: bool, - ) -> *mut Plan; - } - change_plan_targetlist(arg_subplan, arg_tlist, arg_tlist_parallel_safe) - }) -} -pub unsafe fn materialize_finished_plan(arg_subplan: *mut Plan) -> *mut Plan { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn materialize_finished_plan(arg_subplan: *mut Plan) -> *mut Plan; - } - materialize_finished_plan(arg_subplan) - }) -} -pub unsafe fn is_projection_capable_path(arg_path: *mut Path) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn is_projection_capable_path(arg_path: *mut Path) -> bool; - } - is_projection_capable_path(arg_path) - }) -} -pub unsafe fn is_projection_capable_plan(arg_plan: *mut Plan) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn is_projection_capable_plan(arg_plan: *mut Plan) -> bool; - } - is_projection_capable_plan(arg_plan) - }) -} -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 make_sort_from_sortclauses( - arg_sortcls: *mut List, - arg_lefttree: *mut Plan, - ) -> *mut Sort; - } - make_sort_from_sortclauses(arg_sortcls, arg_lefttree) - }) -} -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 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; - } - make_agg( - arg_tlist, - arg_qual, - arg_aggstrategy, - arg_aggsplit, - arg_numGroupCols, - arg_grpColIdx, - arg_grpOperators, - arg_groupingSets, - arg_chain, - arg_dNumGroups, - arg_lefttree, - ) - }) -} -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) - }) -} -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 add_base_rels_to_query(arg_root: *mut PlannerInfo, arg_jtnode: *mut Node); - } - add_base_rels_to_query(arg_root, arg_jtnode) - }) -} -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 build_base_rel_tlists(arg_root: *mut PlannerInfo, arg_final_tlist: *mut List); - } - build_base_rel_tlists(arg_root, arg_final_tlist) - }) -} -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 add_vars_to_targetlist( - arg_root: *mut PlannerInfo, - arg_vars: *mut List, - arg_where_needed: Relids, - arg_create_new_ph: bool, - ); - } - add_vars_to_targetlist(arg_root, arg_vars, arg_where_needed, arg_create_new_ph) - }) -} -pub unsafe fn find_lateral_references(arg_root: *mut PlannerInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_lateral_references(arg_root: *mut PlannerInfo); - } - find_lateral_references(arg_root) - }) -} -pub unsafe fn create_lateral_join_info(arg_root: *mut PlannerInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn create_lateral_join_info(arg_root: *mut PlannerInfo); - } - create_lateral_join_info(arg_root) - }) -} -pub unsafe fn deconstruct_jointree(arg_root: *mut PlannerInfo) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn deconstruct_jointree(arg_root: *mut PlannerInfo) -> *mut List; - } - deconstruct_jointree(arg_root) - }) -} -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 distribute_restrictinfo_to_rels( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, - ); - } - distribute_restrictinfo_to_rels(arg_root, arg_restrictinfo) - }) -} -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 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, - ); - } - 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 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 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; - } - build_implied_join_equality( - arg_opno, - arg_collation, - arg_item1, - arg_item2, - arg_qualscope, - arg_nullable_relids, - arg_security_level, - ) - }) -} -pub unsafe fn match_foreign_keys_to_quals(arg_root: *mut PlannerInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn match_foreign_keys_to_quals(arg_root: *mut PlannerInfo); - } - match_foreign_keys_to_quals(arg_root) - }) -} -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 remove_useless_joins( - arg_root: *mut PlannerInfo, - arg_joinlist: *mut List, - ) -> *mut List; - } - remove_useless_joins(arg_root, arg_joinlist) - }) -} -pub unsafe fn reduce_unique_semijoins(arg_root: *mut PlannerInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn reduce_unique_semijoins(arg_root: *mut PlannerInfo); - } - reduce_unique_semijoins(arg_root) - }) -} -pub unsafe fn query_supports_distinctness(arg_query: *mut Query) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn query_supports_distinctness(arg_query: *mut Query) -> bool; - } - query_supports_distinctness(arg_query) - }) -} -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 query_is_distinct_for( - arg_query: *mut Query, - arg_colnos: *mut List, - arg_opids: *mut List, - ) -> bool; - } - query_is_distinct_for(arg_query, arg_colnos, arg_opids) - }) -} -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 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; - } - innerrel_is_unique( - arg_root, - arg_outerrelids, - arg_innerrel, - arg_jointype, - arg_restrictlist, - arg_force_cache, - ) - }) -} -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 set_plan_references(arg_root: *mut PlannerInfo, arg_plan: *mut Plan) -> *mut Plan; - } - set_plan_references(arg_root, arg_plan) - }) -} -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 record_plan_function_dependency(arg_root: *mut PlannerInfo, arg_funcid: Oid); - } - record_plan_function_dependency(arg_root, arg_funcid) - }) -} -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 extract_query_dependencies( - arg_query: *mut Node, - arg_relationOids: *mut *mut List, - arg_invalItems: *mut *mut List, - arg_hasRowSecurity: *mut bool, - ); - } - extract_query_dependencies( - arg_query, - arg_relationOids, - arg_invalItems, - arg_hasRowSecurity, - ) - }) -} -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 planner( - arg_parse: *mut Query, - arg_cursorOptions: ::std::os::raw::c_int, - arg_boundParams: ParamListInfo, - ) -> *mut PlannedStmt; - } - 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 { - 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; - } - standard_planner(arg_parse, arg_cursorOptions, arg_boundParams) - }) -} -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 subquery_planner( - arg_glob: *mut PlannerGlobal, - arg_parse: *mut Query, - arg_parent_root: *mut PlannerInfo, - arg_hasRecursion: bool, - arg_tuple_fraction: f64, - ) -> *mut PlannerInfo; - } - 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 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn is_dummy_plan(arg_plan: *mut Plan) -> bool; - } - is_dummy_plan(arg_plan) - }) -} -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 select_rowmark_type( - arg_rte: *mut RangeTblEntry, - arg_strength: LockClauseStrength, - ) -> RowMarkType; - } - select_rowmark_type(arg_rte, arg_strength) - }) -} -pub unsafe fn limit_needed(arg_parse: *mut Query) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn limit_needed(arg_parse: *mut Query) -> bool; - } - limit_needed(arg_parse) - }) -} -pub unsafe fn mark_partial_aggref(arg_agg: *mut Aggref, arg_aggsplit: AggSplit) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mark_partial_aggref(arg_agg: *mut Aggref, arg_aggsplit: AggSplit); - } - mark_partial_aggref(arg_agg, arg_aggsplit) - }) -} -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 get_cheapest_fractional_path( - arg_rel: *mut RelOptInfo, - arg_tuple_fraction: f64, - ) -> *mut Path; - } - get_cheapest_fractional_path(arg_rel, arg_tuple_fraction) - }) -} -pub unsafe fn expression_planner(arg_expr: *mut Expr) -> *mut Expr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expression_planner(arg_expr: *mut Expr) -> *mut Expr; - } - expression_planner(arg_expr) - }) -} -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 preprocess_phv_expression( - arg_root: *mut PlannerInfo, - arg_expr: *mut Expr, - ) -> *mut Expr; - } - preprocess_phv_expression(arg_root, arg_expr) - }) -} -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 plan_cluster_use_sort(arg_tableOid: Oid, arg_indexOid: Oid) -> bool; - } - plan_cluster_use_sort(arg_tableOid, arg_indexOid) - }) -} -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 get_partitioned_child_rels(arg_root: *mut PlannerInfo, arg_rti: Index) -> *mut List; - } - get_partitioned_child_rels(arg_root, arg_rti) - }) -} -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 restriction_is_or_clause(arg_restrictinfo: *mut RestrictInfo) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn restriction_is_or_clause(arg_restrictinfo: *mut RestrictInfo) -> bool; - } - restriction_is_or_clause(arg_restrictinfo) - }) -} -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 restriction_is_securely_promotable( - arg_restrictinfo: *mut RestrictInfo, - arg_rel: *mut RelOptInfo, - ) -> bool; - } - restriction_is_securely_promotable(arg_restrictinfo, arg_rel) - }) -} -pub unsafe fn get_actual_clauses(arg_restrictinfo_list: *mut List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_actual_clauses(arg_restrictinfo_list: *mut List) -> *mut List; - } - get_actual_clauses(arg_restrictinfo_list) - }) -} -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 extract_actual_clauses( - arg_restrictinfo_list: *mut List, - arg_pseudoconstant: bool, - ) -> *mut List; - } - extract_actual_clauses(arg_restrictinfo_list, arg_pseudoconstant) - }) -} -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 extract_actual_join_clauses( - arg_restrictinfo_list: *mut List, - arg_joinrelids: Relids, - arg_joinquals: *mut *mut List, - arg_otherquals: *mut *mut List, - ); - } - extract_actual_join_clauses( - arg_restrictinfo_list, - arg_joinrelids, - arg_joinquals, - arg_otherquals, - ) - }) -} -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 join_clause_is_movable_to( - arg_rinfo: *mut RestrictInfo, - arg_baserel: *mut RelOptInfo, - ) -> bool; - } - join_clause_is_movable_to(arg_rinfo, arg_baserel) - }) -} -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 join_clause_is_movable_into( - arg_rinfo: *mut RestrictInfo, - arg_currentrelids: Relids, - arg_current_and_outer: Relids, - ) -> bool; - } - join_clause_is_movable_into(arg_rinfo, arg_currentrelids, arg_current_and_outer) - }) -} -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 tlist_member(arg_node: *mut Expr, arg_targetlist: *mut List) -> *mut TargetEntry; - } - tlist_member(arg_node, arg_targetlist) - }) -} -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 tlist_member_ignore_relabel( - arg_node: *mut Expr, - arg_targetlist: *mut List, - ) -> *mut TargetEntry; - } - tlist_member_ignore_relabel(arg_node, arg_targetlist) - }) -} -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 add_to_flat_tlist(arg_tlist: *mut List, arg_exprs: *mut List) -> *mut List; - } - add_to_flat_tlist(arg_tlist, arg_exprs) - }) -} -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 get_tlist_exprs(arg_tlist: *mut List, arg_includeJunk: bool) -> *mut List; - } - get_tlist_exprs(arg_tlist, arg_includeJunk) - }) -} -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 count_nonjunk_tlist_entries(arg_tlist: *mut List) -> ::std::os::raw::c_int; - } - count_nonjunk_tlist_entries(arg_tlist) - }) -} -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 tlist_same_exprs(arg_tlist1: *mut List, arg_tlist2: *mut List) -> bool; - } - tlist_same_exprs(arg_tlist1, arg_tlist2) - }) -} -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 tlist_same_datatypes( - arg_tlist: *mut List, - arg_colTypes: *mut List, - arg_junkOK: bool, - ) -> bool; - } - tlist_same_datatypes(arg_tlist, arg_colTypes, arg_junkOK) - }) -} -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 tlist_same_collations( - arg_tlist: *mut List, - arg_colCollations: *mut List, - arg_junkOK: bool, - ) -> bool; - } - tlist_same_collations(arg_tlist, arg_colCollations, arg_junkOK) - }) -} -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 apply_tlist_labeling(arg_dest_tlist: *mut List, arg_src_tlist: *mut List); - } - apply_tlist_labeling(arg_dest_tlist, arg_src_tlist) - }) -} -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 get_sortgroupref_tle( - arg_sortref: Index, - arg_targetList: *mut List, - ) -> *mut TargetEntry; - } - get_sortgroupref_tle(arg_sortref, arg_targetList) - }) -} -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 get_sortgroupclause_tle( - arg_sgClause: *mut SortGroupClause, - arg_targetList: *mut List, - ) -> *mut TargetEntry; - } - get_sortgroupclause_tle(arg_sgClause, arg_targetList) - }) -} -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 get_sortgroupclause_expr( - arg_sgClause: *mut SortGroupClause, - arg_targetList: *mut List, - ) -> *mut Node; - } - get_sortgroupclause_expr(arg_sgClause, arg_targetList) - }) -} -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 get_sortgrouplist_exprs( - arg_sgClauses: *mut List, - arg_targetList: *mut List, - ) -> *mut List; - } - get_sortgrouplist_exprs(arg_sgClauses, arg_targetList) - }) -} -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 get_sortgroupref_clause( - arg_sortref: Index, - arg_clauses: *mut List, - ) -> *mut SortGroupClause; - } - get_sortgroupref_clause(arg_sortref, arg_clauses) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -pub unsafe fn create_empty_pathtarget() -> *mut PathTarget { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn create_empty_pathtarget() -> *mut PathTarget; - } - 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) - }) -} -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); - } - 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) - }) -} -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, - ); - } - 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, - ) - }) -} -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; - } - 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, - ) - }) -} -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; - } - 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) - }) -} -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, - ); - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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, - ); - } - 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, - ) - }) -} -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; - } - 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, - ) - }) -} -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; - } - 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) - }) -} -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; - } - 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, - ) - }) -} -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; - } - 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; - } - 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; - } - 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 { - 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; - } - make_op( - arg_pstate, - arg_opname, - arg_ltree, - arg_rtree, - arg_last_srf, - arg_location, - ) - }) -} -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; - } - 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; - } - 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; - } - 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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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 unsafe fn typeidType(arg_id: Oid) -> Type { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typeidType(arg_id: Oid) -> Type; - } - 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; - } - 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; - } - 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; - } - 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; - } - 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; - } - 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; - } - 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; - } - 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; - } - 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; - } - 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, - ); - } - 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; -} -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 raw_parser(arg_str_: *const ::std::os::raw::c_char) -> *mut List; - } - 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; - } - 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; - } - 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; - } - get_rte_attribute_name(arg_rte, arg_attnum) - }) -} -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, - ); - } - 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) - }) -} -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; - } - 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; - } - get_parse_rowmark(arg_qry, arg_rtindex) - }) -} -#[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() - } - } -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -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() - } - } -} -#[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, -} -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() - } - } -} -pub type ReorderBufferApplyChangeCB = ::std::option::Option< +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, -} -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() - } - } -} -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 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferGetChange(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferChange; - } - ReorderBufferGetChange(arg_arg1) - }) -} -pub unsafe fn ReorderBufferReturnChange( - arg_arg1: *mut ReorderBuffer, - arg_arg2: *mut ReorderBufferChange, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferReturnChange( - arg_arg1: *mut ReorderBuffer, - arg_arg2: *mut ReorderBufferChange, - ); - } - ReorderBufferReturnChange(arg_arg1, arg_arg2) - }) -} -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 ReorderBufferQueueChange( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_arg3: *mut ReorderBufferChange, - ); - } - ReorderBufferQueueChange(arg_arg1, arg_arg2, arg_lsn, arg_arg3) - }) -} -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 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, - ); - } - ReorderBufferQueueMessage( - arg_arg1, - arg_arg2, - arg_snapshot, - arg_lsn, - arg_transactional, - arg_prefix, - arg_message_size, - arg_message, - ) - }) -} -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 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, - ); - } - ReorderBufferCommit( - arg_arg1, - arg_arg2, - arg_commit_lsn, - arg_end_lsn, - arg_commit_time, - arg_origin_id, - arg_origin_lsn, - ) - }) -} -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 ReorderBufferAssignChild( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_arg3: TransactionId, - arg_commit_lsn: XLogRecPtr, - ); - } - ReorderBufferAssignChild(arg_arg1, arg_arg2, arg_arg3, arg_commit_lsn) - }) -} -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 ReorderBufferCommitChild( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_arg3: TransactionId, - arg_commit_lsn: XLogRecPtr, - arg_end_lsn: XLogRecPtr, - ); - } - ReorderBufferCommitChild(arg_arg1, arg_arg2, arg_arg3, arg_commit_lsn, arg_end_lsn) - }) -} -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 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); - } - 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) - }) -} -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, - ); - } - 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) - }) -} -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, - ); - } - ReorderBufferAddNewCommandId(arg_arg1, arg_arg2, arg_lsn, arg_cid) - }) +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, } -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, - ); +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() } - ReorderBufferAddNewTupleCids( - arg_arg1, - arg_arg2, - arg_lsn, - arg_node, - arg_pt, - arg_cmin, - arg_cmax, - arg_combocid, - ) - }) + } } -pub unsafe fn ReorderBufferAddInvalidations( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_nmsgs: Size, - arg_msgs: *mut SharedInvalidationMessage, -) { +pub unsafe fn GetFdwRoutine(arg_fdwhandler: Oid) -> *mut FdwRoutine { 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, - ); + fn GetFdwRoutine(arg_fdwhandler: Oid) -> *mut FdwRoutine; } - ReorderBufferAddInvalidations(arg_arg1, arg_arg2, arg_lsn, arg_nmsgs, arg_msgs) + GetFdwRoutine(arg_fdwhandler) }) } -pub unsafe fn ReorderBufferImmediateInvalidation( - arg_arg1: *mut ReorderBuffer, - arg_ninvalidations: uint32, - arg_invalidations: *mut SharedInvalidationMessage, -) { +pub unsafe fn GetForeignServerIdByRelId(arg_relid: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferImmediateInvalidation( - arg_arg1: *mut ReorderBuffer, - arg_ninvalidations: uint32, - arg_invalidations: *mut SharedInvalidationMessage, - ); + fn GetForeignServerIdByRelId(arg_relid: Oid) -> Oid; } - ReorderBufferImmediateInvalidation(arg_arg1, arg_ninvalidations, arg_invalidations) + GetForeignServerIdByRelId(arg_relid) }) } -pub unsafe fn ReorderBufferProcessXid( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - arg_lsn: XLogRecPtr, -) { +pub unsafe fn GetFdwRoutineByServerId(arg_serverid: Oid) -> *mut FdwRoutine { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferProcessXid( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - arg_lsn: XLogRecPtr, - ); + fn GetFdwRoutineByServerId(arg_serverid: Oid) -> *mut FdwRoutine; } - ReorderBufferProcessXid(arg_arg1, arg_xid, arg_lsn) + GetFdwRoutineByServerId(arg_serverid) }) } -pub unsafe fn ReorderBufferXidSetCatalogChanges( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - arg_lsn: XLogRecPtr, -) { +pub unsafe fn GetFdwRoutineByRelId(arg_relid: Oid) -> *mut FdwRoutine { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferXidSetCatalogChanges( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - arg_lsn: XLogRecPtr, - ); + fn GetFdwRoutineByRelId(arg_relid: Oid) -> *mut FdwRoutine; } - ReorderBufferXidSetCatalogChanges(arg_arg1, arg_xid, arg_lsn) + GetFdwRoutineByRelId(arg_relid) }) } -pub unsafe fn ReorderBufferXidHasCatalogChanges( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, -) -> bool { +pub unsafe fn GetFdwRoutineForRelation( + arg_relation: Relation, + arg_makecopy: bool, +) -> *mut FdwRoutine { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferXidHasCatalogChanges( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - ) -> bool; + fn GetFdwRoutineForRelation( + arg_relation: Relation, + arg_makecopy: bool, + ) -> *mut FdwRoutine; } - ReorderBufferXidHasCatalogChanges(arg_arg1, arg_xid) + GetFdwRoutineForRelation(arg_relation, arg_makecopy) }) } -pub unsafe fn ReorderBufferXidHasBaseSnapshot( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, +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 ReorderBufferXidHasBaseSnapshot( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, + fn IsImportableForeignTable( + arg_tablename: *const ::std::os::raw::c_char, + arg_stmt: *mut ImportForeignSchemaStmt, ) -> bool; } - ReorderBufferXidHasBaseSnapshot(arg_arg1, arg_xid) - }) -} -pub unsafe fn ReorderBufferGetOldestTXN(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferTXN { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferGetOldestTXN(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferTXN; - } - ReorderBufferGetOldestTXN(arg_arg1) - }) -} -pub unsafe fn ReorderBufferGetOldestXmin(arg_rb: *mut ReorderBuffer) -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferGetOldestXmin(arg_rb: *mut ReorderBuffer) -> TransactionId; - } - ReorderBufferGetOldestXmin(arg_rb) - }) -} -pub unsafe fn ReorderBufferSetRestartPoint(arg_arg1: *mut ReorderBuffer, arg_ptr: XLogRecPtr) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferSetRestartPoint(arg_arg1: *mut ReorderBuffer, arg_ptr: XLogRecPtr); - } - ReorderBufferSetRestartPoint(arg_arg1, arg_ptr) + IsImportableForeignTable(arg_tablename, arg_stmt) }) } -pub unsafe fn StartupReorderBuffer() { +pub unsafe fn GetExistingLocalJoinPath(arg_joinrel: *mut RelOptInfo) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StartupReorderBuffer(); + fn GetExistingLocalJoinPath(arg_joinrel: *mut RelOptInfo) -> *mut Path; } - StartupReorderBuffer() + GetExistingLocalJoinPath(arg_joinrel) }) } +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 LogicalDecodingContext { - _unused: [u8; 0], +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, +} +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 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 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, } -impl Default for OutputPluginOptions { +impl Default for ForeignServer { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -60653,1725 +42657,2209 @@ impl Default for OutputPluginOptions { } } } -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, +#[derive(Debug, Copy, Clone)] +pub struct UserMapping { + pub umid: Oid, + pub userid: Oid, + pub serverid: Oid, + pub options: *mut List, } -pub unsafe fn OutputPluginPrepareWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OutputPluginPrepareWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool); +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() } - OutputPluginPrepareWrite(arg_ctx, arg_last_write) - }) + } } -pub unsafe fn OutputPluginWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OutputPluginWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool); - } - OutputPluginWrite(arg_ctx, arg_last_write) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForeignTable { + pub relid: Oid, + pub serverid: Oid, + pub options: *mut List, } -pub unsafe fn OutputPluginUpdateProgress(arg_ctx: *mut LogicalDecodingContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OutputPluginUpdateProgress(arg_ctx: *mut LogicalDecodingContext); +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() } - OutputPluginUpdateProgress(arg_ctx) - }) + } } -pub unsafe fn QueryRewrite(arg_parsetree: *mut Query) -> *mut List { +pub unsafe fn GetForeignServer(arg_serverid: Oid) -> *mut ForeignServer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QueryRewrite(arg_parsetree: *mut Query) -> *mut List; + fn GetForeignServer(arg_serverid: Oid) -> *mut ForeignServer; } - QueryRewrite(arg_parsetree) + GetForeignServer(arg_serverid) }) } -pub unsafe fn AcquireRewriteLocks( - arg_parsetree: *mut Query, - arg_forExecute: bool, - arg_forUpdatePushedDown: bool, -) { +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 AcquireRewriteLocks( - arg_parsetree: *mut Query, - arg_forExecute: bool, - arg_forUpdatePushedDown: bool, - ); + fn GetForeignServerByName( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *mut ForeignServer; } - AcquireRewriteLocks(arg_parsetree, arg_forExecute, arg_forUpdatePushedDown) + GetForeignServerByName(arg_name, arg_missing_ok) }) } -pub unsafe fn build_column_default( - arg_rel: Relation, - arg_attrno: ::std::os::raw::c_int, -) -> *mut Node { +pub unsafe fn GetUserMapping(arg_userid: Oid, arg_serverid: Oid) -> *mut UserMapping { 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 GetUserMapping(arg_userid: Oid, arg_serverid: Oid) -> *mut UserMapping; } - build_column_default(arg_rel, arg_attrno) + GetUserMapping(arg_userid, arg_serverid) }) } -pub unsafe fn rewriteTargetListUD( - arg_parsetree: *mut Query, - arg_target_rte: *mut RangeTblEntry, - arg_target_relation: Relation, -) { +pub unsafe fn GetForeignDataWrapper(arg_fdwid: Oid) -> *mut ForeignDataWrapper { 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 GetForeignDataWrapper(arg_fdwid: Oid) -> *mut ForeignDataWrapper; } - rewriteTargetListUD(arg_parsetree, arg_target_rte, arg_target_relation) + GetForeignDataWrapper(arg_fdwid) }) } -pub unsafe fn get_view_query(arg_view: Relation) -> *mut Query { +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 get_view_query(arg_view: Relation) -> *mut Query; + fn GetForeignDataWrapperByName( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *mut ForeignDataWrapper; } - get_view_query(arg_view) + GetForeignDataWrapperByName(arg_name, arg_missing_ok) }) } -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 GetForeignTable(arg_relid: Oid) -> *mut ForeignTable { 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 GetForeignTable(arg_relid: Oid) -> *mut ForeignTable; } - view_query_is_auto_updatable(arg_viewquery, arg_check_cols) + GetForeignTable(arg_relid) }) } -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 { +pub unsafe fn GetForeignColumnOptions(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List { 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, - ) -> ::std::os::raw::c_int; + fn GetForeignColumnOptions(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List; } - relation_is_updatable( - arg_reloid, - arg_outer_reloids, - arg_include_triggers, - arg_include_cols, - ) + GetForeignColumnOptions(arg_relid, arg_attnum) }) } -extern "C" { - pub static mut old_snapshot_threshold: ::std::os::raw::c_int; -} -pub unsafe fn SnapMgrShmemSize() -> Size { +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 SnapMgrShmemSize() -> Size; + fn get_foreign_data_wrapper_oid( + arg_fdwname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - SnapMgrShmemSize() + get_foreign_data_wrapper_oid(arg_fdwname, arg_missing_ok) }) } -pub unsafe fn SnapMgrInit() { +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 SnapMgrInit(); + fn get_foreign_server_oid( + arg_servername: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - SnapMgrInit() + get_foreign_server_oid(arg_servername, arg_missing_ok) }) } -pub unsafe fn GetSnapshotCurrentTimestamp() -> TimestampTz { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetSnapshotCurrentTimestamp() -> TimestampTz; - } - GetSnapshotCurrentTimestamp() - }) +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, } -pub unsafe fn GetOldSnapshotThresholdTimestamp() -> TimestampTz { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetOldSnapshotThresholdTimestamp() -> TimestampTz; +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() } - GetOldSnapshotThresholdTimestamp() - }) -} -extern "C" { - pub static mut FirstSnapshotSet: bool; + } } extern "C" { - pub static mut TransactionXmin: TransactionId; + pub static mut pg_enc2name_tbl: [pg_enc2name; 0usize]; } -extern "C" { - pub static mut RecentXmin: TransactionId; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pg_enc2gettext { + pub encoding: pg_enc, + pub name: *const ::std::os::raw::c_char, } -extern "C" { - pub static mut RecentGlobalXmin: TransactionId; +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() + } + } } extern "C" { - pub static mut RecentGlobalDataXmin: TransactionId; + pub static mut pg_enc2gettext_tbl: [pg_enc2gettext; 0usize]; } -pub unsafe fn GetTransactionSnapshot() -> Snapshot { +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 GetTransactionSnapshot() -> Snapshot; + fn is_encoding_supported_by_icu(arg_encoding: ::std::os::raw::c_int) -> bool; } - GetTransactionSnapshot() + is_encoding_supported_by_icu(arg_encoding) }) } -pub unsafe fn GetLatestSnapshot() -> Snapshot { +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 GetLatestSnapshot() -> Snapshot; + fn get_encoding_name_for_icu( + arg_encoding: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char; } - GetLatestSnapshot() + get_encoding_name_for_icu(arg_encoding) }) } -pub unsafe fn SnapshotSetCommandId(arg_curcid: CommandId) { +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, +} +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 SnapshotSetCommandId(arg_curcid: CommandId); + fn pg_char_to_encoding( + arg_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - SnapshotSetCommandId(arg_curcid) + pg_char_to_encoding(arg_name) }) } -pub unsafe fn GetOldestSnapshot() -> Snapshot { +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 GetOldestSnapshot() -> Snapshot; + fn pg_encoding_to_char( + arg_encoding: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char; } - GetOldestSnapshot() + pg_encoding_to_char(arg_encoding) }) } -pub unsafe fn GetCatalogSnapshot(arg_relid: Oid) -> Snapshot { +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 GetCatalogSnapshot(arg_relid: Oid) -> Snapshot; + fn pg_valid_server_encoding_id( + arg_encoding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - GetCatalogSnapshot(arg_relid) + pg_valid_server_encoding_id(arg_encoding) }) } -pub unsafe fn GetNonHistoricCatalogSnapshot(arg_relid: Oid) -> Snapshot { +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 GetNonHistoricCatalogSnapshot(arg_relid: Oid) -> Snapshot; + fn pg_mb2wchar( + arg_from: *const ::std::os::raw::c_char, + arg_to: *mut pg_wchar, + ) -> ::std::os::raw::c_int; } - GetNonHistoricCatalogSnapshot(arg_relid) + pg_mb2wchar(arg_from, arg_to) }) } -pub unsafe fn InvalidateCatalogSnapshot() { +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 InvalidateCatalogSnapshot(); + 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; } - InvalidateCatalogSnapshot() + pg_mb2wchar_with_len(arg_from, arg_to, arg_len) }) } -pub unsafe fn InvalidateCatalogSnapshotConditionally() { +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 InvalidateCatalogSnapshotConditionally(); + 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; } - InvalidateCatalogSnapshotConditionally() + pg_encoding_mb2wchar_with_len(arg_encoding, arg_from, arg_to, arg_len) }) } -pub unsafe fn PushActiveSnapshot(arg_snapshot: Snapshot) { +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 PushActiveSnapshot(arg_snapshot: Snapshot); + fn pg_wchar2mb( + arg_from: *const pg_wchar, + arg_to: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - PushActiveSnapshot(arg_snapshot) + pg_wchar2mb(arg_from, arg_to) }) } -pub unsafe fn PushCopiedSnapshot(arg_snapshot: Snapshot) { +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 PushCopiedSnapshot(arg_snapshot: Snapshot); + 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; } - PushCopiedSnapshot(arg_snapshot) + pg_wchar2mb_with_len(arg_from, arg_to, arg_len) }) } -pub unsafe fn UpdateActiveSnapshotCommandId() { +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 UpdateActiveSnapshotCommandId(); + 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; } - UpdateActiveSnapshotCommandId() + pg_encoding_wchar2mb_with_len(arg_encoding, arg_from, arg_to, arg_len) }) } -pub unsafe fn PopActiveSnapshot() { +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 PopActiveSnapshot(); + fn pg_char_and_wchar_strcmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const pg_wchar, + ) -> ::std::os::raw::c_int; } - PopActiveSnapshot() + pg_char_and_wchar_strcmp(arg_s1, arg_s2) }) } -pub unsafe fn GetActiveSnapshot() -> Snapshot { +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 GetActiveSnapshot() -> Snapshot; + fn pg_wchar_strncmp( + arg_s1: *const pg_wchar, + arg_s2: *const pg_wchar, + arg_n: usize, + ) -> ::std::os::raw::c_int; } - GetActiveSnapshot() + pg_wchar_strncmp(arg_s1, arg_s2, arg_n) }) } -pub unsafe fn ActiveSnapshotSet() -> bool { +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 ActiveSnapshotSet() -> bool; + 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; } - ActiveSnapshotSet() + pg_char_and_wchar_strncmp(arg_s1, arg_s2, arg_n) }) } -pub unsafe fn RegisterSnapshot(arg_snapshot: Snapshot) -> Snapshot { +pub unsafe fn pg_wchar_strlen(arg_wstr: *const pg_wchar) -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RegisterSnapshot(arg_snapshot: Snapshot) -> Snapshot; + fn pg_wchar_strlen(arg_wstr: *const pg_wchar) -> usize; } - RegisterSnapshot(arg_snapshot) + pg_wchar_strlen(arg_wstr) }) } -pub unsafe fn UnregisterSnapshot(arg_snapshot: Snapshot) { +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 UnregisterSnapshot(arg_snapshot: Snapshot); + fn pg_mblen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - UnregisterSnapshot(arg_snapshot) + pg_mblen(arg_mbstr) }) } -pub unsafe fn RegisterSnapshotOnOwner( - arg_snapshot: Snapshot, - arg_owner: ResourceOwner, -) -> Snapshot { +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 RegisterSnapshotOnOwner( - arg_snapshot: Snapshot, - arg_owner: ResourceOwner, - ) -> Snapshot; + fn pg_dsplen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - RegisterSnapshotOnOwner(arg_snapshot, arg_owner) + pg_dsplen(arg_mbstr) }) } -pub unsafe fn UnregisterSnapshotFromOwner(arg_snapshot: Snapshot, arg_owner: ResourceOwner) { +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 UnregisterSnapshotFromOwner(arg_snapshot: Snapshot, arg_owner: ResourceOwner); + fn pg_encoding_mblen( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - UnregisterSnapshotFromOwner(arg_snapshot, arg_owner) + pg_encoding_mblen(arg_encoding, arg_mbstr) }) } -pub unsafe fn AtSubCommit_Snapshot(arg_level: ::std::os::raw::c_int) { +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 AtSubCommit_Snapshot(arg_level: ::std::os::raw::c_int); + fn pg_encoding_dsplen( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - AtSubCommit_Snapshot(arg_level) + pg_encoding_dsplen(arg_encoding, arg_mbstr) }) } -pub unsafe fn AtSubAbort_Snapshot(arg_level: ::std::os::raw::c_int) { +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 AtSubAbort_Snapshot(arg_level: ::std::os::raw::c_int); + 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; } - AtSubAbort_Snapshot(arg_level) + pg_encoding_verifymb(arg_encoding, arg_mbstr, arg_len) }) } -pub unsafe fn AtEOXact_Snapshot(arg_isCommit: bool, arg_resetXmin: bool) { +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 AtEOXact_Snapshot(arg_isCommit: bool, arg_resetXmin: bool); + fn pg_mule_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; } - AtEOXact_Snapshot(arg_isCommit, arg_resetXmin) + pg_mule_mblen(arg_mbstr) }) } -pub unsafe fn ImportSnapshot(arg_idstr: *const ::std::os::raw::c_char) { +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 ImportSnapshot(arg_idstr: *const ::std::os::raw::c_char); + fn pg_mic_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; } - ImportSnapshot(arg_idstr) + pg_mic_mblen(arg_mbstr) }) } -pub unsafe fn XactHasExportedSnapshots() -> bool { +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 XactHasExportedSnapshots() -> bool; + fn pg_mbstrlen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - XactHasExportedSnapshots() + pg_mbstrlen(arg_mbstr) }) } -pub unsafe fn DeleteAllExportedSnapshotFiles() { +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 DeleteAllExportedSnapshotFiles(); + 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; } - DeleteAllExportedSnapshotFiles() + pg_mbstrlen_with_len(arg_mbstr, arg_len) }) } -pub unsafe fn ThereAreNoPriorRegisteredSnapshots() -> bool { +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 ThereAreNoPriorRegisteredSnapshots() -> bool; + 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; } - ThereAreNoPriorRegisteredSnapshots() + pg_mbcliplen(arg_mbstr, arg_len, arg_limit) }) } -pub unsafe fn TransactionIdLimitedForOldSnapshots( - arg_recentXmin: TransactionId, - arg_relation: Relation, -) -> TransactionId { +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 TransactionIdLimitedForOldSnapshots( - arg_recentXmin: TransactionId, - arg_relation: Relation, - ) -> TransactionId; + 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; } - TransactionIdLimitedForOldSnapshots(arg_recentXmin, arg_relation) + pg_encoding_mbcliplen(arg_encoding, arg_mbstr, arg_len, arg_limit) }) } -pub unsafe fn MaintainOldSnapshotTimeMapping(arg_whenTaken: TimestampTz, arg_xmin: TransactionId) { +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 MaintainOldSnapshotTimeMapping(arg_whenTaken: TimestampTz, arg_xmin: TransactionId); + 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; } - MaintainOldSnapshotTimeMapping(arg_whenTaken, arg_xmin) + pg_mbcharcliplen(arg_mbstr, arg_len, arg_imit) }) } -pub unsafe fn ExportSnapshot(arg_snapshot: Snapshot) -> *mut ::std::os::raw::c_char { +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 ExportSnapshot(arg_snapshot: Snapshot) -> *mut ::std::os::raw::c_char; + fn pg_encoding_max_length(arg_encoding: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; } - ExportSnapshot(arg_snapshot) + pg_encoding_max_length(arg_encoding) }) } -pub unsafe fn HistoricSnapshotGetTupleCids() -> *mut HTAB { +pub unsafe fn pg_database_encoding_max_length() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HistoricSnapshotGetTupleCids() -> *mut HTAB; + fn pg_database_encoding_max_length() -> ::std::os::raw::c_int; } - HistoricSnapshotGetTupleCids() + pg_database_encoding_max_length() }) } -pub unsafe fn SetupHistoricSnapshot(arg_snapshot_now: Snapshot, arg_tuplecids: *mut HTAB) { +pub unsafe fn pg_database_encoding_character_incrementer() -> mbcharacter_incrementer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetupHistoricSnapshot(arg_snapshot_now: Snapshot, arg_tuplecids: *mut HTAB); + fn pg_database_encoding_character_incrementer() -> mbcharacter_incrementer; } - SetupHistoricSnapshot(arg_snapshot_now, arg_tuplecids) + pg_database_encoding_character_incrementer() }) } -pub unsafe fn TeardownHistoricSnapshot(arg_is_error: bool) { +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 TeardownHistoricSnapshot(arg_is_error: bool); + fn PrepareClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - TeardownHistoricSnapshot(arg_is_error) + PrepareClientEncoding(arg_encoding) }) } -pub unsafe fn HistoricSnapshotActive() -> 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 HistoricSnapshotActive() -> bool; + fn SetClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - HistoricSnapshotActive() + SetClientEncoding(arg_encoding) }) } -pub unsafe fn EstimateSnapshotSpace(arg_snapshot: Snapshot) -> Size { +pub unsafe fn InitializeClientEncoding() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EstimateSnapshotSpace(arg_snapshot: Snapshot) -> Size; + fn InitializeClientEncoding(); } - EstimateSnapshotSpace(arg_snapshot) + InitializeClientEncoding() }) } -pub unsafe fn SerializeSnapshot( - arg_snapshot: Snapshot, - arg_start_address: *mut ::std::os::raw::c_char, -) { +pub unsafe fn pg_get_client_encoding() -> ::std::os::raw::c_int { 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 pg_get_client_encoding() -> ::std::os::raw::c_int; } - SerializeSnapshot(arg_snapshot, arg_start_address) + pg_get_client_encoding() }) } -pub unsafe fn RestoreSnapshot(arg_start_address: *mut ::std::os::raw::c_char) -> 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 RestoreSnapshot(arg_start_address: *mut ::std::os::raw::c_char) -> Snapshot; + fn pg_get_client_encoding_name() -> *const ::std::os::raw::c_char; } - RestoreSnapshot(arg_start_address) + pg_get_client_encoding_name() }) } -pub unsafe fn RestoreTransactionSnapshot( - arg_snapshot: Snapshot, - arg_master_pgproc: *mut ::std::os::raw::c_void, -) { +pub unsafe fn SetDatabaseEncoding(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 SetDatabaseEncoding(arg_encoding: ::std::os::raw::c_int); } - RestoreTransactionSnapshot(arg_snapshot, arg_master_pgproc) + SetDatabaseEncoding(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, -) -> bool { +pub unsafe fn GetDatabaseEncoding() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSatisfiesMVCC( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, - ) -> bool; + fn GetDatabaseEncoding() -> ::std::os::raw::c_int; } - HeapTupleSatisfiesMVCC(arg_htup, arg_snapshot, arg_buffer) + GetDatabaseEncoding() }) } -pub unsafe fn HeapTupleSatisfiesSelf( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, -) -> bool { +pub unsafe fn GetDatabaseEncodingName() -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSatisfiesSelf( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, - ) -> bool; + fn GetDatabaseEncodingName() -> *const ::std::os::raw::c_char; } - HeapTupleSatisfiesSelf(arg_htup, arg_snapshot, arg_buffer) + GetDatabaseEncodingName() }) } -pub unsafe fn HeapTupleSatisfiesAny( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, -) -> bool { +pub unsafe fn SetMessageEncoding(arg_encoding: ::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 SetMessageEncoding(arg_encoding: ::std::os::raw::c_int); } - HeapTupleSatisfiesAny(arg_htup, arg_snapshot, arg_buffer) + SetMessageEncoding(arg_encoding) }) } -pub unsafe fn HeapTupleSatisfiesToast( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, -) -> bool { +pub unsafe fn GetMessageEncoding() -> ::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 GetMessageEncoding() -> ::std::os::raw::c_int; } - HeapTupleSatisfiesToast(arg_htup, arg_snapshot, arg_buffer) + GetMessageEncoding() }) } -pub unsafe fn HeapTupleSatisfiesDirty( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, -) -> 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 HeapTupleSatisfiesDirty( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, - ) -> bool; + fn pg_valid_client_encoding( + arg_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - HeapTupleSatisfiesDirty(arg_htup, arg_snapshot, arg_buffer) + pg_valid_client_encoding(arg_name) }) } -pub unsafe fn HeapTupleSatisfiesHistoricMVCC( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, -) -> bool { +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 HeapTupleSatisfiesHistoricMVCC( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, - ) -> bool; + fn pg_valid_server_encoding( + arg_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - HeapTupleSatisfiesHistoricMVCC(arg_htup, arg_snapshot, arg_buffer) + pg_valid_server_encoding(arg_name) }) } -pub unsafe fn HeapTupleSatisfiesUpdate( - arg_htup: HeapTuple, - arg_curcid: CommandId, - arg_buffer: Buffer, -) -> HTSU_Result { +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 HeapTupleSatisfiesUpdate( - arg_htup: HeapTuple, - arg_curcid: CommandId, - arg_buffer: Buffer, - ) -> HTSU_Result; + fn unicode_to_utf8( + arg_c: pg_wchar, + arg_utf8string: *mut ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; } - HeapTupleSatisfiesUpdate(arg_htup, arg_curcid, arg_buffer) + unicode_to_utf8(arg_c, arg_utf8string) }) } -pub unsafe fn HeapTupleSatisfiesVacuum( - arg_htup: HeapTuple, - arg_OldestXmin: TransactionId, - arg_buffer: Buffer, -) -> HTSV_Result { +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 HeapTupleSatisfiesVacuum( - arg_htup: HeapTuple, - arg_OldestXmin: TransactionId, - arg_buffer: Buffer, - ) -> HTSV_Result; + fn utf8_to_unicode(arg_c: *const ::std::os::raw::c_uchar) -> pg_wchar; } - HeapTupleSatisfiesVacuum(arg_htup, arg_OldestXmin, arg_buffer) + utf8_to_unicode(arg_c) }) } -pub unsafe fn HeapTupleIsSurelyDead(arg_htup: HeapTuple, arg_OldestXmin: TransactionId) -> bool { +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 HeapTupleIsSurelyDead(arg_htup: HeapTuple, arg_OldestXmin: TransactionId) -> bool; + fn pg_utf_mblen(arg_arg1: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; } - HeapTupleIsSurelyDead(arg_htup, arg_OldestXmin) + pg_utf_mblen(arg_arg1) }) } -pub unsafe fn XidInMVCCSnapshot(arg_xid: TransactionId, arg_snapshot: Snapshot) -> bool { +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 XidInMVCCSnapshot(arg_xid: TransactionId, arg_snapshot: Snapshot) -> bool; + 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; } - XidInMVCCSnapshot(arg_xid, arg_snapshot) + pg_do_encoding_conversion(arg_src, arg_len, arg_src_encoding, arg_dest_encoding) }) } -pub unsafe fn HeapTupleSetHintBits( - arg_tuple: HeapTupleHeader, - arg_buffer: Buffer, - arg_infomask: uint16, - arg_xid: TransactionId, -) { +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 HeapTupleSetHintBits( - arg_tuple: HeapTupleHeader, - arg_buffer: Buffer, - arg_infomask: uint16, - arg_xid: TransactionId, - ); + 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; } - HeapTupleSetHintBits(arg_tuple, arg_buffer, arg_infomask, arg_xid) + pg_client_to_server(arg_s, arg_len) }) } -pub unsafe fn HeapTupleHeaderIsOnlyLocked(arg_tuple: HeapTupleHeader) -> bool { +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 HeapTupleHeaderIsOnlyLocked(arg_tuple: HeapTupleHeader) -> bool; + 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; } - HeapTupleHeaderIsOnlyLocked(arg_tuple) + pg_server_to_client(arg_s, arg_len) }) } -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 { +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 ResolveCminCmaxDuringDecoding( - arg_tuplecid_data: *mut HTAB, - arg_snapshot: Snapshot, - arg_htup: HeapTuple, - arg_buffer: Buffer, - arg_cmin: *mut CommandId, - arg_cmax: *mut CommandId, - ) -> 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; } - ResolveCminCmaxDuringDecoding( - arg_tuplecid_data, - arg_snapshot, - arg_htup, - arg_buffer, - arg_cmin, - arg_cmax, - ) + pg_any_to_server(arg_s, arg_len, arg_encoding) }) } -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 { +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 ComputeIoConcurrency( - arg_io_concurrency: ::std::os::raw::c_int, - arg_target: *mut f64, - ) -> 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; } - ComputeIoConcurrency(arg_io_concurrency, arg_target) + pg_server_to_any(arg_s, arg_len, arg_encoding) }) } -pub unsafe fn PrefetchBuffer( - arg_reln: Relation, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, -) { +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 PrefetchBuffer( - arg_reln: Relation, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, - ); + fn BIG5toCNS( + arg_big5: ::std::os::raw::c_ushort, + arg_lc: *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_ushort; } - PrefetchBuffer(arg_reln, arg_forkNum, arg_blockNum) + BIG5toCNS(arg_big5, arg_lc) }) } -pub unsafe fn ReadBuffer(arg_reln: Relation, arg_blockNum: BlockNumber) -> Buffer { +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 ReadBuffer(arg_reln: Relation, arg_blockNum: BlockNumber) -> Buffer; + fn CNStoBIG5( + arg_cns: ::std::os::raw::c_ushort, + arg_lc: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_ushort; } - ReadBuffer(arg_reln, arg_blockNum) + CNStoBIG5(arg_cns, arg_lc) }) } -pub unsafe fn ReadBufferExtended( - arg_reln: Relation, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, - arg_mode: ReadBufferMode, - arg_strategy: BufferAccessStrategy, -) -> Buffer { +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 ReadBufferExtended( - arg_reln: Relation, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, - arg_mode: ReadBufferMode, - arg_strategy: BufferAccessStrategy, - ) -> Buffer; + 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, + ); } - ReadBufferExtended(arg_reln, arg_forkNum, arg_blockNum, arg_mode, arg_strategy) + UtfToLocal( + arg_utf, + arg_len, + arg_iso, + arg_map, + arg_cmap, + arg_cmapsize, + arg_conv_func, + arg_encoding, + ) }) } -pub unsafe fn ReadBufferWithoutRelcache( - arg_rnode: RelFileNode, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, - arg_mode: ReadBufferMode, - arg_strategy: BufferAccessStrategy, -) -> Buffer { +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 ReadBufferWithoutRelcache( - arg_rnode: RelFileNode, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, - arg_mode: ReadBufferMode, - arg_strategy: BufferAccessStrategy, - ) -> Buffer; + 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, + ); } - ReadBufferWithoutRelcache(arg_rnode, arg_forkNum, arg_blockNum, arg_mode, arg_strategy) + LocalToUtf( + arg_iso, + arg_len, + arg_utf, + arg_map, + arg_cmap, + arg_cmapsize, + arg_conv_func, + arg_encoding, + ) }) } -pub unsafe fn ReleaseBuffer(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 ReleaseBuffer(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; } - ReleaseBuffer(arg_buffer) + pg_verifymbstr(arg_mbstr, arg_len, arg_noError) }) } -pub unsafe fn UnlockReleaseBuffer(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 UnlockReleaseBuffer(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; } - UnlockReleaseBuffer(arg_buffer) + pg_verify_mbstr(arg_encoding, arg_mbstr, arg_len, arg_noError) }) } -pub unsafe fn MarkBufferDirty(arg_buffer: Buffer) { +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 MarkBufferDirty(arg_buffer: Buffer); + 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; } - MarkBufferDirty(arg_buffer) + pg_verify_mbstr_len(arg_encoding, arg_mbstr, arg_len, arg_noError) }) } -pub unsafe fn IncrBufferRefCount(arg_buffer: Buffer) { +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 IncrBufferRefCount(arg_buffer: Buffer); + 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, + ); } - IncrBufferRefCount(arg_buffer) + check_encoding_conversion_args( + arg_src_encoding, + arg_dest_encoding, + arg_len, + arg_expected_src_encoding, + arg_expected_dest_encoding, + ) }) } -pub unsafe fn ReleaseAndReadBuffer( - arg_buffer: Buffer, - arg_relation: Relation, - arg_blockNum: BlockNumber, -) -> Buffer { +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 ReleaseAndReadBuffer( - arg_buffer: Buffer, - arg_relation: Relation, - arg_blockNum: BlockNumber, - ) -> Buffer; + 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, + ); } - ReleaseAndReadBuffer(arg_buffer, arg_relation, arg_blockNum) + report_invalid_encoding(arg_encoding, arg_mbstr, arg_len) }) } -pub unsafe fn InitBufferPool() { +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 InitBufferPool(); + 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, + ); } - InitBufferPool() + report_untranslatable_char(arg_src_encoding, arg_dest_encoding, arg_mbstr, arg_len) }) } -pub unsafe fn InitBufferPoolAccess() { +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 InitBufferPoolAccess(); + 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, + ); } - InitBufferPoolAccess() + local2local(arg_l, arg_p, arg_len, arg_src_encoding, arg_dest_encoding, arg_tab) }) } -pub unsafe fn InitBufferPoolBackend() { +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 InitBufferPoolBackend(); + 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, + ); } - InitBufferPoolBackend() + pg_ascii2mic(arg_l, arg_p, arg_len) }) } -pub unsafe fn AtEOXact_Buffers(arg_isCommit: bool) { +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 AtEOXact_Buffers(arg_isCommit: bool); + 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, + ); } - AtEOXact_Buffers(arg_isCommit) + pg_mic2ascii(arg_mic, arg_p, arg_len) }) } -pub unsafe fn PrintBufferLeakWarning(arg_buffer: Buffer) { +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 PrintBufferLeakWarning(arg_buffer: Buffer); + 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, + ); } - PrintBufferLeakWarning(arg_buffer) + latin2mic(arg_l, arg_p, arg_len, arg_lc, arg_encoding) }) } -pub unsafe fn CheckPointBuffers(arg_flags: ::std::os::raw::c_int) { +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 CheckPointBuffers(arg_flags: ::std::os::raw::c_int); + 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, + ); } - CheckPointBuffers(arg_flags) + mic2latin(arg_mic, arg_p, arg_len, arg_lc, arg_encoding) }) } -pub unsafe fn BufferGetBlockNumber(arg_buffer: Buffer) -> BlockNumber { +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 BufferGetBlockNumber(arg_buffer: Buffer) -> BlockNumber; + 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, + ); } - BufferGetBlockNumber(arg_buffer) + latin2mic_with_table(arg_l, arg_p, arg_len, arg_lc, arg_encoding, arg_tab) }) } -pub unsafe fn RelationGetNumberOfBlocksInFork( - arg_relation: Relation, - arg_forkNum: ForkNumber, -) -> BlockNumber { +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 RelationGetNumberOfBlocksInFork( - arg_relation: Relation, - arg_forkNum: ForkNumber, - ) -> BlockNumber; + 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, + ); } - RelationGetNumberOfBlocksInFork(arg_relation, arg_forkNum) + mic2latin_with_table(arg_mic, arg_p, arg_len, arg_lc, arg_encoding, arg_tab) }) } -pub unsafe fn FlushOneBuffer(arg_buffer: Buffer) { +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 FlushOneBuffer(arg_buffer: Buffer); + fn pg_utf8_islegal( + arg_source: *const ::std::os::raw::c_uchar, + arg_length: ::std::os::raw::c_int, + ) -> bool; } - FlushOneBuffer(arg_buffer) + pg_utf8_islegal(arg_source, arg_length) }) } -pub unsafe fn FlushRelationBuffers(arg_rel: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FlushRelationBuffers(arg_rel: Relation); +#[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() } - FlushRelationBuffers(arg_rel) - }) + } } -pub unsafe fn FlushDatabaseBuffers(arg_dbid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FlushDatabaseBuffers(arg_dbid: 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, +} +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() } - FlushDatabaseBuffers(arg_dbid) - }) + } } -pub unsafe fn DropRelFileNodeBuffers( - arg_rnode: RelFileNodeBackend, - arg_forkNum: ForkNumber, - arg_firstDelBlock: BlockNumber, -) { +pub unsafe fn RegisterExtensibleNodeMethods(arg_method: *const ExtensibleNodeMethods) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DropRelFileNodeBuffers( - arg_rnode: RelFileNodeBackend, - arg_forkNum: ForkNumber, - arg_firstDelBlock: BlockNumber, - ); + fn RegisterExtensibleNodeMethods(arg_method: *const ExtensibleNodeMethods); } - DropRelFileNodeBuffers(arg_rnode, arg_forkNum, arg_firstDelBlock) + RegisterExtensibleNodeMethods(arg_method) }) } -pub unsafe fn DropRelFileNodesAllBuffers( - arg_rnodes: *mut RelFileNodeBackend, - arg_nnodes: ::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 DropRelFileNodesAllBuffers( - arg_rnodes: *mut RelFileNodeBackend, - arg_nnodes: ::std::os::raw::c_int, - ); + fn GetExtensibleNodeMethods( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *const ExtensibleNodeMethods; } - DropRelFileNodesAllBuffers(arg_rnodes, arg_nnodes) + GetExtensibleNodeMethods(arg_name, arg_missing_ok) }) } -pub unsafe fn DropDatabaseBuffers(arg_dbid: Oid) { +#[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() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CustomScanMethods { + pub CustomName: *const ::std::os::raw::c_char, + pub CreateCustomScanState: + ::std::option::Option *mut Node>, +} +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() + } + } +} +#[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, + ), + >, +} +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 RegisterCustomScanMethods(arg_methods: *const CustomScanMethods) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DropDatabaseBuffers(arg_dbid: Oid); + fn RegisterCustomScanMethods(arg_methods: *const CustomScanMethods); } - DropDatabaseBuffers(arg_dbid) + RegisterCustomScanMethods(arg_methods) }) } -pub unsafe fn BufferIsPermanent(arg_buffer: Buffer) -> 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 BufferIsPermanent(arg_buffer: Buffer) -> bool; + fn GetCustomScanMethods( + arg_CustomName: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *const CustomScanMethods; } - BufferIsPermanent(arg_buffer) + GetCustomScanMethods(arg_CustomName, arg_missing_ok) }) } -pub unsafe fn BufferGetLSNAtomic(arg_buffer: Buffer) -> XLogRecPtr { +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 BufferGetLSNAtomic(arg_buffer: Buffer) -> XLogRecPtr; + 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; } - BufferGetLSNAtomic(arg_buffer) + makeA_Expr(arg_kind, arg_name, arg_lexpr, arg_rexpr, arg_location) }) } -pub unsafe fn BufferShmemSize() -> Size { +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 BufferShmemSize() -> Size; + 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; } - BufferShmemSize() + makeSimpleA_Expr(arg_kind, arg_name, arg_lexpr, arg_rexpr, arg_location) }) } -pub unsafe fn BufferGetTag( - arg_buffer: Buffer, - arg_rnode: *mut RelFileNode, - arg_forknum: *mut ForkNumber, - arg_blknum: *mut BlockNumber, -) { +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 BufferGetTag( - arg_buffer: Buffer, - arg_rnode: *mut RelFileNode, - arg_forknum: *mut ForkNumber, - arg_blknum: *mut BlockNumber, - ); + fn makeVar( + arg_varno: Index, + arg_varattno: AttrNumber, + arg_vartype: Oid, + arg_vartypmod: int32, + arg_varcollid: Oid, + arg_varlevelsup: Index, + ) -> *mut Var; } - BufferGetTag(arg_buffer, arg_rnode, arg_forknum, arg_blknum) + makeVar(arg_varno, arg_varattno, arg_vartype, arg_vartypmod, arg_varcollid, arg_varlevelsup) }) } -pub unsafe fn MarkBufferDirtyHint(arg_buffer: Buffer, arg_buffer_std: bool) { +pub unsafe fn makeVarFromTargetEntry(arg_varno: Index, arg_tle: *mut TargetEntry) -> *mut Var { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MarkBufferDirtyHint(arg_buffer: Buffer, arg_buffer_std: bool); + fn makeVarFromTargetEntry(arg_varno: Index, arg_tle: *mut TargetEntry) -> *mut Var; } - MarkBufferDirtyHint(arg_buffer, arg_buffer_std) + makeVarFromTargetEntry(arg_varno, arg_tle) }) } -pub unsafe fn UnlockBuffers() { +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 UnlockBuffers(); + fn makeWholeRowVar( + arg_rte: *mut RangeTblEntry, + arg_varno: Index, + arg_varlevelsup: Index, + arg_allowScalar: bool, + ) -> *mut Var; } - UnlockBuffers() + makeWholeRowVar(arg_rte, arg_varno, arg_varlevelsup, arg_allowScalar) }) } -pub unsafe fn LockBuffer(arg_buffer: Buffer, arg_mode: ::std::os::raw::c_int) { +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 LockBuffer(arg_buffer: Buffer, arg_mode: ::std::os::raw::c_int); + fn makeTargetEntry( + arg_expr: *mut Expr, + arg_resno: AttrNumber, + arg_resname: *mut ::std::os::raw::c_char, + arg_resjunk: bool, + ) -> *mut TargetEntry; } - LockBuffer(arg_buffer, arg_mode) + makeTargetEntry(arg_expr, arg_resno, arg_resname, arg_resjunk) }) } -pub unsafe fn ConditionalLockBuffer(arg_buffer: Buffer) -> bool { +pub unsafe fn flatCopyTargetEntry(arg_src_tle: *mut TargetEntry) -> *mut TargetEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ConditionalLockBuffer(arg_buffer: Buffer) -> bool; + fn flatCopyTargetEntry(arg_src_tle: *mut TargetEntry) -> *mut TargetEntry; } - ConditionalLockBuffer(arg_buffer) + flatCopyTargetEntry(arg_src_tle) }) } -pub unsafe fn LockBufferForCleanup(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 LockBufferForCleanup(arg_buffer: Buffer); + fn makeFromExpr(arg_fromlist: *mut List, arg_quals: *mut Node) -> *mut FromExpr; } - LockBufferForCleanup(arg_buffer) + makeFromExpr(arg_fromlist, arg_quals) }) } -pub unsafe fn ConditionalLockBufferForCleanup(arg_buffer: Buffer) -> bool { +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 ConditionalLockBufferForCleanup(arg_buffer: Buffer) -> bool; + 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; } - ConditionalLockBufferForCleanup(arg_buffer) + makeConst( + arg_consttype, + arg_consttypmod, + arg_constcollid, + arg_constlen, + arg_constvalue, + arg_constisnull, + arg_constbyval, + ) }) } -pub unsafe fn IsBufferCleanupOK(arg_buffer: Buffer) -> bool { +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 IsBufferCleanupOK(arg_buffer: Buffer) -> bool; + fn makeNullConst( + arg_consttype: Oid, + arg_consttypmod: int32, + arg_constcollid: Oid, + ) -> *mut Const; } - IsBufferCleanupOK(arg_buffer) + makeNullConst(arg_consttype, arg_consttypmod, arg_constcollid) }) } -pub unsafe fn HoldingBufferPinThatDelaysRecovery() -> bool { +pub unsafe fn makeBoolConst(arg_value: bool, arg_isnull: bool) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HoldingBufferPinThatDelaysRecovery() -> bool; + fn makeBoolConst(arg_value: bool, arg_isnull: bool) -> *mut Node; } - HoldingBufferPinThatDelaysRecovery() + makeBoolConst(arg_value, arg_isnull) }) } -pub unsafe fn AbortBufferIO() { +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 AbortBufferIO(); + fn makeBoolExpr( + arg_boolop: BoolExprType, + arg_args: *mut List, + arg_location: ::std::os::raw::c_int, + ) -> *mut Expr; } - AbortBufferIO() + makeBoolExpr(arg_boolop, arg_args, arg_location) }) } -pub unsafe fn BufmgrCommit() { +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 BufmgrCommit(); + fn makeAlias( + arg_aliasname: *const ::std::os::raw::c_char, + arg_colnames: *mut List, + ) -> *mut Alias; } - BufmgrCommit() + makeAlias(arg_aliasname, arg_colnames) }) } -pub unsafe fn BgBufferSync(arg_wb_context: *mut WritebackContext) -> 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 BgBufferSync(arg_wb_context: *mut WritebackContext) -> bool; + fn makeRelabelType( + arg_arg: *mut Expr, + arg_rtype: Oid, + arg_rtypmod: int32, + arg_rcollid: Oid, + arg_rformat: CoercionForm, + ) -> *mut RelabelType; } - BgBufferSync(arg_wb_context) + makeRelabelType(arg_arg, arg_rtype, arg_rtypmod, arg_rcollid, arg_rformat) }) } -pub unsafe fn AtProcExit_LocalBuffers() { +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 AtProcExit_LocalBuffers(); + 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; } - AtProcExit_LocalBuffers() + makeRangeVar(arg_schemaname, arg_relname, arg_location) }) } -pub unsafe fn TestForOldSnapshot_impl(arg_snapshot: Snapshot, arg_relation: Relation) { +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 TestForOldSnapshot_impl(arg_snapshot: Snapshot, arg_relation: Relation); + fn makeTypeName(arg_typnam: *mut ::std::os::raw::c_char) -> *mut TypeName; } - TestForOldSnapshot_impl(arg_snapshot, arg_relation) + makeTypeName(arg_typnam) }) } -pub unsafe fn GetAccessStrategy(arg_btype: BufferAccessStrategyType) -> BufferAccessStrategy { +pub unsafe fn makeTypeNameFromNameList(arg_names: *mut List) -> *mut TypeName { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAccessStrategy(arg_btype: BufferAccessStrategyType) -> BufferAccessStrategy; + fn makeTypeNameFromNameList(arg_names: *mut List) -> *mut TypeName; } - GetAccessStrategy(arg_btype) + makeTypeNameFromNameList(arg_names) }) } -pub unsafe fn FreeAccessStrategy(arg_strategy: BufferAccessStrategy) { +pub unsafe fn makeTypeNameFromOid(arg_typeOid: Oid, arg_typmod: int32) -> *mut TypeName { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeAccessStrategy(arg_strategy: BufferAccessStrategy); + fn makeTypeNameFromOid(arg_typeOid: Oid, arg_typmod: int32) -> *mut TypeName; } - FreeAccessStrategy(arg_strategy) + makeTypeNameFromOid(arg_typeOid, arg_typmod) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BufFile { - _unused: [u8; 0], -} -pub unsafe fn BufFileCreateTemp(arg_interXact: bool) -> *mut BufFile { +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 BufFileCreateTemp(arg_interXact: bool) -> *mut BufFile; + fn makeColumnDef( + arg_colname: *const ::std::os::raw::c_char, + arg_typeOid: Oid, + arg_typmod: int32, + arg_collOid: Oid, + ) -> *mut ColumnDef; } - BufFileCreateTemp(arg_interXact) + makeColumnDef(arg_colname, arg_typeOid, arg_typmod, arg_collOid) }) } -pub unsafe fn BufFileClose(arg_file: *mut BufFile) { +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 BufFileClose(arg_file: *mut BufFile); + fn makeFuncExpr( + arg_funcid: Oid, + arg_rettype: Oid, + arg_args: *mut List, + arg_funccollid: Oid, + arg_inputcollid: Oid, + arg_fformat: CoercionForm, + ) -> *mut FuncExpr; } - BufFileClose(arg_file) + makeFuncExpr( + arg_funcid, + arg_rettype, + arg_args, + arg_funccollid, + arg_inputcollid, + arg_fformat, + ) }) } -pub unsafe fn BufFileRead( - arg_file: *mut BufFile, - arg_ptr: *mut ::std::os::raw::c_void, - arg_size: usize, -) -> usize { +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 BufFileRead( - arg_file: *mut BufFile, - arg_ptr: *mut ::std::os::raw::c_void, - arg_size: usize, - ) -> usize; + fn makeFuncCall( + arg_name: *mut List, + arg_args: *mut List, + arg_location: ::std::os::raw::c_int, + ) -> *mut FuncCall; } - BufFileRead(arg_file, arg_ptr, arg_size) + makeFuncCall(arg_name, arg_args, arg_location) }) } -pub unsafe fn BufFileWrite( - arg_file: *mut BufFile, - arg_ptr: *mut ::std::os::raw::c_void, - arg_size: usize, -) -> usize { +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 BufFileWrite( - arg_file: *mut BufFile, - arg_ptr: *mut ::std::os::raw::c_void, - arg_size: usize, - ) -> usize; + fn makeDefElem( + arg_name: *mut ::std::os::raw::c_char, + arg_arg: *mut Node, + arg_location: ::std::os::raw::c_int, + ) -> *mut DefElem; } - BufFileWrite(arg_file, arg_ptr, arg_size) + makeDefElem(arg_name, arg_arg, arg_location) }) } -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 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 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 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; } - BufFileSeek(arg_file, arg_fileno, arg_offset, arg_whence) + makeDefElemExtended(arg_nameSpace, arg_name, arg_arg, arg_defaction, arg_location) }) } -pub unsafe fn BufFileTell( - arg_file: *mut BufFile, - arg_fileno: *mut ::std::os::raw::c_int, - arg_offset: *mut off_t, -) { +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 BufFileTell( - arg_file: *mut BufFile, - arg_fileno: *mut ::std::os::raw::c_int, - arg_offset: *mut off_t, - ); + fn makeGroupingSet( + arg_kind: GroupingSetKind, + arg_content: *mut List, + arg_location: ::std::os::raw::c_int, + ) -> *mut GroupingSet; } - BufFileTell(arg_file, arg_fileno, arg_offset) + makeGroupingSet(arg_kind, arg_content, arg_location) }) } -pub unsafe fn BufFileSeekBlock( - arg_file: *mut BufFile, - arg_blknum: ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +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 BufFileSeekBlock( - arg_file: *mut BufFile, - arg_blknum: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn exprType(arg_expr: *const Node) -> Oid; } - BufFileSeekBlock(arg_file, arg_blknum) + exprType(arg_expr) }) } -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 exprTypmod(arg_expr: *const Node) -> int32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn proc_exit(arg_code: ::std::os::raw::c_int); + fn exprTypmod(arg_expr: *const Node) -> int32; } - proc_exit(arg_code) + exprTypmod(arg_expr) }) } -pub unsafe fn shmem_exit(arg_code: ::std::os::raw::c_int) { +pub unsafe fn exprIsLengthCoercion(arg_expr: *const Node, arg_coercedTypmod: *mut int32) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn shmem_exit(arg_code: ::std::os::raw::c_int); + fn exprIsLengthCoercion(arg_expr: *const Node, arg_coercedTypmod: *mut int32) -> bool; } - shmem_exit(arg_code) + exprIsLengthCoercion(arg_expr, arg_coercedTypmod) }) } -pub unsafe fn on_proc_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { +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 on_proc_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); + fn relabel_to_typmod(arg_expr: *mut Node, arg_typmod: int32) -> *mut Node; } - on_proc_exit(arg_function, arg_arg) + relabel_to_typmod(arg_expr, arg_typmod) }) } -pub unsafe fn on_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { +pub unsafe fn strip_implicit_coercions(arg_node: *mut Node) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); + fn strip_implicit_coercions(arg_node: *mut Node) -> *mut Node; } - on_shmem_exit(arg_function, arg_arg) + strip_implicit_coercions(arg_node) }) } -pub unsafe fn before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { +pub unsafe fn expression_returns_set(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); + fn expression_returns_set(arg_clause: *mut Node) -> bool; } - before_shmem_exit(arg_function, arg_arg) + expression_returns_set(arg_clause) }) } -pub unsafe fn cancel_before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { +pub unsafe fn exprCollation(arg_expr: *const Node) -> Oid { 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 exprCollation(arg_expr: *const Node) -> Oid; } - cancel_before_shmem_exit(arg_function, arg_arg) + exprCollation(arg_expr) }) } -pub unsafe fn on_exit_reset() { +pub unsafe fn exprInputCollation(arg_expr: *const Node) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_exit_reset(); + fn exprInputCollation(arg_expr: *const Node) -> Oid; } - on_exit_reset() + exprInputCollation(arg_expr) }) } -extern "C" { - pub static mut shmem_startup_hook: shmem_startup_hook_type; -} -pub unsafe fn CreateSharedMemoryAndSemaphores(arg_port: ::std::os::raw::c_int) { +pub unsafe fn exprSetCollation(arg_expr: *mut Node, arg_collation: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateSharedMemoryAndSemaphores(arg_port: ::std::os::raw::c_int); + fn exprSetCollation(arg_expr: *mut Node, arg_collation: Oid); } - CreateSharedMemoryAndSemaphores(arg_port) + exprSetCollation(arg_expr, arg_collation) }) } -pub unsafe fn standby_redo(arg_record: *mut XLogReaderState) { +pub unsafe fn exprSetInputCollation(arg_expr: *mut Node, arg_inputcollation: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standby_redo(arg_record: *mut XLogReaderState); + fn exprSetInputCollation(arg_expr: *mut Node, arg_inputcollation: Oid); } - standby_redo(arg_record) + exprSetInputCollation(arg_expr, arg_inputcollation) }) } -pub unsafe fn standby_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState) { +pub unsafe fn exprLocation(arg_expr: *const Node) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standby_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState); + fn exprLocation(arg_expr: *const Node) -> ::std::os::raw::c_int; } - standby_desc(arg_buf, arg_record) + exprLocation(arg_expr) }) } -pub unsafe fn standby_identify(arg_info: uint8) -> *const ::std::os::raw::c_char { +pub unsafe fn fix_opfuncids(arg_node: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standby_identify(arg_info: uint8) -> *const ::std::os::raw::c_char; + fn fix_opfuncids(arg_node: *mut Node); } - standby_identify(arg_info) + fix_opfuncids(arg_node) }) } -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, -) { +pub unsafe fn set_opfuncid(arg_opexpr: *mut OpExpr) { 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, - ); + fn set_opfuncid(arg_opexpr: *mut OpExpr); } - standby_desc_invalidations( - arg_buf, - arg_nmsgs, - arg_msgs, - arg_dbId, - arg_tsId, - arg_relcacheInitFileInval, - ) + set_opfuncid(arg_opexpr) }) } -#[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() - } - } -} -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 set_sa_opfuncid(arg_opexpr: *mut ScalarArrayOpExpr) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcSignalShmemSize() -> Size; + fn set_sa_opfuncid(arg_opexpr: *mut ScalarArrayOpExpr); } - ProcSignalShmemSize() + set_sa_opfuncid(arg_opexpr) }) } -pub unsafe fn ProcSignalShmemInit() { +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 ProcSignalShmemInit(); + fn check_functions_in_node( + arg_node: *mut Node, + arg_checker: check_function_callback, + arg_context: *mut ::std::os::raw::c_void, + ) -> bool; } - ProcSignalShmemInit() + check_functions_in_node(arg_node, arg_checker, arg_context) }) } -pub unsafe fn ProcSignalInit(arg_pss_idx: ::std::os::raw::c_int) { +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 ProcSignalInit(arg_pss_idx: ::std::os::raw::c_int); + 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; } - ProcSignalInit(arg_pss_idx) + expression_tree_mutator(arg_node, arg_mutator, arg_context) }) } -pub unsafe fn SendProcSignal( - arg_pid: pid_t, - arg_reason: ProcSignalReason, - arg_backendId: BackendId, -) -> ::std::os::raw::c_int { +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 SendProcSignal( - arg_pid: pid_t, - arg_reason: ProcSignalReason, - arg_backendId: BackendId, - ) -> ::std::os::raw::c_int; + 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; } - SendProcSignal(arg_pid, arg_reason, arg_backendId) + query_tree_mutator(arg_query, arg_mutator, arg_context, arg_flags) }) } -pub unsafe fn procsignal_sigusr1_handler(arg_postgres_signal_arg: ::std::os::raw::c_int) { +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 procsignal_sigusr1_handler(arg_postgres_signal_arg: ::std::os::raw::c_int); + 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; } - procsignal_sigusr1_handler(arg_postgres_signal_arg) + range_table_walker(arg_rtable, arg_walker, arg_context, arg_flags) }) } -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 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 InitRecoveryTransactionEnvironment(); + 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; } - InitRecoveryTransactionEnvironment() + range_table_mutator(arg_rtable, arg_mutator, arg_context, arg_flags) }) } -pub unsafe fn ShutdownRecoveryTransactionEnvironment() { +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 ShutdownRecoveryTransactionEnvironment(); + 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; } - ShutdownRecoveryTransactionEnvironment() + query_or_expression_tree_walker(arg_node, arg_walker, arg_context, arg_flags) }) } -pub unsafe fn ResolveRecoveryConflictWithSnapshot( - arg_latestRemovedXid: TransactionId, - arg_node: RelFileNode, -) { +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 ResolveRecoveryConflictWithSnapshot( - arg_latestRemovedXid: TransactionId, - arg_node: RelFileNode, - ); + 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; } - ResolveRecoveryConflictWithSnapshot(arg_latestRemovedXid, arg_node) + query_or_expression_tree_mutator(arg_node, arg_mutator, arg_context, arg_flags) }) } -pub unsafe fn ResolveRecoveryConflictWithTablespace(arg_tsid: Oid) { +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 ResolveRecoveryConflictWithTablespace(arg_tsid: Oid); + fn raw_expression_tree_walker( + arg_node: *mut Node, + arg_walker: ::std::option::Option bool>, + arg_context: *mut ::std::os::raw::c_void, + ) -> bool; } - ResolveRecoveryConflictWithTablespace(arg_tsid) + raw_expression_tree_walker(arg_node, arg_walker, arg_context) }) } -pub unsafe fn ResolveRecoveryConflictWithDatabase(arg_dbid: Oid) { +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 ResolveRecoveryConflictWithDatabase(arg_dbid: Oid); + fn planstate_tree_walker( + arg_planstate: *mut PlanState, + arg_walker: ::std::option::Option bool>, + arg_context: *mut ::std::os::raw::c_void, + ) -> bool; } - ResolveRecoveryConflictWithDatabase(arg_dbid) + planstate_tree_walker(arg_planstate, arg_walker, arg_context) }) } -pub unsafe fn ResolveRecoveryConflictWithLock(arg_locktag: LOCKTAG) { +pub unsafe fn print(arg_obj: *const ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResolveRecoveryConflictWithLock(arg_locktag: LOCKTAG); + fn print(arg_obj: *const ::std::os::raw::c_void); } - ResolveRecoveryConflictWithLock(arg_locktag) + print(arg_obj) }) } -pub unsafe fn ResolveRecoveryConflictWithBufferPin() { +pub unsafe fn pprint(arg_obj: *const ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResolveRecoveryConflictWithBufferPin(); + fn pprint(arg_obj: *const ::std::os::raw::c_void); } - ResolveRecoveryConflictWithBufferPin() + pprint(arg_obj) }) } -pub unsafe fn CheckRecoveryConflictDeadlock() { +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 CheckRecoveryConflictDeadlock(); + 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, + ); } - CheckRecoveryConflictDeadlock() + elog_node_display(arg_lev, arg_title, arg_obj, arg_pretty) }) } -pub unsafe fn StandbyDeadLockHandler() { +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 StandbyDeadLockHandler(); + fn format_node_dump( + arg_dump: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - StandbyDeadLockHandler() + format_node_dump(arg_dump) }) } -pub unsafe fn StandbyTimeoutHandler() { +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 StandbyTimeoutHandler(); + fn pretty_format_node_dump( + arg_dump: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - StandbyTimeoutHandler() + pretty_format_node_dump(arg_dump) }) } -pub unsafe fn StandbyLockTimeoutHandler() { +pub unsafe fn print_rt(arg_rtable: *const List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyLockTimeoutHandler(); + fn print_rt(arg_rtable: *const List); } - StandbyLockTimeoutHandler() + print_rt(arg_rtable) }) } -pub unsafe fn StandbyAcquireAccessExclusiveLock( - arg_xid: TransactionId, - arg_dbOid: Oid, - arg_relOid: Oid, -) { +pub unsafe fn print_expr(arg_expr: *const Node, arg_rtable: *const List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyAcquireAccessExclusiveLock( - arg_xid: TransactionId, - arg_dbOid: Oid, - arg_relOid: Oid, - ); + fn print_expr(arg_expr: *const Node, arg_rtable: *const List); } - StandbyAcquireAccessExclusiveLock(arg_xid, arg_dbOid, arg_relOid) + print_expr(arg_expr, arg_rtable) }) } -pub unsafe fn StandbyReleaseLockTree( - arg_xid: TransactionId, - arg_nsubxids: ::std::os::raw::c_int, - arg_subxids: *mut TransactionId, -) { +pub unsafe fn print_pathkeys(arg_pathkeys: *const List, arg_rtable: *const List) { 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 print_pathkeys(arg_pathkeys: *const List, arg_rtable: *const List); } - StandbyReleaseLockTree(arg_xid, arg_nsubxids, arg_subxids) + print_pathkeys(arg_pathkeys, arg_rtable) }) } -pub unsafe fn StandbyReleaseAllLocks() { +pub unsafe fn print_tl(arg_tlist: *const List, arg_rtable: *const List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyReleaseAllLocks(); + fn print_tl(arg_tlist: *const List, arg_rtable: *const List); } - StandbyReleaseAllLocks() + print_tl(arg_tlist, arg_rtable) }) } -pub unsafe fn StandbyReleaseOldLocks( - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, -) { +pub unsafe fn print_slot(arg_slot: *mut TupleTableSlot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyReleaseOldLocks( - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - ); + fn print_slot(arg_slot: *mut TupleTableSlot); } - StandbyReleaseOldLocks(arg_nxids, arg_xids) + print_slot(arg_slot) }) } +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 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, +pub struct IdentifySystemCmd { + pub type_: NodeTag, } -impl Default for RunningTransactionsData { +impl Default for IdentifySystemCmd { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -62380,27312 +44868,31263 @@ impl Default for RunningTransactionsData { } } } -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 LogAccessExclusiveLock(arg_dbOid: Oid, arg_relOid: Oid); - } - LogAccessExclusiveLock(arg_dbOid, arg_relOid) - }) -} -pub unsafe fn LogAccessExclusiveLockPrepare() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LogAccessExclusiveLockPrepare(); - } - LogAccessExclusiveLockPrepare() - }) -} -pub unsafe fn LogStandbySnapshot() -> XLogRecPtr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LogStandbySnapshot() -> XLogRecPtr; - } - LogStandbySnapshot() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BaseBackupCmd { + pub type_: NodeTag, + pub options: *mut List, } -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 LogStandbyInvalidations( - arg_nmsgs: ::std::os::raw::c_int, - arg_msgs: *mut SharedInvalidationMessage, - arg_relcacheInitFileInval: bool, - ); +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() } - LogStandbyInvalidations(arg_nmsgs, arg_msgs, arg_relcacheInitFileInval) - }) + } } -pub unsafe fn ProcArrayShmemSize() -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ProcArrayShmemSize() -> Size; - } - ProcArrayShmemSize() - }) +#[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 CreateSharedProcArray() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateSharedProcArray(); +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() } - CreateSharedProcArray() - }) + } } -pub unsafe fn ProcArrayAdd(arg_proc_: *mut PGPROC) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ProcArrayAdd(arg_proc_: *mut PGPROC); - } - ProcArrayAdd(arg_proc_) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DropReplicationSlotCmd { + pub type_: NodeTag, + pub slotname: *mut ::std::os::raw::c_char, + pub wait: bool, } -pub unsafe fn ProcArrayRemove(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ProcArrayRemove(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId); +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() } - ProcArrayRemove(arg_proc_, arg_latestXid) - }) + } } -pub unsafe fn ProcArrayEndTransaction(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ProcArrayEndTransaction(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId); - } - ProcArrayEndTransaction(arg_proc_, arg_latestXid) - }) +#[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 unsafe fn ProcArrayClearTransaction(arg_proc_: *mut PGPROC) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ProcArrayClearTransaction(arg_proc_: *mut PGPROC); +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() } - ProcArrayClearTransaction(arg_proc_) - }) + } } -pub unsafe fn ProcArrayInitRecovery(arg_initializedUptoXID: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ProcArrayInitRecovery(arg_initializedUptoXID: TransactionId); - } - ProcArrayInitRecovery(arg_initializedUptoXID) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TimeLineHistoryCmd { + pub type_: NodeTag, + pub timeline: TimeLineID, } -pub unsafe fn ProcArrayApplyRecoveryInfo(arg_running: RunningTransactions) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ProcArrayApplyRecoveryInfo(arg_running: RunningTransactions); +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() } - ProcArrayApplyRecoveryInfo(arg_running) - }) + } } -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 ProcArrayApplyXidAssignment( - arg_topxid: TransactionId, - arg_nsubxids: ::std::os::raw::c_int, - arg_subxids: *mut TransactionId, - ); - } - ProcArrayApplyXidAssignment(arg_topxid, arg_nsubxids, arg_subxids) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SQLCmd { + pub type_: NodeTag, } -pub unsafe fn RecordKnownAssignedTransactionIds(arg_xid: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RecordKnownAssignedTransactionIds(arg_xid: TransactionId); +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() } - RecordKnownAssignedTransactionIds(arg_xid) - }) + } } -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 ExpireTreeKnownAssignedTransactionIds( - arg_xid: TransactionId, - arg_nsubxids: ::std::os::raw::c_int, - arg_subxids: *mut TransactionId, - arg_max_xid: TransactionId, - ); - } - ExpireTreeKnownAssignedTransactionIds(arg_xid, arg_nsubxids, arg_subxids, arg_max_xid) - }) +#[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 unsafe fn ExpireAllKnownAssignedTransactionIds() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExpireAllKnownAssignedTransactionIds(); +impl Default for WindowFuncLists { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExpireAllKnownAssignedTransactionIds() - }) + } } -pub unsafe fn ExpireOldKnownAssignedTransactionIds(arg_xid: TransactionId) { +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 ExpireOldKnownAssignedTransactionIds(arg_xid: TransactionId); + 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; } - ExpireOldKnownAssignedTransactionIds(arg_xid) + make_opclause( + arg_opno, + arg_opresulttype, + arg_opretset, + arg_leftop, + arg_rightop, + arg_opcollid, + arg_inputcollid, + ) }) } -pub unsafe fn GetMaxSnapshotXidCount() -> ::std::os::raw::c_int { +pub unsafe fn get_leftop(arg_clause: *const Expr) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetMaxSnapshotXidCount() -> ::std::os::raw::c_int; + fn get_leftop(arg_clause: *const Expr) -> *mut Node; } - GetMaxSnapshotXidCount() + get_leftop(arg_clause) }) } -pub unsafe fn GetMaxSnapshotSubxidCount() -> ::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 GetMaxSnapshotSubxidCount() -> ::std::os::raw::c_int; + fn get_rightop(arg_clause: *const Expr) -> *mut Node; } - GetMaxSnapshotSubxidCount() + get_rightop(arg_clause) }) } -pub unsafe fn GetSnapshotData(arg_snapshot: Snapshot) -> Snapshot { +pub unsafe fn not_clause(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetSnapshotData(arg_snapshot: Snapshot) -> Snapshot; + fn not_clause(arg_clause: *mut Node) -> bool; } - GetSnapshotData(arg_snapshot) + not_clause(arg_clause) }) } -pub unsafe fn ProcArrayInstallImportedXmin( - arg_xmin: TransactionId, - arg_sourcevxid: *mut VirtualTransactionId, -) -> bool { +pub unsafe fn make_notclause(arg_notclause: *mut Expr) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayInstallImportedXmin( - arg_xmin: TransactionId, - arg_sourcevxid: *mut VirtualTransactionId, - ) -> bool; + fn make_notclause(arg_notclause: *mut Expr) -> *mut Expr; } - ProcArrayInstallImportedXmin(arg_xmin, arg_sourcevxid) + make_notclause(arg_notclause) }) } -pub unsafe fn ProcArrayInstallRestoredXmin( - arg_xmin: TransactionId, - arg_proc_: *mut PGPROC, -) -> bool { +pub unsafe fn get_notclausearg(arg_notclause: *mut Expr) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayInstallRestoredXmin( - arg_xmin: TransactionId, - arg_proc_: *mut PGPROC, - ) -> bool; + fn get_notclausearg(arg_notclause: *mut Expr) -> *mut Expr; } - ProcArrayInstallRestoredXmin(arg_xmin, arg_proc_) + get_notclausearg(arg_notclause) }) } -pub unsafe fn GetRunningTransactionData() -> RunningTransactions { +pub unsafe fn or_clause(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRunningTransactionData() -> RunningTransactions; + fn or_clause(arg_clause: *mut Node) -> bool; } - GetRunningTransactionData() + or_clause(arg_clause) }) } -pub unsafe fn TransactionIdIsInProgress(arg_xid: TransactionId) -> bool { +pub unsafe fn make_orclause(arg_orclauses: *mut List) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdIsInProgress(arg_xid: TransactionId) -> bool; + fn make_orclause(arg_orclauses: *mut List) -> *mut Expr; } - TransactionIdIsInProgress(arg_xid) + make_orclause(arg_orclauses) }) } -pub unsafe fn TransactionIdIsActive(arg_xid: TransactionId) -> bool { +pub unsafe fn and_clause(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdIsActive(arg_xid: TransactionId) -> bool; + fn and_clause(arg_clause: *mut Node) -> bool; } - TransactionIdIsActive(arg_xid) + and_clause(arg_clause) }) } -pub unsafe fn GetOldestXmin(arg_rel: Relation, arg_flags: ::std::os::raw::c_int) -> TransactionId { +pub unsafe fn make_andclause(arg_andclauses: *mut List) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetOldestXmin(arg_rel: Relation, arg_flags: ::std::os::raw::c_int) -> TransactionId; + fn make_andclause(arg_andclauses: *mut List) -> *mut Expr; } - GetOldestXmin(arg_rel, arg_flags) + make_andclause(arg_andclauses) }) } -pub unsafe fn GetOldestActiveTransactionId() -> TransactionId { +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 GetOldestActiveTransactionId() -> TransactionId; + fn make_and_qual(arg_qual1: *mut Node, arg_qual2: *mut Node) -> *mut Node; } - GetOldestActiveTransactionId() + make_and_qual(arg_qual1, arg_qual2) }) } -pub unsafe fn GetOldestSafeDecodingTransactionId(arg_catalogOnly: bool) -> TransactionId { +pub unsafe fn make_ands_explicit(arg_andclauses: *mut List) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetOldestSafeDecodingTransactionId(arg_catalogOnly: bool) -> TransactionId; + fn make_ands_explicit(arg_andclauses: *mut List) -> *mut Expr; } - GetOldestSafeDecodingTransactionId(arg_catalogOnly) + make_ands_explicit(arg_andclauses) }) } -pub unsafe fn GetVirtualXIDsDelayingChkpt( - arg_nvxids: *mut ::std::os::raw::c_int, -) -> *mut VirtualTransactionId { +pub unsafe fn make_ands_implicit(arg_clause: *mut Expr) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetVirtualXIDsDelayingChkpt( - arg_nvxids: *mut ::std::os::raw::c_int, - ) -> *mut VirtualTransactionId; + fn make_ands_implicit(arg_clause: *mut Expr) -> *mut List; } - GetVirtualXIDsDelayingChkpt(arg_nvxids) + make_ands_implicit(arg_clause) }) } -pub unsafe fn GetVirtualXIDsDelayingChkptEnd( - arg_nvxids: *mut ::std::os::raw::c_int, -) -> *mut VirtualTransactionId { +pub unsafe fn contain_agg_clause(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetVirtualXIDsDelayingChkptEnd( - arg_nvxids: *mut ::std::os::raw::c_int, - ) -> *mut VirtualTransactionId; + fn contain_agg_clause(arg_clause: *mut Node) -> bool; } - GetVirtualXIDsDelayingChkptEnd(arg_nvxids) + contain_agg_clause(arg_clause) }) } -pub unsafe fn HaveVirtualXIDsDelayingChkpt( - arg_vxids: *mut VirtualTransactionId, - arg_nvxids: ::std::os::raw::c_int, -) -> bool { +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 HaveVirtualXIDsDelayingChkpt( - arg_vxids: *mut VirtualTransactionId, - arg_nvxids: ::std::os::raw::c_int, - ) -> bool; + fn get_agg_clause_costs( + arg_root: *mut PlannerInfo, + arg_clause: *mut Node, + arg_aggsplit: AggSplit, + arg_costs: *mut AggClauseCosts, + ); } - HaveVirtualXIDsDelayingChkpt(arg_vxids, arg_nvxids) + get_agg_clause_costs(arg_root, arg_clause, arg_aggsplit, arg_costs) }) } -pub unsafe fn HaveVirtualXIDsDelayingChkptEnd( - arg_vxids: *mut VirtualTransactionId, - arg_nvxids: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn contain_window_function(arg_clause: *mut Node) -> 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; + fn contain_window_function(arg_clause: *mut Node) -> bool; } - HaveVirtualXIDsDelayingChkptEnd(arg_vxids, arg_nvxids) + contain_window_function(arg_clause) }) } -pub unsafe fn BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { +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 BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; + fn find_window_functions( + arg_clause: *mut Node, + arg_maxWinRef: Index, + ) -> *mut WindowFuncLists; } - BackendPidGetProc(arg_pid) + find_window_functions(arg_clause, arg_maxWinRef) }) } -pub unsafe fn BackendPidGetProcWithLock(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { +pub unsafe fn expression_returns_set_rows(arg_clause: *mut Node) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BackendPidGetProcWithLock(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; + fn expression_returns_set_rows(arg_clause: *mut Node) -> f64; } - BackendPidGetProcWithLock(arg_pid) + expression_returns_set_rows(arg_clause) }) } -pub unsafe fn BackendXidGetPid(arg_xid: TransactionId) -> ::std::os::raw::c_int { +pub unsafe fn contain_subplans(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BackendXidGetPid(arg_xid: TransactionId) -> ::std::os::raw::c_int; + fn contain_subplans(arg_clause: *mut Node) -> bool; } - BackendXidGetPid(arg_xid) + contain_subplans(arg_clause) }) } -pub unsafe fn IsBackendPid(arg_pid: ::std::os::raw::c_int) -> bool { +pub unsafe fn contain_mutable_functions(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsBackendPid(arg_pid: ::std::os::raw::c_int) -> bool; + fn contain_mutable_functions(arg_clause: *mut Node) -> bool; } - IsBackendPid(arg_pid) + contain_mutable_functions(arg_clause) }) } -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 contain_volatile_functions(arg_clause: *mut Node) -> bool { 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 contain_volatile_functions(arg_clause: *mut Node) -> bool; } - GetCurrentVirtualXIDs( - arg_limitXmin, - arg_excludeXmin0, - arg_allDbs, - arg_excludeVacuum, - arg_nvxids, - ) + contain_volatile_functions(arg_clause) }) } -pub unsafe fn GetConflictingVirtualXIDs( - arg_limitXmin: TransactionId, - arg_dbOid: Oid, -) -> *mut VirtualTransactionId { +pub unsafe fn contain_volatile_functions_not_nextval(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetConflictingVirtualXIDs( - arg_limitXmin: TransactionId, - arg_dbOid: Oid, - ) -> *mut VirtualTransactionId; + fn contain_volatile_functions_not_nextval(arg_clause: *mut Node) -> bool; } - GetConflictingVirtualXIDs(arg_limitXmin, arg_dbOid) + contain_volatile_functions_not_nextval(arg_clause) }) } -pub unsafe fn CancelVirtualTransaction( - arg_vxid: VirtualTransactionId, - arg_sigmode: ProcSignalReason, -) -> pid_t { +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 CancelVirtualTransaction( - arg_vxid: VirtualTransactionId, - arg_sigmode: ProcSignalReason, - ) -> pid_t; + fn max_parallel_hazard(arg_parse: *mut Query) -> ::std::os::raw::c_char; } - CancelVirtualTransaction(arg_vxid, arg_sigmode) + max_parallel_hazard(arg_parse) }) } -pub unsafe fn SignalVirtualTransaction( - arg_vxid: VirtualTransactionId, - arg_sigmode: ProcSignalReason, - arg_conflictPending: bool, -) -> pid_t { +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 SignalVirtualTransaction( - arg_vxid: VirtualTransactionId, - arg_sigmode: ProcSignalReason, - arg_conflictPending: bool, - ) -> pid_t; + fn is_parallel_safe(arg_root: *mut PlannerInfo, arg_node: *mut Node) -> bool; } - SignalVirtualTransaction(arg_vxid, arg_sigmode, arg_conflictPending) + is_parallel_safe(arg_root, arg_node) }) } -pub unsafe fn MinimumActiveBackends(arg_min: ::std::os::raw::c_int) -> bool { +pub unsafe fn contain_nonstrict_functions(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MinimumActiveBackends(arg_min: ::std::os::raw::c_int) -> bool; + fn contain_nonstrict_functions(arg_clause: *mut Node) -> bool; } - MinimumActiveBackends(arg_min) + contain_nonstrict_functions(arg_clause) }) } -pub unsafe fn CountDBBackends(arg_databaseid: Oid) -> ::std::os::raw::c_int { +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 CountDBBackends(arg_databaseid: Oid) -> ::std::os::raw::c_int; + fn contain_exec_param(arg_clause: *mut Node, arg_param_ids: *mut List) -> bool; } - CountDBBackends(arg_databaseid) + contain_exec_param(arg_clause, arg_param_ids) }) } -pub unsafe fn CountDBConnections(arg_databaseid: Oid) -> ::std::os::raw::c_int { +pub unsafe fn contain_leaked_vars(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CountDBConnections(arg_databaseid: Oid) -> ::std::os::raw::c_int; + fn contain_leaked_vars(arg_clause: *mut Node) -> bool; } - CountDBConnections(arg_databaseid) + contain_leaked_vars(arg_clause) }) } -pub unsafe fn CancelDBBackends( - arg_databaseid: Oid, - arg_sigmode: ProcSignalReason, - arg_conflictPending: bool, -) { +pub unsafe fn find_nonnullable_rels(arg_clause: *mut Node) -> Relids { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CancelDBBackends( - arg_databaseid: Oid, - arg_sigmode: ProcSignalReason, - arg_conflictPending: bool, - ); + fn find_nonnullable_rels(arg_clause: *mut Node) -> Relids; } - CancelDBBackends(arg_databaseid, arg_sigmode, arg_conflictPending) + find_nonnullable_rels(arg_clause) }) } -pub unsafe fn CountUserBackends(arg_roleid: Oid) -> ::std::os::raw::c_int { +pub unsafe fn find_nonnullable_vars(arg_clause: *mut Node) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CountUserBackends(arg_roleid: Oid) -> ::std::os::raw::c_int; + fn find_nonnullable_vars(arg_clause: *mut Node) -> *mut List; } - CountUserBackends(arg_roleid) + find_nonnullable_vars(arg_clause) }) } -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 find_forced_null_vars(arg_clause: *mut Node) -> *mut List { 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 find_forced_null_vars(arg_clause: *mut Node) -> *mut List; } - CountOtherDBBackends(arg_databaseId, arg_nbackends, arg_nprepared) + find_forced_null_vars(arg_clause) }) } -pub unsafe fn XidCacheRemoveRunningXids( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *const TransactionId, - arg_latestXid: 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 XidCacheRemoveRunningXids( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *const TransactionId, - arg_latestXid: TransactionId, - ); + fn find_forced_null_var(arg_clause: *mut Node) -> *mut Var; } - XidCacheRemoveRunningXids(arg_xid, arg_nxids, arg_xids, arg_latestXid) + find_forced_null_var(arg_clause) }) } -pub unsafe fn ProcArraySetReplicationSlotXmin( - arg_xmin: TransactionId, - arg_catalog_xmin: TransactionId, - arg_already_locked: bool, -) { +pub unsafe fn is_pseudo_constant_clause(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArraySetReplicationSlotXmin( - arg_xmin: TransactionId, - arg_catalog_xmin: TransactionId, - arg_already_locked: bool, - ); + fn is_pseudo_constant_clause(arg_clause: *mut Node) -> bool; } - ProcArraySetReplicationSlotXmin(arg_xmin, arg_catalog_xmin, arg_already_locked) + is_pseudo_constant_clause(arg_clause) }) } -pub unsafe fn ProcArrayGetReplicationSlotXmin( - arg_xmin: *mut TransactionId, - arg_catalog_xmin: *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 ProcArrayGetReplicationSlotXmin( - arg_xmin: *mut TransactionId, - arg_catalog_xmin: *mut TransactionId, - ); + fn is_pseudo_constant_clause_relids(arg_clause: *mut Node, arg_relids: Relids) -> bool; } - ProcArrayGetReplicationSlotXmin(arg_xmin, arg_catalog_xmin) + is_pseudo_constant_clause_relids(arg_clause, arg_relids) }) } -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 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 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 CommuteOpExpr(arg_clause: *mut OpExpr) { 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 CommuteOpExpr(arg_clause: *mut OpExpr); } - ParseConfigFile( - arg_config_file, - arg_strict, - arg_calling_file, - arg_calling_lineno, - arg_depth, - arg_elevel, - arg_head_p, - arg_tail_p, - ) + CommuteOpExpr(arg_clause) }) } -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 CommuteRowCompareExpr(arg_clause: *mut RowCompareExpr) { 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 CommuteRowCompareExpr(arg_clause: *mut RowCompareExpr); } - ParseConfigFp( - arg_fp, - arg_config_file, - arg_depth, - arg_elevel, - arg_head_p, - arg_tail_p, - ) + CommuteRowCompareExpr(arg_clause) }) } -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 eval_const_expressions(arg_root: *mut PlannerInfo, arg_node: *mut Node) -> *mut Node { 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 eval_const_expressions(arg_root: *mut PlannerInfo, arg_node: *mut Node) + -> *mut Node; } - ParseConfigDirectory( - arg_includedir, - arg_calling_file, - arg_calling_lineno, - arg_depth, - arg_elevel, - arg_head_p, - arg_tail_p, - ) + eval_const_expressions(arg_root, arg_node) }) } -pub unsafe fn FreeConfigVariables(arg_list: *mut ConfigVariable) { +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 FreeConfigVariables(arg_list: *mut ConfigVariable); + fn estimate_expression_value( + arg_root: *mut PlannerInfo, + arg_node: *mut Node, + ) -> *mut Node; } - FreeConfigVariables(arg_list) + estimate_expression_value(arg_root, arg_node) }) } -#[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 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 inline_set_returning_function( + arg_root: *mut PlannerInfo, + arg_rte: *mut RangeTblEntry, + ) -> *mut Query; } - } -} -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; + 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 Debug_pretty_print: bool; + pub static mut seq_page_cost: f64; } extern "C" { - pub static mut log_parser_stats: bool; + pub static mut random_page_cost: f64; } extern "C" { - pub static mut log_planner_stats: bool; + pub static mut cpu_tuple_cost: f64; } extern "C" { - pub static mut log_executor_stats: bool; + pub static mut cpu_index_tuple_cost: f64; } extern "C" { - pub static mut log_statement_stats: bool; + pub static mut cpu_operator_cost: f64; } extern "C" { - pub static mut log_btree_build_stats: bool; + pub static mut parallel_tuple_cost: f64; } extern "C" { - pub static mut check_function_bodies: bool; + pub static mut parallel_setup_cost: f64; } extern "C" { - pub static mut default_with_oids: bool; + pub static mut effective_cache_size: ::std::os::raw::c_int; } extern "C" { - pub static mut session_auth_is_superuser: bool; + pub static mut disable_cost: Cost; } extern "C" { - pub static mut log_min_error_statement: ::std::os::raw::c_int; + pub static mut max_parallel_workers_per_gather: ::std::os::raw::c_int; } extern "C" { - pub static mut log_min_messages: ::std::os::raw::c_int; + pub static mut enable_seqscan: bool; } extern "C" { - pub static mut client_min_messages: ::std::os::raw::c_int; + pub static mut enable_indexscan: bool; } extern "C" { - pub static mut log_min_duration_statement: ::std::os::raw::c_int; + pub static mut enable_indexonlyscan: bool; } extern "C" { - pub static mut log_temp_files: ::std::os::raw::c_int; + pub static mut enable_bitmapscan: bool; } extern "C" { - pub static mut temp_file_limit: ::std::os::raw::c_int; + pub static mut enable_tidscan: bool; } extern "C" { - pub static mut num_temp_buffers: ::std::os::raw::c_int; + pub static mut enable_sort: bool; } extern "C" { - pub static mut cluster_name: *mut ::std::os::raw::c_char; + pub static mut enable_hashagg: bool; } extern "C" { - pub static mut ConfigFileName: *mut ::std::os::raw::c_char; + pub static mut enable_nestloop: bool; } extern "C" { - pub static mut HbaFileName: *mut ::std::os::raw::c_char; + pub static mut enable_material: bool; } extern "C" { - pub static mut IdentFileName: *mut ::std::os::raw::c_char; + pub static mut enable_mergejoin: bool; } extern "C" { - pub static mut external_pid_file: *mut ::std::os::raw::c_char; + pub static mut enable_hashjoin: bool; } extern "C" { - pub static mut application_name: *mut ::std::os::raw::c_char; + pub static mut enable_gathermerge: bool; } extern "C" { - pub static mut tcp_keepalives_idle: ::std::os::raw::c_int; + pub static mut constraint_exclusion: ::std::os::raw::c_int; } -extern "C" { - pub static mut tcp_keepalives_interval: ::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 clamp_row_est(arg_nrows: f64) -> f64; + } + clamp_row_est(arg_nrows) + }) } -extern "C" { - pub static mut tcp_keepalives_count: ::std::os::raw::c_int; +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 index_pages_fetched( + arg_tuples_fetched: f64, + arg_pages: BlockNumber, + arg_index_pages: f64, + arg_root: *mut PlannerInfo, + ) -> f64; + } + index_pages_fetched(arg_tuples_fetched, arg_pages, arg_index_pages, arg_root) + }) } -extern "C" { - pub static mut trace_sort: 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 cost_seqscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); + } + cost_seqscan(arg_path, arg_root, arg_baserel, arg_param_info) + }) } -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_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 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_samplescan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, ); } - SetConfigOption(arg_name, arg_value, arg_context, arg_source) + cost_samplescan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -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 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 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 cost_index( + arg_path: *mut IndexPath, + arg_root: *mut PlannerInfo, + arg_loop_count: f64, + arg_partial_path: bool, ); } - 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, - ) + cost_index(arg_path, arg_root, arg_loop_count, arg_partial_path) }) } -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 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 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 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, ); } - 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, + cost_bitmap_heap_scan( + arg_path, + arg_root, + arg_baserel, + arg_param_info, + arg_bitmapqual, + arg_loop_count, ) }) } -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 cost_bitmap_and_node(arg_path: *mut BitmapAndPath, arg_root: *mut PlannerInfo) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn cost_bitmap_and_node(arg_path: *mut BitmapAndPath, arg_root: *mut PlannerInfo); + } + cost_bitmap_and_node(arg_path, arg_root) + }) +} +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 cost_bitmap_or_node(arg_path: *mut BitmapOrPath, arg_root: *mut PlannerInfo); + } + cost_bitmap_or_node(arg_path, arg_root) + }) +} +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 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 cost_bitmap_tree_node( + arg_path: *mut Path, + arg_cost: *mut Cost, + arg_selec: *mut Selectivity, ); } - 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, - ) + cost_bitmap_tree_node(arg_path, arg_cost, arg_selec) }) } -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 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 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 cost_tidscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_tidquals: *mut List, + arg_param_info: *mut ParamPathInfo, ); } - 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, - ) + cost_tidscan(arg_path, arg_root, arg_baserel, arg_tidquals, arg_param_info) }) } -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 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 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 cost_subqueryscan( + arg_path: *mut SubqueryScanPath, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, ); } - 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, - ) + cost_subqueryscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn EmitWarningsOnPlaceholders(arg_className: *const ::std::os::raw::c_char) { +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 EmitWarningsOnPlaceholders(arg_className: *const ::std::os::raw::c_char); + fn cost_functionscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - EmitWarningsOnPlaceholders(arg_className) + cost_functionscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -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 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 GetConfigOption( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - arg_restrict_privileged: bool, - ) -> *const ::std::os::raw::c_char; + fn cost_tableexprscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - GetConfigOption(arg_name, arg_missing_ok, arg_restrict_privileged) + cost_tableexprscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn GetConfigOptionResetString( - arg_name: *const ::std::os::raw::c_char, -) -> *const ::std::os::raw::c_char { +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 GetConfigOptionResetString( - arg_name: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + fn cost_valuesscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - GetConfigOptionResetString(arg_name) + cost_valuesscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn GetConfigOptionFlags( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> ::std::os::raw::c_int { +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 GetConfigOptionFlags( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> ::std::os::raw::c_int; + fn cost_tablefuncscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - GetConfigOptionFlags(arg_name, arg_missing_ok) + cost_tablefuncscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn ProcessConfigFile(arg_context: GucContext) { +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 ProcessConfigFile(arg_context: GucContext); + fn cost_ctescan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - ProcessConfigFile(arg_context) + cost_ctescan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn InitializeGUCOptions() { +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 InitializeGUCOptions(); + fn cost_namedtuplestorescan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - InitializeGUCOptions() + cost_namedtuplestorescan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -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_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 SelectConfigFiles( - arg_userDoption: *const ::std::os::raw::c_char, - arg_progname: *const ::std::os::raw::c_char, - ) -> bool; + fn cost_recursive_union( + arg_runion: *mut Path, + arg_nrterm: *mut Path, + arg_rterm: *mut Path, + ); } - SelectConfigFiles(arg_userDoption, arg_progname) + cost_recursive_union(arg_runion, arg_nrterm, arg_rterm) }) } -pub unsafe fn ResetAllOptions() { +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 ResetAllOptions(); + 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, + ); } - ResetAllOptions() + 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 AtStart_GUC() { +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 AtStart_GUC(); + 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, + ); } - AtStart_GUC() + 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 NewGUCNestLevel() -> ::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 NewGUCNestLevel() -> ::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, + ); } - NewGUCNestLevel() + cost_material(arg_path, arg_input_startup_cost, arg_input_total_cost, arg_tuples, arg_width) }) } -pub unsafe fn AtEOXact_GUC(arg_isCommit: bool, arg_nestLevel: ::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 AtEOXact_GUC(arg_isCommit: bool, arg_nestLevel: ::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, + ); } - AtEOXact_GUC(arg_isCommit, arg_nestLevel) + 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 BeginReportingGUCOptions() { +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 BeginReportingGUCOptions(); + 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, + ); } - BeginReportingGUCOptions() + 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 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 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 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 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, ); } - ParseLongOption(arg_string, arg_name, arg_value) + cost_group( + arg_path, + arg_root, + arg_numGroupCols, + arg_numGroups, + arg_input_startup_cost, + arg_input_total_cost, + arg_input_tuples, + ) }) } -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 { +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 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; + 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, + ); } - parse_int(arg_value, arg_result, arg_flags, arg_hintmsg) + initial_cost_nestloop( + arg_root, + arg_workspace, + arg_jointype, + arg_outer_path, + arg_inner_path, + arg_extra, + ) }) } -pub unsafe fn parse_real(arg_value: *const ::std::os::raw::c_char, arg_result: *mut f64) -> bool { +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 parse_real(arg_value: *const ::std::os::raw::c_char, arg_result: *mut f64) -> bool; + fn final_cost_nestloop( + arg_root: *mut PlannerInfo, + arg_path: *mut NestPath, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, + ); } - parse_real(arg_value, arg_result) + final_cost_nestloop(arg_root, arg_path, arg_workspace, arg_extra) }) } -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 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 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 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, + ); } - set_config_option( - arg_name, - arg_value, - arg_context, - arg_source, - arg_action, - arg_changeVal, - arg_elevel, - arg_is_reload, + 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 AlterSystemSetConfigFile(arg_setstmt: *mut AlterSystemStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterSystemSetConfigFile(arg_setstmt: *mut AlterSystemStmt); - } - AlterSystemSetConfigFile(arg_setstmt) - }) -} -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 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 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 final_cost_mergejoin( + arg_root: *mut PlannerInfo, + arg_path: *mut MergePath, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, + ); } - GetConfigOptionByName(arg_name, arg_varname, arg_missing_ok) + final_cost_mergejoin(arg_root, arg_path, arg_workspace, arg_extra) }) } -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 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 GetConfigOptionByNum( - arg_varnum: ::std::os::raw::c_int, - arg_values: *mut *const ::std::os::raw::c_char, - arg_noshow: *mut 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, ); } - GetConfigOptionByNum(arg_varnum, arg_values, arg_noshow) + initial_cost_hashjoin( + arg_root, + arg_workspace, + arg_jointype, + arg_hashclauses, + arg_outer_path, + arg_inner_path, + arg_extra, + ) }) } -pub unsafe fn GetNumConfigOptions() -> ::std::os::raw::c_int { +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 GetNumConfigOptions() -> ::std::os::raw::c_int; + fn final_cost_hashjoin( + arg_root: *mut PlannerInfo, + arg_path: *mut HashPath, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, + ); } - GetNumConfigOptions() + final_cost_hashjoin(arg_root, arg_path, arg_workspace, arg_extra) }) } -pub unsafe fn SetPGVariable( - arg_name: *const ::std::os::raw::c_char, - arg_args: *mut List, - arg_is_local: 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 SetPGVariable( - arg_name: *const ::std::os::raw::c_char, - arg_args: *mut List, - arg_is_local: 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, ); } - SetPGVariable(arg_name, arg_args, arg_is_local) + cost_gather(arg_path, arg_root, arg_baserel, arg_param_info, arg_rows) }) } -pub unsafe fn GetPGVariable(arg_name: *const ::std::os::raw::c_char, arg_dest: *mut DestReceiver) { +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 GetPGVariable(arg_name: *const ::std::os::raw::c_char, arg_dest: *mut DestReceiver); + fn cost_subplan( + arg_root: *mut PlannerInfo, + arg_subplan: *mut SubPlan, + arg_plan: *mut Plan, + ); } - GetPGVariable(arg_name, arg_dest) + cost_subplan(arg_root, arg_subplan, arg_plan) }) } -pub unsafe fn GetPGVariableResultDesc(arg_name: *const ::std::os::raw::c_char) -> TupleDesc { +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 GetPGVariableResultDesc(arg_name: *const ::std::os::raw::c_char) -> TupleDesc; + fn cost_qual_eval( + arg_cost: *mut QualCost, + arg_quals: *mut List, + arg_root: *mut PlannerInfo, + ); } - GetPGVariableResultDesc(arg_name) + cost_qual_eval(arg_cost, arg_quals, arg_root) }) } -pub unsafe fn ExecSetVariableStmt(arg_stmt: *mut VariableSetStmt, arg_isTopLevel: bool) { +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 ExecSetVariableStmt(arg_stmt: *mut VariableSetStmt, arg_isTopLevel: bool); + fn cost_qual_eval_node( + arg_cost: *mut QualCost, + arg_qual: *mut Node, + arg_root: *mut PlannerInfo, + ); } - ExecSetVariableStmt(arg_stmt, arg_isTopLevel) + cost_qual_eval_node(arg_cost, arg_qual, arg_root) }) } -pub unsafe fn ExtractSetVariableArgs( - arg_stmt: *mut VariableSetStmt, -) -> *mut ::std::os::raw::c_char { +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 ExtractSetVariableArgs( - arg_stmt: *mut VariableSetStmt, - ) -> *mut ::std::os::raw::c_char; + 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, + ); } - ExtractSetVariableArgs(arg_stmt) + compute_semi_anti_join_factors( + arg_root, + arg_outerrel, + arg_innerrel, + arg_jointype, + arg_sjinfo, + arg_restrictlist, + arg_semifactors, + ) }) } -pub unsafe fn ProcessGUCArray( - arg_array: *mut ArrayType, - arg_context: GucContext, - arg_source: GucSource, - arg_action: GucAction, -) { +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 ProcessGUCArray( - arg_array: *mut ArrayType, - arg_context: GucContext, - arg_source: GucSource, - arg_action: GucAction, - ); + fn set_baserel_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - ProcessGUCArray(arg_array, arg_context, arg_source, arg_action) + set_baserel_size_estimates(arg_root, arg_rel) }) } -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 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 GUCArrayAdd( - arg_array: *mut ArrayType, - arg_name: *const ::std::os::raw::c_char, - arg_value: *const ::std::os::raw::c_char, - ) -> *mut ArrayType; + fn get_parameterized_baserel_size( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_param_clauses: *mut List, + ) -> f64; } - GUCArrayAdd(arg_array, arg_name, arg_value) + get_parameterized_baserel_size(arg_root, arg_rel, arg_param_clauses) }) } -pub unsafe fn GUCArrayDelete( - arg_array: *mut ArrayType, - arg_name: *const ::std::os::raw::c_char, -) -> *mut ArrayType { +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 GUCArrayDelete( - arg_array: *mut ArrayType, - arg_name: *const ::std::os::raw::c_char, - ) -> *mut ArrayType; + 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; } - GUCArrayDelete(arg_array, arg_name) + get_parameterized_joinrel_size( + arg_root, + arg_rel, + arg_outer_path, + arg_inner_path, + arg_sjinfo, + arg_restrict_clauses, + ) }) } -pub unsafe fn GUCArrayReset(arg_array: *mut ArrayType) -> *mut ArrayType { +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 GUCArrayReset(arg_array: *mut ArrayType) -> *mut ArrayType; + 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, + ); } - GUCArrayReset(arg_array) + set_joinrel_size_estimates( + arg_root, + arg_rel, + arg_outer_rel, + arg_inner_rel, + arg_sjinfo, + arg_restrictlist, + ) }) } -pub unsafe fn EstimateGUCStateSpace() -> Size { +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 EstimateGUCStateSpace() -> Size; + fn set_subquery_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - EstimateGUCStateSpace() + set_subquery_size_estimates(arg_root, arg_rel) }) } -pub unsafe fn SerializeGUCState(arg_maxsize: Size, arg_start_address: *mut ::std::os::raw::c_char) { +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 SerializeGUCState(arg_maxsize: Size, arg_start_address: *mut ::std::os::raw::c_char); + fn set_function_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - SerializeGUCState(arg_maxsize, arg_start_address) + set_function_size_estimates(arg_root, arg_rel) }) } -pub unsafe fn RestoreGUCState(arg_gucstate: *mut ::std::os::raw::c_void) { +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 RestoreGUCState(arg_gucstate: *mut ::std::os::raw::c_void); + fn set_values_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - RestoreGUCState(arg_gucstate) + set_values_size_estimates(arg_root, arg_rel) }) } -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 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 GUC_check_errcode(arg_sqlerrcode: ::std::os::raw::c_int); + fn set_cte_size_estimates( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_cte_rows: f64, + ); } - GUC_check_errcode(arg_sqlerrcode) + set_cte_size_estimates(arg_root, arg_rel, arg_cte_rows) }) } -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 set_tablefunc_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { 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 set_tablefunc_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - check_default_tablespace(arg_newval, arg_extra, arg_source) + set_tablefunc_size_estimates(arg_root, arg_rel) }) } -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 set_namedtuplestore_size_estimates( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, +) { 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 set_namedtuplestore_size_estimates( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + ); } - check_temp_tablespaces(arg_newval, arg_extra, arg_source) + set_namedtuplestore_size_estimates(arg_root, arg_rel) }) } -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 set_foreign_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { 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 set_foreign_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - assign_temp_tablespaces(arg_newval, arg_extra) + set_foreign_size_estimates(arg_root, arg_rel) }) } -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 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 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 set_pathtarget_cost_width( + arg_root: *mut PlannerInfo, + arg_target: *mut PathTarget, + ) -> *mut PathTarget; } - check_search_path(arg_newval, arg_extra, arg_source) + set_pathtarget_cost_width(arg_root, arg_target) }) } -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 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 assign_search_path( - arg_newval: *const ::std::os::raw::c_char, - arg_extra: *mut ::std::os::raw::c_void, - ); + 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; } - assign_search_path(arg_newval, arg_extra) + compute_bitmap_pages( + arg_root, + arg_baserel, + arg_bitmapqual, + arg_loop_count, + arg_cost, + arg_tuple, + ) }) } -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 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 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 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; } - check_wal_buffers(arg_newval, arg_extra, arg_source) + clauselist_selectivity(arg_root, arg_clauses, arg_varRelid, arg_jointype, arg_sjinfo) }) } -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 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 assign_xlog_sync_method( - arg_new_sync_method: ::std::os::raw::c_int, - arg_extra: *mut ::std::os::raw::c_void, - ); + 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; } - assign_xlog_sync_method(arg_new_sync_method, arg_extra) + clause_selectivity(arg_root, arg_clause, arg_varRelid, arg_jointype, arg_sjinfo) }) } -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 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 pg_parse_query(arg_query_string: *const ::std::os::raw::c_char) -> *mut List; + 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, + ); } - pg_parse_query(arg_query_string) + 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 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 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 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 compare_path_costs( + arg_path1: *mut Path, + arg_path2: *mut Path, + arg_criterion: CostSelector, + ) -> ::std::os::raw::c_int; } - pg_analyze_and_rewrite( - arg_parsetree, - arg_query_string, - arg_paramTypes, - arg_numParams, - arg_queryEnv, - ) + compare_path_costs(arg_path1, arg_path2, arg_criterion) }) } -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 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 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 compare_fractional_path_costs( + arg_path1: *mut Path, + arg_path2: *mut Path, + arg_fraction: f64, + ) -> ::std::os::raw::c_int; } - pg_analyze_and_rewrite_params( - arg_parsetree, - arg_query_string, - arg_parserSetup, - arg_parserSetupArg, - arg_queryEnv, - ) + compare_fractional_path_costs(arg_path1, arg_path2, arg_fraction) }) } -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 set_cheapest(arg_parent_rel: *mut RelOptInfo) { 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 set_cheapest(arg_parent_rel: *mut RelOptInfo); } - pg_plan_query(arg_querytree, arg_cursorOptions, arg_boundParams) + set_cheapest(arg_parent_rel) }) } -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 add_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path) { 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 add_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path); } - pg_plan_queries(arg_querytrees, arg_cursorOptions, arg_boundParams) + add_path(arg_parent_rel, arg_new_path) }) } -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, +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 check_max_stack_depth( - arg_newval: *mut ::std::os::raw::c_int, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, + 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; } - check_max_stack_depth(arg_newval, arg_extra, arg_source) + add_path_precheck( + arg_parent_rel, + arg_startup_cost, + arg_total_cost, + arg_pathkeys, + arg_required_outer, + ) }) } -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 add_partial_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path) { 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 add_partial_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path); } - assign_max_stack_depth(arg_newval, arg_extra) + add_partial_path(arg_parent_rel, arg_new_path) }) } -pub unsafe fn die(arg_postgres_signal_arg: ::std::os::raw::c_int) { +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 die(arg_postgres_signal_arg: ::std::os::raw::c_int); + fn add_partial_path_precheck( + arg_parent_rel: *mut RelOptInfo, + arg_total_cost: Cost, + arg_pathkeys: *mut List, + ) -> bool; } - die(arg_postgres_signal_arg) + add_partial_path_precheck(arg_parent_rel, arg_total_cost, arg_pathkeys) }) } -pub unsafe fn quickdie(arg_postgres_signal_arg: ::std::os::raw::c_int) { +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 quickdie(arg_postgres_signal_arg: ::std::os::raw::c_int); + 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; } - quickdie(arg_postgres_signal_arg) + create_seqscan_path(arg_root, arg_rel, arg_required_outer, arg_parallel_workers) }) } -pub unsafe fn StatementCancelHandler(arg_postgres_signal_arg: ::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 StatementCancelHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); + fn create_samplescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - StatementCancelHandler(arg_postgres_signal_arg) + create_samplescan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn FloatExceptionHandler(arg_postgres_signal_arg: ::std::os::raw::c_int) { +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 FloatExceptionHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); + 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; } - FloatExceptionHandler(arg_postgres_signal_arg) + 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 RecoveryConflictInterrupt(arg_reason: ProcSignalReason) { +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 RecoveryConflictInterrupt(arg_reason: ProcSignalReason); + 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; } - RecoveryConflictInterrupt(arg_reason) + create_bitmap_heap_path( + arg_root, + arg_rel, + arg_bitmapqual, + arg_required_outer, + arg_loop_count, + arg_parallel_degree, + ) }) } -pub unsafe fn ProcessClientReadInterrupt(arg_blocked: 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 ProcessClientReadInterrupt(arg_blocked: bool); + fn create_bitmap_and_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_bitmapquals: *mut List, + ) -> *mut BitmapAndPath; } - ProcessClientReadInterrupt(arg_blocked) + create_bitmap_and_path(arg_root, arg_rel, arg_bitmapquals) }) } -pub unsafe fn ProcessClientWriteInterrupt(arg_blocked: bool) { +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 ProcessClientWriteInterrupt(arg_blocked: bool); + fn create_bitmap_or_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_bitmapquals: *mut List, + ) -> *mut BitmapOrPath; } - ProcessClientWriteInterrupt(arg_blocked) + create_bitmap_or_path(arg_root, arg_rel, arg_bitmapquals) }) } -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_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 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_tidscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_tidquals: *mut List, + arg_required_outer: Relids, + ) -> *mut TidPath; } - process_postgres_switches(arg_argc, arg_argv, arg_ctx, arg_dbname) + create_tidscan_path(arg_root, arg_rel, arg_tidquals, arg_required_outer) }) } -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_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 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_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; } - PostgresMain(arg_argc, arg_argv, arg_dbname, arg_username) + create_append_path( + arg_rel, + arg_subpaths, + arg_required_outer, + arg_parallel_workers, + arg_partitioned_rels, + ) }) } -pub unsafe fn get_stack_depth_rlimit() -> ::std::os::raw::c_long { +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 get_stack_depth_rlimit() -> ::std::os::raw::c_long; + 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; } - get_stack_depth_rlimit() + create_merge_append_path( + arg_root, + arg_rel, + arg_subpaths, + arg_pathkeys, + arg_required_outer, + arg_partitioned_rels, + ) }) } -pub unsafe fn ResetUsage() { +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 ResetUsage(); + fn create_result_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_target: *mut PathTarget, + arg_resconstantqual: *mut List, + ) -> *mut ResultPath; } - ResetUsage() + create_result_path(arg_root, arg_rel, arg_target, arg_resconstantqual) }) } -pub unsafe fn ShowUsage(arg_title: *const ::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 ShowUsage(arg_title: *const ::std::os::raw::c_char); + fn create_material_path( + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + ) -> *mut MaterialPath; } - ShowUsage(arg_title) + create_material_path(arg_rel, arg_subpath) }) } -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 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 check_log_duration( - arg_msec_str: *mut ::std::os::raw::c_char, - arg_was_logged: bool, - ) -> ::std::os::raw::c_int; + fn create_unique_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_sjinfo: *mut SpecialJoinInfo, + ) -> *mut UniquePath; } - check_log_duration(arg_msec_str, arg_was_logged) + create_unique_path(arg_root, arg_rel, arg_subpath, arg_sjinfo) }) } -pub unsafe fn set_debug_options( - arg_debug_flag: ::std::os::raw::c_int, - arg_context: GucContext, - arg_source: GucSource, -) { +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 set_debug_options( - arg_debug_flag: ::std::os::raw::c_int, - arg_context: GucContext, - arg_source: GucSource, - ); + 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; } - set_debug_options(arg_debug_flag, arg_context, arg_source) + create_gather_path(arg_root, arg_rel, arg_subpath, arg_target, arg_required_outer, arg_rows) }) } -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 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 set_plan_disabling_options( - arg_arg: *const ::std::os::raw::c_char, - arg_context: GucContext, - arg_source: GucSource, - ) -> bool; + 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; } - set_plan_disabling_options(arg_arg, arg_context, arg_source) + create_gather_merge_path( + arg_root, + arg_rel, + arg_subpath, + arg_target, + arg_pathkeys, + arg_required_outer, + arg_rows, + ) }) } -pub unsafe fn get_stats_option_name( - arg_arg: *const ::std::os::raw::c_char, -) -> *const ::std::os::raw::c_char { +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 get_stats_option_name( - arg_arg: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + 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; } - get_stats_option_name(arg_arg) + create_subqueryscan_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_required_outer) }) } -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 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 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 create_functionscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + ) -> *mut Path; } - ProcessUtility( - arg_pstmt, - arg_queryString, - arg_context, - arg_params, - arg_queryEnv, - arg_dest, - arg_completionTag, - ) + create_functionscan_path(arg_root, arg_rel, arg_pathkeys, arg_required_outer) }) } -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 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 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 create_tablexprscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + ) -> *mut Path; } - standard_ProcessUtility( - arg_pstmt, - arg_queryString, - arg_context, - arg_params, - arg_queryEnv, - arg_dest, - arg_completionTag, - ) + create_tablexprscan_path(arg_root, arg_rel, arg_pathkeys, arg_required_outer) }) } -pub unsafe fn UtilityReturnsTuples(arg_parsetree: *mut Node) -> bool { +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 UtilityReturnsTuples(arg_parsetree: *mut Node) -> bool; + fn create_valuesscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - UtilityReturnsTuples(arg_parsetree) + create_valuesscan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn UtilityTupleDescriptor(arg_parsetree: *mut Node) -> TupleDesc { +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 UtilityTupleDescriptor(arg_parsetree: *mut Node) -> TupleDesc; + fn create_tablefuncscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - UtilityTupleDescriptor(arg_parsetree) + create_tablefuncscan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn UtilityContainsQuery(arg_parsetree: *mut Node) -> *mut Query { +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 UtilityContainsQuery(arg_parsetree: *mut Node) -> *mut Query; + fn create_ctescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - UtilityContainsQuery(arg_parsetree) + create_ctescan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn CreateCommandTag(arg_parsetree: *mut Node) -> *const ::std::os::raw::c_char { +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 CreateCommandTag(arg_parsetree: *mut Node) -> *const ::std::os::raw::c_char; + fn create_namedtuplestorescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - CreateCommandTag(arg_parsetree) + create_namedtuplestorescan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn GetCommandLogLevel(arg_parsetree: *mut Node) -> LogStmtLevel { +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 GetCommandLogLevel(arg_parsetree: *mut Node) -> LogStmtLevel; + fn create_worktablescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - GetCommandLogLevel(arg_parsetree) + create_worktablescan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn CommandIsReadOnly(arg_pstmt: *mut PlannedStmt) -> 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 CommandIsReadOnly(arg_pstmt: *mut PlannedStmt) -> 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; } - CommandIsReadOnly(arg_pstmt) + 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, + ) }) } -#[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; -} -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; +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 calc_nestloop_required_outer( + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + ) -> Relids; + } + calc_nestloop_required_outer(arg_outer_path, arg_inner_path) + }) } -extern "C" { - pub static mut TopTransactionContext: MemoryContext; +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 calc_non_nestloop_required_outer( + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + ) -> Relids; + } + calc_non_nestloop_required_outer(arg_outer_path, arg_inner_path) + }) } -extern "C" { - pub static mut CurTransactionContext: MemoryContext; +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 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; + } + 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 PortalContext: MemoryContext; +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 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; + } + 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 MemoryContextInit() { +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 MemoryContextInit(); + 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; } - MemoryContextInit() + 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 MemoryContextReset(arg_context: MemoryContext) { +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 MemoryContextReset(arg_context: MemoryContext); + fn create_projection_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + ) -> *mut ProjectionPath; } - MemoryContextReset(arg_context) + create_projection_path(arg_root, arg_rel, arg_subpath, arg_target) }) } -pub unsafe fn MemoryContextDelete(arg_context: MemoryContext) { +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 MemoryContextDelete(arg_context: MemoryContext); + fn apply_projection_to_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_path: *mut Path, + arg_target: *mut PathTarget, + ) -> *mut Path; } - MemoryContextDelete(arg_context) + apply_projection_to_path(arg_root, arg_rel, arg_path, arg_target) }) } -pub unsafe fn MemoryContextResetOnly(arg_context: MemoryContext) { +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 MemoryContextResetOnly(arg_context: MemoryContext); + fn create_set_projection_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + ) -> *mut ProjectSetPath; } - MemoryContextResetOnly(arg_context) + create_set_projection_path(arg_root, arg_rel, arg_subpath, arg_target) }) } -pub unsafe fn MemoryContextResetChildren(arg_context: MemoryContext) { +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 MemoryContextResetChildren(arg_context: MemoryContext); + 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; } - MemoryContextResetChildren(arg_context) + create_sort_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_limit_tuples) }) } -pub unsafe fn MemoryContextDeleteChildren(arg_context: MemoryContext) { +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 MemoryContextDeleteChildren(arg_context: MemoryContext); + 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; } - MemoryContextDeleteChildren(arg_context) + create_group_path( + arg_root, + arg_rel, + arg_subpath, + arg_target, + arg_groupClause, + arg_qual, + arg_numGroups, + ) }) } -pub unsafe fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext) { +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 MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext); + 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; } - MemoryContextSetParent(arg_context, arg_new_parent) + create_upper_unique_path(arg_root, arg_rel, arg_subpath, arg_numCols, arg_numGroups) }) } -pub unsafe fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size { +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 GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size; + 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; } - GetMemoryChunkSpace(arg_pointer) + 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 MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext { +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 MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext; + 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; } - MemoryContextGetParent(arg_context) + 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 MemoryContextIsEmpty(arg_context: MemoryContext) -> bool { +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 MemoryContextIsEmpty(arg_context: MemoryContext) -> bool; + 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; } - MemoryContextIsEmpty(arg_context) + create_minmaxagg_path(arg_root, arg_rel, arg_target, arg_mmaggregates, arg_quals) }) } -pub unsafe fn MemoryContextStats(arg_context: MemoryContext) { +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 MemoryContextStats(arg_context: MemoryContext); + 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; } - MemoryContextStats(arg_context) + create_windowagg_path( + arg_root, + arg_rel, + arg_subpath, + arg_target, + arg_windowFuncs, + arg_winclause, + arg_winpathkeys, + ) }) } -pub unsafe fn MemoryContextStatsDetail( - arg_context: MemoryContext, - arg_max_children: ::std::os::raw::c_int, -) { +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 MemoryContextStatsDetail( - arg_context: MemoryContext, - arg_max_children: ::std::os::raw::c_int, - ); + 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; } - MemoryContextStatsDetail(arg_context, arg_max_children) + 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 MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: 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 MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: 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; } - MemoryContextAllowInCriticalSection(arg_context, arg_allow) + create_recursiveunion_path( + arg_root, + arg_rel, + arg_leftpath, + arg_rightpath, + arg_target, + arg_distinctList, + arg_wtParam, + arg_numGroups, + ) }) } -pub unsafe fn MemoryContextCheck(arg_context: MemoryContext) { +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 MemoryContextCheck(arg_context: MemoryContext); + 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; } - MemoryContextCheck(arg_context) + create_lockrows_path(arg_root, arg_rel, arg_subpath, arg_rowMarks, arg_epqParam) }) } -pub unsafe fn MemoryContextContains( - arg_context: MemoryContext, - arg_pointer: *mut ::std::os::raw::c_void, -) -> bool { +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 MemoryContextContains( - arg_context: MemoryContext, - arg_pointer: *mut ::std::os::raw::c_void, - ) -> bool; + 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; } - MemoryContextContains(arg_context, arg_pointer) + 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 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 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 MemoryContextCreate( - arg_tag: NodeTag, - arg_size: Size, - arg_methods: *mut MemoryContextMethods, - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - ) -> MemoryContext; + 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; } - MemoryContextCreate(arg_tag, arg_size, arg_methods, arg_parent, arg_name) + create_limit_path( + arg_root, + arg_rel, + arg_subpath, + arg_limitOffset, + arg_limitCount, + arg_offset_est, + arg_count_est, + ) }) } -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 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 AllocSetContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_minContextSize: Size, - arg_initBlockSize: Size, - arg_maxBlockSize: Size, - ) -> MemoryContext; + fn reparameterize_path( + arg_root: *mut PlannerInfo, + arg_path: *mut Path, + arg_required_outer: Relids, + arg_loop_count: f64, + ) -> *mut Path; } - AllocSetContextCreate( - arg_parent, - arg_name, - arg_minContextSize, - arg_initBlockSize, - arg_maxBlockSize, - ) + reparameterize_path(arg_root, arg_path, arg_required_outer, arg_loop_count) }) } -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 setup_simple_rel_arrays(arg_root: *mut PlannerInfo) { 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 setup_simple_rel_arrays(arg_root: *mut PlannerInfo); } - SlabContextCreate(arg_parent, arg_name, arg_blockSize, arg_chunkSize) + setup_simple_rel_arrays(arg_root) }) } -#[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 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 compareWordEntryPos( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; - } - compareWordEntryPos(arg_a, arg_b) - }) -} -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() - } - } -} -#[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() - } - } -} -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) - } - } - #[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) - } - } - #[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) - } - } - #[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) - } - } - #[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) - } - } - #[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) - } - } - #[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) - } - } - #[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) - } - } - #[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 - } -} -#[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, -} -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() + fn build_simple_rel( + arg_root: *mut PlannerInfo, + arg_relid: ::std::os::raw::c_int, + arg_parent: *mut RelOptInfo, + ) -> *mut RelOptInfo; } - } + build_simple_rel(arg_root, arg_relid, arg_parent) + }) } -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 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 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 find_base_rel( + arg_root: *mut PlannerInfo, + arg_relid: ::std::os::raw::c_int, + ) -> *mut RelOptInfo; } - get_tsearch_config_filename(arg_basename, arg_extension) + find_base_rel(arg_root, arg_relid) }) } -#[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, -} -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 find_join_rel(arg_root: *mut PlannerInfo, arg_relids: Relids) -> *mut RelOptInfo { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn find_join_rel(arg_root: *mut PlannerInfo, arg_relids: Relids) -> *mut RelOptInfo; } - } + find_join_rel(arg_root, arg_relids) + }) } -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 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 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 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; } - readstoplist(arg_fname, arg_s, arg_wordop) + build_join_rel( + arg_root, + arg_joinrelids, + arg_outer_rel, + arg_inner_rel, + arg_sjinfo, + arg_restrictlist_ptr, + ) }) } -pub unsafe fn searchstoplist(arg_s: *mut StopList, arg_key: *mut ::std::os::raw::c_char) -> bool { +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 searchstoplist(arg_s: *mut StopList, arg_key: *mut ::std::os::raw::c_char) -> bool; + fn min_join_parameterization( + arg_root: *mut PlannerInfo, + arg_joinrelids: Relids, + arg_outer_rel: *mut RelOptInfo, + arg_inner_rel: *mut RelOptInfo, + ) -> Relids; } - searchstoplist(arg_s, arg_key) + min_join_parameterization(arg_root, arg_joinrelids, arg_outer_rel, arg_inner_rel) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TSLexeme { - pub nvariant: uint16, - pub flags: uint16, - pub lexeme: *mut ::std::os::raw::c_char, -} -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_empty_join_rel(arg_root: *mut PlannerInfo) -> *mut RelOptInfo { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn build_empty_join_rel(arg_root: *mut PlannerInfo) -> *mut RelOptInfo; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DictSubState { - pub isend: bool, - pub getnext: bool, - pub private_state: *mut ::std::os::raw::c_void, + build_empty_join_rel(arg_root) + }) } -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 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 fetch_upper_rel( + arg_root: *mut PlannerInfo, + arg_kind: UpperRelationKind, + arg_relids: Relids, + ) -> *mut RelOptInfo; } - } + fetch_upper_rel(arg_root, arg_kind, arg_relids) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TSVectorParseStateData { - _unused: [u8; 0], +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 find_childrel_appendrelinfo( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + ) -> *mut AppendRelInfo; + } + find_childrel_appendrelinfo(arg_root, arg_rel) + }) } -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 find_childrel_parents( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, +) -> Relids { 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 find_childrel_parents( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + ) -> Relids; } - init_tsvector_parser(arg_input, arg_oprisdelim, arg_is_tsquery) + find_childrel_parents(arg_root, arg_rel) }) } -pub unsafe fn reset_tsvector_parser( - arg_state: TSVectorParseState, - arg_input: *mut ::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 reset_tsvector_parser( - arg_state: TSVectorParseState, - arg_input: *mut ::std::os::raw::c_char, - ); + fn get_baserel_parampathinfo( + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut ParamPathInfo; } - reset_tsvector_parser(arg_state, arg_input) + get_baserel_parampathinfo(arg_root, arg_baserel, arg_required_outer) }) } -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 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 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 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; } - gettoken_tsvector( - arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr, + get_joinrel_parampathinfo( + arg_root, + arg_joinrel, + arg_outer_path, + arg_inner_path, + arg_sjinfo, + arg_required_outer, + arg_restrict_clauses, ) }) } -pub unsafe fn close_tsvector_parser(arg_state: TSVectorParseState) { +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 close_tsvector_parser(arg_state: TSVectorParseState); + fn get_appendrel_parampathinfo( + arg_appendrel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut ParamPathInfo; } - close_tsvector_parser(arg_state) + get_appendrel_parampathinfo(arg_appendrel, arg_required_outer) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TSQueryParserStateData { - _unused: [u8; 0], +extern "C" { + pub static mut enable_geqo: bool; } -pub type TSQueryParserState = *mut TSQueryParserStateData; -pub type PushFunction = ::std::option::Option< +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( - opaque: Datum, - state: TSQueryParserState, - token: *mut ::std::os::raw::c_char, - tokenlen: ::std::os::raw::c_int, - tokenweights: int16, - prefix: bool, + root: *mut PlannerInfo, + rel: *mut RelOptInfo, + rti: Index, + rte: *mut RangeTblEntry, ), >; -pub unsafe fn parse_tsquery( - arg_buf: *mut ::std::os::raw::c_char, - arg_pushval: PushFunction, - arg_opaque: Datum, - arg_isplain: bool, -) -> TSQuery { +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 { 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 make_one_rel(arg_root: *mut PlannerInfo, arg_joinlist: *mut List) + -> *mut RelOptInfo; } - parse_tsquery(arg_buf, arg_pushval, arg_opaque, arg_isplain) + make_one_rel(arg_root, arg_joinlist) }) } -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 set_dummy_rel_pathlist(arg_rel: *mut RelOptInfo) { 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 set_dummy_rel_pathlist(arg_rel: *mut RelOptInfo); } - pushValue(arg_state, arg_strval, arg_lenval, arg_weight, arg_prefix) + set_dummy_rel_pathlist(arg_rel) }) } -pub unsafe fn pushStop(arg_state: TSQueryParserState) { +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 pushStop(arg_state: TSQueryParserState); + fn standard_join_search( + arg_root: *mut PlannerInfo, + arg_levels_needed: ::std::os::raw::c_int, + arg_initial_rels: *mut List, + ) -> *mut RelOptInfo; } - pushStop(arg_state) + standard_join_search(arg_root, arg_levels_needed, arg_initial_rels) }) } -pub unsafe fn pushOperator(arg_state: TSQueryParserState, arg_oper: int8, arg_distance: int16) { +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 pushOperator(arg_state: TSQueryParserState, arg_oper: int8, arg_distance: int16); + fn generate_gather_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - pushOperator(arg_state, arg_oper, arg_distance) + generate_gather_paths(arg_root, arg_rel) }) } -#[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, +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 compute_parallel_worker( + arg_rel: *mut RelOptInfo, + arg_heap_pages: f64, + arg_index_pages: f64, + ) -> ::std::os::raw::c_int; + } + compute_parallel_worker(arg_rel, arg_heap_pages, arg_index_pages) + }) } -#[repr(C)] -#[derive(Copy, Clone)] -pub union ParsedWord__bindgen_ty_1 { - pub pos: uint16, - pub apos: *mut uint16, +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) + }) } -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 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) + }) } -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 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 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; } - } + relation_has_unique_index_for( + arg_root, + arg_rel, + arg_restrictlist, + arg_exprlist, + arg_oprlist, + ) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParsedText { - pub words: *mut ParsedWord, - pub lenwords: int32, - pub curwords: int32, - pub pos: int32, +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 indexcol_is_bool_constant_for_query( + arg_index: *mut IndexOptInfo, + arg_indexcol: ::std::os::raw::c_int, + ) -> bool; + } + indexcol_is_bool_constant_for_query(arg_index, arg_indexcol) + }) +} +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 match_index_to_operand( + arg_operand: *mut Node, + arg_indexcol: ::std::os::raw::c_int, + arg_index: *mut IndexOptInfo, + ) -> bool; + } + match_index_to_operand(arg_operand, arg_indexcol, arg_index) + }) +} +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 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, + ); + } + expand_indexqual_conditions( + arg_index, + arg_indexclauses, + arg_indexclausecols, + arg_indexquals_p, + arg_indexqualcols_p, + ) + }) } -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() +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 check_index_predicates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - } + check_index_predicates(arg_root, arg_rel) + }) } -pub unsafe fn parsetext( - arg_cfgId: Oid, - arg_prs: *mut ParsedText, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: int32, -) { +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 parsetext( - arg_cfgId: Oid, - arg_prs: *mut ParsedText, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: int32, - ); + 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; } - parsetext(arg_cfgId, arg_prs, arg_buf, arg_buflen) + adjust_rowcompare_for_index( + arg_clause, + arg_index, + arg_indexcol, + arg_indexcolnos, + arg_var_on_left_p, + ) }) } -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 create_tidscan_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn create_tidscan_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + } + create_tidscan_paths(arg_root, arg_rel) + }) +} +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 hlparsetext( - arg_cfgId: Oid, - arg_prs: *mut HeadlineParsedText, - arg_query: TSQuery, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: int32, + 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, ); } - hlparsetext(arg_cfgId, arg_prs, arg_query, arg_buf, arg_buflen) + add_paths_to_joinrel( + arg_root, + arg_joinrel, + arg_outerrel, + arg_innerrel, + arg_jointype, + arg_sjinfo, + arg_restrictlist, + ) }) } -pub unsafe fn generateHeadline(arg_prs: *mut HeadlineParsedText) -> *mut text { +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 generateHeadline(arg_prs: *mut HeadlineParsedText) -> *mut text; + fn join_search_one_level(arg_root: *mut PlannerInfo, arg_level: ::std::os::raw::c_int); } - generateHeadline(arg_prs) + join_search_one_level(arg_root, arg_level) }) } -#[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_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 make_join_rel( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + arg_rel2: *mut RelOptInfo, + ) -> *mut RelOptInfo; } - } + make_join_rel(arg_root, arg_rel1, arg_rel2) + }) } -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, +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 TS_execute( - arg_curitem: *mut QueryItem, - arg_arg: *mut ::std::os::raw::c_void, - arg_flags: uint32, - arg_chkcond: TSExecuteCallback, + fn have_join_order_restriction( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + arg_rel2: *mut RelOptInfo, ) -> bool; } - TS_execute(arg_curitem, arg_arg, arg_flags, arg_chkcond) + have_join_order_restriction(arg_root, arg_rel1, arg_rel2) }) } -pub unsafe fn tsquery_requires_match(arg_curitem: *mut QueryItem) -> bool { +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 tsquery_requires_match(arg_curitem: *mut QueryItem) -> bool; + fn have_dangerous_phv( + arg_root: *mut PlannerInfo, + arg_outer_relids: Relids, + arg_inner_params: Relids, + ) -> bool; } - tsquery_requires_match(arg_curitem) + have_dangerous_phv(arg_root, arg_outer_relids, arg_inner_params) }) } -pub unsafe fn make_tsvector(arg_prs: *mut ParsedText) -> TSVector { +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 make_tsvector(arg_prs: *mut ParsedText) -> TSVector; + fn process_equivalence( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, + arg_below_outer_join: bool, + ) -> bool; } - make_tsvector(arg_prs) + process_equivalence(arg_root, arg_restrictinfo, arg_below_outer_join) }) } -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 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 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 canonicalize_ec_expression( + arg_expr: *mut Expr, + arg_req_type: Oid, + arg_req_collation: Oid, + ) -> *mut Expr; } - tsCompareString(arg_a, arg_lena, arg_b, arg_lenb, arg_prefix) + canonicalize_ec_expression(arg_expr, arg_req_type, arg_req_collation) }) } -pub unsafe fn clean_NOT(arg_ptr: *mut QueryItem, arg_len: *mut int32) -> *mut QueryItem { +pub unsafe fn reconsider_outer_join_clauses(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clean_NOT(arg_ptr: *mut QueryItem, arg_len: *mut int32) -> *mut QueryItem; + fn reconsider_outer_join_clauses(arg_root: *mut PlannerInfo); } - clean_NOT(arg_ptr, arg_len) + reconsider_outer_join_clauses(arg_root) }) } -pub unsafe fn cleanup_tsquery_stopwords(arg_in_: TSQuery) -> TSQuery { +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 cleanup_tsquery_stopwords(arg_in_: TSQuery) -> TSQuery; + 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; } - cleanup_tsquery_stopwords(arg_in_) + 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, + ) }) } -#[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 { +pub unsafe fn generate_base_implied_equalities(arg_root: *mut PlannerInfo) { 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 generate_base_implied_equalities(arg_root: *mut PlannerInfo); } - QT2QTN(arg_in_, arg_operand) + generate_base_implied_equalities(arg_root) }) } -pub unsafe fn QTN2QT(arg_in_: *mut QTNode) -> TSQuery { +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 QTN2QT(arg_in_: *mut QTNode) -> TSQuery; + fn generate_join_implied_equalities( + arg_root: *mut PlannerInfo, + arg_join_relids: Relids, + arg_outer_relids: Relids, + arg_inner_rel: *mut RelOptInfo, + ) -> *mut List; } - QTN2QT(arg_in_) + generate_join_implied_equalities(arg_root, arg_join_relids, arg_outer_relids, arg_inner_rel) }) } -pub unsafe fn QTNFree(arg_in_: *mut QTNode) { +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 QTNFree(arg_in_: *mut QTNode); + 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; } - QTNFree(arg_in_) + generate_join_implied_equalities_for_ecs( + arg_root, + arg_eclasses, + arg_join_relids, + arg_outer_relids, + arg_inner_rel, + ) }) } -pub unsafe fn QTNSort(arg_in_: *mut QTNode) { +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 QTNSort(arg_in_: *mut QTNode); + fn exprs_known_equal( + arg_root: *mut PlannerInfo, + arg_item1: *mut Node, + arg_item2: *mut Node, + ) -> bool; } - QTNSort(arg_in_) + exprs_known_equal(arg_root, arg_item1, arg_item2) }) } -pub unsafe fn QTNTernary(arg_in_: *mut QTNode) { +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 QTNTernary(arg_in_: *mut QTNode); + fn match_eclasses_to_foreign_key_col( + arg_root: *mut PlannerInfo, + arg_fkinfo: *mut ForeignKeyOptInfo, + arg_colno: ::std::os::raw::c_int, + ) -> *mut EquivalenceClass; } - QTNTernary(arg_in_) + match_eclasses_to_foreign_key_col(arg_root, arg_fkinfo, arg_colno) }) } -pub unsafe fn QTNBinary(arg_in_: *mut QTNode) { +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 QTNBinary(arg_in_: *mut QTNode); + fn add_child_rel_equivalences( + arg_root: *mut PlannerInfo, + arg_appinfo: *mut AppendRelInfo, + arg_parent_rel: *mut RelOptInfo, + arg_child_rel: *mut RelOptInfo, + ); } - QTNBinary(arg_in_) + add_child_rel_equivalences(arg_root, arg_appinfo, arg_parent_rel, arg_child_rel) }) } -pub unsafe fn QTNodeCompare(arg_an: *mut QTNode, arg_bn: *mut QTNode) -> ::std::os::raw::c_int { +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 QTNodeCompare(arg_an: *mut QTNode, arg_bn: *mut QTNode) -> ::std::os::raw::c_int; + 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; } - QTNodeCompare(arg_an, arg_bn) + generate_implied_equalities_for_column( + arg_root, + arg_rel, + arg_callback, + arg_callback_arg, + arg_prohibited_rels, + ) }) } -pub unsafe fn QTNCopy(arg_in_: *mut QTNode) -> *mut QTNode { +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 QTNCopy(arg_in_: *mut QTNode) -> *mut QTNode; + fn have_relevant_eclass_joinclause( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + arg_rel2: *mut RelOptInfo, + ) -> bool; } - QTNCopy(arg_in_) + have_relevant_eclass_joinclause(arg_root, arg_rel1, arg_rel2) }) } -pub unsafe fn QTNClearFlags(arg_in_: *mut QTNode, arg_flags: uint32) { +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 QTNClearFlags(arg_in_: *mut QTNode, arg_flags: uint32); + fn has_relevant_eclass_joinclause( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + ) -> bool; } - QTNClearFlags(arg_in_, arg_flags) + has_relevant_eclass_joinclause(arg_root, arg_rel1) }) } -pub unsafe fn QTNEq(arg_a: *mut QTNode, arg_b: *mut QTNode) -> bool { +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 QTNEq(arg_a: *mut QTNode, arg_b: *mut QTNode) -> bool; + fn eclass_useful_for_merging( + arg_root: *mut PlannerInfo, + arg_eclass: *mut EquivalenceClass, + arg_rel: *mut RelOptInfo, + ) -> bool; } - QTNEq(arg_a, arg_b) + eclass_useful_for_merging(arg_root, arg_eclass, arg_rel) }) } -pub unsafe fn makeTSQuerySign(arg_a: TSQuery) -> TSQuerySign { +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 makeTSQuerySign(arg_a: TSQuery) -> TSQuerySign; + fn is_redundant_derived_clause( + arg_rinfo: *mut RestrictInfo, + arg_clauselist: *mut List, + ) -> bool; } - makeTSQuerySign(arg_a) + is_redundant_derived_clause(arg_rinfo, arg_clauselist) }) } -pub unsafe fn findsubquery( - arg_root: *mut QTNode, - arg_ex: *mut QTNode, - arg_subs: *mut QTNode, - arg_isfind: *mut bool, -) -> *mut QTNode { +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 findsubquery( - arg_root: *mut QTNode, - arg_ex: *mut QTNode, - arg_subs: *mut QTNode, - arg_isfind: *mut bool, - ) -> *mut QTNode; + fn compare_pathkeys(arg_keys1: *mut List, arg_keys2: *mut List) -> PathKeysComparison; } - findsubquery(arg_root, arg_ex, arg_subs, arg_isfind) + compare_pathkeys(arg_keys1, arg_keys2) }) } -pub unsafe fn byteaout(arg_fcinfo: FunctionCallInfo) -> Datum { +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 byteaout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pathkeys_contained_in(arg_keys1: *mut List, arg_keys2: *mut List) -> bool; } - byteaout(arg_fcinfo) + pathkeys_contained_in(arg_keys1, arg_keys2) }) } -pub unsafe fn charout(arg_fcinfo: FunctionCallInfo) -> Datum { +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 charout(arg_fcinfo: FunctionCallInfo) -> Datum; + 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; } - charout(arg_fcinfo) + get_cheapest_path_for_pathkeys( + arg_paths, + arg_pathkeys, + arg_required_outer, + arg_cost_criterion, + arg_require_parallel_safe, + ) }) } -pub unsafe fn namein(arg_fcinfo: FunctionCallInfo) -> Datum { +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 namein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_cheapest_fractional_path_for_pathkeys( + arg_paths: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_fraction: f64, + ) -> *mut Path; } - namein(arg_fcinfo) + get_cheapest_fractional_path_for_pathkeys( + arg_paths, + arg_pathkeys, + arg_required_outer, + arg_fraction, + ) }) } -pub unsafe fn nameout(arg_fcinfo: FunctionCallInfo) -> Datum { +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 nameout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_cheapest_parallel_safe_total_inner(arg_paths: *mut List) -> *mut Path; } - nameout(arg_fcinfo) + get_cheapest_parallel_safe_total_inner(arg_paths) }) } -pub unsafe fn int2in(arg_fcinfo: FunctionCallInfo) -> Datum { +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 int2in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn build_index_pathkeys( + arg_root: *mut PlannerInfo, + arg_index: *mut IndexOptInfo, + arg_scandir: ScanDirection, + ) -> *mut List; } - int2in(arg_fcinfo) + build_index_pathkeys(arg_root, arg_index, arg_scandir) }) } -pub unsafe fn int2out(arg_fcinfo: FunctionCallInfo) -> Datum { +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 int2out(arg_fcinfo: FunctionCallInfo) -> Datum; + 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; } - int2out(arg_fcinfo) + build_expression_pathkey( + arg_root, + arg_expr, + arg_nullable_relids, + arg_opno, + arg_rel, + arg_create_it, + ) }) } -pub unsafe fn int2vectorin(arg_fcinfo: FunctionCallInfo) -> Datum { +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 int2vectorin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn convert_subquery_pathkeys( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subquery_pathkeys: *mut List, + arg_subquery_tlist: *mut List, + ) -> *mut List; } - int2vectorin(arg_fcinfo) + convert_subquery_pathkeys(arg_root, arg_rel, arg_subquery_pathkeys, arg_subquery_tlist) }) } -pub unsafe fn int2vectorout(arg_fcinfo: FunctionCallInfo) -> Datum { +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 int2vectorout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn build_join_pathkeys( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_outer_pathkeys: *mut List, + ) -> *mut List; } - int2vectorout(arg_fcinfo) + build_join_pathkeys(arg_root, arg_joinrel, arg_jointype, arg_outer_pathkeys) }) } -pub unsafe fn int4in(arg_fcinfo: FunctionCallInfo) -> Datum { +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 int4in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_pathkeys_for_sortclauses( + arg_root: *mut PlannerInfo, + arg_sortclauses: *mut List, + arg_tlist: *mut List, + ) -> *mut List; } - int4in(arg_fcinfo) + make_pathkeys_for_sortclauses(arg_root, arg_sortclauses, arg_tlist) }) } -pub unsafe fn int4out(arg_fcinfo: FunctionCallInfo) -> Datum { +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 int4out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn initialize_mergeclause_eclasses( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, + ); } - int4out(arg_fcinfo) + initialize_mergeclause_eclasses(arg_root, arg_restrictinfo) }) } -pub unsafe fn regprocin(arg_fcinfo: FunctionCallInfo) -> Datum { +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 regprocin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn update_mergeclause_eclasses( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, + ); } - regprocin(arg_fcinfo) + update_mergeclause_eclasses(arg_root, arg_restrictinfo) }) } -pub unsafe fn regprocout(arg_fcinfo: FunctionCallInfo) -> Datum { +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 regprocout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn find_mergeclauses_for_outer_pathkeys( + arg_root: *mut PlannerInfo, + arg_pathkeys: *mut List, + arg_restrictinfos: *mut List, + ) -> *mut List; } - regprocout(arg_fcinfo) + find_mergeclauses_for_outer_pathkeys(arg_root, arg_pathkeys, arg_restrictinfos) }) } -pub unsafe fn textin(arg_fcinfo: FunctionCallInfo) -> Datum { +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 textin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn select_outer_pathkeys_for_merge( + arg_root: *mut PlannerInfo, + arg_mergeclauses: *mut List, + arg_joinrel: *mut RelOptInfo, + ) -> *mut List; } - textin(arg_fcinfo) + select_outer_pathkeys_for_merge(arg_root, arg_mergeclauses, arg_joinrel) }) } -pub unsafe fn textout(arg_fcinfo: FunctionCallInfo) -> Datum { +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 textout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_inner_pathkeys_for_merge( + arg_root: *mut PlannerInfo, + arg_mergeclauses: *mut List, + arg_outer_pathkeys: *mut List, + ) -> *mut List; } - textout(arg_fcinfo) + make_inner_pathkeys_for_merge(arg_root, arg_mergeclauses, arg_outer_pathkeys) }) } -pub unsafe fn tidin(arg_fcinfo: FunctionCallInfo) -> Datum { +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 tidin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn trim_mergeclauses_for_inner_pathkeys( + arg_root: *mut PlannerInfo, + arg_mergeclauses: *mut List, + arg_pathkeys: *mut List, + ) -> *mut List; } - tidin(arg_fcinfo) + trim_mergeclauses_for_inner_pathkeys(arg_root, arg_mergeclauses, arg_pathkeys) }) } -pub unsafe fn tidout(arg_fcinfo: FunctionCallInfo) -> Datum { +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 tidout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn truncate_useless_pathkeys( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_pathkeys: *mut List, + ) -> *mut List; } - tidout(arg_fcinfo) + truncate_useless_pathkeys(arg_root, arg_rel, arg_pathkeys) }) } -pub unsafe fn xidin(arg_fcinfo: FunctionCallInfo) -> Datum { +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 xidin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_useful_pathkeys(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) -> bool; } - xidin(arg_fcinfo) + has_useful_pathkeys(arg_root, arg_rel) }) } -pub unsafe fn xidout(arg_fcinfo: FunctionCallInfo) -> Datum { +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 xidout(arg_fcinfo: FunctionCallInfo) -> Datum; + 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; } - xidout(arg_fcinfo) + make_canonical_pathkey(arg_root, arg_eclass, arg_opfamily, arg_strategy, arg_nulls_first) }) } -pub unsafe fn cidin(arg_fcinfo: FunctionCallInfo) -> Datum { +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 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidin(arg_fcinfo: FunctionCallInfo) -> Datum; + 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; } - cidin(arg_fcinfo) + query_planner(arg_root, arg_tlist, arg_qp_callback, arg_qp_extra) }) } -pub unsafe fn cidout(arg_fcinfo: FunctionCallInfo) -> Datum { +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 cidout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn preprocess_minmax_aggregates(arg_root: *mut PlannerInfo, arg_tlist: *mut List); } - cidout(arg_fcinfo) + preprocess_minmax_aggregates(arg_root, arg_tlist) }) } -pub unsafe fn oidvectorin(arg_fcinfo: FunctionCallInfo) -> Datum { +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 oidvectorin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn create_plan(arg_root: *mut PlannerInfo, arg_best_path: *mut Path) -> *mut Plan; } - oidvectorin(arg_fcinfo) + create_plan(arg_root, arg_best_path) }) } -pub unsafe fn oidvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { +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 oidvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; + 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; } - oidvectorout(arg_fcinfo) + 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 unsafe fn boollt(arg_fcinfo: FunctionCallInfo) -> Datum { +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 boollt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn change_plan_targetlist( + arg_subplan: *mut Plan, + arg_tlist: *mut List, + arg_tlist_parallel_safe: bool, + ) -> *mut Plan; } - boollt(arg_fcinfo) + change_plan_targetlist(arg_subplan, arg_tlist, arg_tlist_parallel_safe) }) } -pub unsafe fn boolgt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn materialize_finished_plan(arg_subplan: *mut Plan) -> *mut Plan { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn materialize_finished_plan(arg_subplan: *mut Plan) -> *mut Plan; } - boolgt(arg_fcinfo) + materialize_finished_plan(arg_subplan) }) } -pub unsafe fn booleq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn is_projection_capable_path(arg_path: *mut Path) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn booleq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn is_projection_capable_path(arg_path: *mut Path) -> bool; } - booleq(arg_fcinfo) + is_projection_capable_path(arg_path) }) } -pub unsafe fn chareq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn is_projection_capable_plan(arg_plan: *mut Plan) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn chareq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn is_projection_capable_plan(arg_plan: *mut Plan) -> bool; } - chareq(arg_fcinfo) + is_projection_capable_plan(arg_plan) }) } -pub unsafe fn nameeq(arg_fcinfo: FunctionCallInfo) -> Datum { +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 nameeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_sort_from_sortclauses( + arg_sortcls: *mut List, + arg_lefttree: *mut Plan, + ) -> *mut Sort; } - nameeq(arg_fcinfo) + make_sort_from_sortclauses(arg_sortcls, arg_lefttree) }) } -pub unsafe fn int2eq(arg_fcinfo: FunctionCallInfo) -> Datum { +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 int2eq(arg_fcinfo: FunctionCallInfo) -> Datum; + 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; } - int2eq(arg_fcinfo) + make_agg( + arg_tlist, + arg_qual, + arg_aggstrategy, + arg_aggsplit, + arg_numGroupCols, + arg_grpColIdx, + arg_grpOperators, + arg_groupingSets, + arg_chain, + arg_dNumGroups, + arg_lefttree, + ) }) } -pub unsafe fn int2lt(arg_fcinfo: FunctionCallInfo) -> Datum { +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 int2lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_limit( + arg_lefttree: *mut Plan, + arg_limitOffset: *mut Node, + arg_limitCount: *mut Node, + ) -> *mut Limit; } - int2lt(arg_fcinfo) + make_limit(arg_lefttree, arg_limitOffset, arg_limitCount) }) } -pub unsafe fn int4eq(arg_fcinfo: FunctionCallInfo) -> Datum { +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 int4eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn add_base_rels_to_query(arg_root: *mut PlannerInfo, arg_jtnode: *mut Node); } - int4eq(arg_fcinfo) + add_base_rels_to_query(arg_root, arg_jtnode) }) } -pub unsafe fn int4lt(arg_fcinfo: FunctionCallInfo) -> Datum { +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 int4lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn build_base_rel_tlists(arg_root: *mut PlannerInfo, arg_final_tlist: *mut List); } - int4lt(arg_fcinfo) + build_base_rel_tlists(arg_root, arg_final_tlist) }) } -pub unsafe fn texteq(arg_fcinfo: FunctionCallInfo) -> Datum { +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 texteq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn add_vars_to_targetlist( + arg_root: *mut PlannerInfo, + arg_vars: *mut List, + arg_where_needed: Relids, + arg_create_new_ph: bool, + ); } - texteq(arg_fcinfo) + add_vars_to_targetlist(arg_root, arg_vars, arg_where_needed, arg_create_new_ph) }) } -pub unsafe fn xideq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn find_lateral_references(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xideq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn find_lateral_references(arg_root: *mut PlannerInfo); } - xideq(arg_fcinfo) + find_lateral_references(arg_root) }) } -pub unsafe fn cideq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn create_lateral_join_info(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cideq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn create_lateral_join_info(arg_root: *mut PlannerInfo); } - cideq(arg_fcinfo) + create_lateral_join_info(arg_root) }) } -pub unsafe fn charne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn deconstruct_jointree(arg_root: *mut PlannerInfo) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn deconstruct_jointree(arg_root: *mut PlannerInfo) -> *mut List; } - charne(arg_fcinfo) + deconstruct_jointree(arg_root) }) } -pub unsafe fn charle(arg_fcinfo: FunctionCallInfo) -> Datum { +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 charle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn distribute_restrictinfo_to_rels( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, + ); } - charle(arg_fcinfo) + distribute_restrictinfo_to_rels(arg_root, arg_restrictinfo) }) } -pub unsafe fn chargt(arg_fcinfo: FunctionCallInfo) -> Datum { +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 chargt(arg_fcinfo: FunctionCallInfo) -> Datum; + 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, + ); } - chargt(arg_fcinfo) + 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 charge(arg_fcinfo: FunctionCallInfo) -> Datum { +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 charge(arg_fcinfo: FunctionCallInfo) -> Datum; + 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; } - charge(arg_fcinfo) + build_implied_join_equality( + arg_opno, + arg_collation, + arg_item1, + arg_item2, + arg_qualscope, + arg_nullable_relids, + arg_security_level, + ) }) } -pub unsafe fn chartoi4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn match_foreign_keys_to_quals(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn chartoi4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn match_foreign_keys_to_quals(arg_root: *mut PlannerInfo); } - chartoi4(arg_fcinfo) + match_foreign_keys_to_quals(arg_root) }) } -pub unsafe fn i4tochar(arg_fcinfo: FunctionCallInfo) -> Datum { +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 i4tochar(arg_fcinfo: FunctionCallInfo) -> Datum; + fn remove_useless_joins( + arg_root: *mut PlannerInfo, + arg_joinlist: *mut List, + ) -> *mut List; } - i4tochar(arg_fcinfo) + remove_useless_joins(arg_root, arg_joinlist) }) } -pub unsafe fn nameregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reduce_unique_semijoins(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reduce_unique_semijoins(arg_root: *mut PlannerInfo); } - nameregexeq(arg_fcinfo) + reduce_unique_semijoins(arg_root) }) } -pub unsafe fn boolne(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 boolne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn query_supports_distinctness(arg_query: *mut Query) -> bool; } - boolne(arg_fcinfo) + query_supports_distinctness(arg_query) }) } -pub unsafe fn pg_ddl_command_in(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 pg_ddl_command_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn query_is_distinct_for( + arg_query: *mut Query, + arg_colnos: *mut List, + arg_opids: *mut List, + ) -> bool; } - pg_ddl_command_in(arg_fcinfo) + query_is_distinct_for(arg_query, arg_colnos, arg_opids) }) } -pub unsafe fn pg_ddl_command_out(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 pg_ddl_command_out(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; } - pg_ddl_command_out(arg_fcinfo) + innerrel_is_unique( + arg_root, + arg_outerrelids, + arg_innerrel, + arg_jointype, + arg_restrictlist, + arg_force_cache, + ) }) } -pub unsafe fn pg_ddl_command_recv(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 pg_ddl_command_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn set_plan_references(arg_root: *mut PlannerInfo, arg_plan: *mut Plan) -> *mut Plan; } - pg_ddl_command_recv(arg_fcinfo) + set_plan_references(arg_root, arg_plan) }) } -pub unsafe fn pgsql_version(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 pgsql_version(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_plan_function_dependency(arg_root: *mut PlannerInfo, arg_funcid: Oid); } - pgsql_version(arg_fcinfo) + record_plan_function_dependency(arg_root, arg_funcid) }) } -pub unsafe fn pg_ddl_command_send(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 pg_ddl_command_send(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, + ); } - pg_ddl_command_send(arg_fcinfo) + extract_query_dependencies(arg_query, arg_relationOids, arg_invalItems, arg_hasRowSecurity) }) } -pub unsafe fn eqsel(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn eqsel(arg_fcinfo: FunctionCallInfo) -> Datum; - } - eqsel(arg_fcinfo) - }) +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 unsafe fn neqsel(arg_fcinfo: FunctionCallInfo) -> Datum { +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 neqsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn planner( + arg_parse: *mut Query, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, + ) -> *mut PlannedStmt; } - neqsel(arg_fcinfo) + planner(arg_parse, arg_cursorOptions, arg_boundParams) }) } -pub unsafe fn scalarltsel(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 scalarltsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn standard_planner( + arg_parse: *mut Query, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, + ) -> *mut PlannedStmt; } - scalarltsel(arg_fcinfo) + standard_planner(arg_parse, arg_cursorOptions, arg_boundParams) }) } -pub unsafe fn scalargtsel(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 scalargtsel(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; } - scalargtsel(arg_fcinfo) + subquery_planner(arg_glob, arg_parse, arg_parent_root, arg_hasRecursion, arg_tuple_fraction) }) } -pub unsafe fn eqjoinsel(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 eqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn is_dummy_plan(arg_plan: *mut Plan) -> bool; } - eqjoinsel(arg_fcinfo) + is_dummy_plan(arg_plan) }) } -pub unsafe fn neqjoinsel(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 neqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn select_rowmark_type( + arg_rte: *mut RangeTblEntry, + arg_strength: LockClauseStrength, + ) -> RowMarkType; } - neqjoinsel(arg_fcinfo) + select_rowmark_type(arg_rte, arg_strength) }) } -pub unsafe fn scalarltjoinsel(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 scalarltjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn limit_needed(arg_parse: *mut Query) -> bool; } - scalarltjoinsel(arg_fcinfo) + limit_needed(arg_parse) }) } -pub unsafe fn scalargtjoinsel(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 scalargtjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn mark_partial_aggref(arg_agg: *mut Aggref, arg_aggsplit: AggSplit); } - scalargtjoinsel(arg_fcinfo) + mark_partial_aggref(arg_agg, arg_aggsplit) }) } -pub unsafe fn unknownin(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 unknownin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_cheapest_fractional_path( + arg_rel: *mut RelOptInfo, + arg_tuple_fraction: f64, + ) -> *mut Path; } - unknownin(arg_fcinfo) + get_cheapest_fractional_path(arg_rel, arg_tuple_fraction) }) } -pub unsafe fn unknownout(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 unknownout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn expression_planner(arg_expr: *mut Expr) -> *mut Expr; } - unknownout(arg_fcinfo) + expression_planner(arg_expr) }) } -pub unsafe fn numeric_fac(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 numeric_fac(arg_fcinfo: FunctionCallInfo) -> Datum; + fn preprocess_phv_expression( + arg_root: *mut PlannerInfo, + arg_expr: *mut Expr, + ) -> *mut Expr; } - numeric_fac(arg_fcinfo) + preprocess_phv_expression(arg_root, arg_expr) }) } -pub unsafe fn box_above_eq(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 box_above_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn plan_cluster_use_sort(arg_tableOid: Oid, arg_indexOid: Oid) -> bool; } - box_above_eq(arg_fcinfo) + plan_cluster_use_sort(arg_tableOid, arg_indexOid) }) } -pub unsafe fn box_below_eq(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 box_below_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_partitioned_child_rels(arg_root: *mut PlannerInfo, arg_rti: Index) -> *mut List; } - box_below_eq(arg_fcinfo) + get_partitioned_child_rels(arg_root, arg_rti) }) } -pub unsafe fn point_in(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 point_in(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; } - point_in(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 point_out(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 point_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn restriction_is_or_clause(arg_restrictinfo: *mut RestrictInfo) -> bool; } - point_out(arg_fcinfo) + restriction_is_or_clause(arg_restrictinfo) }) } -pub unsafe fn lseg_in(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 lseg_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn restriction_is_securely_promotable( + arg_restrictinfo: *mut RestrictInfo, + arg_rel: *mut RelOptInfo, + ) -> bool; } - lseg_in(arg_fcinfo) + restriction_is_securely_promotable(arg_restrictinfo, arg_rel) }) } -pub unsafe fn lseg_out(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 lseg_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_actual_clauses(arg_restrictinfo_list: *mut List) -> *mut List; } - lseg_out(arg_fcinfo) + get_actual_clauses(arg_restrictinfo_list) }) } -pub unsafe fn path_in(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 path_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn extract_actual_clauses( + arg_restrictinfo_list: *mut List, + arg_pseudoconstant: bool, + ) -> *mut List; } - path_in(arg_fcinfo) + extract_actual_clauses(arg_restrictinfo_list, arg_pseudoconstant) }) } -pub unsafe fn path_out(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 path_out(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, + ); } - path_out(arg_fcinfo) + extract_actual_join_clauses( + arg_restrictinfo_list, + arg_joinrelids, + arg_joinquals, + arg_otherquals, + ) }) } -pub unsafe fn box_in(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 box_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn join_clause_is_movable_to( + arg_rinfo: *mut RestrictInfo, + arg_baserel: *mut RelOptInfo, + ) -> bool; } - box_in(arg_fcinfo) + join_clause_is_movable_to(arg_rinfo, arg_baserel) }) } -pub unsafe fn box_out(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 box_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn join_clause_is_movable_into( + arg_rinfo: *mut RestrictInfo, + arg_currentrelids: Relids, + arg_current_and_outer: Relids, + ) -> bool; } - box_out(arg_fcinfo) + join_clause_is_movable_into(arg_rinfo, arg_currentrelids, arg_current_and_outer) }) } -pub unsafe fn box_overlap(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 box_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tlist_member(arg_node: *mut Expr, arg_targetlist: *mut List) -> *mut TargetEntry; } - box_overlap(arg_fcinfo) + tlist_member(arg_node, arg_targetlist) }) } -pub unsafe fn box_ge(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 box_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tlist_member_ignore_relabel( + arg_node: *mut Expr, + arg_targetlist: *mut List, + ) -> *mut TargetEntry; } - box_ge(arg_fcinfo) + tlist_member_ignore_relabel(arg_node, arg_targetlist) }) } -pub unsafe fn box_gt(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 box_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn add_to_flat_tlist(arg_tlist: *mut List, arg_exprs: *mut List) -> *mut List; } - box_gt(arg_fcinfo) + add_to_flat_tlist(arg_tlist, arg_exprs) }) } -pub unsafe fn box_eq(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 box_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_tlist_exprs(arg_tlist: *mut List, arg_includeJunk: bool) -> *mut List; } - box_eq(arg_fcinfo) + get_tlist_exprs(arg_tlist, arg_includeJunk) }) } -pub unsafe fn box_lt(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 box_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn count_nonjunk_tlist_entries(arg_tlist: *mut List) -> ::std::os::raw::c_int; } - box_lt(arg_fcinfo) + count_nonjunk_tlist_entries(arg_tlist) }) } -pub unsafe fn box_le(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 box_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tlist_same_exprs(arg_tlist1: *mut List, arg_tlist2: *mut List) -> bool; } - box_le(arg_fcinfo) + tlist_same_exprs(arg_tlist1, arg_tlist2) }) } -pub unsafe fn point_above(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 point_above(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tlist_same_datatypes( + arg_tlist: *mut List, + arg_colTypes: *mut List, + arg_junkOK: bool, + ) -> bool; } - point_above(arg_fcinfo) + tlist_same_datatypes(arg_tlist, arg_colTypes, arg_junkOK) }) } -pub unsafe fn point_left(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 point_left(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tlist_same_collations( + arg_tlist: *mut List, + arg_colCollations: *mut List, + arg_junkOK: bool, + ) -> bool; } - point_left(arg_fcinfo) + tlist_same_collations(arg_tlist, arg_colCollations, arg_junkOK) }) } -pub unsafe fn point_right(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 point_right(arg_fcinfo: FunctionCallInfo) -> Datum; + fn apply_tlist_labeling(arg_dest_tlist: *mut List, arg_src_tlist: *mut List); } - point_right(arg_fcinfo) + apply_tlist_labeling(arg_dest_tlist, arg_src_tlist) }) } -pub unsafe fn point_below(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 point_below(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgroupref_tle( + arg_sortref: Index, + arg_targetList: *mut List, + ) -> *mut TargetEntry; } - point_below(arg_fcinfo) + get_sortgroupref_tle(arg_sortref, arg_targetList) }) } -pub unsafe fn point_eq(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 point_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgroupclause_tle( + arg_sgClause: *mut SortGroupClause, + arg_targetList: *mut List, + ) -> *mut TargetEntry; } - point_eq(arg_fcinfo) + get_sortgroupclause_tle(arg_sgClause, arg_targetList) }) } -pub unsafe fn on_pb(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 on_pb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgroupclause_expr( + arg_sgClause: *mut SortGroupClause, + arg_targetList: *mut List, + ) -> *mut Node; } - on_pb(arg_fcinfo) + get_sortgroupclause_expr(arg_sgClause, arg_targetList) }) } -pub unsafe fn on_ppath(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 on_ppath(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgrouplist_exprs( + arg_sgClauses: *mut List, + arg_targetList: *mut List, + ) -> *mut List; } - on_ppath(arg_fcinfo) + get_sortgrouplist_exprs(arg_sgClauses, arg_targetList) }) } -pub unsafe fn box_center(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 box_center(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgroupref_clause( + arg_sortref: Index, + arg_clauses: *mut List, + ) -> *mut SortGroupClause; } - box_center(arg_fcinfo) + get_sortgroupref_clause(arg_sortref, arg_clauses) }) } -pub unsafe fn areasel(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 areasel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgroupref_clause_noerr( + arg_sortref: Index, + arg_clauses: *mut List, + ) -> *mut SortGroupClause; } - areasel(arg_fcinfo) + get_sortgroupref_clause_noerr(arg_sortref, arg_clauses) }) } -pub unsafe fn areajoinsel(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 areajoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn extract_grouping_ops(arg_groupClause: *mut List) -> *mut Oid; } - areajoinsel(arg_fcinfo) + extract_grouping_ops(arg_groupClause) }) } -pub unsafe fn int4mul(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 int4mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn extract_grouping_cols( + arg_groupClause: *mut List, + arg_tlist: *mut List, + ) -> *mut AttrNumber; } - int4mul(arg_fcinfo) + extract_grouping_cols(arg_groupClause, arg_tlist) }) } -pub unsafe fn int4ne(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 int4ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn grouping_is_sortable(arg_groupClause: *mut List) -> bool; } - int4ne(arg_fcinfo) + grouping_is_sortable(arg_groupClause) }) } -pub unsafe fn int2ne(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 int2ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn grouping_is_hashable(arg_groupClause: *mut List) -> bool; } - int2ne(arg_fcinfo) + grouping_is_hashable(arg_groupClause) }) } -pub unsafe fn int2gt(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 int2gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_pathtarget_from_tlist(arg_tlist: *mut List) -> *mut PathTarget; } - int2gt(arg_fcinfo) + make_pathtarget_from_tlist(arg_tlist) }) } -pub unsafe fn int4gt(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 int4gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_tlist_from_pathtarget(arg_target: *mut PathTarget) -> *mut List; } - int4gt(arg_fcinfo) + make_tlist_from_pathtarget(arg_target) }) } -pub unsafe fn int2le(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 int2le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn copy_pathtarget(arg_src: *mut PathTarget) -> *mut PathTarget; } - int2le(arg_fcinfo) + copy_pathtarget(arg_src) }) } -pub unsafe fn int4le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn create_empty_pathtarget() -> *mut PathTarget { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn create_empty_pathtarget() -> *mut PathTarget; } - int4le(arg_fcinfo) + create_empty_pathtarget() }) } -pub unsafe fn int4ge(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 int4ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn add_column_to_pathtarget( + arg_target: *mut PathTarget, + arg_expr: *mut Expr, + arg_sortgroupref: Index, + ); } - int4ge(arg_fcinfo) + add_column_to_pathtarget(arg_target, arg_expr, arg_sortgroupref) }) } -pub unsafe fn int2ge(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 int2ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn add_new_column_to_pathtarget(arg_target: *mut PathTarget, arg_expr: *mut Expr); } - int2ge(arg_fcinfo) + add_new_column_to_pathtarget(arg_target, arg_expr) }) } -pub unsafe fn int2mul(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 int2mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn add_new_columns_to_pathtarget(arg_target: *mut PathTarget, arg_exprs: *mut List); } - int2mul(arg_fcinfo) + add_new_columns_to_pathtarget(arg_target, arg_exprs) }) } -pub unsafe fn int2div(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 int2div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn apply_pathtarget_labeling_to_tlist( + arg_tlist: *mut List, + arg_target: *mut PathTarget, + ); } - int2div(arg_fcinfo) + apply_pathtarget_labeling_to_tlist(arg_tlist, arg_target) }) } -pub unsafe fn int4div(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 int4div(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, + ); } - int4div(arg_fcinfo) + split_pathtarget_at_srfs( + arg_root, + arg_target, + arg_input_target, + arg_targets, + arg_targets_contain_srfs, + ) }) } -pub unsafe fn int2mod(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 int2mod(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; } - int2mod(arg_fcinfo) + ParseFuncOrColumn(arg_pstate, arg_funcname, arg_fargs, arg_last_srf, arg_fn_, arg_location) }) } -pub unsafe fn int4mod(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 int4mod(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; } - int4mod(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 textne(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 textne(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; } - textne(arg_fcinfo) + func_match_argtypes(arg_nargs, arg_input_typeids, arg_raw_candidates, arg_candidates) }) } -pub unsafe fn int24eq(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 int24eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn func_select_candidate( + arg_nargs: ::std::os::raw::c_int, + arg_input_typeids: *mut Oid, + arg_candidates: FuncCandidateList, + ) -> FuncCandidateList; } - int24eq(arg_fcinfo) + func_select_candidate(arg_nargs, arg_input_typeids, arg_candidates) }) } -pub unsafe fn int42eq(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 int42eq(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, + ); } - int42eq(arg_fcinfo) + make_fn_arguments(arg_pstate, arg_fargs, arg_actual_arg_types, arg_declared_arg_types) }) } -pub unsafe fn int24lt(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 int24lt(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; } - int24lt(arg_fcinfo) + funcname_signature_string(arg_funcname, arg_nargs, arg_argnames, arg_argtypes) }) } -pub unsafe fn int42lt(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 int42lt(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; } - int42lt(arg_fcinfo) + func_signature_string(arg_funcname, arg_nargs, arg_argnames, arg_argtypes) }) } -pub unsafe fn int24gt(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 int24gt(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; } - int24gt(arg_fcinfo) + LookupFuncName(arg_funcname, arg_nargs, arg_argtypes, arg_noError) }) } -pub unsafe fn int42gt(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 int42gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupFuncWithArgs(arg_func: *mut ObjectWithArgs, arg_noError: bool) -> Oid; } - int42gt(arg_fcinfo) + LookupFuncWithArgs(arg_func, arg_noError) }) } -pub unsafe fn int24ne(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 int24ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupAggWithArgs(arg_agg: *mut ObjectWithArgs, arg_noError: bool) -> Oid; } - int24ne(arg_fcinfo) + LookupAggWithArgs(arg_agg, arg_noError) }) } -pub unsafe fn int42ne(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 int42ne(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, + ); } - int42ne(arg_fcinfo) + check_srf_call_placement(arg_pstate, arg_last_srf, arg_location) }) } -pub unsafe fn int24le(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 int24le(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; } - int24le(arg_fcinfo) + LookupOperName( + arg_pstate, + arg_opername, + arg_oprleft, + arg_oprright, + arg_noError, + arg_location, + ) }) } -pub unsafe fn int42le(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 int42le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupOperWithArgs(arg_oper: *mut ObjectWithArgs, arg_noError: bool) -> Oid; } - int42le(arg_fcinfo) + LookupOperWithArgs(arg_oper, arg_noError) }) } -pub unsafe fn int24ge(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 int24ge(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; } - int24ge(arg_fcinfo) + oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } -pub unsafe fn int42ge(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 int42ge(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; } - int42ge(arg_fcinfo) + right_oper(arg_pstate, arg_op, arg_arg, arg_noError, arg_location) }) } -pub unsafe fn int24mul(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 int24mul(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; } - int24mul(arg_fcinfo) + left_oper(arg_pstate, arg_op, arg_arg, arg_noError, arg_location) }) } -pub unsafe fn int42mul(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 int42mul(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; } - int42mul(arg_fcinfo) + compatible_oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } -pub unsafe fn int24div(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 int24div(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, + ); } - int24div(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 int42div(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 int42div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn compatible_oper_opid( + arg_op: *mut List, + arg_arg1: Oid, + arg_arg2: Oid, + arg_noError: bool, + ) -> Oid; } - int42div(arg_fcinfo) + compatible_oper_opid(arg_op, arg_arg1, arg_arg2, arg_noError) }) } -pub unsafe fn int2pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oprid(arg_op: Operator) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oprid(arg_op: Operator) -> Oid; } - int2pl(arg_fcinfo) + oprid(arg_op) }) } -pub unsafe fn int4pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oprfuncid(arg_op: Operator) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oprfuncid(arg_op: Operator) -> Oid; } - int4pl(arg_fcinfo) + oprfuncid(arg_op) }) } -pub unsafe fn int24pl(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 int24pl(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; } - int24pl(arg_fcinfo) + make_op(arg_pstate, arg_opname, arg_ltree, arg_rtree, arg_last_srf, arg_location) }) } -pub unsafe fn int42pl(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 int42pl(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; } - int42pl(arg_fcinfo) + make_scalar_array_op(arg_pstate, arg_opname, arg_useOr, arg_ltree, arg_rtree, arg_location) }) } -pub unsafe fn int2mi(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 int2mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupTypeName( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typmod_p: *mut int32, + arg_missing_ok: bool, + ) -> Type; } - int2mi(arg_fcinfo) + LookupTypeName(arg_pstate, arg_typeName, arg_typmod_p, arg_missing_ok) }) } -pub unsafe fn int4mi(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 int4mi(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; } - int4mi(arg_fcinfo) + LookupTypeNameExtended(arg_pstate, arg_typeName, arg_typmod_p, arg_temp_ok, arg_missing_ok) }) } -pub unsafe fn int24mi(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 int24mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupTypeNameOid( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_missing_ok: bool, + ) -> Oid; } - int24mi(arg_fcinfo) + LookupTypeNameOid(arg_pstate, arg_typeName, arg_missing_ok) }) } -pub unsafe fn int42mi(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 int42mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typenameType( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typmod_p: *mut int32, + ) -> Type; } - int42mi(arg_fcinfo) + typenameType(arg_pstate, arg_typeName, arg_typmod_p) }) } -pub unsafe fn oideq(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 oideq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typenameTypeId(arg_pstate: *mut ParseState, arg_typeName: *const TypeName) -> Oid; } - oideq(arg_fcinfo) + typenameTypeId(arg_pstate, arg_typeName) }) } -pub unsafe fn oidne(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 oidne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typenameTypeIdAndMod( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typeid_p: *mut Oid, + arg_typmod_p: *mut int32, + ); } - oidne(arg_fcinfo) + typenameTypeIdAndMod(arg_pstate, arg_typeName, arg_typeid_p, arg_typmod_p) }) } -pub unsafe fn box_same(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 box_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TypeNameToString(arg_typeName: *const TypeName) -> *mut ::std::os::raw::c_char; } - box_same(arg_fcinfo) + TypeNameToString(arg_typeName) }) } -pub unsafe fn box_contain(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 box_contain(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TypeNameListToString(arg_typenames: *mut List) -> *mut ::std::os::raw::c_char; } - box_contain(arg_fcinfo) + TypeNameListToString(arg_typenames) }) } -pub unsafe fn box_left(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 box_left(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupCollation( + arg_pstate: *mut ParseState, + arg_collnames: *mut List, + arg_location: ::std::os::raw::c_int, + ) -> Oid; } - box_left(arg_fcinfo) + LookupCollation(arg_pstate, arg_collnames, arg_location) }) } -pub unsafe fn box_overleft(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 box_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetColumnDefCollation( + arg_pstate: *mut ParseState, + arg_coldef: *mut ColumnDef, + arg_typeOid: Oid, + ) -> Oid; } - box_overleft(arg_fcinfo) + GetColumnDefCollation(arg_pstate, arg_coldef, arg_typeOid) }) } -pub unsafe fn box_overright(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeidType(arg_id: Oid) -> Type { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_overright(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeidType(arg_id: Oid) -> Type; } - box_overright(arg_fcinfo) + typeidType(arg_id) }) } -pub unsafe fn box_right(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeTypeId(arg_tp: Type) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_right(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeTypeId(arg_tp: Type) -> Oid; } - box_right(arg_fcinfo) + typeTypeId(arg_tp) }) } -pub unsafe fn box_contained(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeLen(arg_t: Type) -> int16 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_contained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeLen(arg_t: Type) -> int16; } - box_contained(arg_fcinfo) + typeLen(arg_t) }) } -pub unsafe fn box_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeByVal(arg_t: Type) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeByVal(arg_t: Type) -> bool; } - box_contain_pt(arg_fcinfo) + typeByVal(arg_t) }) } -pub unsafe fn pg_node_tree_in(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 pg_node_tree_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeTypeName(arg_t: Type) -> *mut ::std::os::raw::c_char; } - pg_node_tree_in(arg_fcinfo) + typeTypeName(arg_t) }) } -pub unsafe fn pg_node_tree_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeTypeRelid(arg_typ: Type) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_node_tree_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeTypeRelid(arg_typ: Type) -> Oid; } - pg_node_tree_out(arg_fcinfo) + typeTypeRelid(arg_typ) }) } -pub unsafe fn pg_node_tree_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeTypeCollation(arg_typ: Type) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_node_tree_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeTypeCollation(arg_typ: Type) -> Oid; } - pg_node_tree_recv(arg_fcinfo) + typeTypeCollation(arg_typ) }) } -pub unsafe fn pg_node_tree_send(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 pg_node_tree_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn stringTypeDatum( + arg_tp: Type, + arg_string: *mut ::std::os::raw::c_char, + arg_atttypmod: int32, + ) -> Datum; } - pg_node_tree_send(arg_fcinfo) + stringTypeDatum(arg_tp, arg_string, arg_atttypmod) }) } -pub unsafe fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeidTypeRelid(arg_type_id: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeidTypeRelid(arg_type_id: Oid) -> Oid; } - float4in(arg_fcinfo) + typeidTypeRelid(arg_type_id) }) } -pub unsafe fn float4out(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 float4out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeStringToTypeName(arg_str_: *const ::std::os::raw::c_char) -> *mut TypeName; } - float4out(arg_fcinfo) + typeStringToTypeName(arg_str_) }) } -pub unsafe fn float4mul(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 float4mul(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, + ); } - float4mul(arg_fcinfo) + parseTypeString(arg_str_, arg_typeid_p, arg_typmod_p, arg_missing_ok) }) } -pub unsafe fn float4div(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 float4div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn raw_parser(arg_str_: *const ::std::os::raw::c_char) -> *mut List; } - float4div(arg_fcinfo) + raw_parser(arg_str_) }) } -pub unsafe fn float4pl(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 float4pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SystemFuncName(arg_name: *mut ::std::os::raw::c_char) -> *mut List; } - float4pl(arg_fcinfo) + SystemFuncName(arg_name) }) } -pub unsafe fn float4mi(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 float4mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SystemTypeName(arg_name: *mut ::std::os::raw::c_char) -> *mut TypeName; } - float4mi(arg_fcinfo) + SystemTypeName(arg_name) }) } -pub unsafe fn float4um(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 float4um(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_rte_attribute_name( + arg_rte: *mut RangeTblEntry, + arg_attnum: AttrNumber, + ) -> *mut ::std::os::raw::c_char; } - float4um(arg_fcinfo) + get_rte_attribute_name(arg_rte, arg_attnum) }) } -pub unsafe fn float4abs(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 float4abs(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, + ); } - float4abs(arg_fcinfo) + get_rte_attribute_type(arg_rte, arg_attnum, arg_vartype, arg_vartypmod, arg_varcollid) }) } -pub unsafe fn float4_accum(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 float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_rte_attribute_is_dropped( + arg_rte: *mut RangeTblEntry, + arg_attnum: AttrNumber, + ) -> bool; } - float4_accum(arg_fcinfo) + get_rte_attribute_is_dropped(arg_rte, arg_attnum) }) } -pub unsafe fn float4larger(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 float4larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_tle_by_resno(arg_tlist: *mut List, arg_resno: AttrNumber) -> *mut TargetEntry; } - float4larger(arg_fcinfo) + get_tle_by_resno(arg_tlist, arg_resno) }) } -pub unsafe fn float4smaller(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 float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_parse_rowmark(arg_qry: *mut Query, arg_rtindex: Index) -> *mut RowMarkClause; } - float4smaller(arg_fcinfo) + get_parse_rowmark(arg_qry, arg_rtindex) }) } -pub unsafe fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int4um(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() } - int4um(arg_fcinfo) - }) + } } -pub unsafe fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int2um(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() } - 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; +#[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, +} +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() } - 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; +#[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, +} +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() } - 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; +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() } - 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; +#[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, +} +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() } - 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; +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, +} +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() } - float8pl(arg_fcinfo) - }) + } } -pub unsafe fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferAllocate() -> *mut ReorderBuffer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAllocate() -> *mut ReorderBuffer; } - float8mi(arg_fcinfo) + ReorderBufferAllocate() }) } -pub unsafe fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferFree(arg_arg1: *mut ReorderBuffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferFree(arg_arg1: *mut ReorderBuffer); } - float8um(arg_fcinfo) + ReorderBufferFree(arg_arg1) }) } -pub unsafe fn float8abs(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 float8abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferGetTupleBuf( + arg_arg1: *mut ReorderBuffer, + arg_tuple_len: Size, + ) -> *mut ReorderBufferTupleBuf; } - float8abs(arg_fcinfo) + ReorderBufferGetTupleBuf(arg_arg1, arg_tuple_len) }) } -pub unsafe fn float8_accum(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 float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferReturnTupleBuf( + arg_arg1: *mut ReorderBuffer, + arg_tuple: *mut ReorderBufferTupleBuf, + ); } - float8_accum(arg_fcinfo) + ReorderBufferReturnTupleBuf(arg_arg1, arg_tuple) }) } -pub unsafe fn float8larger(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 float8larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferGetChange(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferChange; } - float8larger(arg_fcinfo) + ReorderBufferGetChange(arg_arg1) }) } -pub unsafe fn float8smaller(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 float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferReturnChange( + arg_arg1: *mut ReorderBuffer, + arg_arg2: *mut ReorderBufferChange, + ); } - float8smaller(arg_fcinfo) + ReorderBufferReturnChange(arg_arg1, arg_arg2) }) } -pub unsafe fn lseg_center(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 lseg_center(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferQueueChange( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_arg3: *mut ReorderBufferChange, + ); } - lseg_center(arg_fcinfo) + ReorderBufferQueueChange(arg_arg1, arg_arg2, arg_lsn, arg_arg3) }) } -pub unsafe fn path_center(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 path_center(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, + ); } - path_center(arg_fcinfo) + ReorderBufferQueueMessage( + arg_arg1, + arg_arg2, + arg_snapshot, + arg_lsn, + arg_transactional, + arg_prefix, + arg_message_size, + arg_message, + ) }) } -pub unsafe fn poly_center(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 poly_center(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, + ); } - poly_center(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 dround(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 dround(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAssignChild( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_arg3: TransactionId, + arg_commit_lsn: XLogRecPtr, + ); } - dround(arg_fcinfo) + ReorderBufferAssignChild(arg_arg1, arg_arg2, arg_arg3, arg_commit_lsn) }) } -pub unsafe fn dtrunc(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 dtrunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferCommitChild( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_arg3: TransactionId, + arg_commit_lsn: XLogRecPtr, + arg_end_lsn: XLogRecPtr, + ); } - dtrunc(arg_fcinfo) + ReorderBufferCommitChild(arg_arg1, arg_arg2, arg_arg3, arg_commit_lsn, arg_end_lsn) }) } -pub unsafe fn dsqrt(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 dsqrt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAbort( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + ); } - dsqrt(arg_fcinfo) + ReorderBufferAbort(arg_arg1, arg_arg2, arg_lsn) }) } -pub unsafe fn dcbrt(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 dcbrt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAbortOld(arg_arg1: *mut ReorderBuffer, arg_xid: TransactionId); } - dcbrt(arg_fcinfo) + ReorderBufferAbortOld(arg_arg1, arg_xid) }) } -pub unsafe fn dpow(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 dpow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferForget( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + ); } - dpow(arg_fcinfo) + ReorderBufferForget(arg_arg1, arg_arg2, arg_lsn) }) } -pub unsafe fn dexp(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 dexp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferSetBaseSnapshot( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_snap: *mut SnapshotData, + ); } - dexp(arg_fcinfo) + ReorderBufferSetBaseSnapshot(arg_arg1, arg_arg2, arg_lsn, arg_snap) }) } -pub unsafe fn dlog1(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 dlog1(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAddSnapshot( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_snap: *mut SnapshotData, + ); } - dlog1(arg_fcinfo) + ReorderBufferAddSnapshot(arg_arg1, arg_arg2, arg_lsn, arg_snap) }) } -pub unsafe fn i2tod(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 i2tod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAddNewCommandId( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_cid: CommandId, + ); } - i2tod(arg_fcinfo) + ReorderBufferAddNewCommandId(arg_arg1, arg_arg2, arg_lsn, arg_cid) }) } -pub unsafe fn i2tof(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 i2tof(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, + ); } - i2tof(arg_fcinfo) + ReorderBufferAddNewTupleCids( + arg_arg1, + arg_arg2, + arg_lsn, + arg_node, + arg_pt, + arg_cmin, + arg_cmax, + arg_combocid, + ) }) } -pub unsafe fn dtoi2(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 dtoi2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAddInvalidations( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_nmsgs: Size, + arg_msgs: *mut SharedInvalidationMessage, + ); } - dtoi2(arg_fcinfo) + ReorderBufferAddInvalidations(arg_arg1, arg_arg2, arg_lsn, arg_nmsgs, arg_msgs) }) } -pub unsafe fn ftoi2(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 ftoi2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferImmediateInvalidation( + arg_arg1: *mut ReorderBuffer, + arg_ninvalidations: uint32, + arg_invalidations: *mut SharedInvalidationMessage, + ); } - ftoi2(arg_fcinfo) + ReorderBufferImmediateInvalidation(arg_arg1, arg_ninvalidations, arg_invalidations) }) } -pub unsafe fn line_distance(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 line_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferProcessXid( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, + arg_lsn: XLogRecPtr, + ); } - line_distance(arg_fcinfo) + ReorderBufferProcessXid(arg_arg1, arg_xid, arg_lsn) }) } -pub unsafe fn abstimein(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 abstimein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferXidSetCatalogChanges( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, + arg_lsn: XLogRecPtr, + ); } - abstimein(arg_fcinfo) + ReorderBufferXidSetCatalogChanges(arg_arg1, arg_xid, arg_lsn) }) } -pub unsafe fn abstimeout(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 abstimeout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferXidHasCatalogChanges( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, + ) -> bool; } - abstimeout(arg_fcinfo) + ReorderBufferXidHasCatalogChanges(arg_arg1, arg_xid) }) } -pub unsafe fn reltimein(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 reltimein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferXidHasBaseSnapshot( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, + ) -> bool; } - reltimein(arg_fcinfo) + ReorderBufferXidHasBaseSnapshot(arg_arg1, arg_xid) }) } -pub unsafe fn reltimeout(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 reltimeout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferGetOldestTXN(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferTXN; } - reltimeout(arg_fcinfo) + ReorderBufferGetOldestTXN(arg_arg1) }) } -pub unsafe fn timepl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferGetOldestXmin(arg_rb: *mut ReorderBuffer) -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timepl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferGetOldestXmin(arg_rb: *mut ReorderBuffer) -> TransactionId; } - timepl(arg_fcinfo) + ReorderBufferGetOldestXmin(arg_rb) }) } -pub unsafe fn timemi(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 timemi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferSetRestartPoint(arg_arg1: *mut ReorderBuffer, arg_ptr: XLogRecPtr); } - timemi(arg_fcinfo) + ReorderBufferSetRestartPoint(arg_arg1, arg_ptr) }) } -pub unsafe fn tintervalin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StartupReorderBuffer() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StartupReorderBuffer(); } - tintervalin(arg_fcinfo) + StartupReorderBuffer() }) } -pub unsafe fn tintervalout(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tintervalout(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() } - tintervalout(arg_fcinfo) - }) + } } -pub unsafe fn intinterval(arg_fcinfo: FunctionCallInfo) -> Datum { +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 OutputPluginPrepareWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn intinterval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn OutputPluginPrepareWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool); } - intinterval(arg_fcinfo) + OutputPluginPrepareWrite(arg_ctx, arg_last_write) }) } -pub unsafe fn tintervalrel(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 tintervalrel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn OutputPluginWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool); } - tintervalrel(arg_fcinfo) + OutputPluginWrite(arg_ctx, arg_last_write) }) } -pub unsafe fn timenow(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn OutputPluginUpdateProgress(arg_ctx: *mut LogicalDecodingContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timenow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn OutputPluginUpdateProgress(arg_ctx: *mut LogicalDecodingContext); } - timenow(arg_fcinfo) + OutputPluginUpdateProgress(arg_ctx) }) } -pub unsafe fn abstimeeq(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 abstimeeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QueryRewrite(arg_parsetree: *mut Query) -> *mut List; } - abstimeeq(arg_fcinfo) + QueryRewrite(arg_parsetree) }) } -pub unsafe fn abstimene(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 abstimene(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AcquireRewriteLocks( + arg_parsetree: *mut Query, + arg_forExecute: bool, + arg_forUpdatePushedDown: bool, + ); } - abstimene(arg_fcinfo) + AcquireRewriteLocks(arg_parsetree, arg_forExecute, arg_forUpdatePushedDown) }) } -pub unsafe fn abstimelt(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 abstimelt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn build_column_default( + arg_rel: Relation, + arg_attrno: ::std::os::raw::c_int, + ) -> *mut Node; } - abstimelt(arg_fcinfo) + build_column_default(arg_rel, arg_attrno) }) } -pub unsafe fn abstimegt(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 abstimegt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn rewriteTargetListUD( + arg_parsetree: *mut Query, + arg_target_rte: *mut RangeTblEntry, + arg_target_relation: Relation, + ); } - abstimegt(arg_fcinfo) + rewriteTargetListUD(arg_parsetree, arg_target_rte, arg_target_relation) }) } -pub unsafe fn abstimele(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 abstimele(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_view_query(arg_view: Relation) -> *mut Query; } - abstimele(arg_fcinfo) + get_view_query(arg_view) }) } -pub unsafe fn abstimege(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 abstimege(arg_fcinfo: FunctionCallInfo) -> Datum; + fn view_query_is_auto_updatable( + arg_viewquery: *mut Query, + arg_check_cols: bool, + ) -> *const ::std::os::raw::c_char; } - abstimege(arg_fcinfo) + view_query_is_auto_updatable(arg_viewquery, arg_check_cols) }) } -pub unsafe fn reltimeeq(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 reltimeeq(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; } - reltimeeq(arg_fcinfo) + relation_is_updatable(arg_reloid, arg_outer_reloids, arg_include_triggers, arg_include_cols) }) } -pub unsafe fn reltimene(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 reltimene(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SnapMgrShmemSize() -> Size; } - reltimene(arg_fcinfo) + SnapMgrShmemSize() }) } -pub unsafe fn reltimelt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SnapMgrInit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimelt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SnapMgrInit(); } - reltimelt(arg_fcinfo) + SnapMgrInit() }) } -pub unsafe fn reltimegt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetSnapshotCurrentTimestamp() -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimegt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetSnapshotCurrentTimestamp() -> TimestampTz; } - reltimegt(arg_fcinfo) + GetSnapshotCurrentTimestamp() }) } -pub unsafe fn reltimele(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetOldSnapshotThresholdTimestamp() -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimele(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetOldSnapshotThresholdTimestamp() -> TimestampTz; } - reltimele(arg_fcinfo) + GetOldSnapshotThresholdTimestamp() }) } -pub unsafe fn reltimege(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 reltimege(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetTransactionSnapshot() -> Snapshot; } - reltimege(arg_fcinfo) + GetTransactionSnapshot() }) } -pub unsafe fn tintervalsame(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetLatestSnapshot() -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalsame(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetLatestSnapshot() -> Snapshot; } - tintervalsame(arg_fcinfo) + GetLatestSnapshot() }) } -pub unsafe fn tintervalct(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SnapshotSetCommandId(arg_curcid: CommandId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalct(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SnapshotSetCommandId(arg_curcid: CommandId); } - tintervalct(arg_fcinfo) + SnapshotSetCommandId(arg_curcid) }) } -pub unsafe fn tintervalov(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetOldestSnapshot() -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalov(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetOldestSnapshot() -> Snapshot; } - tintervalov(arg_fcinfo) + GetOldestSnapshot() }) } -pub unsafe fn tintervalleneq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetCatalogSnapshot(arg_relid: Oid) -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalleneq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetCatalogSnapshot(arg_relid: Oid) -> Snapshot; } - tintervalleneq(arg_fcinfo) + GetCatalogSnapshot(arg_relid) }) } -pub unsafe fn tintervallenne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetNonHistoricCatalogSnapshot(arg_relid: Oid) -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallenne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetNonHistoricCatalogSnapshot(arg_relid: Oid) -> Snapshot; } - tintervallenne(arg_fcinfo) + GetNonHistoricCatalogSnapshot(arg_relid) }) } -pub unsafe fn tintervallenlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InvalidateCatalogSnapshot() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallenlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InvalidateCatalogSnapshot(); } - tintervallenlt(arg_fcinfo) + InvalidateCatalogSnapshot() }) } -pub unsafe fn tintervallengt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InvalidateCatalogSnapshotConditionally() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallengt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InvalidateCatalogSnapshotConditionally(); } - tintervallengt(arg_fcinfo) + InvalidateCatalogSnapshotConditionally() }) } -pub unsafe fn tintervallenle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PushActiveSnapshot(arg_snapshot: Snapshot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallenle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PushActiveSnapshot(arg_snapshot: Snapshot); } - tintervallenle(arg_fcinfo) + PushActiveSnapshot(arg_snapshot) }) } -pub unsafe fn tintervallenge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PushCopiedSnapshot(arg_snapshot: Snapshot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallenge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PushCopiedSnapshot(arg_snapshot: Snapshot); } - tintervallenge(arg_fcinfo) + PushCopiedSnapshot(arg_snapshot) }) } -pub unsafe fn tintervalstart(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UpdateActiveSnapshotCommandId() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalstart(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UpdateActiveSnapshotCommandId(); } - tintervalstart(arg_fcinfo) + UpdateActiveSnapshotCommandId() }) } -pub unsafe fn tintervalend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PopActiveSnapshot() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PopActiveSnapshot(); } - tintervalend(arg_fcinfo) + PopActiveSnapshot() }) } -pub unsafe fn timeofday(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetActiveSnapshot() -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timeofday(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetActiveSnapshot() -> Snapshot; } - timeofday(arg_fcinfo) + GetActiveSnapshot() }) } -pub unsafe fn abstime_finite(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ActiveSnapshotSet() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstime_finite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ActiveSnapshotSet() -> bool; } - abstime_finite(arg_fcinfo) + ActiveSnapshotSet() }) } -pub unsafe fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RegisterSnapshot(arg_snapshot: Snapshot) -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RegisterSnapshot(arg_snapshot: Snapshot) -> Snapshot; } - float8_combine(arg_fcinfo) + RegisterSnapshot(arg_snapshot) }) } -pub unsafe fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UnregisterSnapshot(arg_snapshot: Snapshot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UnregisterSnapshot(arg_snapshot: Snapshot); } - inter_sl(arg_fcinfo) + UnregisterSnapshot(arg_snapshot) }) } -pub unsafe fn inter_lb(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 inter_lb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RegisterSnapshotOnOwner( + arg_snapshot: Snapshot, + arg_owner: ResourceOwner, + ) -> Snapshot; } - inter_lb(arg_fcinfo) + RegisterSnapshotOnOwner(arg_snapshot, arg_owner) }) } -pub unsafe fn float48mul(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 float48mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UnregisterSnapshotFromOwner(arg_snapshot: Snapshot, arg_owner: ResourceOwner); } - float48mul(arg_fcinfo) + UnregisterSnapshotFromOwner(arg_snapshot, arg_owner) }) } -pub unsafe fn float48div(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 float48div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtSubCommit_Snapshot(arg_level: ::std::os::raw::c_int); } - float48div(arg_fcinfo) + AtSubCommit_Snapshot(arg_level) }) } -pub unsafe fn float48pl(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 float48pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtSubAbort_Snapshot(arg_level: ::std::os::raw::c_int); } - float48pl(arg_fcinfo) + AtSubAbort_Snapshot(arg_level) }) } -pub unsafe fn float48mi(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 float48mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtEOXact_Snapshot(arg_isCommit: bool, arg_resetXmin: bool); } - float48mi(arg_fcinfo) + AtEOXact_Snapshot(arg_isCommit, arg_resetXmin) }) } -pub unsafe fn float84mul(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 float84mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ImportSnapshot(arg_idstr: *const ::std::os::raw::c_char); } - float84mul(arg_fcinfo) + ImportSnapshot(arg_idstr) }) } -pub unsafe fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn XactHasExportedSnapshots() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn XactHasExportedSnapshots() -> bool; } - float84div(arg_fcinfo) + XactHasExportedSnapshots() }) } -pub unsafe fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DeleteAllExportedSnapshotFiles() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DeleteAllExportedSnapshotFiles(); } - float84pl(arg_fcinfo) + DeleteAllExportedSnapshotFiles() }) } -pub unsafe fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ThereAreNoPriorRegisteredSnapshots() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ThereAreNoPriorRegisteredSnapshots() -> bool; } - float84mi(arg_fcinfo) + ThereAreNoPriorRegisteredSnapshots() }) } -pub unsafe fn float4eq(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 float4eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TransactionIdLimitedForOldSnapshots( + arg_recentXmin: TransactionId, + arg_relation: Relation, + ) -> TransactionId; } - float4eq(arg_fcinfo) + TransactionIdLimitedForOldSnapshots(arg_recentXmin, arg_relation) }) } -pub unsafe fn float4ne(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 float4ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MaintainOldSnapshotTimeMapping(arg_whenTaken: TimestampTz, arg_xmin: TransactionId); } - float4ne(arg_fcinfo) + MaintainOldSnapshotTimeMapping(arg_whenTaken, arg_xmin) }) } -pub unsafe fn float4lt(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 float4lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExportSnapshot(arg_snapshot: Snapshot) -> *mut ::std::os::raw::c_char; } - float4lt(arg_fcinfo) + ExportSnapshot(arg_snapshot) }) } -pub unsafe fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HistoricSnapshotGetTupleCids() -> *mut HTAB { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HistoricSnapshotGetTupleCids() -> *mut HTAB; } - float4le(arg_fcinfo) + HistoricSnapshotGetTupleCids() }) } -pub unsafe fn float4gt(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 float4gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SetupHistoricSnapshot(arg_snapshot_now: Snapshot, arg_tuplecids: *mut HTAB); } - float4gt(arg_fcinfo) + SetupHistoricSnapshot(arg_snapshot_now, arg_tuplecids) }) } -pub unsafe fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn TeardownHistoricSnapshot(arg_is_error: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TeardownHistoricSnapshot(arg_is_error: bool); } - float4ge(arg_fcinfo) + TeardownHistoricSnapshot(arg_is_error) }) } -pub unsafe fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HistoricSnapshotActive() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HistoricSnapshotActive() -> bool; } - float8eq(arg_fcinfo) + HistoricSnapshotActive() }) } -pub unsafe fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn EstimateSnapshotSpace(arg_snapshot: Snapshot) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn EstimateSnapshotSpace(arg_snapshot: Snapshot) -> Size; } - float8ne(arg_fcinfo) + EstimateSnapshotSpace(arg_snapshot) }) } -pub unsafe fn float8lt(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 float8lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SerializeSnapshot( + arg_snapshot: Snapshot, + arg_start_address: *mut ::std::os::raw::c_char, + ); } - float8lt(arg_fcinfo) + SerializeSnapshot(arg_snapshot, arg_start_address) }) } -pub unsafe fn float8le(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 float8le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RestoreSnapshot(arg_start_address: *mut ::std::os::raw::c_char) -> Snapshot; } - float8le(arg_fcinfo) + RestoreSnapshot(arg_start_address) }) } -pub unsafe fn float8gt(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 float8gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RestoreTransactionSnapshot( + arg_snapshot: Snapshot, + arg_master_pgproc: *mut ::std::os::raw::c_void, + ); } - float8gt(arg_fcinfo) + RestoreTransactionSnapshot(arg_snapshot, arg_master_pgproc) }) } -pub unsafe fn float8ge(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 float8ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesMVCC( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - float8ge(arg_fcinfo) + HeapTupleSatisfiesMVCC(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn float48eq(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 float48eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesSelf( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - float48eq(arg_fcinfo) + HeapTupleSatisfiesSelf(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn float48ne(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 float48ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesAny( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - float48ne(arg_fcinfo) + HeapTupleSatisfiesAny(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn float48lt(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 float48lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesToast( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - float48lt(arg_fcinfo) + HeapTupleSatisfiesToast(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn float48le(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 float48le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesDirty( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - float48le(arg_fcinfo) + HeapTupleSatisfiesDirty(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn float48gt(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 float48gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesHistoricMVCC( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - float48gt(arg_fcinfo) + HeapTupleSatisfiesHistoricMVCC(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn float48ge(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 float48ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesUpdate( + arg_htup: HeapTuple, + arg_curcid: CommandId, + arg_buffer: Buffer, + ) -> HTSU_Result; } - float48ge(arg_fcinfo) + HeapTupleSatisfiesUpdate(arg_htup, arg_curcid, arg_buffer) }) } -pub unsafe fn float84eq(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 float84eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesVacuum( + arg_htup: HeapTuple, + arg_OldestXmin: TransactionId, + arg_buffer: Buffer, + ) -> HTSV_Result; } - float84eq(arg_fcinfo) + HeapTupleSatisfiesVacuum(arg_htup, arg_OldestXmin, arg_buffer) }) } -pub unsafe fn float84ne(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 float84ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleIsSurelyDead(arg_htup: HeapTuple, arg_OldestXmin: TransactionId) -> bool; } - float84ne(arg_fcinfo) + HeapTupleIsSurelyDead(arg_htup, arg_OldestXmin) }) } -pub unsafe fn float84lt(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 float84lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn XidInMVCCSnapshot(arg_xid: TransactionId, arg_snapshot: Snapshot) -> bool; } - float84lt(arg_fcinfo) + XidInMVCCSnapshot(arg_xid, arg_snapshot) }) } -pub unsafe fn float84le(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 float84le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSetHintBits( + arg_tuple: HeapTupleHeader, + arg_buffer: Buffer, + arg_infomask: uint16, + arg_xid: TransactionId, + ); } - float84le(arg_fcinfo) + HeapTupleSetHintBits(arg_tuple, arg_buffer, arg_infomask, arg_xid) }) } -pub unsafe fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleHeaderIsOnlyLocked(arg_tuple: HeapTupleHeader) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleHeaderIsOnlyLocked(arg_tuple: HeapTupleHeader) -> bool; } - float84gt(arg_fcinfo) + HeapTupleHeaderIsOnlyLocked(arg_tuple) }) } -pub unsafe fn float84ge(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 float84ge(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; } - float84ge(arg_fcinfo) + ResolveCminCmaxDuringDecoding( + arg_tuplecid_data, + arg_snapshot, + arg_htup, + arg_buffer, + arg_cmin, + arg_cmax, + ) }) } -pub unsafe fn ftod(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 ftod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ComputeIoConcurrency( + arg_io_concurrency: ::std::os::raw::c_int, + arg_target: *mut f64, + ) -> bool; } - ftod(arg_fcinfo) + ComputeIoConcurrency(arg_io_concurrency, arg_target) }) } -pub unsafe fn dtof(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 dtof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PrefetchBuffer( + arg_reln: Relation, + arg_forkNum: ForkNumber, + arg_blockNum: BlockNumber, + ); } - dtof(arg_fcinfo) + PrefetchBuffer(arg_reln, arg_forkNum, arg_blockNum) }) } -pub unsafe fn i2toi4(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 i2toi4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReadBuffer(arg_reln: Relation, arg_blockNum: BlockNumber) -> Buffer; } - i2toi4(arg_fcinfo) + ReadBuffer(arg_reln, arg_blockNum) }) } -pub unsafe fn i4toi2(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 i4toi2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReadBufferExtended( + arg_reln: Relation, + arg_forkNum: ForkNumber, + arg_blockNum: BlockNumber, + arg_mode: ReadBufferMode, + arg_strategy: BufferAccessStrategy, + ) -> Buffer; } - i4toi2(arg_fcinfo) + ReadBufferExtended(arg_reln, arg_forkNum, arg_blockNum, arg_mode, arg_strategy) }) } -pub unsafe fn i4tod(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 i4tod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReadBufferWithoutRelcache( + arg_rnode: RelFileNode, + arg_forkNum: ForkNumber, + arg_blockNum: BlockNumber, + arg_mode: ReadBufferMode, + arg_strategy: BufferAccessStrategy, + ) -> Buffer; } - i4tod(arg_fcinfo) + ReadBufferWithoutRelcache(arg_rnode, arg_forkNum, arg_blockNum, arg_mode, arg_strategy) }) } -pub unsafe fn dtoi4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReleaseBuffer(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dtoi4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReleaseBuffer(arg_buffer: Buffer); } - dtoi4(arg_fcinfo) + ReleaseBuffer(arg_buffer) }) } -pub unsafe fn i4tof(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UnlockReleaseBuffer(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i4tof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UnlockReleaseBuffer(arg_buffer: Buffer); } - i4tof(arg_fcinfo) + UnlockReleaseBuffer(arg_buffer) }) } -pub unsafe fn ftoi4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MarkBufferDirty(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftoi4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MarkBufferDirty(arg_buffer: Buffer); } - ftoi4(arg_fcinfo) + MarkBufferDirty(arg_buffer) }) } -pub unsafe fn width_bucket_float8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn IncrBufferRefCount(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn width_bucket_float8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn IncrBufferRefCount(arg_buffer: Buffer); } - width_bucket_float8(arg_fcinfo) + IncrBufferRefCount(arg_buffer) }) } -pub unsafe fn json_in(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 json_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReleaseAndReadBuffer( + arg_buffer: Buffer, + arg_relation: Relation, + arg_blockNum: BlockNumber, + ) -> Buffer; } - json_in(arg_fcinfo) + ReleaseAndReadBuffer(arg_buffer, arg_relation, arg_blockNum) }) } -pub unsafe fn json_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InitBufferPool() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InitBufferPool(); } - json_out(arg_fcinfo) + InitBufferPool() }) } -pub unsafe fn json_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InitBufferPoolAccess() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InitBufferPoolAccess(); } - json_recv(arg_fcinfo) + InitBufferPoolAccess() }) } -pub unsafe fn json_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InitBufferPoolBackend() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InitBufferPoolBackend(); } - json_send(arg_fcinfo) + InitBufferPoolBackend() }) } -pub unsafe fn index_am_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AtEOXact_Buffers(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_am_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtEOXact_Buffers(arg_isCommit: bool); } - index_am_handler_in(arg_fcinfo) + AtEOXact_Buffers(arg_isCommit) }) } -pub unsafe fn index_am_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PrintBufferLeakWarning(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_am_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PrintBufferLeakWarning(arg_buffer: Buffer); } - index_am_handler_out(arg_fcinfo) + PrintBufferLeakWarning(arg_buffer) }) } -pub unsafe fn hashmacaddr8(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 hashmacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CheckPointBuffers(arg_flags: ::std::os::raw::c_int); } - hashmacaddr8(arg_fcinfo) + CheckPointBuffers(arg_flags) }) } -pub unsafe fn hash_aclitem(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufferGetBlockNumber(arg_buffer: Buffer) -> BlockNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hash_aclitem(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufferGetBlockNumber(arg_buffer: Buffer) -> BlockNumber; } - hash_aclitem(arg_fcinfo) + BufferGetBlockNumber(arg_buffer) }) } -pub unsafe fn bthandler(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 bthandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RelationGetNumberOfBlocksInFork( + arg_relation: Relation, + arg_forkNum: ForkNumber, + ) -> BlockNumber; } - bthandler(arg_fcinfo) + RelationGetNumberOfBlocksInFork(arg_relation, arg_forkNum) }) } -pub unsafe fn hashhandler(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FlushOneBuffer(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashhandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FlushOneBuffer(arg_buffer: Buffer); } - hashhandler(arg_fcinfo) + FlushOneBuffer(arg_buffer) }) } -pub unsafe fn gisthandler(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FlushRelationBuffers(arg_rel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gisthandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FlushRelationBuffers(arg_rel: Relation); } - gisthandler(arg_fcinfo) + FlushRelationBuffers(arg_rel) }) } -pub unsafe fn ginhandler(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FlushDatabaseBuffers(arg_dbid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginhandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FlushDatabaseBuffers(arg_dbid: Oid); } - ginhandler(arg_fcinfo) + FlushDatabaseBuffers(arg_dbid) }) } -pub unsafe fn spghandler(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 spghandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DropRelFileNodeBuffers( + arg_rnode: RelFileNodeBackend, + arg_forkNum: ForkNumber, + arg_firstDelBlock: BlockNumber, + ); } - spghandler(arg_fcinfo) + DropRelFileNodeBuffers(arg_rnode, arg_forkNum, arg_firstDelBlock) }) } -pub unsafe fn brinhandler(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 brinhandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DropRelFileNodesAllBuffers( + arg_rnodes: *mut RelFileNodeBackend, + arg_nnodes: ::std::os::raw::c_int, + ); } - brinhandler(arg_fcinfo) + DropRelFileNodesAllBuffers(arg_rnodes, arg_nnodes) }) } -pub unsafe fn amvalidate(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DropDatabaseBuffers(arg_dbid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn amvalidate(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DropDatabaseBuffers(arg_dbid: Oid); } - amvalidate(arg_fcinfo) + DropDatabaseBuffers(arg_dbid) }) } -pub unsafe fn poly_same(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufferIsPermanent(arg_buffer: Buffer) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufferIsPermanent(arg_buffer: Buffer) -> bool; } - poly_same(arg_fcinfo) + BufferIsPermanent(arg_buffer) }) } -pub unsafe fn poly_contain(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufferGetLSNAtomic(arg_buffer: Buffer) -> XLogRecPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_contain(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufferGetLSNAtomic(arg_buffer: Buffer) -> XLogRecPtr; } - poly_contain(arg_fcinfo) + BufferGetLSNAtomic(arg_buffer) }) } -pub unsafe fn poly_left(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufferShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_left(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufferShmemSize() -> Size; } - poly_left(arg_fcinfo) + BufferShmemSize() }) } -pub unsafe fn poly_overleft(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 poly_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufferGetTag( + arg_buffer: Buffer, + arg_rnode: *mut RelFileNode, + arg_forknum: *mut ForkNumber, + arg_blknum: *mut BlockNumber, + ); } - poly_overleft(arg_fcinfo) + BufferGetTag(arg_buffer, arg_rnode, arg_forknum, arg_blknum) }) } -pub unsafe fn poly_overright(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 poly_overright(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MarkBufferDirtyHint(arg_buffer: Buffer, arg_buffer_std: bool); } - poly_overright(arg_fcinfo) + MarkBufferDirtyHint(arg_buffer, arg_buffer_std) }) } -pub unsafe fn poly_right(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UnlockBuffers() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_right(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UnlockBuffers(); } - poly_right(arg_fcinfo) + UnlockBuffers() }) } -pub unsafe fn poly_contained(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 poly_contained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LockBuffer(arg_buffer: Buffer, arg_mode: ::std::os::raw::c_int); } - poly_contained(arg_fcinfo) + LockBuffer(arg_buffer, arg_mode) }) } -pub unsafe fn poly_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ConditionalLockBuffer(arg_buffer: Buffer) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ConditionalLockBuffer(arg_buffer: Buffer) -> bool; } - poly_overlap(arg_fcinfo) + ConditionalLockBuffer(arg_buffer) }) } -pub unsafe fn poly_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LockBufferForCleanup(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LockBufferForCleanup(arg_buffer: Buffer); } - poly_in(arg_fcinfo) + LockBufferForCleanup(arg_buffer) }) } -pub unsafe fn poly_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ConditionalLockBufferForCleanup(arg_buffer: Buffer) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ConditionalLockBufferForCleanup(arg_buffer: Buffer) -> bool; } - poly_out(arg_fcinfo) + ConditionalLockBufferForCleanup(arg_buffer) }) } -pub unsafe fn btint2cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn IsBufferCleanupOK(arg_buffer: Buffer) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint2cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn IsBufferCleanupOK(arg_buffer: Buffer) -> bool; } - btint2cmp(arg_fcinfo) + IsBufferCleanupOK(arg_buffer) }) } -pub unsafe fn btint4cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HoldingBufferPinThatDelaysRecovery() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint4cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HoldingBufferPinThatDelaysRecovery() -> bool; } - btint4cmp(arg_fcinfo) + HoldingBufferPinThatDelaysRecovery() }) } -pub unsafe fn btfloat4cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AbortBufferIO() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat4cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AbortBufferIO(); } - btfloat4cmp(arg_fcinfo) + AbortBufferIO() }) } -pub unsafe fn btfloat8cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufmgrCommit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat8cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufmgrCommit(); } - btfloat8cmp(arg_fcinfo) + BufmgrCommit() }) } -pub unsafe fn btoidcmp(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 btoidcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BgBufferSync(arg_wb_context: *mut WritebackContext) -> bool; } - btoidcmp(arg_fcinfo) + BgBufferSync(arg_wb_context) }) } -pub unsafe fn btabstimecmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AtProcExit_LocalBuffers() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btabstimecmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtProcExit_LocalBuffers(); } - btabstimecmp(arg_fcinfo) + AtProcExit_LocalBuffers() }) } -pub unsafe fn btcharcmp(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 btcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TestForOldSnapshot_impl(arg_snapshot: Snapshot, arg_relation: Relation); } - btcharcmp(arg_fcinfo) + TestForOldSnapshot_impl(arg_snapshot, arg_relation) }) } -pub unsafe fn btnamecmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetAccessStrategy(arg_btype: BufferAccessStrategyType) -> BufferAccessStrategy { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btnamecmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetAccessStrategy(arg_btype: BufferAccessStrategyType) -> BufferAccessStrategy; } - btnamecmp(arg_fcinfo) + GetAccessStrategy(arg_btype) }) } -pub unsafe fn bttextcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FreeAccessStrategy(arg_strategy: BufferAccessStrategy) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bttextcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FreeAccessStrategy(arg_strategy: BufferAccessStrategy); } - bttextcmp(arg_fcinfo) + FreeAccessStrategy(arg_strategy) }) } -pub unsafe fn lseg_distance(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 lseg_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileCreateTemp(arg_interXact: bool) -> *mut BufFile; } - lseg_distance(arg_fcinfo) + BufFileCreateTemp(arg_interXact) }) } -pub unsafe fn lseg_interpt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufFileClose(arg_file: *mut BufFile) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_interpt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileClose(arg_file: *mut BufFile); } - lseg_interpt(arg_fcinfo) + BufFileClose(arg_file) }) } -pub unsafe fn dist_ps(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 dist_ps(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileRead( + arg_file: *mut BufFile, + arg_ptr: *mut ::std::os::raw::c_void, + arg_size: usize, + ) -> usize; } - dist_ps(arg_fcinfo) + BufFileRead(arg_file, arg_ptr, arg_size) }) } -pub unsafe fn dist_pb(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 dist_pb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileWrite( + arg_file: *mut BufFile, + arg_ptr: *mut ::std::os::raw::c_void, + arg_size: usize, + ) -> usize; } - dist_pb(arg_fcinfo) + BufFileWrite(arg_file, arg_ptr, arg_size) }) } -pub unsafe fn dist_sb(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 dist_sb(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; } - dist_sb(arg_fcinfo) + BufFileSeek(arg_file, arg_fileno, arg_offset, arg_whence) }) } -pub unsafe fn close_ps(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 close_ps(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileTell( + arg_file: *mut BufFile, + arg_fileno: *mut ::std::os::raw::c_int, + arg_offset: *mut off_t, + ); } - close_ps(arg_fcinfo) + BufFileTell(arg_file, arg_fileno, arg_offset) }) } -pub unsafe fn close_pb(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 close_pb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileSeekBlock( + arg_file: *mut BufFile, + arg_blknum: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } - close_pb(arg_fcinfo) + BufFileSeekBlock(arg_file, arg_blknum) }) } -pub unsafe fn close_sb(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 close_sb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn proc_exit(arg_code: ::std::os::raw::c_int); } - close_sb(arg_fcinfo) + proc_exit(arg_code) }) } -pub unsafe fn on_ps(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 on_ps(arg_fcinfo: FunctionCallInfo) -> Datum; + fn shmem_exit(arg_code: ::std::os::raw::c_int); } - on_ps(arg_fcinfo) + shmem_exit(arg_code) }) } -pub unsafe fn path_distance(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 path_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_proc_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); } - path_distance(arg_fcinfo) + on_proc_exit(arg_function, arg_arg) }) } -pub unsafe fn dist_ppath(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 dist_ppath(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); } - dist_ppath(arg_fcinfo) + on_shmem_exit(arg_function, arg_arg) }) } -pub unsafe fn on_sb(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 on_sb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); } - on_sb(arg_fcinfo) + before_shmem_exit(arg_function, arg_arg) }) } -pub unsafe fn inter_sb(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 inter_sb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cancel_before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); } - inter_sb(arg_fcinfo) + cancel_before_shmem_exit(arg_function, arg_arg) }) } -pub unsafe fn text_to_array_null(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_exit_reset() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_to_array_null(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_exit_reset(); } - text_to_array_null(arg_fcinfo) + on_exit_reset() }) } -pub unsafe fn cash_cmp(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 cash_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CreateSharedMemoryAndSemaphores(arg_port: ::std::os::raw::c_int); } - cash_cmp(arg_fcinfo) + CreateSharedMemoryAndSemaphores(arg_port) }) } -pub unsafe fn array_append(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn standby_redo(arg_record: *mut XLogReaderState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_append(arg_fcinfo: FunctionCallInfo) -> Datum; + fn standby_redo(arg_record: *mut XLogReaderState); } - array_append(arg_fcinfo) + standby_redo(arg_record) }) } -pub unsafe fn array_prepend(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 array_prepend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn standby_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState); } - array_prepend(arg_fcinfo) + standby_desc(arg_buf, arg_record) }) } -pub unsafe fn btreltimecmp(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 btreltimecmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn standby_identify(arg_info: uint8) -> *const ::std::os::raw::c_char; } - btreltimecmp(arg_fcinfo) + standby_identify(arg_info) }) } -pub unsafe fn bttintervalcmp(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 bttintervalcmp(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, + ); } - bttintervalcmp(arg_fcinfo) + standby_desc_invalidations( + arg_buf, + arg_nmsgs, + arg_msgs, + arg_dbId, + arg_tsId, + arg_relcacheInitFileInval, + ) }) } -pub unsafe fn btarraycmp(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() + } + } +} +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 btarraycmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcSignalShmemSize() -> Size; } - btarraycmp(arg_fcinfo) + ProcSignalShmemSize() }) } -pub unsafe fn array_cat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcSignalShmemInit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_cat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcSignalShmemInit(); } - array_cat(arg_fcinfo) + ProcSignalShmemInit() }) } -pub unsafe fn array_to_text_null(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 array_to_text_null(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcSignalInit(arg_pss_idx: ::std::os::raw::c_int); } - array_to_text_null(arg_fcinfo) + ProcSignalInit(arg_pss_idx) }) } -pub unsafe fn array_ne(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 array_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SendProcSignal( + arg_pid: pid_t, + arg_reason: ProcSignalReason, + arg_backendId: BackendId, + ) -> ::std::os::raw::c_int; } - array_ne(arg_fcinfo) + SendProcSignal(arg_pid, arg_reason, arg_backendId) }) } -pub unsafe fn array_lt(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 array_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn procsignal_sigusr1_handler(arg_postgres_signal_arg: ::std::os::raw::c_int); } - array_lt(arg_fcinfo) + procsignal_sigusr1_handler(arg_postgres_signal_arg) }) } -pub unsafe fn array_gt(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 array_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InitRecoveryTransactionEnvironment(); } - array_gt(arg_fcinfo) + InitRecoveryTransactionEnvironment() }) } -pub unsafe fn array_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ShutdownRecoveryTransactionEnvironment() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ShutdownRecoveryTransactionEnvironment(); } - array_le(arg_fcinfo) + ShutdownRecoveryTransactionEnvironment() }) } -pub unsafe fn text_to_array(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 text_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveRecoveryConflictWithSnapshot( + arg_latestRemovedXid: TransactionId, + arg_node: RelFileNode, + ); } - text_to_array(arg_fcinfo) + ResolveRecoveryConflictWithSnapshot(arg_latestRemovedXid, arg_node) }) } -pub unsafe fn array_to_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResolveRecoveryConflictWithTablespace(arg_tsid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_to_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveRecoveryConflictWithTablespace(arg_tsid: Oid); } - array_to_text(arg_fcinfo) + ResolveRecoveryConflictWithTablespace(arg_tsid) }) } -pub unsafe fn array_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResolveRecoveryConflictWithDatabase(arg_dbid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveRecoveryConflictWithDatabase(arg_dbid: Oid); } - array_ge(arg_fcinfo) + ResolveRecoveryConflictWithDatabase(arg_dbid) }) } -pub unsafe fn hashmacaddr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResolveRecoveryConflictWithLock(arg_locktag: LOCKTAG) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashmacaddr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveRecoveryConflictWithLock(arg_locktag: LOCKTAG); } - hashmacaddr(arg_fcinfo) + ResolveRecoveryConflictWithLock(arg_locktag) }) } -pub unsafe fn hashtext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResolveRecoveryConflictWithBufferPin() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashtext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveRecoveryConflictWithBufferPin(); } - hashtext(arg_fcinfo) + ResolveRecoveryConflictWithBufferPin() }) } -pub unsafe fn rtrim1(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CheckRecoveryConflictDeadlock() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rtrim1(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CheckRecoveryConflictDeadlock(); } - rtrim1(arg_fcinfo) + CheckRecoveryConflictDeadlock() }) } -pub unsafe fn btoidvectorcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyDeadLockHandler() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btoidvectorcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyDeadLockHandler(); } - btoidvectorcmp(arg_fcinfo) + StandbyDeadLockHandler() }) } -pub unsafe fn name_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyTimeoutHandler() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn name_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyTimeoutHandler(); } - name_text(arg_fcinfo) + StandbyTimeoutHandler() }) } -pub unsafe fn text_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyLockTimeoutHandler() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyLockTimeoutHandler(); } - text_name(arg_fcinfo) + StandbyLockTimeoutHandler() }) } -pub unsafe fn name_bpchar(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 name_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyAcquireAccessExclusiveLock( + arg_xid: TransactionId, + arg_dbOid: Oid, + arg_relOid: Oid, + ); } - name_bpchar(arg_fcinfo) + StandbyAcquireAccessExclusiveLock(arg_xid, arg_dbOid, arg_relOid) }) } -pub unsafe fn bpchar_name(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 bpchar_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyReleaseLockTree( + arg_xid: TransactionId, + arg_nsubxids: ::std::os::raw::c_int, + arg_subxids: *mut TransactionId, + ); } - bpchar_name(arg_fcinfo) + StandbyReleaseLockTree(arg_xid, arg_nsubxids, arg_subxids) }) } -pub unsafe fn hashinet(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyReleaseAllLocks() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashinet(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyReleaseAllLocks(); } - hashinet(arg_fcinfo) + StandbyReleaseAllLocks() }) } -pub unsafe fn hash_numeric(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 hash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyReleaseOldLocks( + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - hash_numeric(arg_fcinfo) + StandbyReleaseOldLocks(arg_nxids, arg_xids) }) } -pub unsafe fn macaddr_in(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() + } + } +} +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 macaddr_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LogAccessExclusiveLock(arg_dbOid: Oid, arg_relOid: Oid); } - macaddr_in(arg_fcinfo) + LogAccessExclusiveLock(arg_dbOid, arg_relOid) }) } -pub unsafe fn macaddr_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LogAccessExclusiveLockPrepare() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LogAccessExclusiveLockPrepare(); } - macaddr_out(arg_fcinfo) + LogAccessExclusiveLockPrepare() }) } -pub unsafe fn pg_num_nulls(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LogStandbySnapshot() -> XLogRecPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_num_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LogStandbySnapshot() -> XLogRecPtr; } - pg_num_nulls(arg_fcinfo) + LogStandbySnapshot() }) } -pub unsafe fn pg_num_nonnulls(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 pg_num_nonnulls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LogStandbyInvalidations( + arg_nmsgs: ::std::os::raw::c_int, + arg_msgs: *mut SharedInvalidationMessage, + arg_relcacheInitFileInval: bool, + ); } - pg_num_nonnulls(arg_fcinfo) + LogStandbyInvalidations(arg_nmsgs, arg_msgs, arg_relcacheInitFileInval) }) } -pub unsafe fn hashint2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashint2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayShmemSize() -> Size; } - hashint2(arg_fcinfo) + ProcArrayShmemSize() }) } -pub unsafe fn hashint4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CreateSharedProcArray() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashint4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CreateSharedProcArray(); } - hashint4(arg_fcinfo) + CreateSharedProcArray() }) } -pub unsafe fn hashfloat4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayAdd(arg_proc_: *mut PGPROC) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashfloat4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayAdd(arg_proc_: *mut PGPROC); } - hashfloat4(arg_fcinfo) + ProcArrayAdd(arg_proc_) }) } -pub unsafe fn hashfloat8(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 hashfloat8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayRemove(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId); } - hashfloat8(arg_fcinfo) + ProcArrayRemove(arg_proc_, arg_latestXid) }) } -pub unsafe fn hashoid(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 hashoid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayEndTransaction(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId); } - hashoid(arg_fcinfo) + ProcArrayEndTransaction(arg_proc_, arg_latestXid) }) } -pub unsafe fn hashchar(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayClearTransaction(arg_proc_: *mut PGPROC) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashchar(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayClearTransaction(arg_proc_: *mut PGPROC); } - hashchar(arg_fcinfo) + ProcArrayClearTransaction(arg_proc_) }) } -pub unsafe fn hashname(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayInitRecovery(arg_initializedUptoXID: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashname(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayInitRecovery(arg_initializedUptoXID: TransactionId); } - hashname(arg_fcinfo) + ProcArrayInitRecovery(arg_initializedUptoXID) }) } -pub unsafe fn hashvarlena(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayApplyRecoveryInfo(arg_running: RunningTransactions) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashvarlena(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayApplyRecoveryInfo(arg_running: RunningTransactions); } - hashvarlena(arg_fcinfo) + ProcArrayApplyRecoveryInfo(arg_running) }) } -pub unsafe fn hashoidvector(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 hashoidvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayApplyXidAssignment( + arg_topxid: TransactionId, + arg_nsubxids: ::std::os::raw::c_int, + arg_subxids: *mut TransactionId, + ); } - hashoidvector(arg_fcinfo) + ProcArrayApplyXidAssignment(arg_topxid, arg_nsubxids, arg_subxids) }) } -pub unsafe fn text_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RecordKnownAssignedTransactionIds(arg_xid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RecordKnownAssignedTransactionIds(arg_xid: TransactionId); } - text_larger(arg_fcinfo) + RecordKnownAssignedTransactionIds(arg_xid) }) } -pub unsafe fn text_smaller(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 text_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExpireTreeKnownAssignedTransactionIds( + arg_xid: TransactionId, + arg_nsubxids: ::std::os::raw::c_int, + arg_subxids: *mut TransactionId, + arg_max_xid: TransactionId, + ); } - text_smaller(arg_fcinfo) + ExpireTreeKnownAssignedTransactionIds(arg_xid, arg_nsubxids, arg_subxids, arg_max_xid) }) } -pub unsafe fn int8in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ExpireAllKnownAssignedTransactionIds() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExpireAllKnownAssignedTransactionIds(); } - int8in(arg_fcinfo) + ExpireAllKnownAssignedTransactionIds() }) } -pub unsafe fn int8out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ExpireOldKnownAssignedTransactionIds(arg_xid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExpireOldKnownAssignedTransactionIds(arg_xid: TransactionId); } - int8out(arg_fcinfo) + ExpireOldKnownAssignedTransactionIds(arg_xid) }) } -pub unsafe fn int8um(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetMaxSnapshotXidCount() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8um(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetMaxSnapshotXidCount() -> ::std::os::raw::c_int; } - int8um(arg_fcinfo) + GetMaxSnapshotXidCount() }) } -pub unsafe fn int8pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetMaxSnapshotSubxidCount() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetMaxSnapshotSubxidCount() -> ::std::os::raw::c_int; } - int8pl(arg_fcinfo) + GetMaxSnapshotSubxidCount() }) } -pub unsafe fn int8mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetSnapshotData(arg_snapshot: Snapshot) -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetSnapshotData(arg_snapshot: Snapshot) -> Snapshot; } - int8mi(arg_fcinfo) + GetSnapshotData(arg_snapshot) }) } -pub unsafe fn int8mul(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 int8mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayInstallImportedXmin( + arg_xmin: TransactionId, + arg_sourcevxid: *mut VirtualTransactionId, + ) -> bool; } - int8mul(arg_fcinfo) + ProcArrayInstallImportedXmin(arg_xmin, arg_sourcevxid) }) } -pub unsafe fn int8div(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 int8div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayInstallRestoredXmin( + arg_xmin: TransactionId, + arg_proc_: *mut PGPROC, + ) -> bool; } - int8div(arg_fcinfo) + ProcArrayInstallRestoredXmin(arg_xmin, arg_proc_) }) } -pub unsafe fn int8eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetRunningTransactionData() -> RunningTransactions { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetRunningTransactionData() -> RunningTransactions; } - int8eq(arg_fcinfo) + GetRunningTransactionData() }) } -pub unsafe fn int8ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn TransactionIdIsInProgress(arg_xid: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TransactionIdIsInProgress(arg_xid: TransactionId) -> bool; } - int8ne(arg_fcinfo) + TransactionIdIsInProgress(arg_xid) }) } -pub unsafe fn int8lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn TransactionIdIsActive(arg_xid: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TransactionIdIsActive(arg_xid: TransactionId) -> bool; } - int8lt(arg_fcinfo) + TransactionIdIsActive(arg_xid) }) } -pub unsafe fn int8gt(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 int8gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetOldestXmin(arg_rel: Relation, arg_flags: ::std::os::raw::c_int) -> TransactionId; } - int8gt(arg_fcinfo) + GetOldestXmin(arg_rel, arg_flags) }) } -pub unsafe fn int8le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetOldestActiveTransactionId() -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetOldestActiveTransactionId() -> TransactionId; } - int8le(arg_fcinfo) + GetOldestActiveTransactionId() }) } -pub unsafe fn int8ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetOldestSafeDecodingTransactionId(arg_catalogOnly: bool) -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetOldestSafeDecodingTransactionId(arg_catalogOnly: bool) -> TransactionId; } - int8ge(arg_fcinfo) + GetOldestSafeDecodingTransactionId(arg_catalogOnly) }) } -pub unsafe fn int84eq(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 int84eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetVirtualXIDsDelayingChkpt( + arg_nvxids: *mut ::std::os::raw::c_int, + ) -> *mut VirtualTransactionId; } - int84eq(arg_fcinfo) + GetVirtualXIDsDelayingChkpt(arg_nvxids) }) } -pub unsafe fn int84ne(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 int84ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, + ) -> *mut VirtualTransactionId; } - int84ne(arg_fcinfo) + GetVirtualXIDsDelayingChkptEnd(arg_nvxids) }) } -pub unsafe fn int84lt(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 int84lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HaveVirtualXIDsDelayingChkpt( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, + ) -> bool; } - int84lt(arg_fcinfo) + HaveVirtualXIDsDelayingChkpt(arg_vxids, arg_nvxids) }) } -pub unsafe fn int84gt(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 int84gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, + ) -> bool; } - int84gt(arg_fcinfo) + HaveVirtualXIDsDelayingChkptEnd(arg_vxids, arg_nvxids) }) } -pub unsafe fn int84le(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 int84le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; } - int84le(arg_fcinfo) + BackendPidGetProc(arg_pid) }) } -pub unsafe fn int84ge(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 int84ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BackendPidGetProcWithLock(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; } - int84ge(arg_fcinfo) + BackendPidGetProcWithLock(arg_pid) }) } -pub unsafe fn int84(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 int84(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BackendXidGetPid(arg_xid: TransactionId) -> ::std::os::raw::c_int; } - int84(arg_fcinfo) + BackendXidGetPid(arg_xid) }) } -pub unsafe fn int48(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 int48(arg_fcinfo: FunctionCallInfo) -> Datum; + fn IsBackendPid(arg_pid: ::std::os::raw::c_int) -> bool; } - int48(arg_fcinfo) + IsBackendPid(arg_pid) }) } -pub unsafe fn i8tod(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 i8tod(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; } - i8tod(arg_fcinfo) + GetCurrentVirtualXIDs( + arg_limitXmin, + arg_excludeXmin0, + arg_allDbs, + arg_excludeVacuum, + arg_nvxids, + ) }) } -pub unsafe fn dtoi8(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 dtoi8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetConflictingVirtualXIDs( + arg_limitXmin: TransactionId, + arg_dbOid: Oid, + ) -> *mut VirtualTransactionId; } - dtoi8(arg_fcinfo) + GetConflictingVirtualXIDs(arg_limitXmin, arg_dbOid) }) } -pub unsafe fn array_larger(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 array_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CancelVirtualTransaction( + arg_vxid: VirtualTransactionId, + arg_sigmode: ProcSignalReason, + ) -> pid_t; } - array_larger(arg_fcinfo) + CancelVirtualTransaction(arg_vxid, arg_sigmode) }) } -pub unsafe fn array_smaller(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 array_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SignalVirtualTransaction( + arg_vxid: VirtualTransactionId, + arg_sigmode: ProcSignalReason, + arg_conflictPending: bool, + ) -> pid_t; } - array_smaller(arg_fcinfo) + SignalVirtualTransaction(arg_vxid, arg_sigmode, arg_conflictPending) }) } -pub unsafe fn inet_abbrev(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 inet_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MinimumActiveBackends(arg_min: ::std::os::raw::c_int) -> bool; } - inet_abbrev(arg_fcinfo) + MinimumActiveBackends(arg_min) }) } -pub unsafe fn cidr_abbrev(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 cidr_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CountDBBackends(arg_databaseid: Oid) -> ::std::os::raw::c_int; } - cidr_abbrev(arg_fcinfo) + CountDBBackends(arg_databaseid) }) } -pub unsafe fn inet_set_masklen(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 inet_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CountDBConnections(arg_databaseid: Oid) -> ::std::os::raw::c_int; } - inet_set_masklen(arg_fcinfo) + CountDBConnections(arg_databaseid) }) } -pub unsafe fn oidvectorne(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 oidvectorne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CancelDBBackends( + arg_databaseid: Oid, + arg_sigmode: ProcSignalReason, + arg_conflictPending: bool, + ); } - oidvectorne(arg_fcinfo) + CancelDBBackends(arg_databaseid, arg_sigmode, arg_conflictPending) }) } -pub unsafe fn hash_array(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 hash_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CountUserBackends(arg_roleid: Oid) -> ::std::os::raw::c_int; } - hash_array(arg_fcinfo) + CountUserBackends(arg_roleid) }) } -pub unsafe fn cidr_set_masklen(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 cidr_set_masklen(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; } - cidr_set_masklen(arg_fcinfo) + CountOtherDBBackends(arg_databaseId, arg_nbackends, arg_nprepared) }) } -pub unsafe fn pg_indexam_has_property(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 pg_indexam_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; + fn XidCacheRemoveRunningXids( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *const TransactionId, + arg_latestXid: TransactionId, + ); } - pg_indexam_has_property(arg_fcinfo) + XidCacheRemoveRunningXids(arg_xid, arg_nxids, arg_xids, arg_latestXid) }) } -pub unsafe fn pg_index_has_property(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 pg_index_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArraySetReplicationSlotXmin( + arg_xmin: TransactionId, + arg_catalog_xmin: TransactionId, + arg_already_locked: bool, + ); } - pg_index_has_property(arg_fcinfo) + ProcArraySetReplicationSlotXmin(arg_xmin, arg_catalog_xmin, arg_already_locked) }) } -pub unsafe fn pg_index_column_has_property(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 pg_index_column_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayGetReplicationSlotXmin( + arg_xmin: *mut TransactionId, + arg_catalog_xmin: *mut TransactionId, + ); } - pg_index_column_has_property(arg_fcinfo) + ProcArrayGetReplicationSlotXmin(arg_xmin, arg_catalog_xmin) }) } -pub unsafe fn i8tof(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn i8tof(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() } - i8tof(arg_fcinfo) - }) + } } -pub unsafe fn ftoi8(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 ftoi8(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; } - ftoi8(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 namelt(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 namelt(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; } - namelt(arg_fcinfo) + ParseConfigFp(arg_fp, arg_config_file, arg_depth, arg_elevel, arg_head_p, arg_tail_p) }) } -pub unsafe fn namele(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 namele(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; } - namele(arg_fcinfo) + ParseConfigDirectory( + arg_includedir, + arg_calling_file, + arg_calling_lineno, + arg_depth, + arg_elevel, + arg_head_p, + arg_tail_p, + ) }) } -pub unsafe fn namegt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FreeConfigVariables(arg_list: *mut ConfigVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namegt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FreeConfigVariables(arg_list: *mut ConfigVariable); } - namegt(arg_fcinfo) + FreeConfigVariables(arg_list) }) } -pub unsafe fn namege(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() + } + } +} +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; +} +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 namege(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, + ); } - namege(arg_fcinfo) + SetConfigOption(arg_name, arg_value, arg_context, arg_source) }) } -pub unsafe fn namene(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 namene(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, + ); } - namene(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 bpchar(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 bpchar(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, + ); } - bpchar(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 varchar(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 varchar(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, + ); } - varchar(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 mktinterval(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 mktinterval(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, + ); } - mktinterval(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 oidvectorlt(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 oidvectorlt(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, + ); } - oidvectorlt(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 oidvectorle(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 oidvectorle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn EmitWarningsOnPlaceholders(arg_className: *const ::std::os::raw::c_char); } - oidvectorle(arg_fcinfo) + EmitWarningsOnPlaceholders(arg_className) }) } -pub unsafe fn oidvectoreq(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 oidvectoreq(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; } - oidvectoreq(arg_fcinfo) + GetConfigOption(arg_name, arg_missing_ok, arg_restrict_privileged) }) } -pub unsafe fn oidvectorge(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 oidvectorge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetConfigOptionResetString( + arg_name: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } - oidvectorge(arg_fcinfo) + GetConfigOptionResetString(arg_name) }) } -pub unsafe fn oidvectorgt(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 oidvectorgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetConfigOptionFlags( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> ::std::os::raw::c_int; } - oidvectorgt(arg_fcinfo) + GetConfigOptionFlags(arg_name, arg_missing_ok) }) } -pub unsafe fn network_network(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcessConfigFile(arg_context: GucContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_network(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcessConfigFile(arg_context: GucContext); } - network_network(arg_fcinfo) + ProcessConfigFile(arg_context) }) } -pub unsafe fn network_netmask(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InitializeGUCOptions() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_netmask(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InitializeGUCOptions(); } - network_netmask(arg_fcinfo) + InitializeGUCOptions() }) } -pub unsafe fn network_masklen(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 network_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SelectConfigFiles( + arg_userDoption: *const ::std::os::raw::c_char, + arg_progname: *const ::std::os::raw::c_char, + ) -> bool; } - network_masklen(arg_fcinfo) + SelectConfigFiles(arg_userDoption, arg_progname) }) } -pub unsafe fn network_broadcast(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResetAllOptions() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_broadcast(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResetAllOptions(); } - network_broadcast(arg_fcinfo) + ResetAllOptions() }) } -pub unsafe fn network_host(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AtStart_GUC() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_host(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtStart_GUC(); } - network_host(arg_fcinfo) + AtStart_GUC() }) } -pub unsafe fn current_user(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn NewGUCNestLevel() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn current_user(arg_fcinfo: FunctionCallInfo) -> Datum; + fn NewGUCNestLevel() -> ::std::os::raw::c_int; } - current_user(arg_fcinfo) + NewGUCNestLevel() }) } -pub unsafe fn network_family(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 network_family(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtEOXact_GUC(arg_isCommit: bool, arg_nestLevel: ::std::os::raw::c_int); } - network_family(arg_fcinfo) + AtEOXact_GUC(arg_isCommit, arg_nestLevel) }) } -pub unsafe fn int82(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BeginReportingGUCOptions() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BeginReportingGUCOptions(); } - int82(arg_fcinfo) + BeginReportingGUCOptions() }) } -pub unsafe fn be_lo_create(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 be_lo_create(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, + ); } - be_lo_create(arg_fcinfo) + ParseLongOption(arg_string, arg_name, arg_value) }) } -pub unsafe fn oidlt(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 oidlt(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; } - oidlt(arg_fcinfo) + parse_int(arg_value, arg_result, arg_flags, arg_hintmsg) }) } -pub unsafe fn oidle(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 oidle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn parse_real(arg_value: *const ::std::os::raw::c_char, arg_result: *mut f64) -> bool; } - oidle(arg_fcinfo) + parse_real(arg_value, arg_result) }) } -pub unsafe fn byteaoctetlen(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 byteaoctetlen(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; } - byteaoctetlen(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 byteaGetByte(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AlterSystemSetConfigFile(arg_setstmt: *mut AlterSystemStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaGetByte(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AlterSystemSetConfigFile(arg_setstmt: *mut AlterSystemStmt); } - byteaGetByte(arg_fcinfo) + AlterSystemSetConfigFile(arg_setstmt) }) } -pub unsafe fn byteaSetByte(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 byteaSetByte(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; } - byteaSetByte(arg_fcinfo) + GetConfigOptionByName(arg_name, arg_varname, arg_missing_ok) }) } -pub unsafe fn byteaGetBit(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 byteaGetBit(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, + ); } - byteaGetBit(arg_fcinfo) + GetConfigOptionByNum(arg_varnum, arg_values, arg_noshow) }) } -pub unsafe fn byteaSetBit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetNumConfigOptions() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaSetBit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetNumConfigOptions() -> ::std::os::raw::c_int; } - byteaSetBit(arg_fcinfo) + GetNumConfigOptions() }) } -pub unsafe fn dist_pl(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 dist_pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SetPGVariable( + arg_name: *const ::std::os::raw::c_char, + arg_args: *mut List, + arg_is_local: bool, + ); } - dist_pl(arg_fcinfo) + SetPGVariable(arg_name, arg_args, arg_is_local) }) } -pub unsafe fn dist_lb(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 dist_lb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetPGVariable(arg_name: *const ::std::os::raw::c_char, arg_dest: *mut DestReceiver); } - dist_lb(arg_fcinfo) + GetPGVariable(arg_name, arg_dest) }) } -pub unsafe fn dist_sl(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 dist_sl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetPGVariableResultDesc(arg_name: *const ::std::os::raw::c_char) -> TupleDesc; } - dist_sl(arg_fcinfo) + GetPGVariableResultDesc(arg_name) }) } -pub unsafe fn dist_cpoly(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 dist_cpoly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExecSetVariableStmt(arg_stmt: *mut VariableSetStmt, arg_isTopLevel: bool); } - dist_cpoly(arg_fcinfo) + ExecSetVariableStmt(arg_stmt, arg_isTopLevel) }) } -pub unsafe fn poly_distance(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 poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExtractSetVariableArgs( + arg_stmt: *mut VariableSetStmt, + ) -> *mut ::std::os::raw::c_char; } - poly_distance(arg_fcinfo) + ExtractSetVariableArgs(arg_stmt) }) } -pub unsafe fn network_show(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 network_show(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcessGUCArray( + arg_array: *mut ArrayType, + arg_context: GucContext, + arg_source: GucSource, + arg_action: GucAction, + ); } - network_show(arg_fcinfo) + ProcessGUCArray(arg_array, arg_context, arg_source, arg_action) }) } -pub unsafe fn text_lt(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 text_lt(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; } - text_lt(arg_fcinfo) + GUCArrayAdd(arg_array, arg_name, arg_value) }) } -pub unsafe fn text_le(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 text_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GUCArrayDelete( + arg_array: *mut ArrayType, + arg_name: *const ::std::os::raw::c_char, + ) -> *mut ArrayType; } - text_le(arg_fcinfo) + GUCArrayDelete(arg_array, arg_name) }) } -pub unsafe fn text_gt(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 text_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GUCArrayReset(arg_array: *mut ArrayType) -> *mut ArrayType; } - text_gt(arg_fcinfo) + GUCArrayReset(arg_array) }) } -pub unsafe fn text_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn EstimateGUCStateSpace() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn EstimateGUCStateSpace() -> Size; } - text_ge(arg_fcinfo) + EstimateGUCStateSpace() }) } -pub unsafe fn array_eq(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 array_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SerializeGUCState(arg_maxsize: Size, arg_start_address: *mut ::std::os::raw::c_char); } - array_eq(arg_fcinfo) + SerializeGUCState(arg_maxsize, arg_start_address) }) } -pub unsafe fn session_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 session_user(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RestoreGUCState(arg_gucstate: *mut ::std::os::raw::c_void); } - session_user(arg_fcinfo) + RestoreGUCState(arg_gucstate) }) } -pub unsafe fn array_dims(arg_fcinfo: FunctionCallInfo) -> Datum { +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) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_dims(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GUC_check_errcode(arg_sqlerrcode: ::std::os::raw::c_int); } - array_dims(arg_fcinfo) + GUC_check_errcode(arg_sqlerrcode) }) } -pub unsafe fn array_ndims(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 array_ndims(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; } - array_ndims(arg_fcinfo) + check_default_tablespace(arg_newval, arg_extra, arg_source) }) } -pub unsafe fn byteaoverlay(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 byteaoverlay(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; } - byteaoverlay(arg_fcinfo) + check_temp_tablespaces(arg_newval, arg_extra, arg_source) }) } -pub unsafe fn array_in(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 array_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn assign_temp_tablespaces( + arg_newval: *const ::std::os::raw::c_char, + arg_extra: *mut ::std::os::raw::c_void, + ); } - array_in(arg_fcinfo) + assign_temp_tablespaces(arg_newval, arg_extra) }) } -pub unsafe fn array_out(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 array_out(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; } - array_out(arg_fcinfo) + check_search_path(arg_newval, arg_extra, arg_source) }) } -pub unsafe fn byteaoverlay_no_len(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 byteaoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn assign_search_path( + arg_newval: *const ::std::os::raw::c_char, + arg_extra: *mut ::std::os::raw::c_void, + ); } - byteaoverlay_no_len(arg_fcinfo) + assign_search_path(arg_newval, arg_extra) }) } -pub unsafe fn macaddr_trunc(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 macaddr_trunc(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; } - macaddr_trunc(arg_fcinfo) + check_wal_buffers(arg_newval, arg_extra, arg_source) }) } -pub unsafe fn int28(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 int28(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, + ); } - int28(arg_fcinfo) + assign_xlog_sync_method(arg_new_sync_method, arg_extra) }) } -pub unsafe fn smgrin(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 smgrin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_parse_query(arg_query_string: *const ::std::os::raw::c_char) -> *mut List; } - smgrin(arg_fcinfo) + pg_parse_query(arg_query_string) }) } -pub unsafe fn smgrout(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 smgrout(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; } - smgrout(arg_fcinfo) + pg_analyze_and_rewrite( + arg_parsetree, + arg_query_string, + arg_paramTypes, + arg_numParams, + arg_queryEnv, + ) }) } -pub unsafe fn smgreq(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 smgreq(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; } - smgreq(arg_fcinfo) + pg_analyze_and_rewrite_params( + arg_parsetree, + arg_query_string, + arg_parserSetup, + arg_parserSetupArg, + arg_queryEnv, + ) }) } -pub unsafe fn smgrne(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 smgrne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_plan_query( + arg_querytree: *mut Query, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, + ) -> *mut PlannedStmt; } - smgrne(arg_fcinfo) + pg_plan_query(arg_querytree, arg_cursorOptions, arg_boundParams) }) } -pub unsafe fn be_lo_import(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 be_lo_import(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_plan_queries( + arg_querytrees: *mut List, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, + ) -> *mut List; } - be_lo_import(arg_fcinfo) + pg_plan_queries(arg_querytrees, arg_cursorOptions, arg_boundParams) }) } -pub unsafe fn be_lo_export(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 be_lo_export(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; } - be_lo_export(arg_fcinfo) + check_max_stack_depth(arg_newval, arg_extra, arg_source) }) } -pub unsafe fn int4inc(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 int4inc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn assign_max_stack_depth( + arg_newval: ::std::os::raw::c_int, + arg_extra: *mut ::std::os::raw::c_void, + ); } - int4inc(arg_fcinfo) + assign_max_stack_depth(arg_newval, arg_extra) }) } -pub unsafe fn be_lo_import_with_oid(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 be_lo_import_with_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn die(arg_postgres_signal_arg: ::std::os::raw::c_int); } - be_lo_import_with_oid(arg_fcinfo) + die(arg_postgres_signal_arg) }) } -pub unsafe fn int4larger(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 int4larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn quickdie(arg_postgres_signal_arg: ::std::os::raw::c_int); } - int4larger(arg_fcinfo) + quickdie(arg_postgres_signal_arg) }) } -pub unsafe fn int4smaller(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 int4smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StatementCancelHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); } - int4smaller(arg_fcinfo) + StatementCancelHandler(arg_postgres_signal_arg) }) } -pub unsafe fn int2larger(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 int2larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FloatExceptionHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); } - int2larger(arg_fcinfo) + FloatExceptionHandler(arg_postgres_signal_arg) }) } -pub unsafe fn int2smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RecoveryConflictInterrupt(arg_reason: ProcSignalReason) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RecoveryConflictInterrupt(arg_reason: ProcSignalReason); } - int2smaller(arg_fcinfo) + RecoveryConflictInterrupt(arg_reason) }) } -pub unsafe fn tintervaleq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcessClientReadInterrupt(arg_blocked: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervaleq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcessClientReadInterrupt(arg_blocked: bool); } - tintervaleq(arg_fcinfo) + ProcessClientReadInterrupt(arg_blocked) }) } -pub unsafe fn tintervalne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcessClientWriteInterrupt(arg_blocked: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcessClientWriteInterrupt(arg_blocked: bool); } - tintervalne(arg_fcinfo) + ProcessClientWriteInterrupt(arg_blocked) }) } -pub unsafe fn tintervallt(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 tintervallt(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, + ); } - tintervallt(arg_fcinfo) + process_postgres_switches(arg_argc, arg_argv, arg_ctx, arg_dbname) }) } -pub unsafe fn tintervalgt(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 tintervalgt(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, + ); } - tintervalgt(arg_fcinfo) + PostgresMain(arg_argc, arg_argv, arg_dbname, arg_username) }) } -pub unsafe fn tintervalle(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 tintervalle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_stack_depth_rlimit() -> ::std::os::raw::c_long; } - tintervalle(arg_fcinfo) + get_stack_depth_rlimit() }) } -pub unsafe fn tintervalge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResetUsage() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResetUsage(); } - tintervalge(arg_fcinfo) + ResetUsage() }) } -pub unsafe fn pg_client_encoding(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 pg_client_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ShowUsage(arg_title: *const ::std::os::raw::c_char); } - pg_client_encoding(arg_fcinfo) + ShowUsage(arg_title) }) } -pub unsafe fn current_query(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 current_query(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; } - current_query(arg_fcinfo) + check_log_duration(arg_msec_str, arg_was_logged) }) } -pub unsafe fn macaddr_eq(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 macaddr_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn set_debug_options( + arg_debug_flag: ::std::os::raw::c_int, + arg_context: GucContext, + arg_source: GucSource, + ); } - macaddr_eq(arg_fcinfo) + set_debug_options(arg_debug_flag, arg_context, arg_source) }) } -pub unsafe fn macaddr_lt(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 macaddr_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn set_plan_disabling_options( + arg_arg: *const ::std::os::raw::c_char, + arg_context: GucContext, + arg_source: GucSource, + ) -> bool; } - macaddr_lt(arg_fcinfo) + set_plan_disabling_options(arg_arg, arg_context, arg_source) }) } -pub unsafe fn macaddr_le(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 macaddr_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_stats_option_name( + arg_arg: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } - macaddr_le(arg_fcinfo) + get_stats_option_name(arg_arg) }) } -pub unsafe fn macaddr_gt(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 macaddr_gt(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, + ); } - macaddr_gt(arg_fcinfo) + ProcessUtility( + arg_pstmt, + arg_queryString, + arg_context, + arg_params, + arg_queryEnv, + arg_dest, + arg_completionTag, + ) }) } -pub unsafe fn macaddr_ge(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 macaddr_ge(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, + ); } - macaddr_ge(arg_fcinfo) + standard_ProcessUtility( + arg_pstmt, + arg_queryString, + arg_context, + arg_params, + arg_queryEnv, + arg_dest, + arg_completionTag, + ) }) } -pub unsafe fn macaddr_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UtilityReturnsTuples(arg_parsetree: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UtilityReturnsTuples(arg_parsetree: *mut Node) -> bool; } - macaddr_ne(arg_fcinfo) + UtilityReturnsTuples(arg_parsetree) }) } -pub unsafe fn macaddr_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UtilityTupleDescriptor(arg_parsetree: *mut Node) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UtilityTupleDescriptor(arg_parsetree: *mut Node) -> TupleDesc; } - macaddr_cmp(arg_fcinfo) + UtilityTupleDescriptor(arg_parsetree) }) } -pub unsafe fn int82pl(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 int82pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UtilityContainsQuery(arg_parsetree: *mut Node) -> *mut Query; } - int82pl(arg_fcinfo) + UtilityContainsQuery(arg_parsetree) }) } -pub unsafe fn int82mi(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 int82mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CreateCommandTag(arg_parsetree: *mut Node) -> *const ::std::os::raw::c_char; } - int82mi(arg_fcinfo) + CreateCommandTag(arg_parsetree) }) } -pub unsafe fn int82mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetCommandLogLevel(arg_parsetree: *mut Node) -> LogStmtLevel { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetCommandLogLevel(arg_parsetree: *mut Node) -> LogStmtLevel; } - int82mul(arg_fcinfo) + GetCommandLogLevel(arg_parsetree) }) } -pub unsafe fn int82div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CommandIsReadOnly(arg_pstmt: *mut PlannedStmt) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CommandIsReadOnly(arg_pstmt: *mut PlannedStmt) -> bool; } - int82div(arg_fcinfo) + CommandIsReadOnly(arg_pstmt) }) } -pub unsafe fn int28pl(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() + } + } +} +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 int28pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextInit(); } - int28pl(arg_fcinfo) + MemoryContextInit() }) } -pub unsafe fn btint8cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextReset(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint8cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextReset(arg_context: MemoryContext); } - btint8cmp(arg_fcinfo) + MemoryContextReset(arg_context) }) } -pub unsafe fn cash_mul_flt4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextDelete(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_mul_flt4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextDelete(arg_context: MemoryContext); } - cash_mul_flt4(arg_fcinfo) + MemoryContextDelete(arg_context) }) } -pub unsafe fn cash_div_flt4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextResetOnly(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_div_flt4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextResetOnly(arg_context: MemoryContext); } - cash_div_flt4(arg_fcinfo) + MemoryContextResetOnly(arg_context) }) } -pub unsafe fn flt4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextResetChildren(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn flt4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextResetChildren(arg_context: MemoryContext); } - flt4_mul_cash(arg_fcinfo) + MemoryContextResetChildren(arg_context) }) } -pub unsafe fn textpos(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextDeleteChildren(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textpos(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextDeleteChildren(arg_context: MemoryContext); } - textpos(arg_fcinfo) + MemoryContextDeleteChildren(arg_context) }) } -pub unsafe fn textlike(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 textlike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext); } - textlike(arg_fcinfo) + MemoryContextSetParent(arg_context, arg_new_parent) }) } -pub unsafe fn textnlike(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 textnlike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size; } - textnlike(arg_fcinfo) + GetMemoryChunkSpace(arg_pointer) }) } -pub unsafe fn int48eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext; } - int48eq(arg_fcinfo) + MemoryContextGetParent(arg_context) }) } -pub unsafe fn int48ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool; } - int48ne(arg_fcinfo) + MemoryContextIsEmpty(arg_context) }) } -pub unsafe fn int48lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextStats(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextStats(arg_context: MemoryContext); } - int48lt(arg_fcinfo) + MemoryContextStats(arg_context) }) } -pub unsafe fn int48gt(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 int48gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextStatsDetail( + arg_context: MemoryContext, + arg_max_children: ::std::os::raw::c_int, + ); } - int48gt(arg_fcinfo) + MemoryContextStatsDetail(arg_context, arg_max_children) }) } -pub unsafe fn int48le(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 int48le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool); } - int48le(arg_fcinfo) + MemoryContextAllowInCriticalSection(arg_context, arg_allow) }) } -pub unsafe fn int48ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextCheck(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextCheck(arg_context: MemoryContext); } - int48ge(arg_fcinfo) + MemoryContextCheck(arg_context) }) } -pub unsafe fn namelike(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 namelike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextContains( + arg_context: MemoryContext, + arg_pointer: *mut ::std::os::raw::c_void, + ) -> bool; } - namelike(arg_fcinfo) + MemoryContextContains(arg_context, arg_pointer) }) } -pub unsafe fn namenlike(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 namenlike(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; } - namenlike(arg_fcinfo) + MemoryContextCreate(arg_tag, arg_size, arg_methods, arg_parent, arg_name) }) } -pub unsafe fn char_bpchar(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 char_bpchar(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; } - char_bpchar(arg_fcinfo) + AllocSetContextCreate( + arg_parent, + arg_name, + arg_minContextSize, + arg_initBlockSize, + arg_maxBlockSize, + ) }) } -pub unsafe fn current_database(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 current_database(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SlabContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + arg_chunkSize: Size, + ) -> MemoryContext; } - current_database(arg_fcinfo) + SlabContextCreate(arg_parent, arg_name, arg_blockSize, arg_chunkSize) }) } -pub unsafe fn int4_mul_cash(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 int4_mul_cash(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; } - int4_mul_cash(arg_fcinfo) + compareWordEntryPos(arg_a, arg_b) }) } -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; +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() + } + } +} +#[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() + } + } +} +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) + } + } + #[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) + } + } + #[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) + } + } + #[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) + } + } + #[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) + } + } + #[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) + } + } + #[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) + } + } + #[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) + } + } + #[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 + } +} +#[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, +} +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() } - int2_mul_cash(arg_fcinfo) - }) + } } -pub unsafe fn cash_mul_int4(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_int4(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_int4(arg_fcinfo) + get_tsearch_config_filename(arg_basename, arg_extension) }) } -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; - } - cash_div_int4(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 cash_mul_int2(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_mul_int2(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() } - cash_mul_int2(arg_fcinfo) - }) + } } -pub unsafe fn cash_div_int2(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 cash_div_int2(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, + >, + ); } - cash_div_int2(arg_fcinfo) + readstoplist(arg_fname, arg_s, arg_wordop) }) } -pub unsafe fn lower(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 lower(arg_fcinfo: FunctionCallInfo) -> Datum; + fn searchstoplist(arg_s: *mut StopList, arg_key: *mut ::std::os::raw::c_char) -> bool; } - lower(arg_fcinfo) + searchstoplist(arg_s, arg_key) }) } -pub unsafe fn upper(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn upper(arg_fcinfo: FunctionCallInfo) -> Datum; - } - upper(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 initcap(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn initcap(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() } - initcap(arg_fcinfo) - }) + } } -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 DictSubState { + pub isend: bool, + pub getnext: bool, + pub private_state: *mut ::std::os::raw::c_void, } -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 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() } - 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 TSVectorParseStateData { + _unused: [u8; 0], } -pub unsafe fn rtrim(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 rtrim(arg_fcinfo: FunctionCallInfo) -> Datum; + fn init_tsvector_parser( + arg_input: *mut ::std::os::raw::c_char, + arg_oprisdelim: bool, + arg_is_tsquery: bool, + ) -> TSVectorParseState; } - rtrim(arg_fcinfo) + init_tsvector_parser(arg_input, arg_oprisdelim, arg_is_tsquery) }) } -pub unsafe fn text_substr(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 text_substr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reset_tsvector_parser( + arg_state: TSVectorParseState, + arg_input: *mut ::std::os::raw::c_char, + ); } - text_substr(arg_fcinfo) + reset_tsvector_parser(arg_state, arg_input) }) } -pub unsafe fn translate(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 translate(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; } - translate(arg_fcinfo) + gettoken_tsvector(arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr) }) } -pub unsafe fn ltrim1(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_tsvector_parser(arg_state: TSVectorParseState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ltrim1(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_tsvector_parser(arg_state: TSVectorParseState); } - ltrim1(arg_fcinfo) + close_tsvector_parser(arg_state) }) } -pub unsafe fn text_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn text_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; - } - text_substr_no_len(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TSQueryParserStateData { + _unused: [u8; 0], } -pub unsafe fn btrim(arg_fcinfo: FunctionCallInfo) -> Datum { +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 btrim(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; } - btrim(arg_fcinfo) + parse_tsquery(arg_buf, arg_pushval, arg_opaque, arg_isplain) }) } -pub unsafe fn btrim1(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 btrim1(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, + ); } - btrim1(arg_fcinfo) + pushValue(arg_state, arg_strval, arg_lenval, arg_weight, arg_prefix) }) } -pub unsafe fn cash_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pushStop(arg_state: TSQueryParserState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pushStop(arg_state: TSQueryParserState); } - cash_in(arg_fcinfo) + pushStop(arg_state) }) } -pub unsafe fn cash_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pushOperator(arg_state: TSQueryParserState, arg_oper: int8, arg_distance: int16); } - cash_out(arg_fcinfo) + pushOperator(arg_state, arg_oper, arg_distance) }) } -pub unsafe fn cash_eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - cash_eq(arg_fcinfo) - }) +#[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, } -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 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 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - 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() } - flt8_mul_cash(arg_fcinfo) - }) + } } -pub unsafe fn network_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +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 network_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QT2QTN( + arg_in_: *mut QueryItem, + arg_operand: *mut ::std::os::raw::c_char, + ) -> *mut QTNode; } - network_eq(arg_fcinfo) + QT2QTN(arg_in_, arg_operand) }) } -pub unsafe fn network_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTN2QT(arg_in_: *mut QTNode) -> TSQuery; } - network_lt(arg_fcinfo) + QTN2QT(arg_in_) }) } -pub unsafe fn network_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNFree(arg_in_: *mut QTNode) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNFree(arg_in_: *mut QTNode); } - network_le(arg_fcinfo) + QTNFree(arg_in_) }) } -pub unsafe fn network_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNSort(arg_in_: *mut QTNode) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNSort(arg_in_: *mut QTNode); } - network_gt(arg_fcinfo) + QTNSort(arg_in_) }) } -pub unsafe fn network_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNTernary(arg_in_: *mut QTNode) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNTernary(arg_in_: *mut QTNode); } - network_ge(arg_fcinfo) + QTNTernary(arg_in_) }) } -pub unsafe fn network_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNBinary(arg_in_: *mut QTNode) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNBinary(arg_in_: *mut QTNode); } - network_ne(arg_fcinfo) + QTNBinary(arg_in_) }) } -pub unsafe fn network_cmp(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_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNodeCompare(arg_an: *mut QTNode, arg_bn: *mut QTNode) -> ::std::os::raw::c_int; } - network_cmp(arg_fcinfo) + QTNodeCompare(arg_an, arg_bn) }) } -pub unsafe fn network_sub(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_sub(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNCopy(arg_in_: *mut QTNode) -> *mut QTNode; } - network_sub(arg_fcinfo) + QTNCopy(arg_in_) }) } -pub unsafe fn network_subeq(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_subeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNClearFlags(arg_in_: *mut QTNode, arg_flags: uint32); } - network_subeq(arg_fcinfo) + QTNClearFlags(arg_in_, arg_flags) }) } -pub unsafe fn network_sup(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_sup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNEq(arg_a: *mut QTNode, arg_b: *mut QTNode) -> bool; } - network_sup(arg_fcinfo) + QTNEq(arg_a, arg_b) }) } -pub unsafe fn network_supeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn makeTSQuerySign(arg_a: TSQuery) -> TSQuerySign { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_supeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn makeTSQuerySign(arg_a: TSQuery) -> TSQuerySign; } - network_supeq(arg_fcinfo) + makeTSQuerySign(arg_a) }) } -pub unsafe fn cash_words(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 cash_words(arg_fcinfo: FunctionCallInfo) -> Datum; + fn findsubquery( + arg_root: *mut QTNode, + arg_ex: *mut QTNode, + arg_subs: *mut QTNode, + arg_isfind: *mut bool, + ) -> *mut QTNode; } - cash_words(arg_fcinfo) + findsubquery(arg_root, arg_ex, arg_subs, arg_isfind) }) } -pub unsafe fn generate_series_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_series_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaout(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_timestamp(arg_fcinfo) + byteaout(arg_fcinfo) }) } -pub unsafe fn generate_series_timestamptz(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_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charout(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_timestamptz(arg_fcinfo) + charout(arg_fcinfo) }) } -pub unsafe fn int28mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namein(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28mi(arg_fcinfo) + namein(arg_fcinfo) }) } -pub unsafe fn int28mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28mul(arg_fcinfo) + nameout(arg_fcinfo) }) } -pub unsafe fn text_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2in(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_char(arg_fcinfo) + int2in(arg_fcinfo) }) } -pub unsafe fn int8mod(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8mod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2out(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8mod(arg_fcinfo) + int2out(arg_fcinfo) }) } -pub unsafe fn char_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2vectorin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn char_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2vectorin(arg_fcinfo: FunctionCallInfo) -> Datum; } - char_text(arg_fcinfo) + int2vectorin(arg_fcinfo) }) } -pub unsafe fn int28div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2vectorout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2vectorout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28div(arg_fcinfo) + int2vectorout(arg_fcinfo) }) } -pub unsafe fn hashint8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashint8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4in(arg_fcinfo: FunctionCallInfo) -> Datum; } - hashint8(arg_fcinfo) + int4in(arg_fcinfo) }) } -pub unsafe fn be_lo_open(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_open(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4out(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_open(arg_fcinfo) + int4out(arg_fcinfo) }) } -pub unsafe fn be_lo_close(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_close(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocin(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_close(arg_fcinfo) + regprocin(arg_fcinfo) }) } -pub unsafe fn be_loread(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_loread(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocout(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_loread(arg_fcinfo) + regprocout(arg_fcinfo) }) } -pub unsafe fn be_lowrite(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lowrite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textin(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lowrite(arg_fcinfo) + textin(arg_fcinfo) }) } -pub unsafe fn be_lo_lseek(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_lseek(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textout(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_lseek(arg_fcinfo) + textout(arg_fcinfo) }) } -pub unsafe fn be_lo_creat(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_creat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidin(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_creat(arg_fcinfo) + tidin(arg_fcinfo) }) } -pub unsafe fn be_lo_tell(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_tell(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidout(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_tell(arg_fcinfo) + tidout(arg_fcinfo) }) } -pub unsafe fn on_pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xidin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xidin(arg_fcinfo: FunctionCallInfo) -> Datum; } - on_pl(arg_fcinfo) + xidin(arg_fcinfo) }) } -pub unsafe fn on_sl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xidout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_sl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xidout(arg_fcinfo: FunctionCallInfo) -> Datum; } - on_sl(arg_fcinfo) + xidout(arg_fcinfo) }) } -pub unsafe fn close_pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidin(arg_fcinfo: FunctionCallInfo) -> Datum; } - close_pl(arg_fcinfo) + cidin(arg_fcinfo) }) } -pub unsafe fn close_sl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_sl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidout(arg_fcinfo: FunctionCallInfo) -> Datum; } - close_sl(arg_fcinfo) + cidout(arg_fcinfo) }) } -pub unsafe fn close_lb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_lb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorin(arg_fcinfo: FunctionCallInfo) -> Datum; } - close_lb(arg_fcinfo) + oidvectorin(arg_fcinfo) }) } -pub unsafe fn be_lo_unlink(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_unlink(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_unlink(arg_fcinfo) + oidvectorout(arg_fcinfo) }) } -pub unsafe fn path_inter(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boollt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_inter(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boollt(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_inter(arg_fcinfo) + boollt(arg_fcinfo) }) } -pub unsafe fn box_area(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_area(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_area(arg_fcinfo) + boolgt(arg_fcinfo) }) } -pub unsafe fn box_width(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn booleq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_width(arg_fcinfo: FunctionCallInfo) -> Datum; + fn booleq(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_width(arg_fcinfo) + booleq(arg_fcinfo) }) } -pub unsafe fn box_height(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn chareq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_height(arg_fcinfo: FunctionCallInfo) -> Datum; + fn chareq(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_height(arg_fcinfo) + chareq(arg_fcinfo) }) } -pub unsafe fn box_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_distance(arg_fcinfo) + nameeq(arg_fcinfo) }) } -pub unsafe fn path_area(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_area(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_area(arg_fcinfo) + int2eq(arg_fcinfo) }) } -pub unsafe fn box_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_intersect(arg_fcinfo) + int2lt(arg_fcinfo) }) } -pub unsafe fn box_diagonal(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_diagonal(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_diagonal(arg_fcinfo) + int4eq(arg_fcinfo) }) } -pub unsafe fn path_n_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_n_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_n_lt(arg_fcinfo) + int4lt(arg_fcinfo) }) } -pub unsafe fn path_n_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texteq(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_n_gt(arg_fcinfo) + texteq(arg_fcinfo) }) } -pub unsafe fn path_n_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xideq(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_n_eq(arg_fcinfo) + xideq(arg_fcinfo) }) } -pub unsafe fn path_n_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cideq(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_n_le(arg_fcinfo) + cideq(arg_fcinfo) }) } -pub unsafe fn path_n_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charne(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_n_ge(arg_fcinfo) + charne(arg_fcinfo) }) } -pub unsafe fn path_length(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charle(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_length(arg_fcinfo) + charle(arg_fcinfo) }) } -pub unsafe fn point_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn chargt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn chargt(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_ne(arg_fcinfo) + chargt(arg_fcinfo) }) } -pub unsafe fn point_vert(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_vert(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charge(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_vert(arg_fcinfo) + charge(arg_fcinfo) }) } -pub unsafe fn point_horiz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn chartoi4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_horiz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn chartoi4(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_horiz(arg_fcinfo) + chartoi4(arg_fcinfo) }) } -pub unsafe fn point_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i4tochar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i4tochar(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_distance(arg_fcinfo) + i4tochar(arg_fcinfo) }) } -pub unsafe fn point_slope(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_slope(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_slope(arg_fcinfo) + nameregexeq(arg_fcinfo) }) } -pub unsafe fn lseg_construct(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_construct(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolne(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_construct(arg_fcinfo) + boolne(arg_fcinfo) }) } -pub unsafe fn lseg_intersect(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_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ddl_command_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_intersect(arg_fcinfo) + pg_ddl_command_in(arg_fcinfo) }) } -pub unsafe fn lseg_parallel(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_parallel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ddl_command_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_parallel(arg_fcinfo) + pg_ddl_command_out(arg_fcinfo) }) } -pub unsafe fn lseg_perp(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_perp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ddl_command_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_perp(arg_fcinfo) + pg_ddl_command_recv(arg_fcinfo) }) } -pub unsafe fn lseg_vertical(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_vertical(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pgsql_version(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_vertical(arg_fcinfo) + pgsql_version(arg_fcinfo) }) } -pub unsafe fn lseg_horizontal(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_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ddl_command_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_horizontal(arg_fcinfo) + pg_ddl_command_send(arg_fcinfo) }) } -pub unsafe fn lseg_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn eqsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn eqsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_eq(arg_fcinfo) + eqsel(arg_fcinfo) }) } -pub unsafe fn be_lo_truncate(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn neqsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_truncate(arg_fcinfo: FunctionCallInfo) -> Datum; + fn neqsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_truncate(arg_fcinfo) + neqsel(arg_fcinfo) }) } -pub unsafe fn timestamptz_izone(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn scalarltsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_izone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn scalarltsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_izone(arg_fcinfo) + scalarltsel(arg_fcinfo) }) } -pub unsafe fn gist_point_compress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn scalargtsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_point_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn scalargtsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_point_compress(arg_fcinfo) + scalargtsel(arg_fcinfo) }) } -pub unsafe fn aclitemin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn eqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclitemin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn eqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclitemin(arg_fcinfo) + eqjoinsel(arg_fcinfo) }) } -pub unsafe fn aclitemout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn neqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclitemout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn neqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclitemout(arg_fcinfo) + neqjoinsel(arg_fcinfo) }) } -pub unsafe fn aclinsert(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn scalarltjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclinsert(arg_fcinfo: FunctionCallInfo) -> Datum; + fn scalarltjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclinsert(arg_fcinfo) + scalarltjoinsel(arg_fcinfo) }) } -pub unsafe fn aclremove(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn scalargtjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclremove(arg_fcinfo: FunctionCallInfo) -> Datum; + fn scalargtjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclremove(arg_fcinfo) + scalargtjoinsel(arg_fcinfo) }) } -pub unsafe fn aclcontains(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn unknownin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclcontains(arg_fcinfo: FunctionCallInfo) -> Datum; + fn unknownin(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclcontains(arg_fcinfo) + unknownin(arg_fcinfo) }) } -pub unsafe fn getdatabaseencoding(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn unknownout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getdatabaseencoding(arg_fcinfo: FunctionCallInfo) -> Datum; + fn unknownout(arg_fcinfo: FunctionCallInfo) -> Datum; } - getdatabaseencoding(arg_fcinfo) + unknownout(arg_fcinfo) }) } -pub unsafe fn bpcharin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_fac(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_fac(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharin(arg_fcinfo) + numeric_fac(arg_fcinfo) }) } -pub unsafe fn bpcharout(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 bpcharout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_above_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharout(arg_fcinfo) + box_above_eq(arg_fcinfo) }) } -pub unsafe fn varcharin(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 varcharin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_below_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - varcharin(arg_fcinfo) + box_below_eq(arg_fcinfo) }) } -pub unsafe fn varcharout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varcharout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - varcharout(arg_fcinfo) + point_in(arg_fcinfo) }) } -pub unsafe fn bpchareq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchareq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchareq(arg_fcinfo) + point_out(arg_fcinfo) }) } -pub unsafe fn bpcharlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharlt(arg_fcinfo) + lseg_in(arg_fcinfo) }) } -pub unsafe fn bpcharle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharle(arg_fcinfo) + lseg_out(arg_fcinfo) }) } -pub unsafe fn bpchargt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchargt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchargt(arg_fcinfo) + path_in(arg_fcinfo) }) } -pub unsafe fn bpcharge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharge(arg_fcinfo) + path_out(arg_fcinfo) }) } -pub unsafe fn bpcharne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharne(arg_fcinfo) + box_in(arg_fcinfo) }) } -pub unsafe fn aclitem_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclitem_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclitem_eq(arg_fcinfo) + box_out(arg_fcinfo) }) } -pub unsafe fn bpchar_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_larger(arg_fcinfo) + box_overlap(arg_fcinfo) }) } -pub unsafe fn bpchar_smaller(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_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_smaller(arg_fcinfo) + box_ge(arg_fcinfo) }) } -pub unsafe fn pg_prepared_xact(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_prepared_xact(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_prepared_xact(arg_fcinfo) + box_gt(arg_fcinfo) }) } -pub unsafe fn generate_series_step_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_step_int4(arg_fcinfo) + box_eq(arg_fcinfo) }) } -pub unsafe fn generate_series_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_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_int4(arg_fcinfo) + box_lt(arg_fcinfo) }) } -pub unsafe fn generate_series_step_int8(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_step_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_step_int8(arg_fcinfo) + box_le(arg_fcinfo) }) } -pub unsafe fn generate_series_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_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_above(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_int8(arg_fcinfo) + point_above(arg_fcinfo) }) } -pub unsafe fn bpcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_left(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_left(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharcmp(arg_fcinfo) + point_left(arg_fcinfo) }) } -pub unsafe fn text_regclass(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_right(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_regclass(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_right(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_regclass(arg_fcinfo) + point_right(arg_fcinfo) }) } -pub unsafe fn hashbpchar(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_below(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashbpchar(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_below(arg_fcinfo: FunctionCallInfo) -> Datum; } - hashbpchar(arg_fcinfo) + point_below(arg_fcinfo) }) } -pub unsafe fn format_type(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn format_type(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - format_type(arg_fcinfo) + point_eq(arg_fcinfo) }) } -pub unsafe fn date_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_pb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_pb(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_in(arg_fcinfo) + on_pb(arg_fcinfo) }) } -pub unsafe fn date_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_ppath(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_out(arg_fcinfo) + on_ppath(arg_fcinfo) }) } -pub unsafe fn date_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_center(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_eq(arg_fcinfo) + box_center(arg_fcinfo) }) } -pub unsafe fn date_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn areasel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn areasel(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_lt(arg_fcinfo) + areasel(arg_fcinfo) }) } -pub unsafe fn date_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn areajoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn areajoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_le(arg_fcinfo) + areajoinsel(arg_fcinfo) }) } -pub unsafe fn date_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_gt(arg_fcinfo) + int4mul(arg_fcinfo) }) } -pub unsafe fn date_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ge(arg_fcinfo) + int4ne(arg_fcinfo) }) } -pub unsafe fn date_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ne(arg_fcinfo) + int2ne(arg_fcinfo) }) } -pub unsafe fn date_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_cmp(arg_fcinfo) + int2gt(arg_fcinfo) }) } -pub unsafe fn time_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_lt(arg_fcinfo) + int4gt(arg_fcinfo) }) } -pub unsafe fn time_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2le(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_le(arg_fcinfo) + int2le(arg_fcinfo) }) } -pub unsafe fn time_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4le(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_gt(arg_fcinfo) + int4le(arg_fcinfo) }) } -pub unsafe fn time_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_ge(arg_fcinfo) + int4ge(arg_fcinfo) }) } -pub unsafe fn time_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_ne(arg_fcinfo) + int2ge(arg_fcinfo) }) } -pub unsafe fn time_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_cmp(arg_fcinfo) + int2mul(arg_fcinfo) }) } -pub unsafe fn date_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2div(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_larger(arg_fcinfo) + int2div(arg_fcinfo) }) } -pub unsafe fn date_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4div(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_smaller(arg_fcinfo) + int4div(arg_fcinfo) }) } -pub unsafe fn date_mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2mod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2mod(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_mi(arg_fcinfo) + int2mod(arg_fcinfo) }) } -pub unsafe fn date_pli(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4mod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_pli(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4mod(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_pli(arg_fcinfo) + int4mod(arg_fcinfo) }) } -pub unsafe fn date_mii(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_mii(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textne(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_mii(arg_fcinfo) + textne(arg_fcinfo) }) } -pub unsafe fn time_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_in(arg_fcinfo) + int24eq(arg_fcinfo) }) } -pub unsafe fn time_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_out(arg_fcinfo) + int42eq(arg_fcinfo) }) } -pub unsafe fn time_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_eq(arg_fcinfo) + int24lt(arg_fcinfo) }) } -pub unsafe fn circle_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_add_pt(arg_fcinfo) + int42lt(arg_fcinfo) }) } -pub unsafe fn circle_sub_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_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_sub_pt(arg_fcinfo) + int24gt(arg_fcinfo) }) } -pub unsafe fn circle_mul_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_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_mul_pt(arg_fcinfo) + int42gt(arg_fcinfo) }) } -pub unsafe fn circle_div_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_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_div_pt(arg_fcinfo) + int24ne(arg_fcinfo) }) } -pub unsafe fn timestamptz_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_in(arg_fcinfo) + int42ne(arg_fcinfo) }) } -pub unsafe fn timestamptz_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24le(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_out(arg_fcinfo) + int24le(arg_fcinfo) }) } -pub unsafe fn timestamp_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42le(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_eq(arg_fcinfo) + int42le(arg_fcinfo) }) } -pub unsafe fn timestamp_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ne(arg_fcinfo) + int24ge(arg_fcinfo) }) } -pub unsafe fn timestamp_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_lt(arg_fcinfo) + int42ge(arg_fcinfo) }) } -pub unsafe fn timestamp_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_le(arg_fcinfo) + int24mul(arg_fcinfo) }) } -pub unsafe fn timestamp_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ge(arg_fcinfo) + int42mul(arg_fcinfo) }) } -pub unsafe fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24div(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_gt(arg_fcinfo) + int24div(arg_fcinfo) }) } -pub unsafe fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42div(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_timestamptz(arg_fcinfo) + int42div(arg_fcinfo) }) } -pub unsafe fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_zone(arg_fcinfo) + int2pl(arg_fcinfo) }) } -pub unsafe fn interval_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_in(arg_fcinfo) + int4pl(arg_fcinfo) }) } -pub unsafe fn interval_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_out(arg_fcinfo) + int24pl(arg_fcinfo) }) } -pub unsafe fn interval_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_eq(arg_fcinfo) + int42pl(arg_fcinfo) }) } -pub unsafe fn interval_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_ne(arg_fcinfo) + int2mi(arg_fcinfo) }) } -pub unsafe fn interval_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_lt(arg_fcinfo) + int4mi(arg_fcinfo) }) } -pub unsafe fn interval_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_le(arg_fcinfo) + int24mi(arg_fcinfo) }) } -pub unsafe fn interval_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_ge(arg_fcinfo) + int42mi(arg_fcinfo) }) } -pub unsafe fn interval_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oideq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oideq(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_gt(arg_fcinfo) + oideq(arg_fcinfo) }) } -pub unsafe fn interval_um(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_um(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidne(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_um(arg_fcinfo) + oidne(arg_fcinfo) }) } -pub unsafe fn interval_pl(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_pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_pl(arg_fcinfo) + box_same(arg_fcinfo) }) } -pub unsafe fn interval_mi(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_mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_contain(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_mi(arg_fcinfo) + box_contain(arg_fcinfo) }) } -pub unsafe fn timestamptz_part(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_left(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_part(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_left(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_part(arg_fcinfo) + box_left(arg_fcinfo) }) } -pub unsafe fn interval_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 interval_part(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_part(arg_fcinfo) + box_overleft(arg_fcinfo) }) } -pub unsafe fn abstime_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_overright(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstime_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_overright(arg_fcinfo: FunctionCallInfo) -> Datum; } - abstime_timestamptz(arg_fcinfo) + box_overright(arg_fcinfo) }) } -pub unsafe fn date_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 date_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_right(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_timestamptz(arg_fcinfo) + box_right(arg_fcinfo) }) } -pub unsafe fn interval_justify_hours(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_contained(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_justify_hours(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_contained(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_justify_hours(arg_fcinfo) + box_contained(arg_fcinfo) }) } -pub unsafe fn reltime_interval(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 reltime_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - reltime_interval(arg_fcinfo) + box_contain_pt(arg_fcinfo) }) } -pub unsafe fn timestamptz_date(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 timestamptz_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_node_tree_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_date(arg_fcinfo) + pg_node_tree_in(arg_fcinfo) }) } -pub unsafe fn abstime_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 abstime_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_node_tree_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - abstime_date(arg_fcinfo) + pg_node_tree_out(arg_fcinfo) }) } -pub unsafe fn timestamptz_abstime(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 timestamptz_abstime(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_node_tree_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_abstime(arg_fcinfo) + pg_node_tree_recv(arg_fcinfo) }) } -pub unsafe fn xid_age(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 xid_age(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_node_tree_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - xid_age(arg_fcinfo) + pg_node_tree_send(arg_fcinfo) }) } -pub unsafe fn timestamp_mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_mi(arg_fcinfo) + int4um(arg_fcinfo) }) } -pub unsafe fn timestamptz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_pl_interval(arg_fcinfo) + int2um(arg_fcinfo) }) } -pub unsafe fn timestamptz_mi_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_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_center(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_mi_interval(arg_fcinfo) + lseg_center(arg_fcinfo) }) } -pub unsafe fn generate_subscripts(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_center(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_subscripts(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_center(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_subscripts(arg_fcinfo) + path_center(arg_fcinfo) }) } -pub unsafe fn generate_subscripts_nodir(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_nodir(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_center(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_subscripts_nodir(arg_fcinfo) + poly_center(arg_fcinfo) }) } -pub unsafe fn array_fill(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dround(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_fill(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dround(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_fill(arg_fcinfo) + dround(arg_fcinfo) }) } -pub unsafe fn interval_reltime(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtrunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_reltime(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtrunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_reltime(arg_fcinfo) + dtrunc(arg_fcinfo) }) } -pub unsafe fn timestamp_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dsqrt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dsqrt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_smaller(arg_fcinfo) + dsqrt(arg_fcinfo) }) } -pub unsafe fn timestamp_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dcbrt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dcbrt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_larger(arg_fcinfo) + dcbrt(arg_fcinfo) }) } -pub unsafe fn interval_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dpow(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dpow(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_smaller(arg_fcinfo) + dpow(arg_fcinfo) }) } -pub unsafe fn interval_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dexp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dexp(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_larger(arg_fcinfo) + dexp(arg_fcinfo) }) } -pub unsafe fn timestamptz_age(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dlog1(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_age(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dlog1(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_age(arg_fcinfo) + dlog1(arg_fcinfo) }) } -pub unsafe fn interval_scale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i2tod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i2tod(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_scale(arg_fcinfo) + i2tod(arg_fcinfo) }) } -pub unsafe fn timestamptz_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i2tof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i2tof(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_trunc(arg_fcinfo) + i2tof(arg_fcinfo) }) } -pub unsafe fn interval_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtoi2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtoi2(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_trunc(arg_fcinfo) + dtoi2(arg_fcinfo) }) } -pub unsafe fn int8inc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ftoi2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8inc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ftoi2(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8inc(arg_fcinfo) + ftoi2(arg_fcinfo) }) } -pub unsafe fn int8abs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8abs(arg_fcinfo) + line_distance(arg_fcinfo) }) } -pub unsafe fn int8larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimein(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8larger(arg_fcinfo) + abstimein(arg_fcinfo) }) } -pub unsafe fn int8smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimeout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimeout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8smaller(arg_fcinfo) + abstimeout(arg_fcinfo) }) } -pub unsafe fn texticregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texticregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimein(arg_fcinfo: FunctionCallInfo) -> Datum; } - texticregexeq(arg_fcinfo) + reltimein(arg_fcinfo) }) } -pub unsafe fn texticregexne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimeout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texticregexne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimeout(arg_fcinfo: FunctionCallInfo) -> Datum; } - texticregexne(arg_fcinfo) + reltimeout(arg_fcinfo) }) } -pub unsafe fn nameicregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timepl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameicregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timepl(arg_fcinfo: FunctionCallInfo) -> Datum; } - nameicregexeq(arg_fcinfo) + timepl(arg_fcinfo) }) } -pub unsafe fn nameicregexne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timemi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameicregexne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timemi(arg_fcinfo: FunctionCallInfo) -> Datum; } - nameicregexne(arg_fcinfo) + timemi(arg_fcinfo) }) } -pub unsafe fn boolin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalin(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolin(arg_fcinfo) + tintervalin(arg_fcinfo) }) } -pub unsafe fn boolout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalout(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolout(arg_fcinfo) + tintervalout(arg_fcinfo) }) } -pub unsafe fn byteain(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn intinterval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteain(arg_fcinfo: FunctionCallInfo) -> Datum; + fn intinterval(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteain(arg_fcinfo) + intinterval(arg_fcinfo) }) } -pub unsafe fn charin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalrel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalrel(arg_fcinfo: FunctionCallInfo) -> Datum; } - charin(arg_fcinfo) + tintervalrel(arg_fcinfo) }) } -pub unsafe fn charlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timenow(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timenow(arg_fcinfo: FunctionCallInfo) -> Datum; } - charlt(arg_fcinfo) + timenow(arg_fcinfo) }) } -pub unsafe fn unique_key_recheck(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimeeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unique_key_recheck(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimeeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - unique_key_recheck(arg_fcinfo) + abstimeeq(arg_fcinfo) }) } -pub unsafe fn int4abs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimene(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimene(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4abs(arg_fcinfo) + abstimene(arg_fcinfo) }) } -pub unsafe fn nameregexne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimelt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameregexne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimelt(arg_fcinfo: FunctionCallInfo) -> Datum; } - nameregexne(arg_fcinfo) + abstimelt(arg_fcinfo) }) } -pub unsafe fn int2abs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimegt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimegt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2abs(arg_fcinfo) + abstimegt(arg_fcinfo) }) } -pub unsafe fn textregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimele(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimele(arg_fcinfo: FunctionCallInfo) -> Datum; } - textregexeq(arg_fcinfo) + abstimele(arg_fcinfo) }) } -pub unsafe fn textregexne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimege(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textregexne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimege(arg_fcinfo: FunctionCallInfo) -> Datum; } - textregexne(arg_fcinfo) + abstimege(arg_fcinfo) }) } -pub unsafe fn textlen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimeeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textlen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimeeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - textlen(arg_fcinfo) + reltimeeq(arg_fcinfo) }) } -pub unsafe fn textcat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimene(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textcat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimene(arg_fcinfo: FunctionCallInfo) -> Datum; } - textcat(arg_fcinfo) + reltimene(arg_fcinfo) }) } -pub unsafe fn PG_char_to_encoding(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimelt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PG_char_to_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimelt(arg_fcinfo: FunctionCallInfo) -> Datum; } - PG_char_to_encoding(arg_fcinfo) + reltimelt(arg_fcinfo) }) } -pub unsafe fn tidne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimegt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimegt(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidne(arg_fcinfo) + reltimegt(arg_fcinfo) }) } -pub unsafe fn cidr_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimele(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidr_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimele(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidr_in(arg_fcinfo) + reltimele(arg_fcinfo) }) } -pub unsafe fn parse_ident(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimege(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn parse_ident(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimege(arg_fcinfo: FunctionCallInfo) -> Datum; } - parse_ident(arg_fcinfo) + reltimege(arg_fcinfo) }) } -pub unsafe fn pg_column_size(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalsame(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_column_size(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalsame(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_column_size(arg_fcinfo) + tintervalsame(arg_fcinfo) }) } -pub unsafe fn overlaps_timetz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalct(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn overlaps_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalct(arg_fcinfo: FunctionCallInfo) -> Datum; } - overlaps_timetz(arg_fcinfo) + tintervalct(arg_fcinfo) }) } -pub unsafe fn datetime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalov(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datetime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalov(arg_fcinfo: FunctionCallInfo) -> Datum; } - datetime_timestamp(arg_fcinfo) + tintervalov(arg_fcinfo) }) } -pub unsafe fn timetz_part(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalleneq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_part(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalleneq(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_part(arg_fcinfo) + tintervalleneq(arg_fcinfo) }) } -pub unsafe fn int84pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallenne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallenne(arg_fcinfo: FunctionCallInfo) -> Datum; } - int84pl(arg_fcinfo) + tintervallenne(arg_fcinfo) }) } -pub unsafe fn int84mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallenlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallenlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int84mi(arg_fcinfo) + tintervallenlt(arg_fcinfo) }) } -pub unsafe fn int84mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallengt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallengt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int84mul(arg_fcinfo) + tintervallengt(arg_fcinfo) }) } -pub unsafe fn int84div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallenle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallenle(arg_fcinfo: FunctionCallInfo) -> Datum; } - int84div(arg_fcinfo) + tintervallenle(arg_fcinfo) }) } -pub unsafe fn int48pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallenge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallenge(arg_fcinfo: FunctionCallInfo) -> Datum; } - int48pl(arg_fcinfo) + tintervallenge(arg_fcinfo) }) } -pub unsafe fn int48mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalstart(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalstart(arg_fcinfo: FunctionCallInfo) -> Datum; } - int48mi(arg_fcinfo) + tintervalstart(arg_fcinfo) }) } -pub unsafe fn int48mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalend(arg_fcinfo: FunctionCallInfo) -> Datum; } - int48mul(arg_fcinfo) + tintervalend(arg_fcinfo) }) } -pub unsafe fn int48div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timeofday(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timeofday(arg_fcinfo: FunctionCallInfo) -> Datum; } - int48div(arg_fcinfo) + timeofday(arg_fcinfo) }) } -pub unsafe fn quote_ident(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstime_finite(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quote_ident(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstime_finite(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_ident(arg_fcinfo) + abstime_finite(arg_fcinfo) }) } -pub unsafe fn quote_literal(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_literal(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_literal(arg_fcinfo) + inter_sl(arg_fcinfo) }) } -pub unsafe fn array_fill_with_lower_bounds(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inter_lb(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 inter_lb(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_fill_with_lower_bounds(arg_fcinfo) + inter_lb(arg_fcinfo) }) } -pub unsafe fn i8tooid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ftod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i8tooid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ftod(arg_fcinfo: FunctionCallInfo) -> Datum; } - i8tooid(arg_fcinfo) + ftod(arg_fcinfo) }) } -pub unsafe fn oidtoi8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidtoi8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtof(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidtoi8(arg_fcinfo) + dtof(arg_fcinfo) }) } -pub unsafe fn quote_nullable(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i2toi4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quote_nullable(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i2toi4(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_nullable(arg_fcinfo) + i2toi4(arg_fcinfo) }) } -pub unsafe fn suppress_redundant_updates_trigger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i4toi2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn suppress_redundant_updates_trigger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i4toi2(arg_fcinfo: FunctionCallInfo) -> Datum; } - suppress_redundant_updates_trigger(arg_fcinfo) + i4toi2(arg_fcinfo) }) } -pub unsafe fn tideq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i4tod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tideq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i4tod(arg_fcinfo: FunctionCallInfo) -> Datum; } - tideq(arg_fcinfo) + i4tod(arg_fcinfo) }) } -pub unsafe fn currtid_byreloid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtoi4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn currtid_byreloid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtoi4(arg_fcinfo: FunctionCallInfo) -> Datum; } - currtid_byreloid(arg_fcinfo) + dtoi4(arg_fcinfo) }) } -pub unsafe fn currtid_byrelname(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i4tof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn currtid_byrelname(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i4tof(arg_fcinfo: FunctionCallInfo) -> Datum; } - currtid_byrelname(arg_fcinfo) + i4tof(arg_fcinfo) }) } -pub unsafe fn interval_justify_days(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ftoi4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_justify_days(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ftoi4(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_justify_days(arg_fcinfo) + ftoi4(arg_fcinfo) }) } -pub unsafe fn datetimetz_timestamptz(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 datetimetz_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn width_bucket_float8(arg_fcinfo: FunctionCallInfo) -> Datum; } - datetimetz_timestamptz(arg_fcinfo) + width_bucket_float8(arg_fcinfo) }) } -pub unsafe fn now(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn now(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - now(arg_fcinfo) + json_in(arg_fcinfo) }) } -pub unsafe fn positionsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn positionsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - positionsel(arg_fcinfo) + json_out(arg_fcinfo) }) } -pub unsafe fn positionjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn positionjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - positionjoinsel(arg_fcinfo) + json_recv(arg_fcinfo) }) } -pub unsafe fn contsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - contsel(arg_fcinfo) + json_send(arg_fcinfo) }) } -pub unsafe fn contjoinsel(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 contjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn index_am_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - contjoinsel(arg_fcinfo) + index_am_handler_in(arg_fcinfo) }) } -pub unsafe fn overlaps_timestamp(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 overlaps_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn index_am_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - overlaps_timestamp(arg_fcinfo) + index_am_handler_out(arg_fcinfo) }) } -pub unsafe fn overlaps_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashmacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn overlaps_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashmacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum; } - overlaps_time(arg_fcinfo) + hashmacaddr8(arg_fcinfo) }) } -pub unsafe fn timestamp_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hash_aclitem(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hash_aclitem(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_in(arg_fcinfo) + hash_aclitem(arg_fcinfo) }) } -pub unsafe fn timestamp_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bthandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bthandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_out(arg_fcinfo) + bthandler(arg_fcinfo) }) } -pub unsafe fn timestamp_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashhandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashhandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_cmp(arg_fcinfo) + hashhandler(arg_fcinfo) }) } -pub unsafe fn interval_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gisthandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gisthandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_cmp(arg_fcinfo) + gisthandler(arg_fcinfo) }) } -pub unsafe fn timestamp_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ginhandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ginhandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_time(arg_fcinfo) + ginhandler(arg_fcinfo) }) } -pub unsafe fn bpcharlen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn spghandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharlen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spghandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharlen(arg_fcinfo) + spghandler(arg_fcinfo) }) } -pub unsafe fn interval_div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn brinhandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn brinhandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_div(arg_fcinfo) + brinhandler(arg_fcinfo) }) } -pub unsafe fn dlog10(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn amvalidate(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dlog10(arg_fcinfo: FunctionCallInfo) -> Datum; + fn amvalidate(arg_fcinfo: FunctionCallInfo) -> Datum; } - dlog10(arg_fcinfo) + amvalidate(arg_fcinfo) }) } -pub unsafe fn oidvectortypes(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_same(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectortypes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidvectortypes(arg_fcinfo) + poly_same(arg_fcinfo) }) } -pub unsafe fn timetz_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_contain(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_contain(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_in(arg_fcinfo) + poly_contain(arg_fcinfo) }) } -pub unsafe fn timetz_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_left(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_out(arg_fcinfo) + poly_left(arg_fcinfo) }) } -pub unsafe fn timetz_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_eq(arg_fcinfo) + poly_overleft(arg_fcinfo) }) } -pub unsafe fn timetz_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_overright(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_ne(arg_fcinfo) + poly_overright(arg_fcinfo) }) } -pub unsafe fn timetz_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_right(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_lt(arg_fcinfo) + poly_right(arg_fcinfo) }) } -pub unsafe fn timetz_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_contained(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_le(arg_fcinfo) + poly_contained(arg_fcinfo) }) } -pub unsafe fn timetz_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_ge(arg_fcinfo) + poly_overlap(arg_fcinfo) }) } -pub unsafe fn timetz_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_gt(arg_fcinfo) + poly_in(arg_fcinfo) }) } -pub unsafe fn timetz_cmp(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_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_cmp(arg_fcinfo) + poly_out(arg_fcinfo) }) } -pub unsafe fn network_hostmask(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint2cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_hostmask(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint2cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_hostmask(arg_fcinfo) + btint2cmp(arg_fcinfo) }) } -pub unsafe fn makeaclitem(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint4cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeaclitem(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint4cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - makeaclitem(arg_fcinfo) + btint4cmp(arg_fcinfo) }) } -pub unsafe fn time_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btfloat4cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat4cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_interval(arg_fcinfo) + btfloat4cmp(arg_fcinfo) }) } -pub unsafe fn pg_lock_status(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btfloat8cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lock_status(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat8cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lock_status(arg_fcinfo) + btfloat8cmp(arg_fcinfo) }) } -pub unsafe fn date_finite(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btoidcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_finite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btoidcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_finite(arg_fcinfo) + btoidcmp(arg_fcinfo) }) } -pub unsafe fn textoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btabstimecmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btabstimecmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - textoctetlen(arg_fcinfo) + btabstimecmp(arg_fcinfo) }) } -pub unsafe fn bpcharoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharoctetlen(arg_fcinfo) + btcharcmp(arg_fcinfo) }) } -pub unsafe fn time_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btnamecmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btnamecmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_larger(arg_fcinfo) + btnamecmp(arg_fcinfo) }) } -pub unsafe fn time_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bttextcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttextcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_smaller(arg_fcinfo) + bttextcmp(arg_fcinfo) }) } -pub unsafe fn timetz_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_larger(arg_fcinfo) + lseg_distance(arg_fcinfo) }) } -pub unsafe fn timetz_smaller(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_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_interpt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_smaller(arg_fcinfo) + lseg_interpt(arg_fcinfo) }) } -pub unsafe fn time_part(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_ps(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_part(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_ps(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_part(arg_fcinfo) + dist_ps(arg_fcinfo) }) } -pub unsafe fn pg_get_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_pb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_pb(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_constraintdef(arg_fcinfo) + dist_pb(arg_fcinfo) }) } -pub unsafe fn timestamptz_timetz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_sb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_sb(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_timetz(arg_fcinfo) + dist_sb(arg_fcinfo) }) } -pub unsafe fn timestamp_finite(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_ps(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_finite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_ps(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_finite(arg_fcinfo) + close_ps(arg_fcinfo) }) } -pub unsafe fn interval_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 interval_finite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_pb(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_finite(arg_fcinfo) + close_pb(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_start(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_sb(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 close_sb(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_start(arg_fcinfo) + close_sb(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_client_addr(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_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_ps(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_client_addr(arg_fcinfo) + on_ps(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_client_port(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_port(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_client_port(arg_fcinfo) + path_distance(arg_fcinfo) }) } -pub unsafe fn current_schema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_ppath(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn current_schema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_ppath(arg_fcinfo: FunctionCallInfo) -> Datum; } - current_schema(arg_fcinfo) + dist_ppath(arg_fcinfo) }) } -pub unsafe fn current_schemas(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_schemas(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_sb(arg_fcinfo: FunctionCallInfo) -> Datum; } - current_schemas(arg_fcinfo) + on_sb(arg_fcinfo) }) } -pub unsafe fn textoverlay(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inter_sb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inter_sb(arg_fcinfo: FunctionCallInfo) -> Datum; } - textoverlay(arg_fcinfo) + inter_sb(arg_fcinfo) }) } -pub unsafe fn textoverlay_no_len(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_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_to_array_null(arg_fcinfo: FunctionCallInfo) -> Datum; } - textoverlay_no_len(arg_fcinfo) + text_to_array_null(arg_fcinfo) }) } -pub unsafe fn line_parallel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_parallel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_parallel(arg_fcinfo) + cash_cmp(arg_fcinfo) }) } -pub unsafe fn line_perp(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_perp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_append(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_perp(arg_fcinfo) + array_append(arg_fcinfo) }) } -pub unsafe fn line_vertical(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_vertical(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_prepend(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_vertical(arg_fcinfo) + array_prepend(arg_fcinfo) }) } -pub unsafe fn line_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btreltimecmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btreltimecmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_horizontal(arg_fcinfo) + btreltimecmp(arg_fcinfo) }) } -pub unsafe fn circle_center(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bttintervalcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_center(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttintervalcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_center(arg_fcinfo) + bttintervalcmp(arg_fcinfo) }) } -pub unsafe fn interval_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btarraycmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btarraycmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_time(arg_fcinfo) + btarraycmp(arg_fcinfo) }) } -pub unsafe fn points_box(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_cat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn points_box(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_cat(arg_fcinfo: FunctionCallInfo) -> Datum; } - points_box(arg_fcinfo) + array_cat(arg_fcinfo) }) } -pub unsafe fn box_add(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 box_add(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_to_text_null(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_add(arg_fcinfo) + array_to_text_null(arg_fcinfo) }) } -pub unsafe fn box_sub(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_sub(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_sub(arg_fcinfo) + array_ne(arg_fcinfo) }) } -pub unsafe fn box_mul(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_mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_mul(arg_fcinfo) + array_lt(arg_fcinfo) }) } -pub unsafe fn box_div(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_div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_div(arg_fcinfo) + array_gt(arg_fcinfo) }) } -pub unsafe fn cidr_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidr_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidr_out(arg_fcinfo) + array_le(arg_fcinfo) }) } -pub unsafe fn poly_contain_pt(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 poly_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_contain_pt(arg_fcinfo) + text_to_array(arg_fcinfo) }) } -pub unsafe fn pt_contained_poly(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 pt_contained_poly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_to_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - pt_contained_poly(arg_fcinfo) + array_to_text(arg_fcinfo) }) } -pub unsafe fn path_isclosed(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_isclosed(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_isclosed(arg_fcinfo) + array_ge(arg_fcinfo) }) } -pub unsafe fn path_isopen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashmacaddr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_isopen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashmacaddr(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_isopen(arg_fcinfo) + hashmacaddr(arg_fcinfo) }) } -pub unsafe fn path_npoints(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashtext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_npoints(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashtext(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_npoints(arg_fcinfo) + hashtext(arg_fcinfo) }) } -pub unsafe fn path_close(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn rtrim1(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_close(arg_fcinfo: FunctionCallInfo) -> Datum; + fn rtrim1(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_close(arg_fcinfo) + rtrim1(arg_fcinfo) }) } -pub unsafe fn path_open(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btoidvectorcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_open(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btoidvectorcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_open(arg_fcinfo) + btoidvectorcmp(arg_fcinfo) }) } -pub unsafe fn path_add(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_add(arg_fcinfo: FunctionCallInfo) -> Datum; + fn name_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_add(arg_fcinfo) + name_text(arg_fcinfo) }) } -pub unsafe fn path_add_pt(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_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_add_pt(arg_fcinfo) + text_name(arg_fcinfo) }) } -pub unsafe fn path_sub_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_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn name_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_sub_pt(arg_fcinfo) + name_bpchar(arg_fcinfo) }) } -pub unsafe fn path_mul_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_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_mul_pt(arg_fcinfo) + bpchar_name(arg_fcinfo) }) } -pub unsafe fn path_div_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_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashinet(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_div_pt(arg_fcinfo) + hashinet(arg_fcinfo) }) } -pub unsafe fn construct_point(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn construct_point(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - construct_point(arg_fcinfo) + hash_numeric(arg_fcinfo) }) } -pub unsafe fn point_add(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_add(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_add(arg_fcinfo) + macaddr_in(arg_fcinfo) }) } -pub unsafe fn point_sub(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_sub(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_sub(arg_fcinfo) + macaddr_out(arg_fcinfo) }) } -pub unsafe fn point_mul(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_mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_num_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_mul(arg_fcinfo) + pg_num_nulls(arg_fcinfo) }) } -pub unsafe fn point_div(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_div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_num_nonnulls(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_div(arg_fcinfo) + pg_num_nonnulls(arg_fcinfo) }) } -pub unsafe fn poly_npoints(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashint2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_npoints(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashint2(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_npoints(arg_fcinfo) + hashint2(arg_fcinfo) }) } -pub unsafe fn poly_box(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashint4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_box(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashint4(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_box(arg_fcinfo) + hashint4(arg_fcinfo) }) } -pub unsafe fn poly_path(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashfloat4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashfloat4(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_path(arg_fcinfo) + hashfloat4(arg_fcinfo) }) } -pub unsafe fn box_poly(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashfloat8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_poly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashfloat8(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_poly(arg_fcinfo) + hashfloat8(arg_fcinfo) }) } -pub unsafe fn path_poly(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashoid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_poly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashoid(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_poly(arg_fcinfo) + hashoid(arg_fcinfo) }) } -pub unsafe fn circle_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashchar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_in(arg_fcinfo) + hashchar(arg_fcinfo) }) } -pub unsafe fn circle_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashname(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashname(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_out(arg_fcinfo) + hashname(arg_fcinfo) }) } -pub unsafe fn circle_same(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashvarlena(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashvarlena(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_same(arg_fcinfo) + hashvarlena(arg_fcinfo) }) } -pub unsafe fn circle_contain(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashoidvector(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_contain(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashoidvector(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_contain(arg_fcinfo) + hashoidvector(arg_fcinfo) }) } -pub unsafe fn circle_left(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_left(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_left(arg_fcinfo) + text_larger(arg_fcinfo) }) } -pub unsafe fn circle_overleft(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_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_overleft(arg_fcinfo) + text_smaller(arg_fcinfo) }) } -pub unsafe fn circle_overright(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_overright(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8in(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_overright(arg_fcinfo) + int8in(arg_fcinfo) }) } -pub unsafe fn circle_right(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_right(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8out(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_right(arg_fcinfo) + int8out(arg_fcinfo) }) } -pub unsafe fn circle_contained(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_contained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8um(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_contained(arg_fcinfo) + int8um(arg_fcinfo) }) } -pub unsafe fn circle_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_overlap(arg_fcinfo) + int8pl(arg_fcinfo) }) } -pub unsafe fn circle_below(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_below(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_below(arg_fcinfo) + int8mi(arg_fcinfo) }) } -pub unsafe fn circle_above(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_above(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_above(arg_fcinfo) + int8mul(arg_fcinfo) }) } -pub unsafe fn circle_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8div(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_eq(arg_fcinfo) + int8div(arg_fcinfo) }) } -pub unsafe fn circle_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_ne(arg_fcinfo) + int8eq(arg_fcinfo) }) } -pub unsafe fn circle_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_lt(arg_fcinfo) + int8ne(arg_fcinfo) }) } -pub unsafe fn circle_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_gt(arg_fcinfo) + int8lt(arg_fcinfo) }) } -pub unsafe fn circle_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_le(arg_fcinfo) + int8gt(arg_fcinfo) }) } -pub unsafe fn circle_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8le(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_ge(arg_fcinfo) + int8le(arg_fcinfo) }) } -pub unsafe fn circle_area(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_area(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_area(arg_fcinfo) + int8ge(arg_fcinfo) }) } -pub unsafe fn circle_diameter(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_diameter(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_diameter(arg_fcinfo) + int84eq(arg_fcinfo) }) } -pub unsafe fn circle_radius(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_radius(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_radius(arg_fcinfo) + int84ne(arg_fcinfo) }) } -pub unsafe fn circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_distance(arg_fcinfo) + int84lt(arg_fcinfo) }) } -pub unsafe fn cr_circle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cr_circle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - cr_circle(arg_fcinfo) + int84gt(arg_fcinfo) }) } -pub unsafe fn poly_circle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_circle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84le(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_circle(arg_fcinfo) + int84le(arg_fcinfo) }) } -pub unsafe fn circle_poly(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_poly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_poly(arg_fcinfo) + int84ge(arg_fcinfo) }) } -pub unsafe fn dist_pc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_pc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84(arg_fcinfo: FunctionCallInfo) -> Datum; } - dist_pc(arg_fcinfo) + int84(arg_fcinfo) }) } -pub unsafe fn circle_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_contain_pt(arg_fcinfo) + int48(arg_fcinfo) }) } -pub unsafe fn pt_contained_circle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i8tod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pt_contained_circle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i8tod(arg_fcinfo: FunctionCallInfo) -> Datum; } - pt_contained_circle(arg_fcinfo) + i8tod(arg_fcinfo) }) } -pub unsafe fn box_circle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtoi8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_circle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtoi8(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_circle(arg_fcinfo) + dtoi8(arg_fcinfo) }) } -pub unsafe fn circle_box(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_box(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_box(arg_fcinfo) + array_larger(arg_fcinfo) }) } -pub unsafe fn lseg_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_ne(arg_fcinfo) + array_smaller(arg_fcinfo) }) } -pub unsafe fn lseg_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_lt(arg_fcinfo) + inet_abbrev(arg_fcinfo) }) } -pub unsafe fn lseg_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_le(arg_fcinfo) + cidr_abbrev(arg_fcinfo) }) } -pub unsafe fn lseg_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_gt(arg_fcinfo) + inet_set_masklen(arg_fcinfo) }) } -pub unsafe fn lseg_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorne(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_ge(arg_fcinfo) + oidvectorne(arg_fcinfo) }) } -pub unsafe fn lseg_length(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_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hash_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_length(arg_fcinfo) + hash_array(arg_fcinfo) }) } -pub unsafe fn close_ls(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 close_ls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; } - close_ls(arg_fcinfo) + cidr_set_masklen(arg_fcinfo) }) } -pub unsafe fn close_lseg(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_lseg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_indexam_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; } - close_lseg(arg_fcinfo) + pg_indexam_has_property(arg_fcinfo) }) } -pub unsafe fn line_in(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 line_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_index_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_in(arg_fcinfo) + pg_index_has_property(arg_fcinfo) }) } -pub unsafe fn line_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_index_column_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_out(arg_fcinfo) + pg_index_column_has_property(arg_fcinfo) }) } -pub unsafe fn line_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i8tof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i8tof(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_eq(arg_fcinfo) + i8tof(arg_fcinfo) }) } -pub unsafe fn line_construct_pp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ftoi8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_construct_pp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ftoi8(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_construct_pp(arg_fcinfo) + ftoi8(arg_fcinfo) }) } -pub unsafe fn line_interpt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namelt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_interpt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namelt(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_interpt(arg_fcinfo) + namelt(arg_fcinfo) }) } -pub unsafe fn line_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namele(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namele(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_intersect(arg_fcinfo) + namele(arg_fcinfo) }) } -pub unsafe fn bit_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namegt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namegt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_in(arg_fcinfo) + namegt(arg_fcinfo) }) } -pub unsafe fn bit_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namege(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namege(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_out(arg_fcinfo) + namege(arg_fcinfo) }) } -pub unsafe fn pg_get_ruledef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namene(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_ruledef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namene(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_ruledef(arg_fcinfo) + namene(arg_fcinfo) }) } -pub unsafe fn nextval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - nextval_oid(arg_fcinfo) + bpchar(arg_fcinfo) }) } -pub unsafe fn currval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varchar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn currval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - currval_oid(arg_fcinfo) + varchar(arg_fcinfo) }) } -pub unsafe fn setval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn mktinterval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn mktinterval(arg_fcinfo: FunctionCallInfo) -> Datum; } - setval_oid(arg_fcinfo) + mktinterval(arg_fcinfo) }) } -pub unsafe fn varbit_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbit_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit_in(arg_fcinfo) + oidvectorlt(arg_fcinfo) }) } -pub unsafe fn varbit_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbit_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorle(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit_out(arg_fcinfo) + oidvectorle(arg_fcinfo) }) } -pub unsafe fn biteq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectoreq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn biteq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectoreq(arg_fcinfo: FunctionCallInfo) -> Datum; } - biteq(arg_fcinfo) + oidvectoreq(arg_fcinfo) }) } -pub unsafe fn bitne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorge(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitne(arg_fcinfo) + oidvectorge(arg_fcinfo) }) } -pub unsafe fn bitge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitge(arg_fcinfo) + oidvectorgt(arg_fcinfo) }) } -pub unsafe fn bitgt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_network(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_network(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitgt(arg_fcinfo) + network_network(arg_fcinfo) }) } -pub unsafe fn bitle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_netmask(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_netmask(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitle(arg_fcinfo) + network_netmask(arg_fcinfo) }) } -pub unsafe fn bitlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_masklen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitlt(arg_fcinfo) + network_masklen(arg_fcinfo) }) } -pub unsafe fn bitcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_broadcast(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_broadcast(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitcmp(arg_fcinfo) + network_broadcast(arg_fcinfo) }) } -pub unsafe fn PG_encoding_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_host(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PG_encoding_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_host(arg_fcinfo: FunctionCallInfo) -> Datum; } - PG_encoding_to_char(arg_fcinfo) + network_host(arg_fcinfo) }) } -pub unsafe fn drandom(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn current_user(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn drandom(arg_fcinfo: FunctionCallInfo) -> Datum; + fn current_user(arg_fcinfo: FunctionCallInfo) -> Datum; } - drandom(arg_fcinfo) + current_user(arg_fcinfo) }) } -pub unsafe fn setseed(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_family(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setseed(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_family(arg_fcinfo: FunctionCallInfo) -> Datum; } - setseed(arg_fcinfo) + network_family(arg_fcinfo) }) } -pub unsafe fn dasin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dasin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82(arg_fcinfo: FunctionCallInfo) -> Datum; } - dasin(arg_fcinfo) + int82(arg_fcinfo) }) } -pub unsafe fn dacos(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 dacos(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_create(arg_fcinfo: FunctionCallInfo) -> Datum; } - dacos(arg_fcinfo) + be_lo_create(arg_fcinfo) }) } -pub unsafe fn datan(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datan(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - datan(arg_fcinfo) + oidlt(arg_fcinfo) }) } -pub unsafe fn datan2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datan2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidle(arg_fcinfo: FunctionCallInfo) -> Datum; } - datan2(arg_fcinfo) + oidle(arg_fcinfo) }) } -pub unsafe fn dsin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsin(arg_fcinfo) + byteaoctetlen(arg_fcinfo) }) } -pub unsafe fn dcos(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaGetByte(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dcos(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaGetByte(arg_fcinfo: FunctionCallInfo) -> Datum; } - dcos(arg_fcinfo) + byteaGetByte(arg_fcinfo) }) } -pub unsafe fn dtan(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaSetByte(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dtan(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaSetByte(arg_fcinfo: FunctionCallInfo) -> Datum; } - dtan(arg_fcinfo) + byteaSetByte(arg_fcinfo) }) } -pub unsafe fn dcot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaGetBit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dcot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaGetBit(arg_fcinfo: FunctionCallInfo) -> Datum; } - dcot(arg_fcinfo) + byteaGetBit(arg_fcinfo) }) } -pub unsafe fn degrees(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaSetBit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn degrees(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaSetBit(arg_fcinfo: FunctionCallInfo) -> Datum; } - degrees(arg_fcinfo) + byteaSetBit(arg_fcinfo) }) } -pub unsafe fn radians(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn radians(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - radians(arg_fcinfo) + dist_pl(arg_fcinfo) }) } -pub unsafe fn dpi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_lb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dpi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_lb(arg_fcinfo: FunctionCallInfo) -> Datum; } - dpi(arg_fcinfo) + dist_lb(arg_fcinfo) }) } -pub unsafe fn interval_mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_sl(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_mul(arg_fcinfo) + dist_sl(arg_fcinfo) }) } -pub unsafe fn pg_typeof(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_cpoly(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_cpoly(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_typeof(arg_fcinfo) + dist_cpoly(arg_fcinfo) }) } -pub unsafe fn ascii(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ascii(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - ascii(arg_fcinfo) + poly_distance(arg_fcinfo) }) } -pub unsafe fn chr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_show(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn chr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_show(arg_fcinfo: FunctionCallInfo) -> Datum; } - chr(arg_fcinfo) + network_show(arg_fcinfo) }) } -pub unsafe fn repeat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn repeat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - repeat(arg_fcinfo) + text_lt(arg_fcinfo) }) } -pub unsafe fn similar_escape(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn similar_escape(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - similar_escape(arg_fcinfo) + text_le(arg_fcinfo) }) } -pub unsafe fn mul_d_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mul_d_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - mul_d_interval(arg_fcinfo) + text_gt(arg_fcinfo) }) } -pub unsafe fn texticlike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texticlike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - texticlike(arg_fcinfo) + text_ge(arg_fcinfo) }) } -pub unsafe fn texticnlike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texticnlike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - texticnlike(arg_fcinfo) + array_eq(arg_fcinfo) }) } -pub unsafe fn nameiclike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn session_user(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameiclike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn session_user(arg_fcinfo: FunctionCallInfo) -> Datum; } - nameiclike(arg_fcinfo) + session_user(arg_fcinfo) }) } -pub unsafe fn nameicnlike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_dims(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameicnlike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_dims(arg_fcinfo: FunctionCallInfo) -> Datum; } - nameicnlike(arg_fcinfo) + array_dims(arg_fcinfo) }) } -pub unsafe fn like_escape(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_ndims(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn like_escape(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_ndims(arg_fcinfo: FunctionCallInfo) -> Datum; } - like_escape(arg_fcinfo) + array_ndims(arg_fcinfo) }) } -pub unsafe fn oidgt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaoverlay(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidgt(arg_fcinfo) + byteaoverlay(arg_fcinfo) }) } -pub unsafe fn oidge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidge(arg_fcinfo) + array_in(arg_fcinfo) }) } -pub unsafe fn pg_get_viewdef_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_viewdef_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_viewdef_name(arg_fcinfo) + array_out(arg_fcinfo) }) } -pub unsafe fn pg_get_viewdef(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_viewdef(arg_fcinfo) + byteaoverlay_no_len(arg_fcinfo) }) } -pub unsafe fn pg_get_userbyid(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_userbyid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_userbyid(arg_fcinfo) + macaddr_trunc(arg_fcinfo) }) } -pub unsafe fn pg_get_indexdef(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_indexdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_indexdef(arg_fcinfo) + int28(arg_fcinfo) }) } -pub unsafe fn RI_FKey_check_ins(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn smgrin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_check_ins(arg_fcinfo: FunctionCallInfo) -> Datum; + fn smgrin(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_check_ins(arg_fcinfo) + smgrin(arg_fcinfo) }) } -pub unsafe fn RI_FKey_check_upd(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_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn smgrout(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_check_upd(arg_fcinfo) + smgrout(arg_fcinfo) }) } -pub unsafe fn RI_FKey_cascade_del(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_cascade_del(arg_fcinfo: FunctionCallInfo) -> Datum; + fn smgreq(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_cascade_del(arg_fcinfo) + smgreq(arg_fcinfo) }) } -pub unsafe fn RI_FKey_cascade_upd(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_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn smgrne(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_cascade_upd(arg_fcinfo) + smgrne(arg_fcinfo) }) } -pub unsafe fn RI_FKey_restrict_del(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_restrict_del(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_import(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_restrict_del(arg_fcinfo) + be_lo_import(arg_fcinfo) }) } -pub unsafe fn RI_FKey_restrict_upd(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_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_export(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_restrict_upd(arg_fcinfo) + be_lo_export(arg_fcinfo) }) } -pub unsafe fn RI_FKey_setnull_del(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_setnull_del(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4inc(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_setnull_del(arg_fcinfo) + int4inc(arg_fcinfo) }) } -pub unsafe fn RI_FKey_setnull_upd(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_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_import_with_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_setnull_upd(arg_fcinfo) + be_lo_import_with_oid(arg_fcinfo) }) } -pub unsafe fn RI_FKey_setdefault_del(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_setdefault_del(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_setdefault_del(arg_fcinfo) + int4larger(arg_fcinfo) }) } -pub unsafe fn RI_FKey_setdefault_upd(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_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_setdefault_upd(arg_fcinfo) + int4smaller(arg_fcinfo) }) } -pub unsafe fn RI_FKey_noaction_del(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_noaction_del(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_noaction_del(arg_fcinfo) + int2larger(arg_fcinfo) }) } -pub unsafe fn RI_FKey_noaction_upd(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_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_noaction_upd(arg_fcinfo) + int2smaller(arg_fcinfo) }) } -pub unsafe fn pg_get_triggerdef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervaleq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_triggerdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervaleq(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_triggerdef(arg_fcinfo) + tintervaleq(arg_fcinfo) }) } -pub unsafe fn pg_get_serial_sequence(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_serial_sequence(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_serial_sequence(arg_fcinfo) + tintervalne(arg_fcinfo) }) } -pub unsafe fn bit_and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit_and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_and(arg_fcinfo) + tintervallt(arg_fcinfo) }) } -pub unsafe fn bit_or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit_or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_or(arg_fcinfo) + tintervalgt(arg_fcinfo) }) } -pub unsafe fn bitxor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitxor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalle(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitxor(arg_fcinfo) + tintervalle(arg_fcinfo) }) } -pub unsafe fn bitnot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitnot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalge(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitnot(arg_fcinfo) + tintervalge(arg_fcinfo) }) } -pub unsafe fn bitshiftleft(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 bitshiftleft(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_client_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitshiftleft(arg_fcinfo) + pg_client_encoding(arg_fcinfo) }) } -pub unsafe fn bitshiftright(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn current_query(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitshiftright(arg_fcinfo: FunctionCallInfo) -> Datum; + fn current_query(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitshiftright(arg_fcinfo) + current_query(arg_fcinfo) }) } -pub unsafe fn bitcat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitcat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitcat(arg_fcinfo) + macaddr_eq(arg_fcinfo) }) } -pub unsafe fn bitsubstr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitsubstr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitsubstr(arg_fcinfo) + macaddr_lt(arg_fcinfo) }) } -pub unsafe fn bitlength(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitlength(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitlength(arg_fcinfo) + macaddr_le(arg_fcinfo) }) } -pub unsafe fn bitoctetlength(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitoctetlength(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitoctetlength(arg_fcinfo) + macaddr_gt(arg_fcinfo) }) } -pub unsafe fn bitfromint4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitfromint4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitfromint4(arg_fcinfo) + macaddr_ge(arg_fcinfo) }) } -pub unsafe fn bittoint4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bittoint4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - bittoint4(arg_fcinfo) + macaddr_ne(arg_fcinfo) }) } -pub unsafe fn bit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit(arg_fcinfo) + macaddr_cmp(arg_fcinfo) }) } -pub unsafe fn pg_get_keywords(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_keywords(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_keywords(arg_fcinfo) + int82pl(arg_fcinfo) }) } -pub unsafe fn varbit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit(arg_fcinfo) + int82mi(arg_fcinfo) }) } -pub unsafe fn time_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_hash(arg_fcinfo) + int82mul(arg_fcinfo) }) } -pub unsafe fn aclexplode(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclexplode(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82div(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclexplode(arg_fcinfo) + int82div(arg_fcinfo) }) } -pub unsafe fn time_mi_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_mi_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_mi_time(arg_fcinfo) + int28pl(arg_fcinfo) }) } -pub unsafe fn boolle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint8cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint8cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolle(arg_fcinfo) + btint8cmp(arg_fcinfo) }) } -pub unsafe fn boolge(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 boolge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mul_flt4(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolge(arg_fcinfo) + cash_mul_flt4(arg_fcinfo) }) } -pub unsafe fn btboolcmp(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 btboolcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_div_flt4(arg_fcinfo: FunctionCallInfo) -> Datum; } - btboolcmp(arg_fcinfo) + cash_div_flt4(arg_fcinfo) }) } -pub unsafe fn timetz_hash(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 timetz_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn flt4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_hash(arg_fcinfo) + flt4_mul_cash(arg_fcinfo) }) } -pub unsafe fn interval_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textpos(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textpos(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_hash(arg_fcinfo) + textpos(arg_fcinfo) }) } -pub unsafe fn bitposition(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitposition(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitposition(arg_fcinfo) + textlike(arg_fcinfo) }) } -pub unsafe fn bitsubstr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textnlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitsubstr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textnlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitsubstr_no_len(arg_fcinfo) + textnlike(arg_fcinfo) }) } -pub unsafe fn numeric_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_in(arg_fcinfo) + int48eq(arg_fcinfo) }) } -pub unsafe fn numeric_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_out(arg_fcinfo) + int48ne(arg_fcinfo) }) } -pub unsafe fn numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric(arg_fcinfo) + int48lt(arg_fcinfo) }) } -pub unsafe fn numeric_abs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_abs(arg_fcinfo) + int48gt(arg_fcinfo) }) } -pub unsafe fn numeric_sign(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_sign(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48le(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_sign(arg_fcinfo) + int48le(arg_fcinfo) }) } -pub unsafe fn numeric_round(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_round(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_round(arg_fcinfo) + int48ge(arg_fcinfo) }) } -pub unsafe fn numeric_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namelike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namelike(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_trunc(arg_fcinfo) + namelike(arg_fcinfo) }) } -pub unsafe fn numeric_ceil(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namenlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_ceil(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namenlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_ceil(arg_fcinfo) + namenlike(arg_fcinfo) }) } -pub unsafe fn numeric_floor(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_floor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn char_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_floor(arg_fcinfo) + char_bpchar(arg_fcinfo) }) } -pub unsafe fn length_in_encoding(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn current_database(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn length_in_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; + fn current_database(arg_fcinfo: FunctionCallInfo) -> Datum; } - length_in_encoding(arg_fcinfo) + current_database(arg_fcinfo) }) } -pub unsafe fn pg_convert_from(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 pg_convert_from(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_convert_from(arg_fcinfo) + int4_mul_cash(arg_fcinfo) }) } -pub unsafe fn inet_to_cidr(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 inet_to_cidr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_to_cidr(arg_fcinfo) + int2_mul_cash(arg_fcinfo) }) } -pub unsafe fn pg_get_expr(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 pg_get_expr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mul_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_expr(arg_fcinfo) + cash_mul_int4(arg_fcinfo) }) } -pub unsafe fn pg_convert_to(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_convert_to(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_div_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_convert_to(arg_fcinfo) + cash_div_int4(arg_fcinfo) }) } -pub unsafe fn numeric_eq(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 numeric_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mul_int2(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_eq(arg_fcinfo) + cash_mul_int2(arg_fcinfo) }) } -pub unsafe fn numeric_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_div_int2(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_ne(arg_fcinfo) + cash_div_int2(arg_fcinfo) }) } -pub unsafe fn numeric_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lower(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lower(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_gt(arg_fcinfo) + lower(arg_fcinfo) }) } -pub unsafe fn numeric_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn upper(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn upper(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_ge(arg_fcinfo) + upper(arg_fcinfo) }) } -pub unsafe fn numeric_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn initcap(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn initcap(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_lt(arg_fcinfo) + initcap(arg_fcinfo) }) } -pub unsafe fn numeric_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lpad(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lpad(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_le(arg_fcinfo) + lpad(arg_fcinfo) }) } -pub unsafe fn numeric_add(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn rpad(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_add(arg_fcinfo: FunctionCallInfo) -> Datum; + fn rpad(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_add(arg_fcinfo) + rpad(arg_fcinfo) }) } -pub unsafe fn numeric_sub(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ltrim(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_sub(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ltrim(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_sub(arg_fcinfo) + ltrim(arg_fcinfo) }) } -pub unsafe fn numeric_mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn rtrim(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn rtrim(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_mul(arg_fcinfo) + rtrim(arg_fcinfo) }) } -pub unsafe fn numeric_div(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_div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_substr(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_div(arg_fcinfo) + text_substr(arg_fcinfo) }) } -pub unsafe fn numeric_mod(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn translate(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_mod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn translate(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_mod(arg_fcinfo) + translate(arg_fcinfo) }) } -pub unsafe fn numeric_sqrt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ltrim1(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_sqrt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ltrim1(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_sqrt(arg_fcinfo) + ltrim1(arg_fcinfo) }) } -pub unsafe fn numeric_exp(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_exp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_exp(arg_fcinfo) + text_substr_no_len(arg_fcinfo) }) } -pub unsafe fn numeric_ln(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btrim(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_ln(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btrim(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_ln(arg_fcinfo) + btrim(arg_fcinfo) }) } -pub unsafe fn numeric_log(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btrim1(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_log(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btrim1(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_log(arg_fcinfo) + btrim1(arg_fcinfo) }) } -pub unsafe fn numeric_power(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_power(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_power(arg_fcinfo) + cash_in(arg_fcinfo) }) } -pub unsafe fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_numeric(arg_fcinfo) + cash_out(arg_fcinfo) }) } -pub unsafe fn float4_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 float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4_numeric(arg_fcinfo) + cash_eq(arg_fcinfo) }) } -pub unsafe fn float8_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 float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_numeric(arg_fcinfo) + cash_ne(arg_fcinfo) }) } -pub unsafe fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_int4(arg_fcinfo) + cash_lt(arg_fcinfo) }) } -pub unsafe fn numeric_float4(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_float4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_float4(arg_fcinfo) + cash_le(arg_fcinfo) }) } -pub unsafe fn numeric_float8(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_float8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_float8(arg_fcinfo) + cash_gt(arg_fcinfo) }) } -pub unsafe fn time_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_pl_interval(arg_fcinfo) + cash_ge(arg_fcinfo) }) } -pub unsafe fn time_mi_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_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_mi_interval(arg_fcinfo) + cash_pl(arg_fcinfo) }) } -pub unsafe fn timetz_pl_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 timetz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_pl_interval(arg_fcinfo) + cash_mi(arg_fcinfo) }) } -pub unsafe fn timetz_mi_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_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mul_flt8(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_mi_interval(arg_fcinfo) + cash_mul_flt8(arg_fcinfo) }) } -pub unsafe fn numeric_inc(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 numeric_inc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_div_flt8(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_inc(arg_fcinfo) + cash_div_flt8(arg_fcinfo) }) } -pub unsafe fn setval3_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cashlarger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setval3_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cashlarger(arg_fcinfo: FunctionCallInfo) -> Datum; } - setval3_oid(arg_fcinfo) + cashlarger(arg_fcinfo) }) } -pub unsafe fn numeric_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cashsmaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cashsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_smaller(arg_fcinfo) + cashsmaller(arg_fcinfo) }) } -pub unsafe fn numeric_larger(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_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_larger(arg_fcinfo) + inet_in(arg_fcinfo) }) } -pub unsafe fn interval_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_to_char(arg_fcinfo) + inet_out(arg_fcinfo) }) } -pub unsafe fn numeric_cmp(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 numeric_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn flt8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_cmp(arg_fcinfo) + flt8_mul_cash(arg_fcinfo) }) } -pub unsafe fn timestamptz_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_to_char(arg_fcinfo) + network_eq(arg_fcinfo) }) } -pub unsafe fn numeric_uminus(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_uminus(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_uminus(arg_fcinfo) + network_lt(arg_fcinfo) }) } -pub unsafe fn numeric_to_char(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_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_to_char(arg_fcinfo) + network_le(arg_fcinfo) }) } -pub unsafe fn int4_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 int4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_to_char(arg_fcinfo) + network_gt(arg_fcinfo) }) } -pub unsafe fn int8_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 int8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_to_char(arg_fcinfo) + network_ge(arg_fcinfo) }) } -pub unsafe fn float4_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 float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4_to_char(arg_fcinfo) + network_ne(arg_fcinfo) }) } -pub unsafe fn float8_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 float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_to_char(arg_fcinfo) + network_cmp(arg_fcinfo) }) } -pub unsafe fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_sub(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_sub(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_to_number(arg_fcinfo) + network_sub(arg_fcinfo) }) } -pub unsafe fn to_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_subeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_subeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_timestamp(arg_fcinfo) + network_subeq(arg_fcinfo) }) } -pub unsafe fn numeric_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_sup(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_sup(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_int8(arg_fcinfo) + network_sup(arg_fcinfo) }) } -pub unsafe fn to_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_supeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_supeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_date(arg_fcinfo) + network_supeq(arg_fcinfo) }) } -pub unsafe fn int8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_words(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_words(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_numeric(arg_fcinfo) + cash_words(arg_fcinfo) }) } -pub unsafe fn int2_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 int2_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_numeric(arg_fcinfo) + generate_series_timestamp(arg_fcinfo) }) } -pub unsafe fn numeric_int2(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 numeric_int2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_int2(arg_fcinfo) + generate_series_timestamptz(arg_fcinfo) }) } -pub unsafe fn oidin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidin(arg_fcinfo) + int28mi(arg_fcinfo) }) } -pub unsafe fn oidout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidout(arg_fcinfo) + int28mul(arg_fcinfo) }) } -pub unsafe fn pg_convert(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_char(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_convert(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_convert(arg_fcinfo) + text_char(arg_fcinfo) }) } -pub unsafe fn iclikesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8mod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn iclikesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8mod(arg_fcinfo: FunctionCallInfo) -> Datum; } - iclikesel(arg_fcinfo) + int8mod(arg_fcinfo) }) } -pub unsafe fn icnlikesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn char_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icnlikesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn char_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - icnlikesel(arg_fcinfo) + char_text(arg_fcinfo) }) } -pub unsafe fn iclikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn iclikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28div(arg_fcinfo: FunctionCallInfo) -> Datum; } - iclikejoinsel(arg_fcinfo) + int28div(arg_fcinfo) }) } -pub unsafe fn icnlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashint8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icnlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashint8(arg_fcinfo: FunctionCallInfo) -> Datum; } - icnlikejoinsel(arg_fcinfo) + hashint8(arg_fcinfo) }) } -pub unsafe fn regexeqsel(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 regexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_open(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexeqsel(arg_fcinfo) + be_lo_open(arg_fcinfo) }) } -pub unsafe fn likesel(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 likesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_close(arg_fcinfo: FunctionCallInfo) -> Datum; } - likesel(arg_fcinfo) + be_lo_close(arg_fcinfo) }) } -pub unsafe fn icregexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_loread(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icregexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_loread(arg_fcinfo: FunctionCallInfo) -> Datum; } - icregexeqsel(arg_fcinfo) + be_loread(arg_fcinfo) }) } -pub unsafe fn regexnesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lowrite(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexnesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lowrite(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexnesel(arg_fcinfo) + be_lowrite(arg_fcinfo) }) } -pub unsafe fn nlikesel(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 nlikesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_lseek(arg_fcinfo: FunctionCallInfo) -> Datum; } - nlikesel(arg_fcinfo) + be_lo_lseek(arg_fcinfo) }) } -pub unsafe fn icregexnesel(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 icregexnesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_creat(arg_fcinfo: FunctionCallInfo) -> Datum; } - icregexnesel(arg_fcinfo) + be_lo_creat(arg_fcinfo) }) } -pub unsafe fn regexeqjoinsel(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 regexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_tell(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexeqjoinsel(arg_fcinfo) + be_lo_tell(arg_fcinfo) }) } -pub unsafe fn likejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn likejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - likejoinsel(arg_fcinfo) + on_pl(arg_fcinfo) }) } -pub unsafe fn icregexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icregexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_sl(arg_fcinfo: FunctionCallInfo) -> Datum; } - icregexeqjoinsel(arg_fcinfo) + on_sl(arg_fcinfo) }) } -pub unsafe fn regexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexnejoinsel(arg_fcinfo) + close_pl(arg_fcinfo) }) } -pub unsafe fn nlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_sl(arg_fcinfo: FunctionCallInfo) -> Datum; } - nlikejoinsel(arg_fcinfo) + close_sl(arg_fcinfo) }) } -pub unsafe fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_lb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_lb(arg_fcinfo: FunctionCallInfo) -> Datum; } - icregexnejoinsel(arg_fcinfo) + close_lb(arg_fcinfo) }) } -pub unsafe fn float8_avg(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 float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_unlink(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_avg(arg_fcinfo) + be_lo_unlink(arg_fcinfo) }) } -pub unsafe fn float8_var_samp(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_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_inter(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_var_samp(arg_fcinfo) + path_inter(arg_fcinfo) }) } -pub unsafe fn float8_stddev_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_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_area(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_stddev_samp(arg_fcinfo) + box_area(arg_fcinfo) }) } -pub unsafe fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_width(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_width(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_accum(arg_fcinfo) + box_width(arg_fcinfo) }) } -pub unsafe fn int2_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 int2_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_height(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_accum(arg_fcinfo) + box_height(arg_fcinfo) }) } -pub unsafe fn int4_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 int4_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_accum(arg_fcinfo) + box_distance(arg_fcinfo) }) } -pub unsafe fn int8_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 int8_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_area(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_accum(arg_fcinfo) + path_area(arg_fcinfo) }) } -pub unsafe fn numeric_avg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_avg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_avg(arg_fcinfo) + box_intersect(arg_fcinfo) }) } -pub unsafe fn numeric_var_samp(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_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_diagonal(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_var_samp(arg_fcinfo) + box_diagonal(arg_fcinfo) }) } -pub unsafe fn numeric_stddev_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_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_n_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_stddev_samp(arg_fcinfo) + path_n_lt(arg_fcinfo) }) } -pub unsafe fn int2_sum(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 int2_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_n_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_sum(arg_fcinfo) + path_n_gt(arg_fcinfo) }) } -pub unsafe fn int4_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 int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_n_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_sum(arg_fcinfo) + path_n_eq(arg_fcinfo) }) } -pub unsafe fn int8_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 int8_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_n_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_sum(arg_fcinfo) + path_n_le(arg_fcinfo) }) } -pub unsafe fn interval_accum(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 interval_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_n_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_accum(arg_fcinfo) + path_n_ge(arg_fcinfo) }) } -pub unsafe fn interval_avg(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_avg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_avg(arg_fcinfo) + path_length(arg_fcinfo) }) } -pub unsafe fn to_ascii_default(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_ascii_default(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_ascii_default(arg_fcinfo) + point_ne(arg_fcinfo) }) } -pub unsafe fn to_ascii_enc(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_enc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_vert(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_ascii_enc(arg_fcinfo) + point_vert(arg_fcinfo) }) } -pub unsafe fn to_ascii_encname(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_encname(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_horiz(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_ascii_encname(arg_fcinfo) + point_horiz(arg_fcinfo) }) } -pub unsafe fn int28eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28eq(arg_fcinfo) + point_distance(arg_fcinfo) }) } -pub unsafe fn int28ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_slope(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_slope(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28ne(arg_fcinfo) + point_slope(arg_fcinfo) }) } -pub unsafe fn int28lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_construct(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_construct(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28lt(arg_fcinfo) + lseg_construct(arg_fcinfo) }) } -pub unsafe fn int28gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28gt(arg_fcinfo) + lseg_intersect(arg_fcinfo) }) } -pub unsafe fn int28le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_parallel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_parallel(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28le(arg_fcinfo) + lseg_parallel(arg_fcinfo) }) } -pub unsafe fn int28ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_perp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_perp(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28ge(arg_fcinfo) + lseg_perp(arg_fcinfo) }) } -pub unsafe fn int82eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_vertical(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_vertical(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82eq(arg_fcinfo) + lseg_vertical(arg_fcinfo) }) } -pub unsafe fn int82ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82ne(arg_fcinfo) + lseg_horizontal(arg_fcinfo) }) } -pub unsafe fn int82lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82lt(arg_fcinfo) + lseg_eq(arg_fcinfo) }) } -pub unsafe fn int82gt(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 int82gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_truncate(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82gt(arg_fcinfo) + be_lo_truncate(arg_fcinfo) }) } -pub unsafe fn int82le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_izone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_izone(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82le(arg_fcinfo) + timestamptz_izone(arg_fcinfo) }) } -pub unsafe fn int82ge(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 int82ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_point_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82ge(arg_fcinfo) + gist_point_compress(arg_fcinfo) }) } -pub unsafe fn int2and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclitemin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclitemin(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2and(arg_fcinfo) + aclitemin(arg_fcinfo) }) } -pub unsafe fn int2or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclitemout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclitemout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2or(arg_fcinfo) + aclitemout(arg_fcinfo) }) } -pub unsafe fn int2xor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclinsert(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2xor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclinsert(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2xor(arg_fcinfo) + aclinsert(arg_fcinfo) }) } -pub unsafe fn int2not(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclremove(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclremove(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2not(arg_fcinfo) + aclremove(arg_fcinfo) }) } -pub unsafe fn int2shl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclcontains(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2shl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclcontains(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2shl(arg_fcinfo) + aclcontains(arg_fcinfo) }) } -pub unsafe fn int2shr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn getdatabaseencoding(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2shr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn getdatabaseencoding(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2shr(arg_fcinfo) + getdatabaseencoding(arg_fcinfo) }) } -pub unsafe fn int4and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharin(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4and(arg_fcinfo) + bpcharin(arg_fcinfo) }) } -pub unsafe fn int4or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4or(arg_fcinfo) + bpcharout(arg_fcinfo) }) } -pub unsafe fn int4xor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varcharin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4xor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varcharin(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4xor(arg_fcinfo) + varcharin(arg_fcinfo) }) } -pub unsafe fn int4not(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varcharout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varcharout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4not(arg_fcinfo) + varcharout(arg_fcinfo) }) } -pub unsafe fn int4shl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchareq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4shl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchareq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4shl(arg_fcinfo) + bpchareq(arg_fcinfo) }) } -pub unsafe fn int4shr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4shr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4shr(arg_fcinfo) + bpcharlt(arg_fcinfo) }) } -pub unsafe fn int8and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharle(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8and(arg_fcinfo) + bpcharle(arg_fcinfo) }) } -pub unsafe fn int8or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchargt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchargt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8or(arg_fcinfo) + bpchargt(arg_fcinfo) }) } -pub unsafe fn int8xor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8xor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharge(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8xor(arg_fcinfo) + bpcharge(arg_fcinfo) }) } -pub unsafe fn int8not(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharne(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8not(arg_fcinfo) + bpcharne(arg_fcinfo) }) } -pub unsafe fn int8shl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclitem_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8shl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclitem_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8shl(arg_fcinfo) + aclitem_eq(arg_fcinfo) }) } -pub unsafe fn int8shr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8shr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8shr(arg_fcinfo) + bpchar_larger(arg_fcinfo) }) } -pub unsafe fn int8up(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8up(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8up(arg_fcinfo) + bpchar_smaller(arg_fcinfo) }) } -pub unsafe fn int2up(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 int2up(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_prepared_xact(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2up(arg_fcinfo) + pg_prepared_xact(arg_fcinfo) }) } -pub unsafe fn int4up(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 int4up(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_step_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4up(arg_fcinfo) + generate_series_step_int4(arg_fcinfo) }) } -pub unsafe fn float4up(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 float4up(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4up(arg_fcinfo) + generate_series_int4(arg_fcinfo) }) } -pub unsafe fn float8up(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 float8up(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_step_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8up(arg_fcinfo) + generate_series_step_int8(arg_fcinfo) }) } -pub unsafe fn numeric_uplus(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 numeric_uplus(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_uplus(arg_fcinfo) + generate_series_int8(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharcmp(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 bpcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_name_name(arg_fcinfo) + bpcharcmp(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_regclass(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_name_id(arg_fcinfo) + text_regclass(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashbpchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_id_name(arg_fcinfo) + hashbpchar(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn format_type(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_id_id(arg_fcinfo) + format_type(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_name(arg_fcinfo) + date_in(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_id(arg_fcinfo) + date_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_numscans(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_numscans(arg_fcinfo) + date_eq(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_returned(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_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_returned(arg_fcinfo) + date_lt(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_fetched(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_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_fetched(arg_fcinfo) + date_le(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_inserted(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_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_inserted(arg_fcinfo) + date_gt(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_updated(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_updated(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_updated(arg_fcinfo) + date_ge(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_deleted(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_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_deleted(arg_fcinfo) + date_ne(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_blocks_fetched(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_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_blocks_fetched(arg_fcinfo) + date_cmp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_blocks_hit(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_hit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_blocks_hit(arg_fcinfo) + time_lt(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_idset(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_backend_idset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_idset(arg_fcinfo) + time_le(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_pid(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_pid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_pid(arg_fcinfo) + time_gt(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_dbid(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_dbid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_dbid(arg_fcinfo) + time_ge(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_userid(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_userid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_userid(arg_fcinfo) + time_ne(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_activity(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_activity(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_activity(arg_fcinfo) + time_cmp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_numbackends(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_db_numbackends(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_numbackends(arg_fcinfo) + date_larger(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_xact_commit(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_xact_commit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_xact_commit(arg_fcinfo) + date_smaller(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_xact_rollback(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_rollback(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_xact_rollback(arg_fcinfo) + date_mi(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_blocks_fetched(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_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_pli(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_blocks_fetched(arg_fcinfo) + date_pli(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_blocks_hit(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_hit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_mii(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_blocks_hit(arg_fcinfo) + date_mii(arg_fcinfo) }) } -pub unsafe fn binary_encode(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_encode(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_encode(arg_fcinfo) + time_in(arg_fcinfo) }) } -pub unsafe fn binary_decode(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_decode(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_decode(arg_fcinfo) + time_out(arg_fcinfo) }) } -pub unsafe fn byteaeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteaeq(arg_fcinfo) + time_eq(arg_fcinfo) }) } -pub unsafe fn bytealt(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 bytealt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytealt(arg_fcinfo) + circle_add_pt(arg_fcinfo) }) } -pub unsafe fn byteale(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 byteale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteale(arg_fcinfo) + circle_sub_pt(arg_fcinfo) }) } -pub unsafe fn byteagt(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 byteagt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteagt(arg_fcinfo) + circle_mul_pt(arg_fcinfo) }) } -pub unsafe fn byteage(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 byteage(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteage(arg_fcinfo) + circle_div_pt(arg_fcinfo) }) } -pub unsafe fn byteane(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteane(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteane(arg_fcinfo) + timestamptz_in(arg_fcinfo) }) } -pub unsafe fn byteacmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteacmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteacmp(arg_fcinfo) + timestamptz_out(arg_fcinfo) }) } -pub unsafe fn timestamp_scale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_scale(arg_fcinfo) + timestamp_eq(arg_fcinfo) }) } -pub unsafe fn int2_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_avg_accum(arg_fcinfo) + timestamp_ne(arg_fcinfo) }) } -pub unsafe fn int4_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 int4_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_avg_accum(arg_fcinfo) + timestamp_lt(arg_fcinfo) }) } -pub unsafe fn int8_avg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_avg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg(arg_fcinfo) + timestamp_le(arg_fcinfo) }) } -pub unsafe fn oidlarger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidlarger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidlarger(arg_fcinfo) + timestamp_ge(arg_fcinfo) }) } -pub unsafe fn oidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidsmaller(arg_fcinfo) + timestamp_gt(arg_fcinfo) }) } -pub unsafe fn timestamptz_scale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_scale(arg_fcinfo) + timestamptz_zone(arg_fcinfo) }) } -pub unsafe fn time_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 time_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_scale(arg_fcinfo) + interval_in(arg_fcinfo) }) } -pub unsafe fn timetz_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 timetz_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_scale(arg_fcinfo) + interval_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_hot_updated(arg_fcinfo) + interval_eq(arg_fcinfo) }) } -pub unsafe fn numeric_div_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_div_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_div_trunc(arg_fcinfo) + interval_ne(arg_fcinfo) }) } -pub unsafe fn bytealike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytealike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytealike(arg_fcinfo) + interval_lt(arg_fcinfo) }) } -pub unsafe fn byteanlike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteanlike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteanlike(arg_fcinfo) + interval_le(arg_fcinfo) }) } -pub unsafe fn like_escape_bytea(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn like_escape_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - like_escape_bytea(arg_fcinfo) + interval_ge(arg_fcinfo) }) } -pub unsafe fn byteacat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteacat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteacat(arg_fcinfo) + interval_gt(arg_fcinfo) }) } -pub unsafe fn bytea_substr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytea_substr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_um(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytea_substr(arg_fcinfo) + interval_um(arg_fcinfo) }) } -pub unsafe fn bytea_substr_no_len(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_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytea_substr_no_len(arg_fcinfo) + interval_pl(arg_fcinfo) }) } -pub unsafe fn byteapos(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteapos(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteapos(arg_fcinfo) + interval_mi(arg_fcinfo) }) } -pub unsafe fn byteatrim(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_part(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteatrim(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_part(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteatrim(arg_fcinfo) + timestamptz_part(arg_fcinfo) }) } -pub unsafe fn timestamptz_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_part(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_part(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_time(arg_fcinfo) + interval_part(arg_fcinfo) }) } -pub unsafe fn timestamp_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstime_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstime_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_trunc(arg_fcinfo) + abstime_timestamptz(arg_fcinfo) }) } -pub unsafe fn timestamp_part(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_part(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_part(arg_fcinfo) + date_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_activity(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 pg_stat_get_activity(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_justify_hours(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_activity(arg_fcinfo) + interval_justify_hours(arg_fcinfo) }) } -pub unsafe fn abstime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltime_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltime_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - abstime_timestamp(arg_fcinfo) + reltime_interval(arg_fcinfo) }) } -pub unsafe fn date_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 date_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_timestamp(arg_fcinfo) + timestamptz_date(arg_fcinfo) }) } -pub unsafe fn pg_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstime_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstime_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_backend_pid(arg_fcinfo) + abstime_date(arg_fcinfo) }) } -pub unsafe fn timestamptz_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_abstime(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_abstime(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_timestamp(arg_fcinfo) + timestamptz_abstime(arg_fcinfo) }) } -pub unsafe fn timestamp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xid_age(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xid_age(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_timestamptz(arg_fcinfo) + xid_age(arg_fcinfo) }) } -pub unsafe fn timestamp_date(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_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_date(arg_fcinfo) + timestamp_mi(arg_fcinfo) }) } -pub unsafe fn timestamp_abstime(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_abstime(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_abstime(arg_fcinfo) + timestamptz_pl_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_pl_interval(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_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_pl_interval(arg_fcinfo) + timestamptz_mi_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_mi_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_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_subscripts(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_mi_interval(arg_fcinfo) + generate_subscripts(arg_fcinfo) }) } -pub unsafe fn pg_conf_load_time(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 pg_conf_load_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_subscripts_nodir(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_conf_load_time(arg_fcinfo) + generate_subscripts_nodir(arg_fcinfo) }) } -pub unsafe fn timetz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_fill(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_zone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_fill(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_zone(arg_fcinfo) + array_fill(arg_fcinfo) }) } -pub unsafe fn timetz_izone(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_izone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_reltime(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_izone(arg_fcinfo) + interval_reltime(arg_fcinfo) }) } -pub unsafe fn timestamp_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_hash(arg_fcinfo) + timestamp_smaller(arg_fcinfo) }) } -pub unsafe fn timetz_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_time(arg_fcinfo) + timestamp_larger(arg_fcinfo) }) } -pub unsafe fn time_timetz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_timetz(arg_fcinfo) + interval_smaller(arg_fcinfo) }) } -pub unsafe fn timestamp_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_to_char(arg_fcinfo) + interval_larger(arg_fcinfo) }) } -pub unsafe fn aggregate_dummy(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_age(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aggregate_dummy(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_age(arg_fcinfo: FunctionCallInfo) -> Datum; } - aggregate_dummy(arg_fcinfo) + timestamptz_age(arg_fcinfo) }) } -pub unsafe fn timestamp_age(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_scale(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_age(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_age(arg_fcinfo) + interval_scale(arg_fcinfo) }) } -pub unsafe fn timestamp_zone(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_zone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_zone(arg_fcinfo) + timestamptz_trunc(arg_fcinfo) }) } -pub unsafe fn timestamp_izone(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_izone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_izone(arg_fcinfo) + interval_trunc(arg_fcinfo) }) } -pub unsafe fn date_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8inc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8inc(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_pl_interval(arg_fcinfo) + int8inc(arg_fcinfo) }) } -pub unsafe fn date_mi_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_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8abs(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_mi_interval(arg_fcinfo) + int8abs(arg_fcinfo) }) } -pub unsafe fn textregexsubstr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textregexsubstr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - textregexsubstr(arg_fcinfo) + int8larger(arg_fcinfo) }) } -pub unsafe fn bitfromint8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitfromint8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitfromint8(arg_fcinfo) + int8smaller(arg_fcinfo) }) } -pub unsafe fn bittoint8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texticregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bittoint8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texticregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - bittoint8(arg_fcinfo) + texticregexeq(arg_fcinfo) }) } -pub unsafe fn show_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texticregexne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn show_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texticregexne(arg_fcinfo: FunctionCallInfo) -> Datum; } - show_config_by_name(arg_fcinfo) + texticregexne(arg_fcinfo) }) } -pub unsafe fn set_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 set_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameicregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - set_config_by_name(arg_fcinfo) + nameicregexeq(arg_fcinfo) }) } -pub unsafe fn pg_table_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameicregexne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_table_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameicregexne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_table_is_visible(arg_fcinfo) + nameicregexne(arg_fcinfo) }) } -pub unsafe fn pg_type_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_type_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolin(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_type_is_visible(arg_fcinfo) + boolin(arg_fcinfo) }) } -pub unsafe fn pg_function_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_function_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolout(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_function_is_visible(arg_fcinfo) + boolout(arg_fcinfo) }) } -pub unsafe fn pg_operator_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_operator_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteain(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_operator_is_visible(arg_fcinfo) + byteain(arg_fcinfo) }) } -pub unsafe fn pg_opclass_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_opclass_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charin(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_opclass_is_visible(arg_fcinfo) + charin(arg_fcinfo) }) } -pub unsafe fn show_all_settings(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn show_all_settings(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - show_all_settings(arg_fcinfo) + charlt(arg_fcinfo) }) } -pub unsafe fn replace_text(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 replace_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn unique_key_recheck(arg_fcinfo: FunctionCallInfo) -> Datum; } - replace_text(arg_fcinfo) + unique_key_recheck(arg_fcinfo) }) } -pub unsafe fn split_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4abs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn split_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4abs(arg_fcinfo: FunctionCallInfo) -> Datum; } - split_text(arg_fcinfo) + int4abs(arg_fcinfo) }) } -pub unsafe fn to_hex32(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameregexne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_hex32(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameregexne(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_hex32(arg_fcinfo) + nameregexne(arg_fcinfo) }) } -pub unsafe fn to_hex64(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2abs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_hex64(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2abs(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_hex64(arg_fcinfo) + int2abs(arg_fcinfo) }) } -pub unsafe fn array_lower(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_lower(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_lower(arg_fcinfo) + textregexeq(arg_fcinfo) }) } -pub unsafe fn array_upper(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textregexne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_upper(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textregexne(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_upper(arg_fcinfo) + textregexne(arg_fcinfo) }) } -pub unsafe fn pg_conversion_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textlen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_conversion_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textlen(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_conversion_is_visible(arg_fcinfo) + textlen(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_activity_start(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textcat(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 textcat(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_activity_start(arg_fcinfo) + textcat(arg_fcinfo) }) } -pub unsafe fn pg_terminate_backend(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_terminate_backend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PG_char_to_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_terminate_backend(arg_fcinfo) + PG_char_to_encoding(arg_fcinfo) }) } -pub unsafe fn pg_get_functiondef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_functiondef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_functiondef(arg_fcinfo) + tidne(arg_fcinfo) }) } -pub unsafe fn text_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidr_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_pattern_lt(arg_fcinfo) + cidr_in(arg_fcinfo) }) } -pub unsafe fn text_pattern_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn parse_ident(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_pattern_le(arg_fcinfo) + parse_ident(arg_fcinfo) }) } -pub unsafe fn pg_get_function_arguments(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 pg_get_function_arguments(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_column_size(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_function_arguments(arg_fcinfo) + pg_column_size(arg_fcinfo) }) } -pub unsafe fn text_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn overlaps_timetz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn overlaps_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_pattern_ge(arg_fcinfo) + overlaps_timetz(arg_fcinfo) }) } -pub unsafe fn text_pattern_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datetime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_pattern_gt(arg_fcinfo) + datetime_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_get_function_result(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_part(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_function_result(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_part(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_function_result(arg_fcinfo) + timetz_part(arg_fcinfo) }) } -pub unsafe fn bttext_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bttext_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - bttext_pattern_cmp(arg_fcinfo) + int84pl(arg_fcinfo) }) } -pub unsafe fn pg_database_size_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_database_size_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_database_size_name(arg_fcinfo) + int84mi(arg_fcinfo) }) } -pub unsafe fn width_bucket_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn width_bucket_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - width_bucket_numeric(arg_fcinfo) + int84mul(arg_fcinfo) }) } -pub unsafe fn pg_cancel_backend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_cancel_backend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84div(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_cancel_backend(arg_fcinfo) + int84div(arg_fcinfo) }) } -pub unsafe fn pg_start_backup(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_start_backup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_start_backup(arg_fcinfo) + int48pl(arg_fcinfo) }) } -pub unsafe fn pg_stop_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_stop_backup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stop_backup(arg_fcinfo) + int48mi(arg_fcinfo) }) } -pub unsafe fn bpchar_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_pattern_lt(arg_fcinfo) + int48mul(arg_fcinfo) }) } -pub unsafe fn bpchar_pattern_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48div(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_pattern_le(arg_fcinfo) + int48div(arg_fcinfo) }) } -pub unsafe fn array_length(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn quote_ident(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn quote_ident(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_length(arg_fcinfo) + quote_ident(arg_fcinfo) }) } -pub unsafe fn bpchar_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn quote_literal(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn quote_literal(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_pattern_ge(arg_fcinfo) + quote_literal(arg_fcinfo) }) } -pub unsafe fn bpchar_pattern_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_fill_with_lower_bounds(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_pattern_gt(arg_fcinfo) + array_fill_with_lower_bounds(arg_fcinfo) }) } -pub unsafe fn gist_point_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i8tooid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_point_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i8tooid(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_point_consistent(arg_fcinfo) + i8tooid(arg_fcinfo) }) } -pub unsafe fn btbpchar_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidtoi8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btbpchar_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidtoi8(arg_fcinfo: FunctionCallInfo) -> Datum; } - btbpchar_pattern_cmp(arg_fcinfo) + oidtoi8(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn quote_nullable(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 quote_nullable(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_name_name(arg_fcinfo) + quote_nullable(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn suppress_redundant_updates_trigger(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_name_id(arg_fcinfo) + suppress_redundant_updates_trigger(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tideq(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_id_name(arg_fcinfo) + tideq(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn currtid_byreloid(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_id_id(arg_fcinfo) + currtid_byreloid(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn currtid_byrelname(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_name(arg_fcinfo) + currtid_byrelname(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_justify_days(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_id(arg_fcinfo) + interval_justify_days(arg_fcinfo) }) } -pub unsafe fn btint48cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn datetimetz_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint48cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datetimetz_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint48cmp(arg_fcinfo) + datetimetz_timestamptz(arg_fcinfo) }) } -pub unsafe fn btint84cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn now(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint84cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn now(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint84cmp(arg_fcinfo) + now(arg_fcinfo) }) } -pub unsafe fn btint24cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn positionsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint24cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn positionsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint24cmp(arg_fcinfo) + positionsel(arg_fcinfo) }) } -pub unsafe fn btint42cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn positionjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint42cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn positionjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint42cmp(arg_fcinfo) + positionjoinsel(arg_fcinfo) }) } -pub unsafe fn btint28cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn contsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint28cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn contsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint28cmp(arg_fcinfo) + contsel(arg_fcinfo) }) } -pub unsafe fn btint82cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn contjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint82cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn contjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint82cmp(arg_fcinfo) + contjoinsel(arg_fcinfo) }) } -pub unsafe fn btfloat48cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn overlaps_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat48cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn overlaps_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - btfloat48cmp(arg_fcinfo) + overlaps_timestamp(arg_fcinfo) }) } -pub unsafe fn btfloat84cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn overlaps_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat84cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn overlaps_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - btfloat84cmp(arg_fcinfo) + overlaps_time(arg_fcinfo) }) } -pub unsafe fn inet_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_client_addr(arg_fcinfo) + timestamp_in(arg_fcinfo) }) } -pub unsafe fn inet_client_port(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_port(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_client_port(arg_fcinfo) + timestamp_out(arg_fcinfo) }) } -pub unsafe fn inet_server_addr(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_server_addr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_server_addr(arg_fcinfo) + timestamp_cmp(arg_fcinfo) }) } -pub unsafe fn inet_server_port(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_port(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_server_port(arg_fcinfo) + interval_cmp(arg_fcinfo) }) } -pub unsafe fn regprocedurein(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regprocedurein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - regprocedurein(arg_fcinfo) + timestamp_time(arg_fcinfo) }) } -pub unsafe fn regprocedureout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharlen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regprocedureout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharlen(arg_fcinfo: FunctionCallInfo) -> Datum; } - regprocedureout(arg_fcinfo) + bpcharlen(arg_fcinfo) }) } -pub unsafe fn regoperin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_div(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperin(arg_fcinfo) + interval_div(arg_fcinfo) }) } -pub unsafe fn regoperout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dlog10(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dlog10(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperout(arg_fcinfo) + dlog10(arg_fcinfo) }) } -pub unsafe fn regoperatorin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectortypes(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperatorin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectortypes(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperatorin(arg_fcinfo) + oidvectortypes(arg_fcinfo) }) } -pub unsafe fn regoperatorout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperatorout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperatorout(arg_fcinfo) + timetz_in(arg_fcinfo) }) } -pub unsafe fn regclassin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regclassin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - regclassin(arg_fcinfo) + timetz_out(arg_fcinfo) }) } -pub unsafe fn regclassout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regclassout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - regclassout(arg_fcinfo) + timetz_eq(arg_fcinfo) }) } -pub unsafe fn regtypein(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regtypein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - regtypein(arg_fcinfo) + timetz_ne(arg_fcinfo) }) } -pub unsafe fn regtypeout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regtypeout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - regtypeout(arg_fcinfo) + timetz_lt(arg_fcinfo) }) } -pub unsafe fn pg_stat_clear_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_clear_snapshot(arg_fcinfo) + timetz_le(arg_fcinfo) }) } -pub unsafe fn pg_get_function_identity_arguments(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_get_function_identity_arguments(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_function_identity_arguments(arg_fcinfo) + timetz_ge(arg_fcinfo) }) } -pub unsafe fn fmgr_internal_validator(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_internal_validator(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmgr_internal_validator(arg_fcinfo) + timetz_gt(arg_fcinfo) }) } -pub unsafe fn fmgr_c_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_c_validator(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmgr_c_validator(arg_fcinfo) + timetz_cmp(arg_fcinfo) }) } -pub unsafe fn fmgr_sql_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_sql_validator(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_hostmask(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmgr_sql_validator(arg_fcinfo) + network_hostmask(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn makeaclitem(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 makeaclitem(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_name_name(arg_fcinfo) + makeaclitem(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_name_id(arg_fcinfo) + time_interval(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lock_status(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_id_name(arg_fcinfo) + pg_lock_status(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_finite(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_id_id(arg_fcinfo) + date_finite(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_name(arg_fcinfo) + textoctetlen(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_id(arg_fcinfo) + bpcharoctetlen(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_name_name(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_function_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_name_name(arg_fcinfo) + time_larger(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_name_id(arg_fcinfo) + time_smaller(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_id_name(arg_fcinfo) + timetz_larger(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_id_id(arg_fcinfo) + timetz_smaller(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_part(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_name(arg_fcinfo) + time_part(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_id(arg_fcinfo) + pg_get_constraintdef(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_name_name(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_language_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_name_name(arg_fcinfo) + timestamptz_timetz(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_finite(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_name_id(arg_fcinfo) + timestamp_finite(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_finite(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_id_name(arg_fcinfo) + interval_finite(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_start(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_id_id(arg_fcinfo) + pg_stat_get_backend_start(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_name(arg_fcinfo) + pg_stat_get_backend_client_addr(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_client_port(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_id(arg_fcinfo) + pg_stat_get_backend_client_port(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_name_name(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_schema_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn current_schema(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_name_name(arg_fcinfo) + current_schema(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn current_schemas(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_name_id(arg_fcinfo) + current_schemas(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_id_name(arg_fcinfo) + textoverlay(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_id_id(arg_fcinfo) + textoverlay_no_len(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_parallel(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_name(arg_fcinfo) + line_parallel(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_perp(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_id(arg_fcinfo) + line_perp(arg_fcinfo) }) } -pub unsafe fn pg_stat_reset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_vertical(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_reset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_vertical(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_reset(arg_fcinfo) + line_vertical(arg_fcinfo) }) } -pub unsafe fn textregexreplace_noopt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textregexreplace_noopt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum; } - textregexreplace_noopt(arg_fcinfo) + line_horizontal(arg_fcinfo) }) } -pub unsafe fn textregexreplace(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_center(arg_fcinfo: FunctionCallInfo) -> Datum; } - textregexreplace(arg_fcinfo) + circle_center(arg_fcinfo) }) } -pub unsafe fn pg_total_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_total_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_total_relation_size(arg_fcinfo) + interval_time(arg_fcinfo) }) } -pub unsafe fn pg_size_pretty(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_size_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn points_box(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_size_pretty(arg_fcinfo) + points_box(arg_fcinfo) }) } -pub unsafe fn pg_options_to_table(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_options_to_table(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_add(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_options_to_table(arg_fcinfo) + box_add(arg_fcinfo) }) } -pub unsafe fn record_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_sub(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_sub(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_in(arg_fcinfo) + box_sub(arg_fcinfo) }) } -pub unsafe fn record_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_out(arg_fcinfo) + box_mul(arg_fcinfo) }) } -pub unsafe fn cstring_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cstring_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_div(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_in(arg_fcinfo) + box_div(arg_fcinfo) }) } -pub unsafe fn cstring_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_out(arg_fcinfo) + cidr_out(arg_fcinfo) }) } -pub unsafe fn any_in(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 any_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - any_in(arg_fcinfo) + poly_contain_pt(arg_fcinfo) }) } -pub unsafe fn any_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pt_contained_poly(arg_fcinfo: FunctionCallInfo) -> Datum; } - any_out(arg_fcinfo) + pt_contained_poly(arg_fcinfo) }) } -pub unsafe fn anyarray_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_isclosed(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyarray_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_isclosed(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyarray_in(arg_fcinfo) + path_isclosed(arg_fcinfo) }) } -pub unsafe fn anyarray_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_isopen(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyarray_out(arg_fcinfo) + path_isopen(arg_fcinfo) }) } -pub unsafe fn void_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_npoints(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn void_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_npoints(arg_fcinfo: FunctionCallInfo) -> Datum; } - void_in(arg_fcinfo) + path_npoints(arg_fcinfo) }) } -pub unsafe fn void_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_close(arg_fcinfo: FunctionCallInfo) -> Datum; } - void_out(arg_fcinfo) + path_close(arg_fcinfo) }) } -pub unsafe fn trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_open(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_open(arg_fcinfo: FunctionCallInfo) -> Datum; } - trigger_in(arg_fcinfo) + path_open(arg_fcinfo) }) } -pub unsafe fn trigger_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_add(arg_fcinfo: FunctionCallInfo) -> Datum; } - trigger_out(arg_fcinfo) + path_add(arg_fcinfo) }) } -pub unsafe fn language_handler_in(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 language_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - language_handler_in(arg_fcinfo) + path_add_pt(arg_fcinfo) }) } -pub unsafe fn language_handler_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - language_handler_out(arg_fcinfo) + path_sub_pt(arg_fcinfo) }) } -pub unsafe fn internal_in(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 internal_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - internal_in(arg_fcinfo) + path_mul_pt(arg_fcinfo) }) } -pub unsafe fn internal_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - internal_out(arg_fcinfo) + path_div_pt(arg_fcinfo) }) } -pub unsafe fn opaque_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn construct_point(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn opaque_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn construct_point(arg_fcinfo: FunctionCallInfo) -> Datum; } - opaque_in(arg_fcinfo) + construct_point(arg_fcinfo) }) } -pub unsafe fn opaque_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_add(arg_fcinfo: FunctionCallInfo) -> Datum; } - opaque_out(arg_fcinfo) + point_add(arg_fcinfo) }) } -pub unsafe fn dceil(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_sub(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dceil(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_sub(arg_fcinfo: FunctionCallInfo) -> Datum; } - dceil(arg_fcinfo) + point_sub(arg_fcinfo) }) } -pub unsafe fn dfloor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dfloor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - dfloor(arg_fcinfo) + point_mul(arg_fcinfo) }) } -pub unsafe fn dsign(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsign(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_div(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsign(arg_fcinfo) + point_div(arg_fcinfo) }) } -pub unsafe fn md5_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_npoints(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn md5_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_npoints(arg_fcinfo: FunctionCallInfo) -> Datum; } - md5_text(arg_fcinfo) + poly_npoints(arg_fcinfo) }) } -pub unsafe fn anyelement_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_box(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyelement_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_box(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyelement_in(arg_fcinfo) + poly_box(arg_fcinfo) }) } -pub unsafe fn anyelement_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyelement_out(arg_fcinfo) + poly_path(arg_fcinfo) }) } -pub unsafe fn postgresql_fdw_validator(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_poly(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn postgresql_fdw_validator(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_poly(arg_fcinfo: FunctionCallInfo) -> Datum; } - postgresql_fdw_validator(arg_fcinfo) + box_poly(arg_fcinfo) }) } -pub unsafe fn pg_encoding_max_length_sql(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_poly(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 path_poly(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_encoding_max_length_sql(arg_fcinfo) + path_poly(arg_fcinfo) }) } -pub unsafe fn md5_bytea(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn md5_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - md5_bytea(arg_fcinfo) + circle_in(arg_fcinfo) }) } -pub unsafe fn pg_tablespace_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_tablespace_size_oid(arg_fcinfo) + circle_out(arg_fcinfo) }) } -pub unsafe fn pg_tablespace_size_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_tablespace_size_name(arg_fcinfo) + circle_same(arg_fcinfo) }) } -pub unsafe fn pg_database_size_oid(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_database_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_contain(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_database_size_oid(arg_fcinfo) + circle_contain(arg_fcinfo) }) } -pub unsafe fn array_unnest(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_left(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_unnest(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_left(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_unnest(arg_fcinfo) + circle_left(arg_fcinfo) }) } -pub unsafe fn pg_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_overleft(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_relation_size(arg_fcinfo) + circle_overleft(arg_fcinfo) }) } -pub unsafe fn array_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_overright(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_overright(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_agg_transfn(arg_fcinfo) + circle_overright(arg_fcinfo) }) } -pub unsafe fn array_agg_finalfn(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_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_right(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_agg_finalfn(arg_fcinfo) + circle_right(arg_fcinfo) }) } -pub unsafe fn date_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_contained(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_contained(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_lt_timestamp(arg_fcinfo) + circle_contained(arg_fcinfo) }) } -pub unsafe fn date_le_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_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_le_timestamp(arg_fcinfo) + circle_overlap(arg_fcinfo) }) } -pub unsafe fn date_eq_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_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_below(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_eq_timestamp(arg_fcinfo) + circle_below(arg_fcinfo) }) } -pub unsafe fn date_gt_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_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_above(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_gt_timestamp(arg_fcinfo) + circle_above(arg_fcinfo) }) } -pub unsafe fn date_ge_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_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ge_timestamp(arg_fcinfo) + circle_eq(arg_fcinfo) }) } -pub unsafe fn date_ne_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_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ne_timestamp(arg_fcinfo) + circle_ne(arg_fcinfo) }) } -pub unsafe fn date_cmp_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_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_cmp_timestamp(arg_fcinfo) + circle_lt(arg_fcinfo) }) } -pub unsafe fn date_lt_timestamptz(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_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_lt_timestamptz(arg_fcinfo) + circle_gt(arg_fcinfo) }) } -pub unsafe fn date_le_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_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_le_timestamptz(arg_fcinfo) + circle_le(arg_fcinfo) }) } -pub unsafe fn date_eq_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_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_eq_timestamptz(arg_fcinfo) + circle_ge(arg_fcinfo) }) } -pub unsafe fn date_gt_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_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_area(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_gt_timestamptz(arg_fcinfo) + circle_area(arg_fcinfo) }) } -pub unsafe fn date_ge_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_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_diameter(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ge_timestamptz(arg_fcinfo) + circle_diameter(arg_fcinfo) }) } -pub unsafe fn date_ne_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_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_radius(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ne_timestamptz(arg_fcinfo) + circle_radius(arg_fcinfo) }) } -pub unsafe fn date_cmp_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_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_cmp_timestamptz(arg_fcinfo) + circle_distance(arg_fcinfo) }) } -pub unsafe fn timestamp_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cr_circle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cr_circle(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_lt_date(arg_fcinfo) + cr_circle(arg_fcinfo) }) } -pub unsafe fn timestamp_le_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_le_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_circle(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_le_date(arg_fcinfo) + poly_circle(arg_fcinfo) }) } -pub unsafe fn timestamp_eq_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_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_poly(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_eq_date(arg_fcinfo) + circle_poly(arg_fcinfo) }) } -pub unsafe fn timestamp_gt_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_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_pc(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_gt_date(arg_fcinfo) + dist_pc(arg_fcinfo) }) } -pub unsafe fn timestamp_ge_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_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ge_date(arg_fcinfo) + circle_contain_pt(arg_fcinfo) }) } -pub unsafe fn timestamp_ne_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_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pt_contained_circle(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ne_date(arg_fcinfo) + pt_contained_circle(arg_fcinfo) }) } -pub unsafe fn timestamp_cmp_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_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_circle(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_cmp_date(arg_fcinfo) + box_circle(arg_fcinfo) }) } -pub unsafe fn timestamptz_lt_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 timestamptz_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_box(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_lt_date(arg_fcinfo) + circle_box(arg_fcinfo) }) } -pub unsafe fn timestamptz_le_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_le_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_le_date(arg_fcinfo) + lseg_ne(arg_fcinfo) }) } -pub unsafe fn timestamptz_eq_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_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_eq_date(arg_fcinfo) + lseg_lt(arg_fcinfo) }) } -pub unsafe fn timestamptz_gt_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_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_gt_date(arg_fcinfo) + lseg_le(arg_fcinfo) }) } -pub unsafe fn timestamptz_ge_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_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_ge_date(arg_fcinfo) + lseg_gt(arg_fcinfo) }) } -pub unsafe fn timestamptz_ne_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_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_ne_date(arg_fcinfo) + lseg_ge(arg_fcinfo) }) } -pub unsafe fn timestamptz_cmp_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_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_cmp_date(arg_fcinfo) + lseg_length(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_ls(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_ls(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_name_name(arg_fcinfo) + close_ls(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_lseg(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_name_id(arg_fcinfo) + close_lseg(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_id_name(arg_fcinfo) + line_in(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_id_id(arg_fcinfo) + line_out(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_name(arg_fcinfo) + line_eq(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_construct_pp(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_id(arg_fcinfo) + line_construct_pp(arg_fcinfo) }) } -pub unsafe fn shell_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_interpt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn shell_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_interpt(arg_fcinfo: FunctionCallInfo) -> Datum; } - shell_in(arg_fcinfo) + line_interpt(arg_fcinfo) }) } -pub unsafe fn shell_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; } - shell_out(arg_fcinfo) + line_intersect(arg_fcinfo) }) } -pub unsafe fn array_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bit_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_recv(arg_fcinfo) + bit_in(arg_fcinfo) }) } -pub unsafe fn array_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_send(arg_fcinfo) + bit_out(arg_fcinfo) }) } -pub unsafe fn record_recv(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 record_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_ruledef(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_recv(arg_fcinfo) + pg_get_ruledef(arg_fcinfo) }) } -pub unsafe fn record_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nextval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_send(arg_fcinfo) + nextval_oid(arg_fcinfo) }) } -pub unsafe fn int2recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn currval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn currval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2recv(arg_fcinfo) + currval_oid(arg_fcinfo) }) } -pub unsafe fn int2send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn setval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn setval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2send(arg_fcinfo) + setval_oid(arg_fcinfo) }) } -pub unsafe fn int4recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbit_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4recv(arg_fcinfo) + varbit_in(arg_fcinfo) }) } -pub unsafe fn int4send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbit_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4send(arg_fcinfo) + varbit_out(arg_fcinfo) }) } -pub unsafe fn int8recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn biteq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn biteq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8recv(arg_fcinfo) + biteq(arg_fcinfo) }) } -pub unsafe fn int8send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitne(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8send(arg_fcinfo) + bitne(arg_fcinfo) }) } -pub unsafe fn int2vectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2vectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitge(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2vectorrecv(arg_fcinfo) + bitge(arg_fcinfo) }) } -pub unsafe fn int2vectorsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2vectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2vectorsend(arg_fcinfo) + bitgt(arg_fcinfo) }) } -pub unsafe fn bytearecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytearecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitle(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytearecv(arg_fcinfo) + bitle(arg_fcinfo) }) } -pub unsafe fn byteasend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteasend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteasend(arg_fcinfo) + bitlt(arg_fcinfo) }) } -pub unsafe fn textrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - textrecv(arg_fcinfo) + bitcmp(arg_fcinfo) }) } -pub unsafe fn textsend(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 textsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PG_encoding_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - textsend(arg_fcinfo) + PG_encoding_to_char(arg_fcinfo) }) } -pub unsafe fn unknownrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn drandom(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unknownrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn drandom(arg_fcinfo: FunctionCallInfo) -> Datum; } - unknownrecv(arg_fcinfo) + drandom(arg_fcinfo) }) } -pub unsafe fn unknownsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn setseed(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unknownsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn setseed(arg_fcinfo: FunctionCallInfo) -> Datum; } - unknownsend(arg_fcinfo) + setseed(arg_fcinfo) }) } -pub unsafe fn oidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dasin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dasin(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidrecv(arg_fcinfo) + dasin(arg_fcinfo) }) } -pub unsafe fn oidsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dacos(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dacos(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidsend(arg_fcinfo) + dacos(arg_fcinfo) }) } -pub unsafe fn oidvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn datan(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datan(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidvectorrecv(arg_fcinfo) + datan(arg_fcinfo) }) } -pub unsafe fn oidvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn datan2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datan2(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidvectorsend(arg_fcinfo) + datan2(arg_fcinfo) }) } -pub unsafe fn namerecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dsin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dsin(arg_fcinfo: FunctionCallInfo) -> Datum; } - namerecv(arg_fcinfo) + dsin(arg_fcinfo) }) } -pub unsafe fn namesend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dcos(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dcos(arg_fcinfo: FunctionCallInfo) -> Datum; } - namesend(arg_fcinfo) + dcos(arg_fcinfo) }) } -pub unsafe fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtan(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtan(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4recv(arg_fcinfo) + dtan(arg_fcinfo) }) } -pub unsafe fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dcot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dcot(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4send(arg_fcinfo) + dcot(arg_fcinfo) }) } -pub unsafe fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn degrees(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn degrees(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8recv(arg_fcinfo) + degrees(arg_fcinfo) }) } -pub unsafe fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn radians(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn radians(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8send(arg_fcinfo) + radians(arg_fcinfo) }) } -pub unsafe fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dpi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dpi(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_recv(arg_fcinfo) + dpi(arg_fcinfo) }) } -pub unsafe fn point_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_send(arg_fcinfo) + interval_mul(arg_fcinfo) }) } -pub unsafe fn bpcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_typeof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharrecv(arg_fcinfo) + pg_typeof(arg_fcinfo) }) } -pub unsafe fn bpcharsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ascii(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ascii(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharsend(arg_fcinfo) + ascii(arg_fcinfo) }) } -pub unsafe fn varcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn chr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn chr(arg_fcinfo: FunctionCallInfo) -> Datum; } - varcharrecv(arg_fcinfo) + chr(arg_fcinfo) }) } -pub unsafe fn varcharsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn repeat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varcharsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn repeat(arg_fcinfo: FunctionCallInfo) -> Datum; } - varcharsend(arg_fcinfo) + repeat(arg_fcinfo) }) } -pub unsafe fn charrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn similar_escape(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn similar_escape(arg_fcinfo: FunctionCallInfo) -> Datum; } - charrecv(arg_fcinfo) + similar_escape(arg_fcinfo) }) } -pub unsafe fn charsend(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 charsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn mul_d_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - charsend(arg_fcinfo) + mul_d_interval(arg_fcinfo) }) } -pub unsafe fn boolrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texticlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texticlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolrecv(arg_fcinfo) + texticlike(arg_fcinfo) }) } -pub unsafe fn boolsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texticnlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texticnlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolsend(arg_fcinfo) + texticnlike(arg_fcinfo) }) } -pub unsafe fn tidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameiclike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameiclike(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidrecv(arg_fcinfo) + nameiclike(arg_fcinfo) }) } -pub unsafe fn tidsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameicnlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameicnlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidsend(arg_fcinfo) + nameicnlike(arg_fcinfo) }) } -pub unsafe fn xidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn like_escape(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn like_escape(arg_fcinfo: FunctionCallInfo) -> Datum; } - xidrecv(arg_fcinfo) + like_escape(arg_fcinfo) }) } -pub unsafe fn xidsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xidsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - xidsend(arg_fcinfo) + oidgt(arg_fcinfo) }) } -pub unsafe fn cidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidge(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidrecv(arg_fcinfo) + oidge(arg_fcinfo) }) } -pub unsafe fn cidsend(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 cidsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_viewdef_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidsend(arg_fcinfo) + pg_get_viewdef_name(arg_fcinfo) }) } -pub unsafe fn regprocrecv(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 regprocrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_viewdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - regprocrecv(arg_fcinfo) + pg_get_viewdef(arg_fcinfo) }) } -pub unsafe fn regprocsend(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 regprocsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_userbyid(arg_fcinfo: FunctionCallInfo) -> Datum; } - regprocsend(arg_fcinfo) + pg_get_userbyid(arg_fcinfo) }) } -pub unsafe fn regprocedurerecv(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 regprocedurerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_indexdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - regprocedurerecv(arg_fcinfo) + pg_get_indexdef(arg_fcinfo) }) } -pub unsafe fn regproceduresend(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 regproceduresend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_check_ins(arg_fcinfo: FunctionCallInfo) -> Datum; } - regproceduresend(arg_fcinfo) + RI_FKey_check_ins(arg_fcinfo) }) } -pub unsafe fn regoperrecv(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 regoperrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_check_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperrecv(arg_fcinfo) + RI_FKey_check_upd(arg_fcinfo) }) } -pub unsafe fn regopersend(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 regopersend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_cascade_del(arg_fcinfo: FunctionCallInfo) -> Datum; } - regopersend(arg_fcinfo) + RI_FKey_cascade_del(arg_fcinfo) }) } -pub unsafe fn regoperatorrecv(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 regoperatorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_cascade_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperatorrecv(arg_fcinfo) + RI_FKey_cascade_upd(arg_fcinfo) }) } -pub unsafe fn regoperatorsend(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 regoperatorsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_restrict_del(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperatorsend(arg_fcinfo) + RI_FKey_restrict_del(arg_fcinfo) }) } -pub unsafe fn regclassrecv(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 regclassrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_restrict_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - regclassrecv(arg_fcinfo) + RI_FKey_restrict_upd(arg_fcinfo) }) } -pub unsafe fn regclasssend(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 regclasssend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_setnull_del(arg_fcinfo: FunctionCallInfo) -> Datum; } - regclasssend(arg_fcinfo) + RI_FKey_setnull_del(arg_fcinfo) }) } -pub unsafe fn regtyperecv(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 regtyperecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_setnull_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - regtyperecv(arg_fcinfo) + RI_FKey_setnull_upd(arg_fcinfo) }) } -pub unsafe fn regtypesend(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 regtypesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_setdefault_del(arg_fcinfo: FunctionCallInfo) -> Datum; } - regtypesend(arg_fcinfo) + RI_FKey_setdefault_del(arg_fcinfo) }) } -pub unsafe fn bit_recv(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 bit_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_setdefault_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_recv(arg_fcinfo) + RI_FKey_setdefault_upd(arg_fcinfo) }) } -pub unsafe fn bit_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_noaction_del(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_send(arg_fcinfo) + RI_FKey_noaction_del(arg_fcinfo) }) } -pub unsafe fn varbit_recv(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 varbit_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_noaction_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit_recv(arg_fcinfo) + RI_FKey_noaction_upd(arg_fcinfo) }) } -pub unsafe fn varbit_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_triggerdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit_send(arg_fcinfo) + pg_get_triggerdef(arg_fcinfo) }) } -pub unsafe fn numeric_recv(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 numeric_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_serial_sequence(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_recv(arg_fcinfo) + pg_get_serial_sequence(arg_fcinfo) }) } -pub unsafe fn numeric_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_and(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_send(arg_fcinfo) + bit_and(arg_fcinfo) }) } -pub unsafe fn abstimerecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bit_or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_or(arg_fcinfo: FunctionCallInfo) -> Datum; } - abstimerecv(arg_fcinfo) + bit_or(arg_fcinfo) }) } -pub unsafe fn abstimesend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitxor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitxor(arg_fcinfo: FunctionCallInfo) -> Datum; } - abstimesend(arg_fcinfo) + bitxor(arg_fcinfo) }) } -pub unsafe fn reltimerecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitnot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitnot(arg_fcinfo: FunctionCallInfo) -> Datum; } - reltimerecv(arg_fcinfo) + bitnot(arg_fcinfo) }) } -pub unsafe fn reltimesend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitshiftleft(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitshiftleft(arg_fcinfo: FunctionCallInfo) -> Datum; } - reltimesend(arg_fcinfo) + bitshiftleft(arg_fcinfo) }) } -pub unsafe fn tintervalrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitshiftright(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitshiftright(arg_fcinfo: FunctionCallInfo) -> Datum; } - tintervalrecv(arg_fcinfo) + bitshiftright(arg_fcinfo) }) } -pub unsafe fn tintervalsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitcat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitcat(arg_fcinfo: FunctionCallInfo) -> Datum; } - tintervalsend(arg_fcinfo) + bitcat(arg_fcinfo) }) } -pub unsafe fn date_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitsubstr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitsubstr(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_recv(arg_fcinfo) + bitsubstr(arg_fcinfo) }) } -pub unsafe fn date_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitlength(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitlength(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_send(arg_fcinfo) + bitlength(arg_fcinfo) }) } -pub unsafe fn time_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitoctetlength(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitoctetlength(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_recv(arg_fcinfo) + bitoctetlength(arg_fcinfo) }) } -pub unsafe fn time_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitfromint4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitfromint4(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_send(arg_fcinfo) + bitfromint4(arg_fcinfo) }) } -pub unsafe fn timetz_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bittoint4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bittoint4(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_recv(arg_fcinfo) + bittoint4(arg_fcinfo) }) } -pub unsafe fn timetz_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_send(arg_fcinfo) + bit(arg_fcinfo) }) } -pub unsafe fn timestamp_recv(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 timestamp_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_keywords(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_recv(arg_fcinfo) + pg_get_keywords(arg_fcinfo) }) } -pub unsafe fn timestamp_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_send(arg_fcinfo) + varbit(arg_fcinfo) }) } -pub unsafe fn timestamptz_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_hash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_recv(arg_fcinfo) + time_hash(arg_fcinfo) }) } -pub unsafe fn timestamptz_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclexplode(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclexplode(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_send(arg_fcinfo) + aclexplode(arg_fcinfo) }) } -pub unsafe fn interval_recv(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 interval_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_mi_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_recv(arg_fcinfo) + time_mi_time(arg_fcinfo) }) } -pub unsafe fn interval_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolle(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_send(arg_fcinfo) + boolle(arg_fcinfo) }) } -pub unsafe fn lseg_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolge(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_recv(arg_fcinfo) + boolge(arg_fcinfo) }) } -pub unsafe fn lseg_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btboolcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btboolcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_send(arg_fcinfo) + btboolcmp(arg_fcinfo) }) } -pub unsafe fn path_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_hash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_recv(arg_fcinfo) + timetz_hash(arg_fcinfo) }) } -pub unsafe fn path_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_send(arg_fcinfo) + interval_hash(arg_fcinfo) }) } -pub unsafe fn box_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitposition(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitposition(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_recv(arg_fcinfo) + bitposition(arg_fcinfo) }) } -pub unsafe fn box_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitsubstr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_send(arg_fcinfo) + bitsubstr_no_len(arg_fcinfo) }) } -pub unsafe fn poly_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_recv(arg_fcinfo) + numeric_in(arg_fcinfo) }) } -pub unsafe fn poly_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_send(arg_fcinfo) + numeric_out(arg_fcinfo) }) } -pub unsafe fn line_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_recv(arg_fcinfo) + numeric(arg_fcinfo) }) } -pub unsafe fn line_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_abs(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_send(arg_fcinfo) + numeric_abs(arg_fcinfo) }) } -pub unsafe fn circle_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_sign(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_sign(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_recv(arg_fcinfo) + numeric_sign(arg_fcinfo) }) } -pub unsafe fn circle_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_round(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_send(arg_fcinfo) + numeric_round(arg_fcinfo) }) } -pub unsafe fn cash_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_recv(arg_fcinfo) + numeric_trunc(arg_fcinfo) }) } -pub unsafe fn cash_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_ceil(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_send(arg_fcinfo) + numeric_ceil(arg_fcinfo) }) } -pub unsafe fn macaddr_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_floor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_floor(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_recv(arg_fcinfo) + numeric_floor(arg_fcinfo) }) } -pub unsafe fn macaddr_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn length_in_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_send(arg_fcinfo) + length_in_encoding(arg_fcinfo) }) } -pub unsafe fn inet_recv(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 inet_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_convert_from(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_recv(arg_fcinfo) + pg_convert_from(arg_fcinfo) }) } -pub unsafe fn inet_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_to_cidr(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_send(arg_fcinfo) + inet_to_cidr(arg_fcinfo) }) } -pub unsafe fn cidr_recv(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 cidr_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_expr(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidr_recv(arg_fcinfo) + pg_get_expr(arg_fcinfo) }) } -pub unsafe fn cidr_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_convert_to(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidr_send(arg_fcinfo) + pg_convert_to(arg_fcinfo) }) } -pub unsafe fn cstring_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cstring_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_recv(arg_fcinfo) + numeric_eq(arg_fcinfo) }) } -pub unsafe fn cstring_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_send(arg_fcinfo) + numeric_ne(arg_fcinfo) }) } -pub unsafe fn anyarray_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyarray_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyarray_recv(arg_fcinfo) + numeric_gt(arg_fcinfo) }) } -pub unsafe fn anyarray_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyarray_send(arg_fcinfo) + numeric_ge(arg_fcinfo) }) } -pub unsafe fn pg_get_ruledef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_ruledef_ext(arg_fcinfo) + numeric_lt(arg_fcinfo) }) } -pub unsafe fn pg_get_viewdef_name_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_viewdef_name_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_viewdef_name_ext(arg_fcinfo) + numeric_le(arg_fcinfo) }) } -pub unsafe fn pg_get_viewdef_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_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_add(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_viewdef_ext(arg_fcinfo) + numeric_add(arg_fcinfo) }) } -pub unsafe fn pg_get_indexdef_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_indexdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_sub(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_indexdef_ext(arg_fcinfo) + numeric_sub(arg_fcinfo) }) } -pub unsafe fn pg_get_constraintdef_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_constraintdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_constraintdef_ext(arg_fcinfo) + numeric_mul(arg_fcinfo) }) } -pub unsafe fn pg_get_expr_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_expr_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_div(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_expr_ext(arg_fcinfo) + numeric_div(arg_fcinfo) }) } -pub unsafe fn pg_prepared_statement(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_prepared_statement(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_mod(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_prepared_statement(arg_fcinfo) + numeric_mod(arg_fcinfo) }) } -pub unsafe fn pg_cursor(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_cursor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_sqrt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_cursor(arg_fcinfo) + numeric_sqrt(arg_fcinfo) }) } -pub unsafe fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_exp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_exp(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_var_pop(arg_fcinfo) + numeric_exp(arg_fcinfo) }) } -pub unsafe fn float8_stddev_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_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_ln(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_stddev_pop(arg_fcinfo) + numeric_ln(arg_fcinfo) }) } -pub unsafe fn numeric_var_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 numeric_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_log(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_var_pop(arg_fcinfo) + numeric_log(arg_fcinfo) }) } -pub unsafe fn booland_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_power(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn booland_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_power(arg_fcinfo: FunctionCallInfo) -> Datum; } - booland_statefunc(arg_fcinfo) + numeric_power(arg_fcinfo) }) } -pub unsafe fn boolor_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 boolor_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolor_statefunc(arg_fcinfo) + int4_numeric(arg_fcinfo) }) } -pub unsafe fn timestamp_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_lt_timestamptz(arg_fcinfo) + numeric_int4(arg_fcinfo) }) } -pub unsafe fn timestamp_le_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_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_float4(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_le_timestamptz(arg_fcinfo) + numeric_float4(arg_fcinfo) }) } -pub unsafe fn timestamp_eq_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_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_float8(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_eq_timestamptz(arg_fcinfo) + numeric_float8(arg_fcinfo) }) } -pub unsafe fn timestamp_gt_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_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_gt_timestamptz(arg_fcinfo) + time_pl_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_ge_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_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ge_timestamptz(arg_fcinfo) + time_mi_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_ne_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_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ne_timestamptz(arg_fcinfo) + timetz_pl_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_cmp_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_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_cmp_timestamptz(arg_fcinfo) + timetz_mi_interval(arg_fcinfo) }) } -pub unsafe fn timestamptz_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_inc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_inc(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_lt_timestamp(arg_fcinfo) + numeric_inc(arg_fcinfo) }) } -pub unsafe fn timestamptz_le_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_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn setval3_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_le_timestamp(arg_fcinfo) + setval3_oid(arg_fcinfo) }) } -pub unsafe fn timestamptz_eq_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_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_eq_timestamp(arg_fcinfo) + numeric_smaller(arg_fcinfo) }) } -pub unsafe fn timestamptz_gt_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_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_gt_timestamp(arg_fcinfo) + numeric_larger(arg_fcinfo) }) } -pub unsafe fn timestamptz_ge_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_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_ge_timestamp(arg_fcinfo) + interval_to_char(arg_fcinfo) }) } -pub unsafe fn timestamptz_ne_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_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_ne_timestamp(arg_fcinfo) + numeric_cmp(arg_fcinfo) }) } -pub unsafe fn timestamptz_cmp_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_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_cmp_timestamp(arg_fcinfo) + timestamptz_to_char(arg_fcinfo) }) } -pub unsafe fn pg_tablespace_databases(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_uminus(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tablespace_databases(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_uminus(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_tablespace_databases(arg_fcinfo) + numeric_uminus(arg_fcinfo) }) } -pub unsafe fn int4_bool(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 int4_bool(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_bool(arg_fcinfo) + numeric_to_char(arg_fcinfo) }) } -pub unsafe fn bool_int4(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 bool_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - bool_int4(arg_fcinfo) + int4_to_char(arg_fcinfo) }) } -pub unsafe fn lastval(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 lastval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - lastval(arg_fcinfo) + int8_to_char(arg_fcinfo) }) } -pub unsafe fn pg_postmaster_start_time(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 pg_postmaster_start_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_postmaster_start_time(arg_fcinfo) + numeric_to_number(arg_fcinfo) }) } -pub unsafe fn pg_blocking_pids(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_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_blocking_pids(arg_fcinfo) + to_timestamp(arg_fcinfo) }) } -pub unsafe fn box_below(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_below(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_below(arg_fcinfo) + numeric_int8(arg_fcinfo) }) } -pub unsafe fn box_overbelow(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_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_overbelow(arg_fcinfo) + to_date(arg_fcinfo) }) } -pub unsafe fn box_overabove(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_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_overabove(arg_fcinfo) + int8_numeric(arg_fcinfo) }) } -pub unsafe fn box_above(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_above(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_above(arg_fcinfo) + int2_numeric(arg_fcinfo) }) } -pub unsafe fn poly_below(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_int2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_below(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_int2(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_below(arg_fcinfo) + numeric_int2(arg_fcinfo) }) } -pub unsafe fn poly_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidin(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_overbelow(arg_fcinfo) + oidin(arg_fcinfo) }) } -pub unsafe fn poly_overabove(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidout(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_overabove(arg_fcinfo) + oidout(arg_fcinfo) }) } -pub unsafe fn poly_above(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_above(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_convert(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_above(arg_fcinfo) + pg_convert(arg_fcinfo) }) } -pub unsafe fn gist_box_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn iclikesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_box_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn iclikesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_consistent(arg_fcinfo) + iclikesel(arg_fcinfo) }) } -pub unsafe fn gist_box_compress(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_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icnlikesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_compress(arg_fcinfo) + icnlikesel(arg_fcinfo) }) } -pub unsafe fn gist_box_decompress(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_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn iclikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_decompress(arg_fcinfo) + iclikejoinsel(arg_fcinfo) }) } -pub unsafe fn gist_box_penalty(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_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icnlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_penalty(arg_fcinfo) + icnlikejoinsel(arg_fcinfo) }) } -pub unsafe fn gist_box_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_picksplit(arg_fcinfo) + regexeqsel(arg_fcinfo) }) } -pub unsafe fn gist_box_union(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_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn likesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_union(arg_fcinfo) + likesel(arg_fcinfo) }) } -pub unsafe fn gist_box_same(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_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icregexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_same(arg_fcinfo) + icregexeqsel(arg_fcinfo) }) } -pub unsafe fn gist_poly_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexnesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_poly_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexnesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_poly_consistent(arg_fcinfo) + regexnesel(arg_fcinfo) }) } -pub unsafe fn gist_poly_compress(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_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nlikesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_poly_compress(arg_fcinfo) + nlikesel(arg_fcinfo) }) } -pub unsafe fn circle_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn icregexnesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icregexnesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_overbelow(arg_fcinfo) + icregexnesel(arg_fcinfo) }) } -pub unsafe fn circle_overabove(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_overabove(arg_fcinfo) + regexeqjoinsel(arg_fcinfo) }) } -pub unsafe fn gist_circle_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn likejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_circle_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn likejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_circle_consistent(arg_fcinfo) + likejoinsel(arg_fcinfo) }) } -pub unsafe fn gist_circle_compress(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_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icregexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_circle_compress(arg_fcinfo) + icregexeqjoinsel(arg_fcinfo) }) } -pub unsafe fn numeric_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_stddev_pop(arg_fcinfo) + regexnejoinsel(arg_fcinfo) }) } -pub unsafe fn domain_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn domain_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - domain_in(arg_fcinfo) + nlikejoinsel(arg_fcinfo) }) } -pub unsafe fn domain_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn domain_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - domain_recv(arg_fcinfo) + icregexnejoinsel(arg_fcinfo) }) } -pub unsafe fn pg_timezone_abbrevs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_timezone_abbrevs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_timezone_abbrevs(arg_fcinfo) + numeric_accum(arg_fcinfo) }) } -pub unsafe fn xmlexists(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xmlexists(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - xmlexists(arg_fcinfo) + int2_accum(arg_fcinfo) }) } -pub unsafe fn pg_reload_conf(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_reload_conf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_reload_conf(arg_fcinfo) + int4_accum(arg_fcinfo) }) } -pub unsafe fn pg_rotate_logfile(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_rotate_logfile(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_rotate_logfile(arg_fcinfo) + int8_accum(arg_fcinfo) }) } -pub unsafe fn pg_stat_file_1arg(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_stat_file_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_avg(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_file_1arg(arg_fcinfo) + numeric_avg(arg_fcinfo) }) } -pub unsafe fn pg_read_file_off_len(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_read_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_file_off_len(arg_fcinfo) + numeric_var_samp(arg_fcinfo) }) } -pub unsafe fn pg_ls_dir_1arg(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_ls_dir_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ls_dir_1arg(arg_fcinfo) + numeric_stddev_samp(arg_fcinfo) }) } -pub unsafe fn pg_sleep(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_sleep(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_sleep(arg_fcinfo) + int2_sum(arg_fcinfo) }) } -pub unsafe fn inetnot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inetnot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetnot(arg_fcinfo) + int4_sum(arg_fcinfo) }) } -pub unsafe fn inetand(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_sum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inetand(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetand(arg_fcinfo) + int8_sum(arg_fcinfo) }) } -pub unsafe fn inetor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inetor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetor(arg_fcinfo) + interval_accum(arg_fcinfo) }) } -pub unsafe fn inetpl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_avg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inetpl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_avg(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetpl(arg_fcinfo) + interval_avg(arg_fcinfo) }) } -pub unsafe fn inetmi_int8(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 inetmi_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_ascii_default(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetmi_int8(arg_fcinfo) + to_ascii_default(arg_fcinfo) }) } -pub unsafe fn inetmi(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_ascii_enc(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetmi(arg_fcinfo) + to_ascii_enc(arg_fcinfo) }) } -pub unsafe fn statement_timestamp(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 statement_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_ascii_encname(arg_fcinfo: FunctionCallInfo) -> Datum; } - statement_timestamp(arg_fcinfo) + to_ascii_encname(arg_fcinfo) }) } -pub unsafe fn clock_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clock_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - clock_timestamp(arg_fcinfo) + int28eq(arg_fcinfo) }) } -pub unsafe fn gin_cmp_prefix(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_cmp_prefix(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_cmp_prefix(arg_fcinfo) + int28ne(arg_fcinfo) }) } -pub unsafe fn pg_has_role_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28lt(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 int28lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_name_name(arg_fcinfo) + int28lt(arg_fcinfo) }) } -pub unsafe fn pg_has_role_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_name_id(arg_fcinfo) + int28gt(arg_fcinfo) }) } -pub unsafe fn pg_has_role_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28le(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_id_name(arg_fcinfo) + int28le(arg_fcinfo) }) } -pub unsafe fn pg_has_role_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_id_id(arg_fcinfo) + int28ge(arg_fcinfo) }) } -pub unsafe fn pg_has_role_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_name(arg_fcinfo) + int82eq(arg_fcinfo) }) } -pub unsafe fn pg_has_role_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_id(arg_fcinfo) + int82ne(arg_fcinfo) }) } -pub unsafe fn interval_justify_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_justify_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_justify_interval(arg_fcinfo) + int82lt(arg_fcinfo) }) } -pub unsafe fn pg_get_triggerdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_triggerdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_triggerdef_ext(arg_fcinfo) + int82gt(arg_fcinfo) }) } -pub unsafe fn dasind(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dasind(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82le(arg_fcinfo: FunctionCallInfo) -> Datum; } - dasind(arg_fcinfo) + int82le(arg_fcinfo) }) } -pub unsafe fn dacosd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dacosd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - dacosd(arg_fcinfo) + int82ge(arg_fcinfo) }) } -pub unsafe fn datand(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datand(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2and(arg_fcinfo: FunctionCallInfo) -> Datum; } - datand(arg_fcinfo) + int2and(arg_fcinfo) }) } -pub unsafe fn datan2d(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datan2d(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2or(arg_fcinfo: FunctionCallInfo) -> Datum; } - datan2d(arg_fcinfo) + int2or(arg_fcinfo) }) } -pub unsafe fn dsind(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2xor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsind(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2xor(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsind(arg_fcinfo) + int2xor(arg_fcinfo) }) } -pub unsafe fn dcosd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2not(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dcosd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2not(arg_fcinfo: FunctionCallInfo) -> Datum; } - dcosd(arg_fcinfo) + int2not(arg_fcinfo) }) } -pub unsafe fn dtand(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2shl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dtand(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2shl(arg_fcinfo: FunctionCallInfo) -> Datum; } - dtand(arg_fcinfo) + int2shl(arg_fcinfo) }) } -pub unsafe fn dcotd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2shr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dcotd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2shr(arg_fcinfo: FunctionCallInfo) -> Datum; } - dcotd(arg_fcinfo) + int2shr(arg_fcinfo) }) } -pub unsafe fn pg_stop_backup_v2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stop_backup_v2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4and(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stop_backup_v2(arg_fcinfo) + int4and(arg_fcinfo) }) } -pub unsafe fn numeric_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4or(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_avg_serialize(arg_fcinfo) + int4or(arg_fcinfo) }) } -pub unsafe fn numeric_avg_deserialize(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_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4xor(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_avg_deserialize(arg_fcinfo) + int4xor(arg_fcinfo) }) } -pub unsafe fn ginarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4not(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4not(arg_fcinfo: FunctionCallInfo) -> Datum; } - ginarrayextract(arg_fcinfo) + int4not(arg_fcinfo) }) } -pub unsafe fn ginarrayconsistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4shl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginarrayconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4shl(arg_fcinfo: FunctionCallInfo) -> Datum; } - ginarrayconsistent(arg_fcinfo) + int4shl(arg_fcinfo) }) } -pub unsafe fn int8_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4shr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4shr(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg_accum(arg_fcinfo) + int4shr(arg_fcinfo) }) } -pub unsafe fn arrayoverlap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arrayoverlap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8and(arg_fcinfo: FunctionCallInfo) -> Datum; } - arrayoverlap(arg_fcinfo) + int8and(arg_fcinfo) }) } -pub unsafe fn arraycontains(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arraycontains(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8or(arg_fcinfo: FunctionCallInfo) -> Datum; } - arraycontains(arg_fcinfo) + int8or(arg_fcinfo) }) } -pub unsafe fn arraycontained(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8xor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arraycontained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8xor(arg_fcinfo: FunctionCallInfo) -> Datum; } - arraycontained(arg_fcinfo) + int8xor(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8not(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 int8not(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_tuples_returned(arg_fcinfo) + int8not(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_tuples_fetched(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_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8shl(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_tuples_fetched(arg_fcinfo) + int8shl(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_tuples_inserted(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_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8shr(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_tuples_inserted(arg_fcinfo) + int8shr(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_tuples_updated(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_updated(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8up(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_tuples_updated(arg_fcinfo) + int8up(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_tuples_deleted(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_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2up(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_tuples_deleted(arg_fcinfo) + int2up(arg_fcinfo) }) } -pub unsafe fn regexp_matches_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4up(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexp_matches_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4up(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_matches_no_flags(arg_fcinfo) + int4up(arg_fcinfo) }) } -pub unsafe fn regexp_matches(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_uplus(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_matches(arg_fcinfo) + numeric_uplus(arg_fcinfo) }) } -pub unsafe fn regexp_split_to_table_no_flags(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_split_to_table_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_split_to_table_no_flags(arg_fcinfo) + has_table_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn regexp_split_to_table(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_split_to_table(arg_fcinfo) + has_table_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn regexp_split_to_array_no_flags(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_array_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_split_to_array_no_flags(arg_fcinfo) + has_table_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn regexp_split_to_array(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_split_to_array(arg_fcinfo) + has_table_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_timed_checkpoints(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 pg_stat_get_bgwriter_timed_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_timed_checkpoints(arg_fcinfo) + has_table_privilege_name(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_requested_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_requested_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_requested_checkpoints(arg_fcinfo) + has_table_privilege_id(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_buf_written_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_buf_written_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_numscans(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_buf_written_checkpoints(arg_fcinfo) + pg_stat_get_numscans(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_buf_written_clean(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_clean(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_buf_written_clean(arg_fcinfo) + pg_stat_get_tuples_returned(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_maxwritten_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_maxwritten_clean(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_maxwritten_clean(arg_fcinfo) + pg_stat_get_tuples_fetched(arg_fcinfo) }) } -pub unsafe fn ginqueryarrayextract(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 ginqueryarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; } - ginqueryarrayextract(arg_fcinfo) + pg_stat_get_tuples_inserted(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_buf_written_backend(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 pg_stat_get_buf_written_backend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_buf_written_backend(arg_fcinfo) + pg_stat_get_tuples_updated(arg_fcinfo) }) } -pub unsafe fn anynonarray_in(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 anynonarray_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; } - anynonarray_in(arg_fcinfo) + pg_stat_get_tuples_deleted(arg_fcinfo) }) } -pub unsafe fn anynonarray_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - anynonarray_out(arg_fcinfo) + pg_stat_get_blocks_fetched(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_last_vacuum_time(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 pg_stat_get_last_vacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_last_vacuum_time(arg_fcinfo) + pg_stat_get_blocks_hit(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_last_autovacuum_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_autovacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_idset(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_last_autovacuum_time(arg_fcinfo) + pg_stat_get_backend_idset(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_last_analyze_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_analyze_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_last_analyze_time(arg_fcinfo) + pg_stat_get_backend_pid(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_last_autoanalyze_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_autoanalyze_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_dbid(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_last_autoanalyze_time(arg_fcinfo) + pg_stat_get_backend_dbid(arg_fcinfo) }) } -pub unsafe fn int8_avg_combine(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 int8_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_userid(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg_combine(arg_fcinfo) + pg_stat_get_backend_userid(arg_fcinfo) }) } -pub unsafe fn int8_avg_serialize(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_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_activity(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg_serialize(arg_fcinfo) + pg_stat_get_backend_activity(arg_fcinfo) }) } -pub unsafe fn int8_avg_deserialize(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_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_numbackends(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg_deserialize(arg_fcinfo) + pg_stat_get_db_numbackends(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_wait_event_type(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 pg_stat_get_backend_wait_event_type(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_xact_commit(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_wait_event_type(arg_fcinfo) + pg_stat_get_db_xact_commit(arg_fcinfo) }) } -pub unsafe fn tidgt(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 tidgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_xact_rollback(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidgt(arg_fcinfo) + pg_stat_get_db_xact_rollback(arg_fcinfo) }) } -pub unsafe fn tidlt(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 tidlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidlt(arg_fcinfo) + pg_stat_get_db_blocks_fetched(arg_fcinfo) }) } -pub unsafe fn tidge(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 tidge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidge(arg_fcinfo) + pg_stat_get_db_blocks_hit(arg_fcinfo) }) } -pub unsafe fn tidle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn binary_encode(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn binary_encode(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidle(arg_fcinfo) + binary_encode(arg_fcinfo) }) } -pub unsafe fn bttidcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn binary_decode(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bttidcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn binary_decode(arg_fcinfo: FunctionCallInfo) -> Datum; } - bttidcmp(arg_fcinfo) + binary_decode(arg_fcinfo) }) } -pub unsafe fn tidlarger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidlarger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidlarger(arg_fcinfo) + byteaeq(arg_fcinfo) }) } -pub unsafe fn tidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bytealt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytealt(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidsmaller(arg_fcinfo) + bytealt(arg_fcinfo) }) } -pub unsafe fn int8inc_any(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteale(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8inc_any(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteale(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8inc_any(arg_fcinfo) + byteale(arg_fcinfo) }) } -pub unsafe fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteagt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteagt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8inc_float8_float8(arg_fcinfo) + byteagt(arg_fcinfo) }) } -pub unsafe fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteage(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteage(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_accum(arg_fcinfo) + byteage(arg_fcinfo) }) } -pub unsafe fn float8_regr_sxx(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_sxx(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteane(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_sxx(arg_fcinfo) + byteane(arg_fcinfo) }) } -pub unsafe fn float8_regr_syy(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_syy(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteacmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_syy(arg_fcinfo) + byteacmp(arg_fcinfo) }) } -pub unsafe fn float8_regr_sxy(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_sxy(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_sxy(arg_fcinfo) + timestamp_scale(arg_fcinfo) }) } -pub unsafe fn float8_regr_avgx(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_avgx(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_avgx(arg_fcinfo) + int2_avg_accum(arg_fcinfo) }) } -pub unsafe fn float8_regr_avgy(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_avgy(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_avgy(arg_fcinfo) + int4_avg_accum(arg_fcinfo) }) } -pub unsafe fn float8_regr_r2(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_r2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_r2(arg_fcinfo) + int8_avg(arg_fcinfo) }) } -pub unsafe fn float8_regr_slope(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_slope(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidlarger(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_slope(arg_fcinfo) + oidlarger(arg_fcinfo) }) } -pub unsafe fn float8_regr_intercept(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_intercept(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_intercept(arg_fcinfo) + oidsmaller(arg_fcinfo) }) } -pub unsafe fn float8_covar_pop(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_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_covar_pop(arg_fcinfo) + timestamptz_scale(arg_fcinfo) }) } -pub unsafe fn float8_covar_samp(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_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_covar_samp(arg_fcinfo) + time_scale(arg_fcinfo) }) } -pub unsafe fn float8_corr(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_corr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_corr(arg_fcinfo) + timetz_scale(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_blk_read_time(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 pg_stat_get_db_blk_read_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_blk_read_time(arg_fcinfo) + pg_stat_get_tuples_hot_updated(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_blk_write_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_write_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_div_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_blk_write_time(arg_fcinfo) + numeric_div_trunc(arg_fcinfo) }) } -pub unsafe fn pg_switch_wal(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bytealike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_switch_wal(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytealike(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_switch_wal(arg_fcinfo) + bytealike(arg_fcinfo) }) } -pub unsafe fn pg_current_wal_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteanlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_current_wal_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteanlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_current_wal_lsn(arg_fcinfo) + byteanlike(arg_fcinfo) }) } -pub unsafe fn pg_walfile_name_offset(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_walfile_name_offset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn like_escape_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_walfile_name_offset(arg_fcinfo) + like_escape_bytea(arg_fcinfo) }) } -pub unsafe fn pg_walfile_name(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteacat(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_walfile_name(arg_fcinfo) + byteacat(arg_fcinfo) }) } -pub unsafe fn pg_current_wal_insert_lsn(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_current_wal_insert_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytea_substr(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_current_wal_insert_lsn(arg_fcinfo) + bytea_substr(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_wait_event(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_stat_get_backend_wait_event(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytea_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_wait_event(arg_fcinfo) + bytea_substr_no_len(arg_fcinfo) }) } -pub unsafe fn pg_my_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteapos(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_my_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteapos(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_my_temp_schema(arg_fcinfo) + byteapos(arg_fcinfo) }) } -pub unsafe fn pg_is_other_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_is_other_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteatrim(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_is_other_temp_schema(arg_fcinfo) + byteatrim(arg_fcinfo) }) } -pub unsafe fn pg_timezone_names(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_timezone_names(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_timezone_names(arg_fcinfo) + timestamptz_time(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_xact_start(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_stat_get_backend_xact_start(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_xact_start(arg_fcinfo) + timestamp_trunc(arg_fcinfo) }) } -pub unsafe fn numeric_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_part(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_part(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_avg_accum(arg_fcinfo) + timestamp_part(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_buf_alloc(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 pg_stat_get_buf_alloc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_activity(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_buf_alloc(arg_fcinfo) + pg_stat_get_activity(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_live_tuples(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_live_tuples(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_live_tuples(arg_fcinfo) + abstime_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_dead_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_dead_tuples(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_dead_tuples(arg_fcinfo) + date_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_advisory_lock_int8(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_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_lock_int8(arg_fcinfo) + pg_backend_pid(arg_fcinfo) }) } -pub unsafe fn pg_advisory_lock_shared_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_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_lock_shared_int8(arg_fcinfo) + timestamptz_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_lock_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_try_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_lock_int8(arg_fcinfo) + timestamp_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_lock_shared_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_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_lock_shared_int8(arg_fcinfo) + timestamp_date(arg_fcinfo) }) } -pub unsafe fn pg_advisory_unlock_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_advisory_unlock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_abstime(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_unlock_int8(arg_fcinfo) + timestamp_abstime(arg_fcinfo) }) } -pub unsafe fn pg_advisory_unlock_shared_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_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_unlock_shared_int8(arg_fcinfo) + timestamp_pl_interval(arg_fcinfo) }) } -pub unsafe fn pg_advisory_lock_int4(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_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_lock_int4(arg_fcinfo) + timestamp_mi_interval(arg_fcinfo) }) } -pub unsafe fn pg_advisory_lock_shared_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_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_conf_load_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_lock_shared_int4(arg_fcinfo) + pg_conf_load_time(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_lock_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_try_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_zone(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_lock_int4(arg_fcinfo) + timetz_zone(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_lock_shared_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_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_izone(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_lock_shared_int4(arg_fcinfo) + timetz_izone(arg_fcinfo) }) } -pub unsafe fn pg_advisory_unlock_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_advisory_unlock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_unlock_int4(arg_fcinfo) + timestamp_hash(arg_fcinfo) }) } -pub unsafe fn pg_advisory_unlock_shared_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_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_unlock_shared_int4(arg_fcinfo) + timetz_time(arg_fcinfo) }) } -pub unsafe fn pg_advisory_unlock_all(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_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_unlock_all(arg_fcinfo) + time_timetz(arg_fcinfo) }) } -pub unsafe fn xml_in(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 xml_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_in(arg_fcinfo) + timestamp_to_char(arg_fcinfo) }) } -pub unsafe fn xml_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aggregate_dummy(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_out(arg_fcinfo) + aggregate_dummy(arg_fcinfo) }) } -pub unsafe fn xmlcomment(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_age(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xmlcomment(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_age(arg_fcinfo: FunctionCallInfo) -> Datum; } - xmlcomment(arg_fcinfo) + timestamp_age(arg_fcinfo) }) } -pub unsafe fn texttoxml(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_zone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texttoxml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_zone(arg_fcinfo: FunctionCallInfo) -> Datum; } - texttoxml(arg_fcinfo) + timestamp_zone(arg_fcinfo) }) } -pub unsafe fn xmlvalidate(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_izone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xmlvalidate(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_izone(arg_fcinfo: FunctionCallInfo) -> Datum; } - xmlvalidate(arg_fcinfo) + timestamp_izone(arg_fcinfo) }) } -pub unsafe fn xml_recv(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 xml_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_recv(arg_fcinfo) + date_pl_interval(arg_fcinfo) }) } -pub unsafe fn xml_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_send(arg_fcinfo) + date_mi_interval(arg_fcinfo) }) } -pub unsafe fn xmlconcat2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textregexsubstr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xmlconcat2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textregexsubstr(arg_fcinfo: FunctionCallInfo) -> Datum; } - xmlconcat2(arg_fcinfo) + textregexsubstr(arg_fcinfo) }) } -pub unsafe fn varbittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitfromint8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitfromint8(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbittypmodin(arg_fcinfo) + bitfromint8(arg_fcinfo) }) } -pub unsafe fn intervaltypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bittoint8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn intervaltypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bittoint8(arg_fcinfo: FunctionCallInfo) -> Datum; } - intervaltypmodin(arg_fcinfo) + bittoint8(arg_fcinfo) }) } -pub unsafe fn intervaltypmodout(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 intervaltypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn show_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - intervaltypmodout(arg_fcinfo) + show_config_by_name(arg_fcinfo) }) } -pub unsafe fn timestamptypmodin(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 timestamptypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn set_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptypmodin(arg_fcinfo) + set_config_by_name(arg_fcinfo) }) } -pub unsafe fn timestamptypmodout(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 timestamptypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_table_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptypmodout(arg_fcinfo) + pg_table_is_visible(arg_fcinfo) }) } -pub unsafe fn timestamptztypmodin(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 timestamptztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_type_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptztypmodin(arg_fcinfo) + pg_type_is_visible(arg_fcinfo) }) } -pub unsafe fn timestamptztypmodout(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 timestamptztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_function_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptztypmodout(arg_fcinfo) + pg_function_is_visible(arg_fcinfo) }) } -pub unsafe fn timetypmodin(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 timetypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_operator_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetypmodin(arg_fcinfo) + pg_operator_is_visible(arg_fcinfo) }) } -pub unsafe fn timetypmodout(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 timetypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_opclass_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetypmodout(arg_fcinfo) + pg_opclass_is_visible(arg_fcinfo) }) } -pub unsafe fn timetztypmodin(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 timetztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn show_all_settings(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetztypmodin(arg_fcinfo) + show_all_settings(arg_fcinfo) }) } -pub unsafe fn timetztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn replace_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn replace_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetztypmodout(arg_fcinfo) + replace_text(arg_fcinfo) }) } -pub unsafe fn bpchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn split_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn split_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchartypmodin(arg_fcinfo) + split_text(arg_fcinfo) }) } -pub unsafe fn bpchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_hex32(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_hex32(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchartypmodout(arg_fcinfo) + to_hex32(arg_fcinfo) }) } -pub unsafe fn varchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_hex64(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_hex64(arg_fcinfo: FunctionCallInfo) -> Datum; } - varchartypmodin(arg_fcinfo) + to_hex64(arg_fcinfo) }) } -pub unsafe fn varchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_lower(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_lower(arg_fcinfo: FunctionCallInfo) -> Datum; } - varchartypmodout(arg_fcinfo) + array_lower(arg_fcinfo) }) } -pub unsafe fn numerictypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_upper(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numerictypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_upper(arg_fcinfo: FunctionCallInfo) -> Datum; } - numerictypmodin(arg_fcinfo) + array_upper(arg_fcinfo) }) } -pub unsafe fn numerictypmodout(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 numerictypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_conversion_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - numerictypmodout(arg_fcinfo) + pg_conversion_is_visible(arg_fcinfo) }) } -pub unsafe fn bittypmodin(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 bittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_activity_start(arg_fcinfo: FunctionCallInfo) -> Datum; } - bittypmodin(arg_fcinfo) + pg_stat_get_backend_activity_start(arg_fcinfo) }) } -pub unsafe fn bittypmodout(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 bittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_terminate_backend(arg_fcinfo: FunctionCallInfo) -> Datum; } - bittypmodout(arg_fcinfo) + pg_terminate_backend(arg_fcinfo) }) } -pub unsafe fn varbittypmodout(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 varbittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_functiondef(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbittypmodout(arg_fcinfo) + pg_get_functiondef(arg_fcinfo) }) } -pub unsafe fn xmltotext(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 xmltotext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - xmltotext(arg_fcinfo) + text_pattern_lt(arg_fcinfo) }) } -pub unsafe fn table_to_xml(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 table_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_pattern_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - table_to_xml(arg_fcinfo) + text_pattern_le(arg_fcinfo) }) } -pub unsafe fn query_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 query_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_function_arguments(arg_fcinfo: FunctionCallInfo) -> Datum; } - query_to_xml(arg_fcinfo) + pg_get_function_arguments(arg_fcinfo) }) } -pub unsafe fn cursor_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 cursor_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - cursor_to_xml(arg_fcinfo) + text_pattern_ge(arg_fcinfo) }) } -pub unsafe fn table_to_xmlschema(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 table_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_pattern_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - table_to_xmlschema(arg_fcinfo) + text_pattern_gt(arg_fcinfo) }) } -pub unsafe fn query_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 query_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_function_result(arg_fcinfo: FunctionCallInfo) -> Datum; } - query_to_xmlschema(arg_fcinfo) + pg_get_function_result(arg_fcinfo) }) } -pub unsafe fn cursor_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 cursor_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttext_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - cursor_to_xmlschema(arg_fcinfo) + bttext_pattern_cmp(arg_fcinfo) }) } -pub unsafe fn table_to_xml_and_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 table_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_database_size_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - table_to_xml_and_xmlschema(arg_fcinfo) + pg_database_size_name(arg_fcinfo) }) } -pub unsafe fn query_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 query_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn width_bucket_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - query_to_xml_and_xmlschema(arg_fcinfo) + width_bucket_numeric(arg_fcinfo) }) } -pub unsafe fn xpath(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 xpath(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_cancel_backend(arg_fcinfo: FunctionCallInfo) -> Datum; } - xpath(arg_fcinfo) + pg_cancel_backend(arg_fcinfo) }) } -pub unsafe fn schema_to_xml(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 schema_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_start_backup(arg_fcinfo: FunctionCallInfo) -> Datum; } - schema_to_xml(arg_fcinfo) + pg_start_backup(arg_fcinfo) }) } -pub unsafe fn schema_to_xmlschema(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_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stop_backup(arg_fcinfo: FunctionCallInfo) -> Datum; } - schema_to_xmlschema(arg_fcinfo) + pg_stop_backup(arg_fcinfo) }) } -pub unsafe fn schema_to_xml_and_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_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - schema_to_xml_and_xmlschema(arg_fcinfo) + bpchar_pattern_lt(arg_fcinfo) }) } -pub unsafe fn database_to_xml(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 database_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_pattern_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - database_to_xml(arg_fcinfo) + bpchar_pattern_le(arg_fcinfo) }) } -pub unsafe fn database_to_xmlschema(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_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - database_to_xmlschema(arg_fcinfo) + array_length(arg_fcinfo) }) } -pub unsafe fn database_to_xml_and_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_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - database_to_xml_and_xmlschema(arg_fcinfo) + bpchar_pattern_ge(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_in(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 txid_snapshot_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_pattern_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_in(arg_fcinfo) + bpchar_pattern_gt(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_point_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_out(arg_fcinfo) + gist_point_consistent(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_recv(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_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btbpchar_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_recv(arg_fcinfo) + btbpchar_pattern_cmp(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_send(arg_fcinfo) + has_sequence_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn txid_current(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_current(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_current(arg_fcinfo) + has_sequence_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn txid_current_snapshot(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_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_current_snapshot(arg_fcinfo) + has_sequence_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_xmin(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_snapshot_xmin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_xmin(arg_fcinfo) + has_sequence_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_xmax(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_xmax(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_xmax(arg_fcinfo) + has_sequence_privilege_name(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_xip(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_xip(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_xip(arg_fcinfo) + has_sequence_privilege_id(arg_fcinfo) }) } -pub unsafe fn txid_visible_in_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint48cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_visible_in_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint48cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_visible_in_snapshot(arg_fcinfo) + btint48cmp(arg_fcinfo) }) } -pub unsafe fn uuid_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint84cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint84cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_in(arg_fcinfo) + btint84cmp(arg_fcinfo) }) } -pub unsafe fn uuid_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint24cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint24cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_out(arg_fcinfo) + btint24cmp(arg_fcinfo) }) } -pub unsafe fn uuid_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint42cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint42cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_lt(arg_fcinfo) + btint42cmp(arg_fcinfo) }) } -pub unsafe fn uuid_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint28cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint28cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_le(arg_fcinfo) + btint28cmp(arg_fcinfo) }) } -pub unsafe fn uuid_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint82cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint82cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_eq(arg_fcinfo) + btint82cmp(arg_fcinfo) }) } -pub unsafe fn uuid_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btfloat48cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat48cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_ge(arg_fcinfo) + btfloat48cmp(arg_fcinfo) }) } -pub unsafe fn uuid_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btfloat84cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat84cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_gt(arg_fcinfo) + btfloat84cmp(arg_fcinfo) }) } -pub unsafe fn uuid_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_ne(arg_fcinfo) + inet_client_addr(arg_fcinfo) }) } -pub unsafe fn uuid_cmp(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_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_client_port(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_cmp(arg_fcinfo) + inet_client_port(arg_fcinfo) }) } -pub unsafe fn uuid_recv(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_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_server_addr(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_recv(arg_fcinfo) + inet_server_addr(arg_fcinfo) }) } -pub unsafe fn uuid_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_server_port(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_send(arg_fcinfo) + inet_server_port(arg_fcinfo) }) } -pub unsafe fn uuid_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocedurein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocedurein(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_hash(arg_fcinfo) + regprocedurein(arg_fcinfo) }) } -pub unsafe fn booltext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocedureout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn booltext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocedureout(arg_fcinfo: FunctionCallInfo) -> Datum; } - booltext(arg_fcinfo) + regprocedureout(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperin(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 regoperin(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_function_calls(arg_fcinfo) + regoperin(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_function_total_time(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_total_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperout(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_function_total_time(arg_fcinfo) + regoperout(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_function_self_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_self_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperatorin(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_function_self_time(arg_fcinfo) + regoperatorin(arg_fcinfo) }) } -pub unsafe fn record_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperatorout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperatorout(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_eq(arg_fcinfo) + regoperatorout(arg_fcinfo) }) } -pub unsafe fn record_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regclassin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regclassin(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_ne(arg_fcinfo) + regclassin(arg_fcinfo) }) } -pub unsafe fn record_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regclassout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regclassout(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_lt(arg_fcinfo) + regclassout(arg_fcinfo) }) } -pub unsafe fn record_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regtypein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regtypein(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_gt(arg_fcinfo) + regtypein(arg_fcinfo) }) } -pub unsafe fn record_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regtypeout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regtypeout(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_le(arg_fcinfo) + regtypeout(arg_fcinfo) }) } -pub unsafe fn record_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_clear_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_ge(arg_fcinfo) + pg_stat_clear_snapshot(arg_fcinfo) }) } -pub unsafe fn btrecordcmp(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 btrecordcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_function_identity_arguments(arg_fcinfo: FunctionCallInfo) -> Datum; } - btrecordcmp(arg_fcinfo) + pg_get_function_identity_arguments(arg_fcinfo) }) } -pub unsafe fn pg_table_size(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 pg_table_size(arg_fcinfo: FunctionCallInfo) -> Datum; + fn fmgr_internal_validator(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_table_size(arg_fcinfo) + fmgr_internal_validator(arg_fcinfo) }) } -pub unsafe fn pg_indexes_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_indexes_size(arg_fcinfo: FunctionCallInfo) -> Datum; + fn fmgr_c_validator(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_indexes_size(arg_fcinfo) + fmgr_c_validator(arg_fcinfo) }) } -pub unsafe fn pg_relation_filenode(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_relation_filenode(arg_fcinfo: FunctionCallInfo) -> Datum; + fn fmgr_sql_validator(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_relation_filenode(arg_fcinfo) + fmgr_sql_validator(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_name_name(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 has_foreign_data_wrapper_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_name_name(arg_fcinfo) + has_database_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_name_id(arg_fcinfo) + has_database_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_id_name(arg_fcinfo) + has_database_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_id_id(arg_fcinfo) + has_database_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_name(arg_fcinfo) + has_database_privilege_name(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_id(arg_fcinfo) + has_database_privilege_id(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_name_name(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_server_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_name_name(arg_fcinfo) + has_function_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_name_id(arg_fcinfo) + has_function_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_id_name(arg_fcinfo) + has_function_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_id_id(arg_fcinfo) + has_function_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_name(arg_fcinfo) + has_function_privilege_name(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_id(arg_fcinfo) + has_function_privilege_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_name_name(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_column_privilege_name_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_name_name(arg_fcinfo) + has_language_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_name_attnum(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_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_name_attnum(arg_fcinfo) + has_language_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_id_name(arg_fcinfo) + has_language_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_id_attnum(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_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_id_attnum(arg_fcinfo) + has_language_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_name_name(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_id_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_name_name(arg_fcinfo) + has_language_privilege_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_name_attnum(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_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_name_attnum(arg_fcinfo) + has_language_privilege_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_id_name(arg_fcinfo) + has_schema_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_id_attnum(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_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_id_attnum(arg_fcinfo) + has_schema_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_name(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_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_name(arg_fcinfo) + has_schema_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_attnum(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_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_attnum(arg_fcinfo) + has_schema_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_name(arg_fcinfo) + has_schema_privilege_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_attnum(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_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_attnum(arg_fcinfo) + has_schema_privilege_id(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_name_name(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_any_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_reset(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_name_name(arg_fcinfo) + pg_stat_reset(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textregexreplace_noopt(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_name_id(arg_fcinfo) + textregexreplace_noopt(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textregexreplace(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_id_name(arg_fcinfo) + textregexreplace(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_total_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_id_id(arg_fcinfo) + pg_total_relation_size(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_size_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_name(arg_fcinfo) + pg_size_pretty(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_options_to_table(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_id(arg_fcinfo) + pg_options_to_table(arg_fcinfo) }) } -pub unsafe fn bitoverlay(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitoverlay(arg_fcinfo) + record_in(arg_fcinfo) }) } -pub unsafe fn bitoverlay_no_len(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_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitoverlay_no_len(arg_fcinfo) + record_out(arg_fcinfo) }) } -pub unsafe fn bitgetbit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cstring_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitgetbit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cstring_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitgetbit(arg_fcinfo) + cstring_in(arg_fcinfo) }) } -pub unsafe fn bitsetbit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cstring_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitsetbit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cstring_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitsetbit(arg_fcinfo) + cstring_out(arg_fcinfo) }) } -pub unsafe fn pg_relation_filepath(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn any_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_relation_filepath(arg_fcinfo: FunctionCallInfo) -> Datum; + fn any_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_relation_filepath(arg_fcinfo) + any_in(arg_fcinfo) }) } -pub unsafe fn pg_listening_channels(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_listening_channels(arg_fcinfo: FunctionCallInfo) -> Datum; + fn any_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_listening_channels(arg_fcinfo) + any_out(arg_fcinfo) }) } -pub unsafe fn pg_notify(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_notify(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyarray_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_notify(arg_fcinfo) + anyarray_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_numscans(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_stat_get_xact_numscans(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyarray_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_numscans(arg_fcinfo) + anyarray_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_returned(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_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; + fn void_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_returned(arg_fcinfo) + void_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_fetched(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_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn void_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_fetched(arg_fcinfo) + void_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_inserted(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_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_inserted(arg_fcinfo) + trigger_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_updated(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_updated(arg_fcinfo: FunctionCallInfo) -> Datum; + fn trigger_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_updated(arg_fcinfo) + trigger_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_deleted(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_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn language_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_deleted(arg_fcinfo) + language_handler_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_hot_updated(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_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum; + fn language_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_hot_updated(arg_fcinfo) + language_handler_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_blocks_fetched(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_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn internal_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_blocks_fetched(arg_fcinfo) + internal_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_blocks_hit(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_hit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn internal_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_blocks_hit(arg_fcinfo) + internal_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_function_calls(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_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn opaque_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_function_calls(arg_fcinfo) + opaque_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_function_total_time(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_total_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn opaque_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_function_total_time(arg_fcinfo) + opaque_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_function_self_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_self_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dceil(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_function_self_time(arg_fcinfo) + dceil(arg_fcinfo) }) } -pub unsafe fn xpath_exists(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dfloor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xpath_exists(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dfloor(arg_fcinfo: FunctionCallInfo) -> Datum; } - xpath_exists(arg_fcinfo) + dfloor(arg_fcinfo) }) } -pub unsafe fn xml_is_well_formed(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dsign(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xml_is_well_formed(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dsign(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_is_well_formed(arg_fcinfo) + dsign(arg_fcinfo) }) } -pub unsafe fn xml_is_well_formed_document(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_document(arg_fcinfo: FunctionCallInfo) -> Datum; + fn md5_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_is_well_formed_document(arg_fcinfo) + md5_text(arg_fcinfo) }) } -pub unsafe fn xml_is_well_formed_content(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_content(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyelement_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_is_well_formed_content(arg_fcinfo) + anyelement_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_vacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anyelement_out(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 anyelement_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_vacuum_count(arg_fcinfo) + anyelement_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_autovacuum_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_autovacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum; + fn postgresql_fdw_validator(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_autovacuum_count(arg_fcinfo) + postgresql_fdw_validator(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_analyze_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_analyze_count(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_encoding_max_length_sql(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_analyze_count(arg_fcinfo) + pg_encoding_max_length_sql(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_autoanalyze_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_autoanalyze_count(arg_fcinfo: FunctionCallInfo) -> Datum; + fn md5_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_autoanalyze_count(arg_fcinfo) + md5_bytea(arg_fcinfo) }) } -pub unsafe fn text_concat(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 text_concat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_tablespace_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_concat(arg_fcinfo) + pg_tablespace_size_oid(arg_fcinfo) }) } -pub unsafe fn text_concat_ws(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_ws(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_tablespace_size_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_concat_ws(arg_fcinfo) + pg_tablespace_size_name(arg_fcinfo) }) } -pub unsafe fn text_left(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_left(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_database_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_left(arg_fcinfo) + pg_database_size_oid(arg_fcinfo) }) } -pub unsafe fn text_right(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_right(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_unnest(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_right(arg_fcinfo) + array_unnest(arg_fcinfo) }) } -pub unsafe fn text_reverse(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_reverse(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_reverse(arg_fcinfo) + pg_relation_size(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_buf_fsync_backend(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 pg_stat_get_buf_fsync_backend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_buf_fsync_backend(arg_fcinfo) + array_agg_transfn(arg_fcinfo) }) } -pub unsafe fn gist_point_distance(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 gist_point_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_point_distance(arg_fcinfo) + array_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_tablespace(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 pg_stat_get_db_conflict_tablespace(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_tablespace(arg_fcinfo) + date_lt_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_lock(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_lock(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_lock(arg_fcinfo) + date_le_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_snapshot(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_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_snapshot(arg_fcinfo) + date_eq_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_bufferpin(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_bufferpin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_bufferpin(arg_fcinfo) + date_gt_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_startup_deadlock(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_startup_deadlock(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_startup_deadlock(arg_fcinfo) + date_ge_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_all(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_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_all(arg_fcinfo) + date_ne_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_wal_replay_pause(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_wal_replay_pause(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_wal_replay_pause(arg_fcinfo) + date_cmp_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_wal_replay_resume(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_resume(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_wal_replay_resume(arg_fcinfo) + date_lt_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_is_wal_replay_paused(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_is_wal_replay_paused(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_is_wal_replay_paused(arg_fcinfo) + date_le_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_stat_reset_time(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_stat_get_db_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_stat_reset_time(arg_fcinfo) + date_eq_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_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_bgwriter_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_stat_reset_time(arg_fcinfo) + date_gt_timestamptz(arg_fcinfo) }) } -pub unsafe fn ginarrayextract_2args(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 ginarrayextract_2args(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - ginarrayextract_2args(arg_fcinfo) + date_ge_timestamptz(arg_fcinfo) }) } -pub unsafe fn gin_extract_tsvector_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 gin_extract_tsvector_2args(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_tsvector_2args(arg_fcinfo) + date_ne_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_sequence_parameters(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 pg_sequence_parameters(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_sequence_parameters(arg_fcinfo) + date_cmp_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_available_extensions(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_available_extensions(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_available_extensions(arg_fcinfo) + timestamp_lt_date(arg_fcinfo) }) } -pub unsafe fn pg_available_extension_versions(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_extension_versions(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_le_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_available_extension_versions(arg_fcinfo) + timestamp_le_date(arg_fcinfo) }) } -pub unsafe fn pg_extension_update_paths(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_extension_update_paths(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_extension_update_paths(arg_fcinfo) + timestamp_eq_date(arg_fcinfo) }) } -pub unsafe fn pg_extension_config_dump(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_config_dump(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_extension_config_dump(arg_fcinfo) + timestamp_gt_date(arg_fcinfo) }) } -pub unsafe fn gin_extract_tsquery_5args(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 gin_extract_tsquery_5args(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_tsquery_5args(arg_fcinfo) + timestamp_ge_date(arg_fcinfo) }) } -pub unsafe fn gin_tsquery_consistent_6args(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_tsquery_consistent_6args(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_tsquery_consistent_6args(arg_fcinfo) + timestamp_ne_date(arg_fcinfo) }) } -pub unsafe fn pg_advisory_xact_lock_int8(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 pg_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_xact_lock_int8(arg_fcinfo) + timestamp_cmp_date(arg_fcinfo) }) } -pub unsafe fn pg_advisory_xact_lock_shared_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_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_xact_lock_shared_int8(arg_fcinfo) + timestamptz_lt_date(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_xact_lock_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_try_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_le_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_xact_lock_int8(arg_fcinfo) + timestamptz_le_date(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_xact_lock_shared_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_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_xact_lock_shared_int8(arg_fcinfo) + timestamptz_eq_date(arg_fcinfo) }) } -pub unsafe fn pg_advisory_xact_lock_int4(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_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_xact_lock_int4(arg_fcinfo) + timestamptz_gt_date(arg_fcinfo) }) } -pub unsafe fn pg_advisory_xact_lock_shared_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_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_xact_lock_shared_int4(arg_fcinfo) + timestamptz_ge_date(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_xact_lock_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_try_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_xact_lock_int4(arg_fcinfo) + timestamptz_ne_date(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_xact_lock_shared_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_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_xact_lock_shared_int4(arg_fcinfo) + timestamptz_cmp_date(arg_fcinfo) }) } -pub unsafe fn varchar_transform(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 varchar_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - varchar_transform(arg_fcinfo) + has_tablespace_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn pg_create_restore_point(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 pg_create_restore_point(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_create_restore_point(arg_fcinfo) + has_tablespace_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_wal_senders(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_stat_get_wal_senders(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_wal_senders(arg_fcinfo) + has_tablespace_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn window_row_number(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 window_row_number(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_row_number(arg_fcinfo) + has_tablespace_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn window_rank(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_rank(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_rank(arg_fcinfo) + has_tablespace_privilege_name(arg_fcinfo) }) } -pub unsafe fn window_dense_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_dense_rank(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_dense_rank(arg_fcinfo) + has_tablespace_privilege_id(arg_fcinfo) }) } -pub unsafe fn window_percent_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_percent_rank(arg_fcinfo: FunctionCallInfo) -> Datum; + fn shell_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_percent_rank(arg_fcinfo) + shell_in(arg_fcinfo) }) } -pub unsafe fn window_cume_dist(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_cume_dist(arg_fcinfo: FunctionCallInfo) -> Datum; + fn shell_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_cume_dist(arg_fcinfo) + shell_out(arg_fcinfo) }) } -pub unsafe fn window_ntile(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_ntile(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_ntile(arg_fcinfo) + array_recv(arg_fcinfo) }) } -pub unsafe fn window_lag(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_lag(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lag(arg_fcinfo) + array_send(arg_fcinfo) }) } -pub unsafe fn window_lag_with_offset(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_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lag_with_offset(arg_fcinfo) + record_recv(arg_fcinfo) }) } -pub unsafe fn window_lag_with_offset_and_default(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_and_default(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lag_with_offset_and_default(arg_fcinfo) + record_send(arg_fcinfo) }) } -pub unsafe fn window_lead(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_lead(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lead(arg_fcinfo) + int2recv(arg_fcinfo) }) } -pub unsafe fn window_lead_with_offset(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_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2send(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lead_with_offset(arg_fcinfo) + int2send(arg_fcinfo) }) } -pub unsafe fn window_lead_with_offset_and_default(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_and_default(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lead_with_offset_and_default(arg_fcinfo) + int4recv(arg_fcinfo) }) } -pub unsafe fn window_first_value(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_first_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4send(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_first_value(arg_fcinfo) + int4send(arg_fcinfo) }) } -pub unsafe fn window_last_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_last_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_last_value(arg_fcinfo) + int8recv(arg_fcinfo) }) } -pub unsafe fn window_nth_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_nth_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8send(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_nth_value(arg_fcinfo) + int8send(arg_fcinfo) }) } -pub unsafe fn fdw_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2vectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdw_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2vectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - fdw_handler_in(arg_fcinfo) + int2vectorrecv(arg_fcinfo) }) } -pub unsafe fn fdw_handler_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2vectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - fdw_handler_out(arg_fcinfo) + int2vectorsend(arg_fcinfo) }) } -pub unsafe fn void_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bytearecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn void_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytearecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - void_recv(arg_fcinfo) + bytearecv(arg_fcinfo) }) } -pub unsafe fn void_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteasend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn void_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteasend(arg_fcinfo: FunctionCallInfo) -> Datum; } - void_send(arg_fcinfo) + byteasend(arg_fcinfo) }) } -pub unsafe fn btint2sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint2sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint2sortsupport(arg_fcinfo) + textrecv(arg_fcinfo) }) } -pub unsafe fn btint4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint4sortsupport(arg_fcinfo) + textsend(arg_fcinfo) }) } -pub unsafe fn btint8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn unknownrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn unknownrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint8sortsupport(arg_fcinfo) + unknownrecv(arg_fcinfo) }) } -pub unsafe fn btfloat4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn unknownsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn unknownsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - btfloat4sortsupport(arg_fcinfo) + unknownsend(arg_fcinfo) }) } -pub unsafe fn btfloat8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - btfloat8sortsupport(arg_fcinfo) + oidrecv(arg_fcinfo) }) } -pub unsafe fn btoidsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btoidsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - btoidsortsupport(arg_fcinfo) + oidsend(arg_fcinfo) }) } -pub unsafe fn btnamesortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btnamesortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - btnamesortsupport(arg_fcinfo) + oidvectorrecv(arg_fcinfo) }) } -pub unsafe fn date_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_sortsupport(arg_fcinfo) + oidvectorsend(arg_fcinfo) }) } -pub unsafe fn timestamp_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namerecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_sortsupport(arg_fcinfo) + namerecv(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namesend(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 namesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_name_name(arg_fcinfo) + namesend(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_name_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_name_id(arg_fcinfo) + point_recv(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_id_name(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_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_id_name(arg_fcinfo) + point_send(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_id_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_id_id(arg_fcinfo) + bpcharrecv(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_name(arg_fcinfo) + bpcharsend(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_id(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_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_id(arg_fcinfo) + varcharrecv(arg_fcinfo) }) } -pub unsafe fn macaddr_not(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varcharsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varcharsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_not(arg_fcinfo) + varcharsend(arg_fcinfo) }) } -pub unsafe fn macaddr_and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_and(arg_fcinfo) + charrecv(arg_fcinfo) }) } -pub unsafe fn macaddr_or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_or(arg_fcinfo) + charsend(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_temp_files(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolrecv(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 boolrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_temp_files(arg_fcinfo) + boolrecv(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_temp_bytes(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_bytes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_temp_bytes(arg_fcinfo) + boolsend(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_deadlocks(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_deadlocks(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_deadlocks(arg_fcinfo) + tidrecv(arg_fcinfo) }) } -pub unsafe fn array_to_json(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_to_json(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_to_json(arg_fcinfo) + tidsend(arg_fcinfo) }) } -pub unsafe fn array_to_json_pretty(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_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_to_json_pretty(arg_fcinfo) + xidrecv(arg_fcinfo) }) } -pub unsafe fn row_to_json(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xidsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn row_to_json(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xidsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - row_to_json(arg_fcinfo) + xidsend(arg_fcinfo) }) } -pub unsafe fn row_to_json_pretty(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_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - row_to_json_pretty(arg_fcinfo) + cidrecv(arg_fcinfo) }) } -pub unsafe fn numeric_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_transform(arg_fcinfo) + cidsend(arg_fcinfo) }) } -pub unsafe fn varbit_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbit_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit_transform(arg_fcinfo) + regprocrecv(arg_fcinfo) }) } -pub unsafe fn pg_get_viewdef_wrap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_viewdef_wrap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_viewdef_wrap(arg_fcinfo) + regprocsend(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_checkpoint_write_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocedurerecv(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 regprocedurerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_checkpoint_write_time(arg_fcinfo) + regprocedurerecv(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_checkpoint_sync_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_sync_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regproceduresend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_checkpoint_sync_time(arg_fcinfo) + regproceduresend(arg_fcinfo) }) } -pub unsafe fn pg_collation_for(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_collation_for(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_collation_for(arg_fcinfo) + regoperrecv(arg_fcinfo) }) } -pub unsafe fn pg_trigger_depth(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regopersend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_trigger_depth(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regopersend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_trigger_depth(arg_fcinfo) + regopersend(arg_fcinfo) }) } -pub unsafe fn pg_wal_lsn_diff(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperatorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_wal_lsn_diff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperatorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_wal_lsn_diff(arg_fcinfo) + regoperatorrecv(arg_fcinfo) }) } -pub unsafe fn pg_size_pretty_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperatorsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_size_pretty_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperatorsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_size_pretty_numeric(arg_fcinfo) + regoperatorsend(arg_fcinfo) }) } -pub unsafe fn array_remove(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regclassrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_remove(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regclassrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_remove(arg_fcinfo) + regclassrecv(arg_fcinfo) }) } -pub unsafe fn array_replace(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regclasssend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_replace(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regclasssend(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_replace(arg_fcinfo) + regclasssend(arg_fcinfo) }) } -pub unsafe fn rangesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regtyperecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rangesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regtyperecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - rangesel(arg_fcinfo) + regtyperecv(arg_fcinfo) }) } -pub unsafe fn be_lo_lseek64(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regtypesend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_lseek64(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regtypesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_lseek64(arg_fcinfo) + regtypesend(arg_fcinfo) }) } -pub unsafe fn be_lo_tell64(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_tell64(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_tell64(arg_fcinfo) + bit_recv(arg_fcinfo) }) } -pub unsafe fn be_lo_truncate64(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_truncate64(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_truncate64(arg_fcinfo) + bit_send(arg_fcinfo) }) } -pub unsafe fn json_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbit_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_agg_transfn(arg_fcinfo) + varbit_recv(arg_fcinfo) }) } -pub unsafe fn json_agg_finalfn(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_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_agg_finalfn(arg_fcinfo) + varbit_send(arg_fcinfo) }) } -pub unsafe fn to_json(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_json(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_json(arg_fcinfo) + numeric_recv(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_mod_since_analyze(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_send(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 numeric_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_mod_since_analyze(arg_fcinfo) + numeric_send(arg_fcinfo) }) } -pub unsafe fn numeric_sum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimerecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_sum(arg_fcinfo) + abstimerecv(arg_fcinfo) }) } -pub unsafe fn array_cardinality(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimesend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_cardinality(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_cardinality(arg_fcinfo) + abstimesend(arg_fcinfo) }) } -pub unsafe fn json_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimerecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_agg_transfn(arg_fcinfo) + reltimerecv(arg_fcinfo) }) } -pub unsafe fn record_image_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimesend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_image_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_eq(arg_fcinfo) + reltimesend(arg_fcinfo) }) } -pub unsafe fn record_image_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_ne(arg_fcinfo) + tintervalrecv(arg_fcinfo) }) } -pub unsafe fn record_image_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_lt(arg_fcinfo) + tintervalsend(arg_fcinfo) }) } -pub unsafe fn record_image_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_gt(arg_fcinfo) + date_recv(arg_fcinfo) }) } -pub unsafe fn record_image_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_le(arg_fcinfo) + date_send(arg_fcinfo) }) } -pub unsafe fn record_image_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_ge(arg_fcinfo) + time_recv(arg_fcinfo) }) } -pub unsafe fn btrecordimagecmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btrecordimagecmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - btrecordimagecmp(arg_fcinfo) + time_send(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_archiver(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_recv(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_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_archiver(arg_fcinfo) + timetz_recv(arg_fcinfo) }) } -pub unsafe fn json_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_agg_finalfn(arg_fcinfo) + timetz_send(arg_fcinfo) }) } -pub unsafe fn json_build_array(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_build_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_build_array(arg_fcinfo) + timestamp_recv(arg_fcinfo) }) } -pub unsafe fn json_build_array_noargs(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_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_build_array_noargs(arg_fcinfo) + timestamp_send(arg_fcinfo) }) } -pub unsafe fn json_build_object(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_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_build_object(arg_fcinfo) + timestamptz_recv(arg_fcinfo) }) } -pub unsafe fn json_build_object_noargs(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_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_build_object_noargs(arg_fcinfo) + timestamptz_send(arg_fcinfo) }) } -pub unsafe fn json_object(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_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object(arg_fcinfo) + interval_recv(arg_fcinfo) }) } -pub unsafe fn json_object_two_arg(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_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_two_arg(arg_fcinfo) + interval_send(arg_fcinfo) }) } -pub unsafe fn json_to_record(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_to_record(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_to_record(arg_fcinfo) + lseg_recv(arg_fcinfo) }) } -pub unsafe fn json_to_recordset(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_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_to_recordset(arg_fcinfo) + lseg_send(arg_fcinfo) }) } -pub unsafe fn jsonb_array_length(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_array_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_array_length(arg_fcinfo) + path_recv(arg_fcinfo) }) } -pub unsafe fn jsonb_each(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_each(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_each(arg_fcinfo) + path_send(arg_fcinfo) }) } -pub unsafe fn jsonb_populate_record(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_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_populate_record(arg_fcinfo) + box_recv(arg_fcinfo) }) } -pub unsafe fn jsonb_typeof(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_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_typeof(arg_fcinfo) + box_send(arg_fcinfo) }) } -pub unsafe fn jsonb_object_field_text(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_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_field_text(arg_fcinfo) + poly_recv(arg_fcinfo) }) } -pub unsafe fn jsonb_array_element(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_array_element(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_array_element(arg_fcinfo) + poly_send(arg_fcinfo) }) } -pub unsafe fn jsonb_array_element_text(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_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_array_element_text(arg_fcinfo) + line_recv(arg_fcinfo) }) } -pub unsafe fn jsonb_extract_path(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_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_extract_path(arg_fcinfo) + line_send(arg_fcinfo) }) } -pub unsafe fn width_bucket_array(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn width_bucket_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - width_bucket_array(arg_fcinfo) + circle_recv(arg_fcinfo) }) } -pub unsafe fn jsonb_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_array_elements(arg_fcinfo) + circle_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_in(arg_fcinfo) + cash_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_out(arg_fcinfo) + cash_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_lt(arg_fcinfo) + macaddr_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_le(arg_fcinfo) + macaddr_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_eq(arg_fcinfo) + inet_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_ge(arg_fcinfo) + inet_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_gt(arg_fcinfo) + cidr_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_ne(arg_fcinfo) + cidr_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_mi(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_mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cstring_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_mi(arg_fcinfo) + cstring_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_recv(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_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cstring_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_recv(arg_fcinfo) + cstring_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyarray_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_send(arg_fcinfo) + anyarray_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_cmp(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_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyarray_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_cmp(arg_fcinfo) + anyarray_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_hash(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_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_ruledef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_hash(arg_fcinfo) + pg_get_ruledef_ext(arg_fcinfo) }) } -pub unsafe fn bttextsortsupport(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 bttextsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_viewdef_name_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - bttextsortsupport(arg_fcinfo) + pg_get_viewdef_name_ext(arg_fcinfo) }) } -pub unsafe fn generate_series_step_numeric(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 generate_series_step_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_viewdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_step_numeric(arg_fcinfo) + pg_get_viewdef_ext(arg_fcinfo) }) } -pub unsafe fn generate_series_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_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_indexdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_numeric(arg_fcinfo) + pg_get_indexdef_ext(arg_fcinfo) }) } -pub unsafe fn json_strip_nulls(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 json_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_constraintdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_strip_nulls(arg_fcinfo) + pg_get_constraintdef_ext(arg_fcinfo) }) } -pub unsafe fn jsonb_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 jsonb_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_expr_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_strip_nulls(arg_fcinfo) + pg_get_expr_ext(arg_fcinfo) }) } -pub unsafe fn jsonb_object(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_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_prepared_statement(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object(arg_fcinfo) + pg_prepared_statement(arg_fcinfo) }) } -pub unsafe fn jsonb_object_two_arg(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_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_cursor(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_two_arg(arg_fcinfo) + pg_cursor(arg_fcinfo) }) } -pub unsafe fn jsonb_agg_transfn(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_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_agg_transfn(arg_fcinfo) + numeric_var_pop(arg_fcinfo) }) } -pub unsafe fn jsonb_agg_finalfn(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_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn booland_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_agg_finalfn(arg_fcinfo) + booland_statefunc(arg_fcinfo) }) } -pub unsafe fn jsonb_object_agg_transfn(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_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolor_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_agg_transfn(arg_fcinfo) + boolor_statefunc(arg_fcinfo) }) } -pub unsafe fn jsonb_object_agg_finalfn(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_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_agg_finalfn(arg_fcinfo) + timestamp_lt_timestamptz(arg_fcinfo) }) } -pub unsafe fn jsonb_build_array(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_build_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_build_array(arg_fcinfo) + timestamp_le_timestamptz(arg_fcinfo) }) } -pub unsafe fn jsonb_build_array_noargs(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_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_build_array_noargs(arg_fcinfo) + timestamp_eq_timestamptz(arg_fcinfo) }) } -pub unsafe fn jsonb_build_object(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_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_build_object(arg_fcinfo) + timestamp_gt_timestamptz(arg_fcinfo) }) } -pub unsafe fn jsonb_build_object_noargs(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_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_build_object_noargs(arg_fcinfo) + timestamp_ge_timestamptz(arg_fcinfo) }) } -pub unsafe fn dist_ppoly(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 dist_ppoly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - dist_ppoly(arg_fcinfo) + timestamp_ne_timestamptz(arg_fcinfo) }) } -pub unsafe fn array_position(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 array_position(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_position(arg_fcinfo) + timestamp_cmp_timestamptz(arg_fcinfo) }) } -pub unsafe fn array_position_start(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_start(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_position_start(arg_fcinfo) + timestamptz_lt_timestamp(arg_fcinfo) }) } -pub unsafe fn array_positions(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_positions(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_positions(arg_fcinfo) + timestamptz_le_timestamp(arg_fcinfo) }) } -pub unsafe fn gist_circle_distance(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 gist_circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_circle_distance(arg_fcinfo) + timestamptz_eq_timestamp(arg_fcinfo) }) } -pub unsafe fn gist_box_fetch(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_box_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_fetch(arg_fcinfo) + timestamptz_gt_timestamp(arg_fcinfo) }) } -pub unsafe fn gist_point_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_point_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_point_fetch(arg_fcinfo) + timestamptz_ge_timestamp(arg_fcinfo) }) } -pub unsafe fn numeric_sortsupport(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 numeric_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_sortsupport(arg_fcinfo) + timestamptz_ne_timestamp(arg_fcinfo) }) } -pub unsafe fn gist_poly_distance(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 gist_poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_poly_distance(arg_fcinfo) + timestamptz_cmp_timestamp(arg_fcinfo) }) } -pub unsafe fn dist_cpoint(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 dist_cpoint(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_tablespace_databases(arg_fcinfo: FunctionCallInfo) -> Datum; } - dist_cpoint(arg_fcinfo) + pg_tablespace_databases(arg_fcinfo) }) } -pub unsafe fn dist_polyp(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_polyp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_bool(arg_fcinfo: FunctionCallInfo) -> Datum; } - dist_polyp(arg_fcinfo) + int4_bool(arg_fcinfo) }) } -pub unsafe fn pg_read_file(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bool_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_read_file(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bool_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_file(arg_fcinfo) + bool_int4(arg_fcinfo) }) } -pub unsafe fn show_config_by_name_missing_ok(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lastval(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 lastval(arg_fcinfo: FunctionCallInfo) -> Datum; } - show_config_by_name_missing_ok(arg_fcinfo) + lastval(arg_fcinfo) }) } -pub unsafe fn pg_read_binary_file(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 pg_read_binary_file(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_postmaster_start_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_binary_file(arg_fcinfo) + pg_postmaster_start_time(arg_fcinfo) }) } -pub unsafe fn pg_notification_queue_usage(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_notification_queue_usage(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_notification_queue_usage(arg_fcinfo) + pg_blocking_pids(arg_fcinfo) }) } -pub unsafe fn pg_ls_dir(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_ls_dir(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_below(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ls_dir(arg_fcinfo) + box_below(arg_fcinfo) }) } -pub unsafe fn row_security_active(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn row_security_active(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; } - row_security_active(arg_fcinfo) + box_overbelow(arg_fcinfo) }) } -pub unsafe fn row_security_active_name(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_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; } - row_security_active_name(arg_fcinfo) + box_overabove(arg_fcinfo) }) } -pub unsafe fn uuid_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_above(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_above(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_sortsupport(arg_fcinfo) + box_above(arg_fcinfo) }) } -pub unsafe fn jsonb_concat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_below(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_concat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_below(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_concat(arg_fcinfo) + poly_below(arg_fcinfo) }) } -pub unsafe fn jsonb_delete(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_delete(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_delete(arg_fcinfo) + poly_overbelow(arg_fcinfo) }) } -pub unsafe fn jsonb_delete_idx(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_idx(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_delete_idx(arg_fcinfo) + poly_overabove(arg_fcinfo) }) } -pub unsafe fn jsonb_delete_path(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_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_above(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_delete_path(arg_fcinfo) + poly_above(arg_fcinfo) }) } -pub unsafe fn jsonb_set(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_set(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_set(arg_fcinfo) + gist_box_consistent(arg_fcinfo) }) } -pub unsafe fn jsonb_pretty(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_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_pretty(arg_fcinfo) + gist_box_compress(arg_fcinfo) }) } -pub unsafe fn pg_stat_file(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 pg_stat_file(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_file(arg_fcinfo) + gist_box_decompress(arg_fcinfo) }) } -pub unsafe fn xidneq(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 xidneq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; } - xidneq(arg_fcinfo) + gist_box_penalty(arg_fcinfo) }) } -pub unsafe fn tsm_handler_in(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 tsm_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsm_handler_in(arg_fcinfo) + gist_box_picksplit(arg_fcinfo) }) } -pub unsafe fn tsm_handler_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsm_handler_out(arg_fcinfo) + gist_box_union(arg_fcinfo) }) } -pub unsafe fn tsm_bernoulli_handler(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_bernoulli_handler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsm_bernoulli_handler(arg_fcinfo) + gist_box_same(arg_fcinfo) }) } -pub unsafe fn tsm_system_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_system_handler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_poly_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsm_system_handler(arg_fcinfo) + gist_poly_consistent(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_wal_receiver(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 pg_stat_get_wal_receiver(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_poly_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_wal_receiver(arg_fcinfo) + gist_poly_compress(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_progress_info(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_progress_info(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_progress_info(arg_fcinfo) + circle_overbelow(arg_fcinfo) }) } -pub unsafe fn tsvector_filter(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_overabove(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_filter(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_filter(arg_fcinfo) + circle_overabove(arg_fcinfo) }) } -pub unsafe fn tsvector_setweight_by_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_setweight_by_filter(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_circle_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_setweight_by_filter(arg_fcinfo) + gist_circle_consistent(arg_fcinfo) }) } -pub unsafe fn tsvector_delete_str(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_delete_str(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_circle_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_delete_str(arg_fcinfo) + gist_circle_compress(arg_fcinfo) }) } -pub unsafe fn tsvector_unnest(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_unnest(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_unnest(arg_fcinfo) + numeric_stddev_pop(arg_fcinfo) }) } -pub unsafe fn tsvector_delete_arr(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_delete_arr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn domain_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_delete_arr(arg_fcinfo) + domain_in(arg_fcinfo) }) } -pub unsafe fn int4_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn domain_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn domain_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_avg_combine(arg_fcinfo) + domain_recv(arg_fcinfo) }) } -pub unsafe fn interval_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 interval_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_timezone_abbrevs(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_combine(arg_fcinfo) + pg_timezone_abbrevs(arg_fcinfo) }) } -pub unsafe fn tsvector_to_array(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xmlexists(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xmlexists(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_to_array(arg_fcinfo) + xmlexists(arg_fcinfo) }) } -pub unsafe fn array_to_tsvector(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 array_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_reload_conf(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_to_tsvector(arg_fcinfo) + pg_reload_conf(arg_fcinfo) }) } -pub unsafe fn bpchar_sortsupport(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 bpchar_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_rotate_logfile(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_sortsupport(arg_fcinfo) + pg_rotate_logfile(arg_fcinfo) }) } -pub unsafe fn show_all_file_settings(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 show_all_file_settings(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_file_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; } - show_all_file_settings(arg_fcinfo) + pg_stat_file_1arg(arg_fcinfo) }) } -pub unsafe fn pg_current_wal_flush_lsn(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 pg_current_wal_flush_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_read_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_current_wal_flush_lsn(arg_fcinfo) + pg_read_file_off_len(arg_fcinfo) }) } -pub unsafe fn bytea_sortsupport(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 bytea_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ls_dir_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytea_sortsupport(arg_fcinfo) + pg_ls_dir_1arg(arg_fcinfo) }) } -pub unsafe fn bttext_pattern_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 bttext_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_sleep(arg_fcinfo: FunctionCallInfo) -> Datum; } - bttext_pattern_sortsupport(arg_fcinfo) + pg_sleep(arg_fcinfo) }) } -pub unsafe fn btbpchar_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 btbpchar_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetnot(arg_fcinfo: FunctionCallInfo) -> Datum; } - btbpchar_pattern_sortsupport(arg_fcinfo) + inetnot(arg_fcinfo) }) } -pub unsafe fn pg_size_bytes(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inetand(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_size_bytes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetand(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_size_bytes(arg_fcinfo) + inetand(arg_fcinfo) }) } -pub unsafe fn numeric_serialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inetor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetor(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_serialize(arg_fcinfo) + inetor(arg_fcinfo) }) } -pub unsafe fn numeric_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inetpl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetpl(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_deserialize(arg_fcinfo) + inetpl(arg_fcinfo) }) } -pub unsafe fn numeric_avg_combine(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_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetmi_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_avg_combine(arg_fcinfo) + inetmi_int8(arg_fcinfo) }) } -pub unsafe fn numeric_poly_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_poly_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetmi(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_combine(arg_fcinfo) + inetmi(arg_fcinfo) }) } -pub unsafe fn numeric_poly_serialize(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_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn statement_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_serialize(arg_fcinfo) + statement_timestamp(arg_fcinfo) }) } -pub unsafe fn numeric_poly_deserialize(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_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn clock_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_deserialize(arg_fcinfo) + clock_timestamp(arg_fcinfo) }) } -pub unsafe fn numeric_combine(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_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_cmp_prefix(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_combine(arg_fcinfo) + gin_cmp_prefix(arg_fcinfo) }) } -pub unsafe fn float8_regr_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 float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_combine(arg_fcinfo) + pg_has_role_name_name(arg_fcinfo) }) } -pub unsafe fn jsonb_delete_array(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 jsonb_delete_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_delete_array(arg_fcinfo) + pg_has_role_name_id(arg_fcinfo) }) } -pub unsafe fn cash_mul_int8(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 cash_mul_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_mul_int8(arg_fcinfo) + pg_has_role_id_name(arg_fcinfo) }) } -pub unsafe fn cash_div_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_div_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_div_int8(arg_fcinfo) + pg_has_role_id_id(arg_fcinfo) }) } -pub unsafe fn txid_current_if_assigned(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 txid_current_if_assigned(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_current_if_assigned(arg_fcinfo) + pg_has_role_name(arg_fcinfo) }) } -pub unsafe fn pg_get_partkeydef(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 pg_get_partkeydef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_partkeydef(arg_fcinfo) + pg_has_role_id(arg_fcinfo) }) } -pub unsafe fn pg_ls_logdir(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_ls_logdir(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_justify_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ls_logdir(arg_fcinfo) + interval_justify_interval(arg_fcinfo) }) } -pub unsafe fn pg_ls_waldir(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_waldir(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_triggerdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ls_waldir(arg_fcinfo) + pg_get_triggerdef_ext(arg_fcinfo) }) } -pub unsafe fn pg_ndistinct_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dasind(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ndistinct_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dasind(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ndistinct_in(arg_fcinfo) + dasind(arg_fcinfo) }) } -pub unsafe fn pg_ndistinct_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dacosd(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ndistinct_out(arg_fcinfo) + dacosd(arg_fcinfo) }) } -pub unsafe fn pg_ndistinct_recv(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_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datand(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ndistinct_recv(arg_fcinfo) + datand(arg_fcinfo) }) } -pub unsafe fn pg_ndistinct_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datan2d(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ndistinct_send(arg_fcinfo) + datan2d(arg_fcinfo) }) } -pub unsafe fn macaddr_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dsind(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dsind(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_sortsupport(arg_fcinfo) + dsind(arg_fcinfo) }) } -pub unsafe fn txid_status(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dcosd(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_status(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dcosd(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_status(arg_fcinfo) + dcosd(arg_fcinfo) }) } -pub unsafe fn pg_safe_snapshot_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtand(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 dtand(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_safe_snapshot_blocking_pids(arg_fcinfo) + dtand(arg_fcinfo) }) } -pub unsafe fn pg_isolation_test_session_is_blocked(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dcotd(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 dcotd(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_isolation_test_session_is_blocked(arg_fcinfo) + dcotd(arg_fcinfo) }) } -pub unsafe fn pg_identify_object_as_address(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_identify_object_as_address(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stop_backup_v2(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_identify_object_as_address(arg_fcinfo) + pg_stop_backup_v2(arg_fcinfo) }) } -pub unsafe fn brin_minmax_opcinfo(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 brin_minmax_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_minmax_opcinfo(arg_fcinfo) + numeric_avg_serialize(arg_fcinfo) }) } -pub unsafe fn brin_minmax_add_value(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_add_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_avg_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_minmax_add_value(arg_fcinfo) + numeric_avg_deserialize(arg_fcinfo) }) } -pub unsafe fn brin_minmax_consistent(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_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ginarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_minmax_consistent(arg_fcinfo) + ginarrayextract(arg_fcinfo) }) } -pub unsafe fn brin_minmax_union(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_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ginarrayconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_minmax_union(arg_fcinfo) + ginarrayconsistent(arg_fcinfo) }) } -pub unsafe fn int8_avg_accum_inv(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 int8_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg_accum_inv(arg_fcinfo) + int8_avg_accum(arg_fcinfo) }) } -pub unsafe fn numeric_poly_sum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn arrayoverlap(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_poly_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn arrayoverlap(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_sum(arg_fcinfo) + arrayoverlap(arg_fcinfo) }) } -pub unsafe fn numeric_poly_avg(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_avg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn arraycontains(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_avg(arg_fcinfo) + arraycontains(arg_fcinfo) }) } -pub unsafe fn numeric_poly_var_pop(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_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn arraycontained(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_var_pop(arg_fcinfo) + arraycontained(arg_fcinfo) }) } -pub unsafe fn numeric_poly_var_samp(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_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_var_samp(arg_fcinfo) + pg_stat_get_db_tuples_returned(arg_fcinfo) }) } -pub unsafe fn numeric_poly_stddev_pop(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_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_stddev_pop(arg_fcinfo) + pg_stat_get_db_tuples_fetched(arg_fcinfo) }) } -pub unsafe fn numeric_poly_stddev_samp(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_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_stddev_samp(arg_fcinfo) + pg_stat_get_db_tuples_inserted(arg_fcinfo) }) } -pub unsafe fn regexp_match_no_flags(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 regexp_match_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_match_no_flags(arg_fcinfo) + pg_stat_get_db_tuples_updated(arg_fcinfo) }) } -pub unsafe fn regexp_match(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_match(arg_fcinfo) + pg_stat_get_db_tuples_deleted(arg_fcinfo) }) } -pub unsafe fn int8_mul_cash(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 int8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_matches_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_mul_cash(arg_fcinfo) + regexp_matches_no_flags(arg_fcinfo) }) } -pub unsafe fn pg_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexp_matches(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_matches(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_config(arg_fcinfo) + regexp_matches(arg_fcinfo) }) } -pub unsafe fn pg_hba_file_rules(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_hba_file_rules(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_split_to_table_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_hba_file_rules(arg_fcinfo) + regexp_split_to_table_no_flags(arg_fcinfo) }) } -pub unsafe fn pg_statistics_obj_is_visible(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_statistics_obj_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_split_to_table(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_statistics_obj_is_visible(arg_fcinfo) + regexp_split_to_table(arg_fcinfo) }) } -pub unsafe fn pg_dependencies_in(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_dependencies_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_split_to_array_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_dependencies_in(arg_fcinfo) + regexp_split_to_array_no_flags(arg_fcinfo) }) } -pub unsafe fn pg_dependencies_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_split_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_dependencies_out(arg_fcinfo) + regexp_split_to_array(arg_fcinfo) }) } -pub unsafe fn pg_dependencies_recv(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_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_timed_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_dependencies_recv(arg_fcinfo) + pg_stat_get_bgwriter_timed_checkpoints(arg_fcinfo) }) } -pub unsafe fn pg_dependencies_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_requested_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_dependencies_send(arg_fcinfo) + pg_stat_get_bgwriter_requested_checkpoints(arg_fcinfo) }) } -pub unsafe fn pg_get_partition_constraintdef(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_get_partition_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_buf_written_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_partition_constraintdef(arg_fcinfo) + pg_stat_get_bgwriter_buf_written_checkpoints(arg_fcinfo) }) } -pub unsafe fn pg_get_statisticsobjdef(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_statisticsobjdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_buf_written_clean(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_statisticsobjdef(arg_fcinfo) + pg_stat_get_bgwriter_buf_written_clean(arg_fcinfo) }) } -pub unsafe fn pg_control_system(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_control_system(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_maxwritten_clean(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_control_system(arg_fcinfo) + pg_stat_get_bgwriter_maxwritten_clean(arg_fcinfo) }) } -pub unsafe fn pg_control_checkpoint(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_checkpoint(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ginqueryarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_control_checkpoint(arg_fcinfo) + ginqueryarrayextract(arg_fcinfo) }) } -pub unsafe fn pg_control_recovery(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_recovery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_buf_written_backend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_control_recovery(arg_fcinfo) + pg_stat_get_buf_written_backend(arg_fcinfo) }) } -pub unsafe fn pg_control_init(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_init(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anynonarray_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_control_init(arg_fcinfo) + anynonarray_in(arg_fcinfo) }) } -pub unsafe fn pg_import_system_collations(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_import_system_collations(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anynonarray_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_import_system_collations(arg_fcinfo) + anynonarray_out(arg_fcinfo) }) } -pub unsafe fn macaddr8_recv(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 macaddr8_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_last_vacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_recv(arg_fcinfo) + pg_stat_get_last_vacuum_time(arg_fcinfo) }) } -pub unsafe fn macaddr8_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_last_autovacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_send(arg_fcinfo) + pg_stat_get_last_autovacuum_time(arg_fcinfo) }) } -pub unsafe fn pg_collation_actual_version(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 pg_collation_actual_version(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_last_analyze_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_collation_actual_version(arg_fcinfo) + pg_stat_get_last_analyze_time(arg_fcinfo) }) } -pub unsafe fn pg_filenode_relation(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_filenode_relation(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_last_autoanalyze_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_filenode_relation(arg_fcinfo) + pg_stat_get_last_autoanalyze_time(arg_fcinfo) }) } -pub unsafe fn be_lo_from_bytea(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 be_lo_from_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_from_bytea(arg_fcinfo) + int8_avg_combine(arg_fcinfo) }) } -pub unsafe fn be_lo_get(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_get(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_get(arg_fcinfo) + int8_avg_serialize(arg_fcinfo) }) } -pub unsafe fn be_lo_get_fragment(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_fragment(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_get_fragment(arg_fcinfo) + int8_avg_deserialize(arg_fcinfo) }) } -pub unsafe fn be_lo_put(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_put(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_wait_event_type(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_put(arg_fcinfo) + pg_stat_get_backend_wait_event_type(arg_fcinfo) }) } -pub unsafe fn make_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_timestamp(arg_fcinfo) + tidgt(arg_fcinfo) }) } -pub unsafe fn make_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_timestamptz(arg_fcinfo) + tidlt(arg_fcinfo) }) } -pub unsafe fn make_timestamptz_at_timezone(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_at_timezone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidge(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_timestamptz_at_timezone(arg_fcinfo) + tidge(arg_fcinfo) }) } -pub unsafe fn make_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidle(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_interval(arg_fcinfo) + tidle(arg_fcinfo) }) } -pub unsafe fn jsonb_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bttidcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttidcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_array_elements_text(arg_fcinfo) + bttidcmp(arg_fcinfo) }) } -pub unsafe fn spg_range_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidlarger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_range_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidlarger(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_range_quad_config(arg_fcinfo) + tidlarger(arg_fcinfo) }) } -pub unsafe fn spg_range_quad_choose(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_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_range_quad_choose(arg_fcinfo) + tidsmaller(arg_fcinfo) }) } -pub unsafe fn spg_range_quad_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8inc_any(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_range_quad_picksplit(arg_fcinfo) + int8inc_any(arg_fcinfo) }) } -pub unsafe fn spg_range_quad_inner_consistent(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_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_range_quad_inner_consistent(arg_fcinfo) + int8inc_float8_float8(arg_fcinfo) }) } -pub unsafe fn spg_range_quad_leaf_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_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_blk_read_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_range_quad_leaf_consistent(arg_fcinfo) + pg_stat_get_db_blk_read_time(arg_fcinfo) }) } -pub unsafe fn jsonb_populate_recordset(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 jsonb_populate_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_blk_write_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_populate_recordset(arg_fcinfo) + pg_stat_get_db_blk_write_time(arg_fcinfo) }) } -pub unsafe fn to_regoperator(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 to_regoperator(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_switch_wal(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regoperator(arg_fcinfo) + pg_switch_wal(arg_fcinfo) }) } -pub unsafe fn jsonb_object_field(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 jsonb_object_field(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_current_wal_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_field(arg_fcinfo) + pg_current_wal_lsn(arg_fcinfo) }) } -pub unsafe fn to_regprocedure(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 to_regprocedure(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_walfile_name_offset(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regprocedure(arg_fcinfo) + pg_walfile_name_offset(arg_fcinfo) }) } -pub unsafe fn gin_compare_jsonb(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 gin_compare_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_walfile_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_compare_jsonb(arg_fcinfo) + pg_walfile_name(arg_fcinfo) }) } -pub unsafe fn gin_extract_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_extract_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_current_wal_insert_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_jsonb(arg_fcinfo) + pg_current_wal_insert_lsn(arg_fcinfo) }) } -pub unsafe fn gin_extract_jsonb_query(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_query(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_wait_event(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_jsonb_query(arg_fcinfo) + pg_stat_get_backend_wait_event(arg_fcinfo) }) } -pub unsafe fn gin_consistent_jsonb(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_consistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_my_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_consistent_jsonb(arg_fcinfo) + pg_my_temp_schema(arg_fcinfo) }) } -pub unsafe fn gin_extract_jsonb_path(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_extract_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_is_other_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_jsonb_path(arg_fcinfo) + pg_is_other_temp_schema(arg_fcinfo) }) } -pub unsafe fn gin_extract_jsonb_query_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_query_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_timezone_names(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_jsonb_query_path(arg_fcinfo) + pg_timezone_names(arg_fcinfo) }) } -pub unsafe fn gin_consistent_jsonb_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_consistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_xact_start(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_consistent_jsonb_path(arg_fcinfo) + pg_stat_get_backend_xact_start(arg_fcinfo) }) } -pub unsafe fn gin_triconsistent_jsonb(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_triconsistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_triconsistent_jsonb(arg_fcinfo) + numeric_avg_accum(arg_fcinfo) }) } -pub unsafe fn gin_triconsistent_jsonb_path(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_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_buf_alloc(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_triconsistent_jsonb_path(arg_fcinfo) + pg_stat_get_buf_alloc(arg_fcinfo) }) } -pub unsafe fn jsonb_to_record(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 jsonb_to_record(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_live_tuples(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_to_record(arg_fcinfo) + pg_stat_get_live_tuples(arg_fcinfo) }) } -pub unsafe fn jsonb_to_recordset(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_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_dead_tuples(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_to_recordset(arg_fcinfo) + pg_stat_get_dead_tuples(arg_fcinfo) }) } -pub unsafe fn to_regoper(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 to_regoper(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regoper(arg_fcinfo) + pg_advisory_lock_int8(arg_fcinfo) }) } -pub unsafe fn to_regtype(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_regtype(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regtype(arg_fcinfo) + pg_advisory_lock_shared_int8(arg_fcinfo) }) } -pub unsafe fn to_regproc(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_regproc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regproc(arg_fcinfo) + pg_try_advisory_lock_int8(arg_fcinfo) }) } -pub unsafe fn to_regclass(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_regclass(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regclass(arg_fcinfo) + pg_try_advisory_lock_shared_int8(arg_fcinfo) }) } -pub unsafe fn bool_accum(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 bool_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_unlock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - bool_accum(arg_fcinfo) + pg_advisory_unlock_int8(arg_fcinfo) }) } -pub unsafe fn bool_accum_inv(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_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_unlock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - bool_accum_inv(arg_fcinfo) + pg_advisory_unlock_shared_int8(arg_fcinfo) }) } -pub unsafe fn bool_alltrue(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_alltrue(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - bool_alltrue(arg_fcinfo) + pg_advisory_lock_int4(arg_fcinfo) }) } -pub unsafe fn bool_anytrue(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_anytrue(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - bool_anytrue(arg_fcinfo) + pg_advisory_lock_shared_int4(arg_fcinfo) }) } -pub unsafe fn anyenum_in(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 anyenum_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyenum_in(arg_fcinfo) + pg_try_advisory_lock_int4(arg_fcinfo) }) } -pub unsafe fn anyenum_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyenum_out(arg_fcinfo) + pg_try_advisory_lock_shared_int4(arg_fcinfo) }) } -pub unsafe fn enum_in(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 enum_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_unlock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_in(arg_fcinfo) + pg_advisory_unlock_int4(arg_fcinfo) }) } -pub unsafe fn enum_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_unlock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_out(arg_fcinfo) + pg_advisory_unlock_shared_int4(arg_fcinfo) }) } -pub unsafe fn enum_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_unlock_all(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_eq(arg_fcinfo) + pg_advisory_unlock_all(arg_fcinfo) }) } -pub unsafe fn enum_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_ne(arg_fcinfo) + xml_in(arg_fcinfo) }) } -pub unsafe fn enum_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_lt(arg_fcinfo) + xml_out(arg_fcinfo) }) } -pub unsafe fn enum_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xmlcomment(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xmlcomment(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_gt(arg_fcinfo) + xmlcomment(arg_fcinfo) }) } -pub unsafe fn enum_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texttoxml(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texttoxml(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_le(arg_fcinfo) + texttoxml(arg_fcinfo) }) } -pub unsafe fn enum_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xmlvalidate(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xmlvalidate(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_ge(arg_fcinfo) + xmlvalidate(arg_fcinfo) }) } -pub unsafe fn enum_cmp(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_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_cmp(arg_fcinfo) + xml_recv(arg_fcinfo) }) } -pub unsafe fn hashenum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xml_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashenum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - hashenum(arg_fcinfo) + xml_send(arg_fcinfo) }) } -pub unsafe fn enum_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xmlconcat2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xmlconcat2(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_smaller(arg_fcinfo) + xmlconcat2(arg_fcinfo) }) } -pub unsafe fn enum_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_larger(arg_fcinfo) + varbittypmodin(arg_fcinfo) }) } -pub unsafe fn enum_first(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn intervaltypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_first(arg_fcinfo: FunctionCallInfo) -> Datum; + fn intervaltypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_first(arg_fcinfo) + intervaltypmodin(arg_fcinfo) }) } -pub unsafe fn enum_last(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn intervaltypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_last(arg_fcinfo: FunctionCallInfo) -> Datum; + fn intervaltypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_last(arg_fcinfo) + intervaltypmodout(arg_fcinfo) }) } -pub unsafe fn enum_range_bounds(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_range_bounds(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_range_bounds(arg_fcinfo) + timestamptypmodin(arg_fcinfo) }) } -pub unsafe fn enum_range_all(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_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_range_all(arg_fcinfo) + timestamptypmodout(arg_fcinfo) }) } -pub unsafe fn enum_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_recv(arg_fcinfo) + timestamptztypmodin(arg_fcinfo) }) } -pub unsafe fn enum_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_send(arg_fcinfo) + timestamptztypmodout(arg_fcinfo) }) } -pub unsafe fn string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - string_agg_transfn(arg_fcinfo) + timetypmodin(arg_fcinfo) }) } -pub unsafe fn string_agg_finalfn(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_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - string_agg_finalfn(arg_fcinfo) + timetypmodout(arg_fcinfo) }) } -pub unsafe fn pg_describe_object(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_describe_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_describe_object(arg_fcinfo) + timetztypmodin(arg_fcinfo) }) } -pub unsafe fn text_format(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_format(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_format(arg_fcinfo) + timetztypmodout(arg_fcinfo) }) } -pub unsafe fn text_format_nv(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_nv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_format_nv(arg_fcinfo) + bpchartypmodin(arg_fcinfo) }) } -pub unsafe fn bytea_string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytea_string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytea_string_agg_transfn(arg_fcinfo) + bpchartypmodout(arg_fcinfo) }) } -pub unsafe fn bytea_string_agg_finalfn(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_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytea_string_agg_finalfn(arg_fcinfo) + varchartypmodin(arg_fcinfo) }) } -pub unsafe fn int8dec(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8dec(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8dec(arg_fcinfo) + varchartypmodout(arg_fcinfo) }) } -pub unsafe fn int8dec_any(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numerictypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8dec_any(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numerictypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8dec_any(arg_fcinfo) + numerictypmodin(arg_fcinfo) }) } -pub unsafe fn numeric_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numerictypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numerictypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_accum_inv(arg_fcinfo) + numerictypmodout(arg_fcinfo) }) } -pub unsafe fn interval_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 interval_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_accum_inv(arg_fcinfo) + bittypmodin(arg_fcinfo) }) } -pub unsafe fn network_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_overlap(arg_fcinfo) + bittypmodout(arg_fcinfo) }) } -pub unsafe fn inet_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_consistent(arg_fcinfo) + varbittypmodout(arg_fcinfo) }) } -pub unsafe fn inet_gist_union(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_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xmltotext(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_union(arg_fcinfo) + xmltotext(arg_fcinfo) }) } -pub unsafe fn inet_gist_compress(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_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn table_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_compress(arg_fcinfo) + table_to_xml(arg_fcinfo) }) } -pub unsafe fn inet_gist_decompress(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_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn query_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_decompress(arg_fcinfo) + query_to_xml(arg_fcinfo) }) } -pub unsafe fn inet_gist_penalty(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_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cursor_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_penalty(arg_fcinfo) + cursor_to_xml(arg_fcinfo) }) } -pub unsafe fn inet_gist_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn table_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_picksplit(arg_fcinfo) + table_to_xmlschema(arg_fcinfo) }) } -pub unsafe fn inet_gist_same(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_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn query_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_same(arg_fcinfo) + query_to_xmlschema(arg_fcinfo) }) } -pub unsafe fn networksel(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 networksel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cursor_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - networksel(arg_fcinfo) + cursor_to_xmlschema(arg_fcinfo) }) } -pub unsafe fn networkjoinsel(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 networkjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn table_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - networkjoinsel(arg_fcinfo) + table_to_xml_and_xmlschema(arg_fcinfo) }) } -pub unsafe fn network_larger(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 network_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn query_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_larger(arg_fcinfo) + query_to_xml_and_xmlschema(arg_fcinfo) }) } -pub unsafe fn network_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xpath(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xpath(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_smaller(arg_fcinfo) + xpath(arg_fcinfo) }) } -pub unsafe fn pg_event_trigger_dropped_objects(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 pg_event_trigger_dropped_objects(arg_fcinfo: FunctionCallInfo) -> Datum; + fn schema_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_event_trigger_dropped_objects(arg_fcinfo) + schema_to_xml(arg_fcinfo) }) } -pub unsafe fn int2_accum_inv(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 int2_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn schema_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_accum_inv(arg_fcinfo) + schema_to_xmlschema(arg_fcinfo) }) } -pub unsafe fn int4_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 int4_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn schema_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_accum_inv(arg_fcinfo) + schema_to_xml_and_xmlschema(arg_fcinfo) }) } -pub unsafe fn int8_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 int8_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn database_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_accum_inv(arg_fcinfo) + database_to_xml(arg_fcinfo) }) } -pub unsafe fn int2_avg_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 int2_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn database_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_avg_accum_inv(arg_fcinfo) + database_to_xmlschema(arg_fcinfo) }) } -pub unsafe fn int4_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 int4_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn database_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_avg_accum_inv(arg_fcinfo) + database_to_xml_and_xmlschema(arg_fcinfo) }) } -pub unsafe fn int2int4_sum(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 int2int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2int4_sum(arg_fcinfo) + txid_snapshot_in(arg_fcinfo) }) } -pub unsafe fn inet_gist_fetch(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 inet_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_fetch(arg_fcinfo) + txid_snapshot_out(arg_fcinfo) }) } -pub unsafe fn pg_logical_emit_message_text(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 pg_logical_emit_message_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_emit_message_text(arg_fcinfo) + txid_snapshot_recv(arg_fcinfo) }) } -pub unsafe fn pg_logical_emit_message_bytea(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_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_emit_message_bytea(arg_fcinfo) + txid_snapshot_send(arg_fcinfo) }) } -pub unsafe fn jsonb_insert(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_current(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_insert(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_current(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_insert(arg_fcinfo) + txid_current(arg_fcinfo) }) } -pub unsafe fn pg_xact_commit_timestamp(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 pg_xact_commit_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_current_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_xact_commit_timestamp(arg_fcinfo) + txid_current_snapshot(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_pg_type_oid(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 binary_upgrade_set_next_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_xmin(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_pg_type_oid(arg_fcinfo) + txid_snapshot_xmin(arg_fcinfo) }) } -pub unsafe fn pg_last_committed_xact(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 pg_last_committed_xact(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_xmax(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_last_committed_xact(arg_fcinfo) + txid_snapshot_xmax(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_array_pg_type_oid(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 binary_upgrade_set_next_array_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_xip(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_array_pg_type_oid(arg_fcinfo) + txid_snapshot_xip(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_toast_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_toast_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_visible_in_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_toast_pg_type_oid(arg_fcinfo) + txid_visible_in_snapshot(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_heap_pg_class_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_heap_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_heap_pg_class_oid(arg_fcinfo) + uuid_in(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_index_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_index_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_index_pg_class_oid(arg_fcinfo) + uuid_out(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_toast_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_toast_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_toast_pg_class_oid(arg_fcinfo) + uuid_lt(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_pg_enum_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_pg_enum_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_pg_enum_oid(arg_fcinfo) + uuid_le(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_pg_authid_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_authid_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_pg_authid_oid(arg_fcinfo) + uuid_eq(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_create_empty_extension(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_create_empty_extension(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_create_empty_extension(arg_fcinfo) + uuid_ge(arg_fcinfo) }) } -pub unsafe fn event_trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn event_trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - event_trigger_in(arg_fcinfo) + uuid_gt(arg_fcinfo) }) } -pub unsafe fn event_trigger_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - event_trigger_out(arg_fcinfo) + uuid_ne(arg_fcinfo) }) } -pub unsafe fn tsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvectorin(arg_fcinfo) + uuid_cmp(arg_fcinfo) }) } -pub unsafe fn tsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvectorout(arg_fcinfo) + uuid_recv(arg_fcinfo) }) } -pub unsafe fn tsqueryin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsqueryin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsqueryin(arg_fcinfo) + uuid_send(arg_fcinfo) }) } -pub unsafe fn tsqueryout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_hash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsqueryout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsqueryout(arg_fcinfo) + uuid_hash(arg_fcinfo) }) } -pub unsafe fn tsvector_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn booltext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn booltext(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_lt(arg_fcinfo) + booltext(arg_fcinfo) }) } -pub unsafe fn tsvector_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_le(arg_fcinfo) + pg_stat_get_function_calls(arg_fcinfo) }) } -pub unsafe fn tsvector_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_function_total_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_eq(arg_fcinfo) + pg_stat_get_function_total_time(arg_fcinfo) }) } -pub unsafe fn tsvector_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_function_self_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_ne(arg_fcinfo) + pg_stat_get_function_self_time(arg_fcinfo) }) } -pub unsafe fn tsvector_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_ge(arg_fcinfo) + record_eq(arg_fcinfo) }) } -pub unsafe fn tsvector_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_gt(arg_fcinfo) + record_ne(arg_fcinfo) }) } -pub unsafe fn tsvector_cmp(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_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_cmp(arg_fcinfo) + record_lt(arg_fcinfo) }) } -pub unsafe fn tsvector_strip(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_strip(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_strip(arg_fcinfo) + record_gt(arg_fcinfo) }) } -pub unsafe fn tsvector_setweight(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_setweight(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_setweight(arg_fcinfo) + record_le(arg_fcinfo) }) } -pub unsafe fn tsvector_concat(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_concat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_concat(arg_fcinfo) + record_ge(arg_fcinfo) }) } -pub unsafe fn ts_match_vq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btrecordcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_match_vq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btrecordcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_match_vq(arg_fcinfo) + btrecordcmp(arg_fcinfo) }) } -pub unsafe fn ts_match_qv(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_qv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_table_size(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_match_qv(arg_fcinfo) + pg_table_size(arg_fcinfo) }) } -pub unsafe fn tsvectorsend(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 tsvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_indexes_size(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvectorsend(arg_fcinfo) + pg_indexes_size(arg_fcinfo) }) } -pub unsafe fn tsvectorrecv(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 tsvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_relation_filenode(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvectorrecv(arg_fcinfo) + pg_relation_filenode(arg_fcinfo) }) } -pub unsafe fn tsquerysend(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 tsquerysend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquerysend(arg_fcinfo) + has_foreign_data_wrapper_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn tsqueryrecv(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 tsqueryrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsqueryrecv(arg_fcinfo) + has_foreign_data_wrapper_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn gtsvectorin(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 gtsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvectorin(arg_fcinfo) + has_foreign_data_wrapper_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn gtsvectorout(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 gtsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvectorout(arg_fcinfo) + has_foreign_data_wrapper_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn gtsvector_compress(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 gtsvector_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_compress(arg_fcinfo) + has_foreign_data_wrapper_privilege_name(arg_fcinfo) }) } -pub unsafe fn gtsvector_decompress(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_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_decompress(arg_fcinfo) + has_foreign_data_wrapper_privilege_id(arg_fcinfo) }) } -pub unsafe fn gtsvector_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_picksplit(arg_fcinfo) + has_server_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn gtsvector_union(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_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_union(arg_fcinfo) + has_server_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn gtsvector_same(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_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_same(arg_fcinfo) + has_server_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn gtsvector_penalty(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_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_penalty(arg_fcinfo) + has_server_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn gtsvector_consistent(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_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_consistent(arg_fcinfo) + has_server_privilege_name(arg_fcinfo) }) } -pub unsafe fn gin_extract_tsvector(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 gin_extract_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_tsvector(arg_fcinfo) + has_server_privilege_id(arg_fcinfo) }) } -pub unsafe fn gin_extract_tsquery(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_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_tsquery(arg_fcinfo) + has_column_privilege_name_name_name(arg_fcinfo) }) } -pub unsafe fn gin_tsquery_consistent(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_tsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_tsquery_consistent(arg_fcinfo) + has_column_privilege_name_name_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_lt(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 tsquery_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_lt(arg_fcinfo) + has_column_privilege_name_id_name(arg_fcinfo) }) } -pub unsafe fn tsquery_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_le(arg_fcinfo) + has_column_privilege_name_id_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_eq(arg_fcinfo) + has_column_privilege_id_name_name(arg_fcinfo) }) } -pub unsafe fn tsquery_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_ne(arg_fcinfo) + has_column_privilege_id_name_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_ge(arg_fcinfo) + has_column_privilege_id_id_name(arg_fcinfo) }) } -pub unsafe fn tsquery_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_gt(arg_fcinfo) + has_column_privilege_id_id_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_cmp(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_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_cmp(arg_fcinfo) + has_column_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn tsquery_and(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_and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_and(arg_fcinfo) + has_column_privilege_name_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_or(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_or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_or(arg_fcinfo) + has_column_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn tsquery_not(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_not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_not(arg_fcinfo) + has_column_privilege_id_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_numnode(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_numnode(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_numnode(arg_fcinfo) + has_any_column_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn tsquerytree(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 tsquerytree(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquerytree(arg_fcinfo) + has_any_column_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn tsquery_rewrite(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 tsquery_rewrite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_rewrite(arg_fcinfo) + has_any_column_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn tsquery_rewrite_query(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_query(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_rewrite_query(arg_fcinfo) + has_any_column_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn tsmatchsel(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 tsmatchsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsmatchsel(arg_fcinfo) + has_any_column_privilege_name(arg_fcinfo) }) } -pub unsafe fn tsmatchjoinsel(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 tsmatchjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsmatchjoinsel(arg_fcinfo) + has_any_column_privilege_id(arg_fcinfo) }) } -pub unsafe fn ts_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitoverlay(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_typanalyze(arg_fcinfo) + bitoverlay(arg_fcinfo) }) } -pub unsafe fn ts_stat1(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_stat1(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_stat1(arg_fcinfo) + bitoverlay_no_len(arg_fcinfo) }) } -pub unsafe fn ts_stat2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitgetbit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_stat2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitgetbit(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_stat2(arg_fcinfo) + bitgetbit(arg_fcinfo) }) } -pub unsafe fn tsq_mcontains(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitsetbit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsq_mcontains(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitsetbit(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsq_mcontains(arg_fcinfo) + bitsetbit(arg_fcinfo) }) } -pub unsafe fn tsq_mcontained(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_mcontained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_relation_filepath(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsq_mcontained(arg_fcinfo) + pg_relation_filepath(arg_fcinfo) }) } -pub unsafe fn gtsquery_compress(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 gtsquery_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_listening_channels(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_compress(arg_fcinfo) + pg_listening_channels(arg_fcinfo) }) } -pub unsafe fn gtsquery_decompress(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_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_notify(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_decompress(arg_fcinfo) + pg_notify(arg_fcinfo) }) } -pub unsafe fn gtsquery_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_numscans(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_picksplit(arg_fcinfo) + pg_stat_get_xact_numscans(arg_fcinfo) }) } -pub unsafe fn gtsquery_union(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_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_union(arg_fcinfo) + pg_stat_get_xact_tuples_returned(arg_fcinfo) }) } -pub unsafe fn gtsquery_same(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_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_same(arg_fcinfo) + pg_stat_get_xact_tuples_fetched(arg_fcinfo) }) } -pub unsafe fn gtsquery_penalty(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_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_penalty(arg_fcinfo) + pg_stat_get_xact_tuples_inserted(arg_fcinfo) }) } -pub unsafe fn gtsquery_consistent(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_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_consistent(arg_fcinfo) + pg_stat_get_xact_tuples_updated(arg_fcinfo) }) } -pub unsafe fn ts_rank_wttf(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 ts_rank_wttf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rank_wttf(arg_fcinfo) + pg_stat_get_xact_tuples_deleted(arg_fcinfo) }) } -pub unsafe fn ts_rank_wtt(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_wtt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rank_wtt(arg_fcinfo) + pg_stat_get_xact_tuples_hot_updated(arg_fcinfo) }) } -pub unsafe fn ts_rank_ttf(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_ttf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rank_ttf(arg_fcinfo) + pg_stat_get_xact_blocks_fetched(arg_fcinfo) }) } -pub unsafe fn ts_rank_tt(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_tt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rank_tt(arg_fcinfo) + pg_stat_get_xact_blocks_hit(arg_fcinfo) }) } -pub unsafe fn ts_rankcd_wttf(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_rankcd_wttf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rankcd_wttf(arg_fcinfo) + pg_stat_get_xact_function_calls(arg_fcinfo) }) } -pub unsafe fn ts_rankcd_wtt(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_wtt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_function_total_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rankcd_wtt(arg_fcinfo) + pg_stat_get_xact_function_total_time(arg_fcinfo) }) } -pub unsafe fn ts_rankcd_ttf(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_ttf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_function_self_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rankcd_ttf(arg_fcinfo) + pg_stat_get_xact_function_self_time(arg_fcinfo) }) } -pub unsafe fn ts_rankcd_tt(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_tt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xpath_exists(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rankcd_tt(arg_fcinfo) + xpath_exists(arg_fcinfo) }) } -pub unsafe fn tsvector_length(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 tsvector_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_is_well_formed(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_length(arg_fcinfo) + xml_is_well_formed(arg_fcinfo) }) } -pub unsafe fn ts_token_type_byid(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 ts_token_type_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_is_well_formed_document(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_token_type_byid(arg_fcinfo) + xml_is_well_formed_document(arg_fcinfo) }) } -pub unsafe fn ts_token_type_byname(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_byname(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_is_well_formed_content(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_token_type_byname(arg_fcinfo) + xml_is_well_formed_content(arg_fcinfo) }) } -pub unsafe fn ts_parse_byid(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_parse_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_vacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_parse_byid(arg_fcinfo) + pg_stat_get_vacuum_count(arg_fcinfo) }) } -pub unsafe fn ts_parse_byname(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_byname(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_autovacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_parse_byname(arg_fcinfo) + pg_stat_get_autovacuum_count(arg_fcinfo) }) } -pub unsafe fn prsd_start(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 prsd_start(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_analyze_count(arg_fcinfo: FunctionCallInfo) -> Datum; } - prsd_start(arg_fcinfo) + pg_stat_get_analyze_count(arg_fcinfo) }) } -pub unsafe fn prsd_nexttoken(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_nexttoken(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_autoanalyze_count(arg_fcinfo: FunctionCallInfo) -> Datum; } - prsd_nexttoken(arg_fcinfo) + pg_stat_get_autoanalyze_count(arg_fcinfo) }) } -pub unsafe fn prsd_end(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_end(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_concat(arg_fcinfo: FunctionCallInfo) -> Datum; } - prsd_end(arg_fcinfo) + text_concat(arg_fcinfo) }) } -pub unsafe fn prsd_headline(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_headline(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_concat_ws(arg_fcinfo: FunctionCallInfo) -> Datum; } - prsd_headline(arg_fcinfo) + text_concat_ws(arg_fcinfo) }) } -pub unsafe fn prsd_lextype(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_lextype(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_left(arg_fcinfo: FunctionCallInfo) -> Datum; } - prsd_lextype(arg_fcinfo) + text_left(arg_fcinfo) }) } -pub unsafe fn ts_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_right(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_right(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_lexize(arg_fcinfo) + text_right(arg_fcinfo) }) } -pub unsafe fn gin_cmp_tslexeme(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_reverse(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_cmp_tslexeme(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_reverse(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_cmp_tslexeme(arg_fcinfo) + text_reverse(arg_fcinfo) }) } -pub unsafe fn dsimple_init(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 dsimple_init(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_buf_fsync_backend(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsimple_init(arg_fcinfo) + pg_stat_get_buf_fsync_backend(arg_fcinfo) }) } -pub unsafe fn dsimple_lexize(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_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_point_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsimple_lexize(arg_fcinfo) + gist_point_distance(arg_fcinfo) }) } -pub unsafe fn dsynonym_init(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 dsynonym_init(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_tablespace(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsynonym_init(arg_fcinfo) + pg_stat_get_db_conflict_tablespace(arg_fcinfo) }) } -pub unsafe fn dsynonym_lexize(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_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_lock(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsynonym_lexize(arg_fcinfo) + pg_stat_get_db_conflict_lock(arg_fcinfo) }) } -pub unsafe fn dispell_init(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 dispell_init(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; } - dispell_init(arg_fcinfo) + pg_stat_get_db_conflict_snapshot(arg_fcinfo) }) } -pub unsafe fn dispell_lexize(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_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_bufferpin(arg_fcinfo: FunctionCallInfo) -> Datum; } - dispell_lexize(arg_fcinfo) + pg_stat_get_db_conflict_bufferpin(arg_fcinfo) }) } -pub unsafe fn regconfigin(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 regconfigin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_startup_deadlock(arg_fcinfo: FunctionCallInfo) -> Datum; } - regconfigin(arg_fcinfo) + pg_stat_get_db_conflict_startup_deadlock(arg_fcinfo) }) } -pub unsafe fn regconfigout(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 regconfigout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_all(arg_fcinfo: FunctionCallInfo) -> Datum; } - regconfigout(arg_fcinfo) + pg_stat_get_db_conflict_all(arg_fcinfo) }) } -pub unsafe fn regconfigrecv(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 regconfigrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_wal_replay_pause(arg_fcinfo: FunctionCallInfo) -> Datum; } - regconfigrecv(arg_fcinfo) + pg_wal_replay_pause(arg_fcinfo) }) } -pub unsafe fn regconfigsend(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 regconfigsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_wal_replay_resume(arg_fcinfo: FunctionCallInfo) -> Datum; } - regconfigsend(arg_fcinfo) + pg_wal_replay_resume(arg_fcinfo) }) } -pub unsafe fn thesaurus_init(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 thesaurus_init(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_is_wal_replay_paused(arg_fcinfo: FunctionCallInfo) -> Datum; } - thesaurus_init(arg_fcinfo) + pg_is_wal_replay_paused(arg_fcinfo) }) } -pub unsafe fn thesaurus_lexize(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_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - thesaurus_lexize(arg_fcinfo) + pg_stat_get_db_stat_reset_time(arg_fcinfo) }) } -pub unsafe fn ts_headline_byid_opt(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 ts_headline_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_byid_opt(arg_fcinfo) + pg_stat_get_bgwriter_stat_reset_time(arg_fcinfo) }) } -pub unsafe fn ts_headline_byid(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ginarrayextract_2args(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_byid(arg_fcinfo) + ginarrayextract_2args(arg_fcinfo) }) } -pub unsafe fn to_tsvector_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 to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_tsvector_2args(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_tsvector_byid(arg_fcinfo) + gin_extract_tsvector_2args(arg_fcinfo) }) } -pub unsafe fn to_tsquery_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_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_sequence_parameters(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_tsquery_byid(arg_fcinfo) + pg_sequence_parameters(arg_fcinfo) }) } -pub unsafe fn plainto_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 plainto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_available_extensions(arg_fcinfo: FunctionCallInfo) -> Datum; } - plainto_tsquery_byid(arg_fcinfo) + pg_available_extensions(arg_fcinfo) }) } -pub unsafe fn to_tsvector(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 to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_available_extension_versions(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_tsvector(arg_fcinfo) + pg_available_extension_versions(arg_fcinfo) }) } -pub unsafe fn to_tsquery(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_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_extension_update_paths(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_tsquery(arg_fcinfo) + pg_extension_update_paths(arg_fcinfo) }) } -pub unsafe fn plainto_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 plainto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_extension_config_dump(arg_fcinfo: FunctionCallInfo) -> Datum; } - plainto_tsquery(arg_fcinfo) + pg_extension_config_dump(arg_fcinfo) }) } -pub unsafe fn tsvector_update_trigger_byid(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 tsvector_update_trigger_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_tsquery_5args(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_update_trigger_byid(arg_fcinfo) + gin_extract_tsquery_5args(arg_fcinfo) }) } -pub unsafe fn tsvector_update_trigger_bycolumn(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_bycolumn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_tsquery_consistent_6args(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_update_trigger_bycolumn(arg_fcinfo) + gin_tsquery_consistent_6args(arg_fcinfo) }) } -pub unsafe fn ts_headline_opt(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 ts_headline_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_opt(arg_fcinfo) + pg_advisory_xact_lock_int8(arg_fcinfo) }) } -pub unsafe fn ts_headline(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_xact_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline(arg_fcinfo) + pg_advisory_xact_lock_shared_int8(arg_fcinfo) }) } -pub unsafe fn pg_ts_parser_is_visible(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 pg_ts_parser_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ts_parser_is_visible(arg_fcinfo) + pg_try_advisory_xact_lock_int8(arg_fcinfo) }) } -pub unsafe fn pg_ts_dict_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_dict_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_xact_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ts_dict_is_visible(arg_fcinfo) + pg_try_advisory_xact_lock_shared_int8(arg_fcinfo) }) } -pub unsafe fn pg_ts_config_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_config_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ts_config_is_visible(arg_fcinfo) + pg_advisory_xact_lock_int4(arg_fcinfo) }) } -pub unsafe fn get_current_ts_config(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 get_current_ts_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_xact_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - get_current_ts_config(arg_fcinfo) + pg_advisory_xact_lock_shared_int4(arg_fcinfo) }) } -pub unsafe fn ts_match_tt(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 ts_match_tt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_match_tt(arg_fcinfo) + pg_try_advisory_xact_lock_int4(arg_fcinfo) }) } -pub unsafe fn ts_match_tq(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_tq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_xact_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_match_tq(arg_fcinfo) + pg_try_advisory_xact_lock_shared_int4(arg_fcinfo) }) } -pub unsafe fn pg_ts_template_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varchar_transform(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 varchar_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ts_template_is_visible(arg_fcinfo) + varchar_transform(arg_fcinfo) }) } -pub unsafe fn regdictionaryin(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 regdictionaryin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_create_restore_point(arg_fcinfo: FunctionCallInfo) -> Datum; } - regdictionaryin(arg_fcinfo) + pg_create_restore_point(arg_fcinfo) }) } -pub unsafe fn regdictionaryout(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 regdictionaryout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_wal_senders(arg_fcinfo: FunctionCallInfo) -> Datum; } - regdictionaryout(arg_fcinfo) + pg_stat_get_wal_senders(arg_fcinfo) }) } -pub unsafe fn regdictionaryrecv(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 regdictionaryrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_row_number(arg_fcinfo: FunctionCallInfo) -> Datum; } - regdictionaryrecv(arg_fcinfo) + window_row_number(arg_fcinfo) }) } -pub unsafe fn regdictionarysend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_rank(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regdictionarysend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_rank(arg_fcinfo: FunctionCallInfo) -> Datum; } - regdictionarysend(arg_fcinfo) + window_rank(arg_fcinfo) }) } -pub unsafe fn pg_stat_reset_shared(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 pg_stat_reset_shared(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_dense_rank(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_reset_shared(arg_fcinfo) + window_dense_rank(arg_fcinfo) }) } -pub unsafe fn pg_stat_reset_single_table_counters(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_single_table_counters(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_percent_rank(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_reset_single_table_counters(arg_fcinfo) + window_percent_rank(arg_fcinfo) }) } -pub unsafe fn pg_stat_reset_single_function_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_function_counters(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_cume_dist(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_reset_single_function_counters(arg_fcinfo) + window_cume_dist(arg_fcinfo) }) } -pub unsafe fn pg_tablespace_location(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_tablespace_location(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_ntile(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_tablespace_location(arg_fcinfo) + window_ntile(arg_fcinfo) }) } -pub unsafe fn pg_create_physical_replication_slot(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_create_physical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lag(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_create_physical_replication_slot(arg_fcinfo) + window_lag(arg_fcinfo) }) } -pub unsafe fn pg_drop_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_drop_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lag_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_drop_replication_slot(arg_fcinfo) + window_lag_with_offset(arg_fcinfo) }) } -pub unsafe fn pg_get_replication_slots(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_get_replication_slots(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lag_with_offset_and_default(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_replication_slots(arg_fcinfo) + window_lag_with_offset_and_default(arg_fcinfo) }) } -pub unsafe fn pg_logical_slot_get_changes(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_logical_slot_get_changes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lead(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_slot_get_changes(arg_fcinfo) + window_lead(arg_fcinfo) }) } -pub unsafe fn pg_logical_slot_get_binary_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_binary_changes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lead_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_slot_get_binary_changes(arg_fcinfo) + window_lead_with_offset(arg_fcinfo) }) } -pub unsafe fn pg_logical_slot_peek_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_peek_changes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lead_with_offset_and_default(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_slot_peek_changes(arg_fcinfo) + window_lead_with_offset_and_default(arg_fcinfo) }) } -pub unsafe fn pg_logical_slot_peek_binary_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_binary_changes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_first_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_slot_peek_binary_changes(arg_fcinfo) + window_first_value(arg_fcinfo) }) } -pub unsafe fn pg_create_logical_replication_slot(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_create_logical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_last_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_create_logical_replication_slot(arg_fcinfo) + window_last_value(arg_fcinfo) }) } -pub unsafe fn to_jsonb(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 to_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_nth_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_jsonb(arg_fcinfo) + window_nth_value(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_snapshot_timestamp(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 pg_stat_get_snapshot_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn fdw_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_snapshot_timestamp(arg_fcinfo) + fdw_handler_in(arg_fcinfo) }) } -pub unsafe fn gin_clean_pending_list(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 gin_clean_pending_list(arg_fcinfo: FunctionCallInfo) -> Datum; + fn fdw_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_clean_pending_list(arg_fcinfo) + fdw_handler_out(arg_fcinfo) }) } -pub unsafe fn gtsvector_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn void_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvector_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; + fn void_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_consistent_oldsig(arg_fcinfo) + void_recv(arg_fcinfo) }) } -pub unsafe fn gin_extract_tsquery_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 gin_extract_tsquery_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; + fn void_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_tsquery_oldsig(arg_fcinfo) + void_send(arg_fcinfo) }) } -pub unsafe fn gin_tsquery_consistent_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_tsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint2sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_tsquery_consistent_oldsig(arg_fcinfo) + btint2sortsupport(arg_fcinfo) }) } -pub unsafe fn gtsquery_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 gtsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_consistent_oldsig(arg_fcinfo) + btint4sortsupport(arg_fcinfo) }) } -pub unsafe fn inet_spg_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_spg_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_spg_config(arg_fcinfo) + btint8sortsupport(arg_fcinfo) }) } -pub unsafe fn inet_spg_choose(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_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_spg_choose(arg_fcinfo) + btfloat4sortsupport(arg_fcinfo) }) } -pub unsafe fn inet_spg_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_spg_picksplit(arg_fcinfo) + btfloat8sortsupport(arg_fcinfo) }) } -pub unsafe fn inet_spg_inner_consistent(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_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btoidsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_spg_inner_consistent(arg_fcinfo) + btoidsortsupport(arg_fcinfo) }) } -pub unsafe fn inet_spg_leaf_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_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btnamesortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_spg_leaf_consistent(arg_fcinfo) + btnamesortsupport(arg_fcinfo) }) } -pub unsafe fn pg_current_logfile(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_current_logfile(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_current_logfile(arg_fcinfo) + date_sortsupport(arg_fcinfo) }) } -pub unsafe fn pg_current_logfile_1arg(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_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_current_logfile_1arg(arg_fcinfo) + timestamp_sortsupport(arg_fcinfo) }) } -pub unsafe fn jsonb_send(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 jsonb_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_send(arg_fcinfo) + has_type_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn jsonb_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_out(arg_fcinfo) + has_type_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn jsonb_recv(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_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_recv(arg_fcinfo) + has_type_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn jsonb_in(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_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_in(arg_fcinfo) + has_type_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn pg_get_function_arg_default(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 pg_get_function_arg_default(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_function_arg_default(arg_fcinfo) + has_type_privilege_name(arg_fcinfo) }) } -pub unsafe fn pg_export_snapshot(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_export_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_export_snapshot(arg_fcinfo) + has_type_privilege_id(arg_fcinfo) }) } -pub unsafe fn pg_is_in_recovery(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_is_in_recovery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_not(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_is_in_recovery(arg_fcinfo) + macaddr_not(arg_fcinfo) }) } -pub unsafe fn int4_cash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_and(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_cash(arg_fcinfo) + macaddr_and(arg_fcinfo) }) } -pub unsafe fn int8_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 int8_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_or(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_cash(arg_fcinfo) + macaddr_or(arg_fcinfo) }) } -pub unsafe fn pg_is_in_backup(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 pg_is_in_backup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_temp_files(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_is_in_backup(arg_fcinfo) + pg_stat_get_db_temp_files(arg_fcinfo) }) } -pub unsafe fn pg_backup_start_time(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_backup_start_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_temp_bytes(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_backup_start_time(arg_fcinfo) + pg_stat_get_db_temp_bytes(arg_fcinfo) }) } -pub unsafe fn pg_collation_is_visible(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_collation_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_deadlocks(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_collation_is_visible(arg_fcinfo) + pg_stat_get_db_deadlocks(arg_fcinfo) }) } -pub unsafe fn array_typanalyze(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 array_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_to_json(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_typanalyze(arg_fcinfo) + array_to_json(arg_fcinfo) }) } -pub unsafe fn arraycontsel(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 arraycontsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_to_json_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; } - arraycontsel(arg_fcinfo) + array_to_json_pretty(arg_fcinfo) }) } -pub unsafe fn arraycontjoinsel(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 arraycontjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn row_to_json(arg_fcinfo: FunctionCallInfo) -> Datum; } - arraycontjoinsel(arg_fcinfo) + row_to_json(arg_fcinfo) }) } -pub unsafe fn pg_get_multixact_members(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 pg_get_multixact_members(arg_fcinfo: FunctionCallInfo) -> Datum; + fn row_to_json_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_multixact_members(arg_fcinfo) + row_to_json_pretty(arg_fcinfo) }) } -pub unsafe fn pg_last_wal_receive_lsn(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_last_wal_receive_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_last_wal_receive_lsn(arg_fcinfo) + numeric_transform(arg_fcinfo) }) } -pub unsafe fn pg_last_wal_replay_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_replay_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_last_wal_replay_lsn(arg_fcinfo) + varbit_transform(arg_fcinfo) }) } -pub unsafe fn cash_div_cash(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 cash_div_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_viewdef_wrap(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_div_cash(arg_fcinfo) + pg_get_viewdef_wrap(arg_fcinfo) }) } -pub unsafe fn cash_numeric(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_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_checkpoint_write_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_numeric(arg_fcinfo) + pg_stat_get_checkpoint_write_time(arg_fcinfo) }) } -pub unsafe fn numeric_cash(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 numeric_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_checkpoint_sync_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_cash(arg_fcinfo) + pg_stat_get_checkpoint_sync_time(arg_fcinfo) }) } -pub unsafe fn pg_read_file_all(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 pg_read_file_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_collation_for(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_file_all(arg_fcinfo) + pg_collation_for(arg_fcinfo) }) } -pub unsafe fn pg_read_binary_file_off_len(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_binary_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_trigger_depth(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_binary_file_off_len(arg_fcinfo) + pg_trigger_depth(arg_fcinfo) }) } -pub unsafe fn pg_read_binary_file_all(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_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_wal_lsn_diff(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_binary_file_all(arg_fcinfo) + pg_wal_lsn_diff(arg_fcinfo) }) } -pub unsafe fn pg_opfamily_is_visible(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_opfamily_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_size_pretty_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_opfamily_is_visible(arg_fcinfo) + pg_size_pretty_numeric(arg_fcinfo) }) } -pub unsafe fn pg_last_xact_replay_timestamp(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_last_xact_replay_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_remove(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_last_xact_replay_timestamp(arg_fcinfo) + array_remove(arg_fcinfo) }) } -pub unsafe fn anyrange_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_replace(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyrange_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_replace(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyrange_in(arg_fcinfo) + array_replace(arg_fcinfo) }) } -pub unsafe fn anyrange_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn rangesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyrange_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn rangesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyrange_out(arg_fcinfo) + rangesel(arg_fcinfo) }) } -pub unsafe fn range_in(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 range_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_lseek64(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_in(arg_fcinfo) + be_lo_lseek64(arg_fcinfo) }) } -pub unsafe fn range_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_tell64(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_out(arg_fcinfo) + be_lo_tell64(arg_fcinfo) }) } -pub unsafe fn range_recv(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_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_truncate64(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_recv(arg_fcinfo) + be_lo_truncate64(arg_fcinfo) }) } -pub unsafe fn range_send(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_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_send(arg_fcinfo) + json_agg_transfn(arg_fcinfo) }) } -pub unsafe fn pg_identify_object(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 pg_identify_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_identify_object(arg_fcinfo) + json_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn range_constructor2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_json(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_constructor2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_json(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_constructor2(arg_fcinfo) + to_json(arg_fcinfo) }) } -pub unsafe fn range_constructor3(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_constructor3(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_mod_since_analyze(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_constructor3(arg_fcinfo) + pg_stat_get_mod_since_analyze(arg_fcinfo) }) } -pub unsafe fn pg_relation_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_sum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_relation_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_relation_is_updatable(arg_fcinfo) + numeric_sum(arg_fcinfo) }) } -pub unsafe fn pg_column_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_column_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_cardinality(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_column_is_updatable(arg_fcinfo) + array_cardinality(arg_fcinfo) }) } -pub unsafe fn make_date(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 make_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_date(arg_fcinfo) + json_object_agg_transfn(arg_fcinfo) }) } -pub unsafe fn make_time(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_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_time(arg_fcinfo) + record_image_eq(arg_fcinfo) }) } -pub unsafe fn range_lower(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 range_lower(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_lower(arg_fcinfo) + record_image_ne(arg_fcinfo) }) } -pub unsafe fn range_upper(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_upper(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_upper(arg_fcinfo) + record_image_lt(arg_fcinfo) }) } -pub unsafe fn range_empty(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_empty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_empty(arg_fcinfo) + record_image_gt(arg_fcinfo) }) } -pub unsafe fn range_lower_inc(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_lower_inc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_lower_inc(arg_fcinfo) + record_image_le(arg_fcinfo) }) } -pub unsafe fn range_upper_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_upper_inc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_upper_inc(arg_fcinfo) + record_image_ge(arg_fcinfo) }) } -pub unsafe fn range_lower_inf(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btrecordimagecmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_lower_inf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btrecordimagecmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_lower_inf(arg_fcinfo) + btrecordimagecmp(arg_fcinfo) }) } -pub unsafe fn range_upper_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_upper_inf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_archiver(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_upper_inf(arg_fcinfo) + pg_stat_get_archiver(arg_fcinfo) }) } -pub unsafe fn range_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_eq(arg_fcinfo) + json_object_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn range_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_build_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_ne(arg_fcinfo) + json_build_array(arg_fcinfo) }) } -pub unsafe fn range_overlaps(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_overlaps(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_build_array_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_overlaps(arg_fcinfo) + json_build_array_noargs(arg_fcinfo) }) } -pub unsafe fn range_contains_elem(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_contains_elem(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_build_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_contains_elem(arg_fcinfo) + json_build_object(arg_fcinfo) }) } -pub unsafe fn range_contains(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_build_object_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_contains(arg_fcinfo) + json_build_object_noargs(arg_fcinfo) }) } -pub unsafe fn elem_contained_by_range(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_object(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(arg_fcinfo: FunctionCallInfo) -> Datum; } - elem_contained_by_range(arg_fcinfo) + json_object(arg_fcinfo) }) } -pub unsafe fn range_contained_by(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 range_contained_by(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_object_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_contained_by(arg_fcinfo) + json_object_two_arg(arg_fcinfo) }) } -pub unsafe fn range_adjacent(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_adjacent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_to_record(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_adjacent(arg_fcinfo) + json_to_record(arg_fcinfo) }) } -pub unsafe fn range_before(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_before(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_to_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_before(arg_fcinfo) + json_to_recordset(arg_fcinfo) }) } -pub unsafe fn range_after(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_after(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_array_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_after(arg_fcinfo) + jsonb_array_length(arg_fcinfo) }) } -pub unsafe fn range_overleft(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_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_each(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_overleft(arg_fcinfo) + jsonb_each(arg_fcinfo) }) } -pub unsafe fn range_overright(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_overright(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_overright(arg_fcinfo) + jsonb_populate_record(arg_fcinfo) }) } -pub unsafe fn range_union(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_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_union(arg_fcinfo) + jsonb_typeof(arg_fcinfo) }) } -pub unsafe fn range_intersect(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_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_intersect(arg_fcinfo) + jsonb_object_field_text(arg_fcinfo) }) } -pub unsafe fn range_minus(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_minus(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_array_element(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_minus(arg_fcinfo) + jsonb_array_element(arg_fcinfo) }) } -pub unsafe fn range_cmp(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_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_array_element_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_cmp(arg_fcinfo) + jsonb_array_element_text(arg_fcinfo) }) } -pub unsafe fn range_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_lt(arg_fcinfo) + jsonb_extract_path(arg_fcinfo) }) } -pub unsafe fn range_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn width_bucket_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_le(arg_fcinfo) + width_bucket_array(arg_fcinfo) }) } -pub unsafe fn range_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_ge(arg_fcinfo) + jsonb_array_elements(arg_fcinfo) }) } -pub unsafe fn range_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gt(arg_fcinfo) + pg_lsn_in(arg_fcinfo) }) } -pub unsafe fn range_gist_consistent(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_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_consistent(arg_fcinfo) + pg_lsn_out(arg_fcinfo) }) } -pub unsafe fn range_gist_union(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_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_union(arg_fcinfo) + pg_lsn_lt(arg_fcinfo) }) } -pub unsafe fn range_gist_compress(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_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_compress(arg_fcinfo) + pg_lsn_le(arg_fcinfo) }) } -pub unsafe fn range_gist_decompress(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_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_decompress(arg_fcinfo) + pg_lsn_eq(arg_fcinfo) }) } -pub unsafe fn range_gist_penalty(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_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_penalty(arg_fcinfo) + pg_lsn_ge(arg_fcinfo) }) } -pub unsafe fn range_gist_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_picksplit(arg_fcinfo) + pg_lsn_gt(arg_fcinfo) }) } -pub unsafe fn range_gist_same(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_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_same(arg_fcinfo) + pg_lsn_ne(arg_fcinfo) }) } -pub unsafe fn hash_range(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 hash_range(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - hash_range(arg_fcinfo) + pg_lsn_mi(arg_fcinfo) }) } -pub unsafe fn int4range_canonical(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 int4range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4range_canonical(arg_fcinfo) + pg_lsn_recv(arg_fcinfo) }) } -pub unsafe fn daterange_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 daterange_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - daterange_canonical(arg_fcinfo) + pg_lsn_send(arg_fcinfo) }) } -pub unsafe fn range_typanalyze(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 range_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_typanalyze(arg_fcinfo) + pg_lsn_cmp(arg_fcinfo) }) } -pub unsafe fn timestamp_transform(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 timestamp_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_transform(arg_fcinfo) + pg_lsn_hash(arg_fcinfo) }) } -pub unsafe fn interval_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bttextsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttextsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_transform(arg_fcinfo) + bttextsortsupport(arg_fcinfo) }) } -pub unsafe fn ginarraytriconsistent(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 ginarraytriconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_step_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - ginarraytriconsistent(arg_fcinfo) + generate_series_step_numeric(arg_fcinfo) }) } -pub unsafe fn gin_tsquery_triconsistent(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 gin_tsquery_triconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_tsquery_triconsistent(arg_fcinfo) + generate_series_numeric(arg_fcinfo) }) } -pub unsafe fn int4range_subdiff(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 int4range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4range_subdiff(arg_fcinfo) + json_strip_nulls(arg_fcinfo) }) } -pub unsafe fn int8range_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 int8range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8range_subdiff(arg_fcinfo) + jsonb_strip_nulls(arg_fcinfo) }) } -pub unsafe fn numrange_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 numrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - numrange_subdiff(arg_fcinfo) + jsonb_object(arg_fcinfo) }) } -pub unsafe fn daterange_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 daterange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum; } - daterange_subdiff(arg_fcinfo) + jsonb_object_two_arg(arg_fcinfo) }) } -pub unsafe fn int8range_canonical(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 int8range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8range_canonical(arg_fcinfo) + jsonb_agg_transfn(arg_fcinfo) }) } -pub unsafe fn tsrange_subdiff(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 tsrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsrange_subdiff(arg_fcinfo) + jsonb_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn tstzrange_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 tstzrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - tstzrange_subdiff(arg_fcinfo) + jsonb_object_agg_transfn(arg_fcinfo) }) } -pub unsafe fn jsonb_object_keys(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 jsonb_object_keys(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_keys(arg_fcinfo) + jsonb_object_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn jsonb_each_text(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_each_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_build_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_each_text(arg_fcinfo) + jsonb_build_array(arg_fcinfo) }) } -pub unsafe fn mxid_age(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 mxid_age(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_build_array_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; } - mxid_age(arg_fcinfo) + jsonb_build_array_noargs(arg_fcinfo) }) } -pub unsafe fn jsonb_extract_path_text(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 jsonb_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_build_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_extract_path_text(arg_fcinfo) + jsonb_build_object(arg_fcinfo) }) } -pub unsafe fn acldefault_sql(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 acldefault_sql(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_build_object_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; } - acldefault_sql(arg_fcinfo) + jsonb_build_object_noargs(arg_fcinfo) }) } -pub unsafe fn time_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_ppoly(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_ppoly(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_transform(arg_fcinfo) + dist_ppoly(arg_fcinfo) }) } -pub unsafe fn json_object_field(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_position(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(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_field(arg_fcinfo) + array_position(arg_fcinfo) }) } -pub unsafe fn json_object_field_text(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_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_position_start(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_field_text(arg_fcinfo) + array_position_start(arg_fcinfo) }) } -pub unsafe fn json_array_element(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_array_element(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_positions(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_array_element(arg_fcinfo) + array_positions(arg_fcinfo) }) } -pub unsafe fn json_array_element_text(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_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_array_element_text(arg_fcinfo) + gist_circle_distance(arg_fcinfo) }) } -pub unsafe fn json_extract_path(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_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_extract_path(arg_fcinfo) + gist_box_fetch(arg_fcinfo) }) } -pub unsafe fn brin_summarize_new_values(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 brin_summarize_new_values(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_point_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_summarize_new_values(arg_fcinfo) + gist_point_fetch(arg_fcinfo) }) } -pub unsafe fn json_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_extract_path_text(arg_fcinfo) + numeric_sortsupport(arg_fcinfo) }) } -pub unsafe fn pg_get_object_address(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 pg_get_object_address(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_object_address(arg_fcinfo) + gist_poly_distance(arg_fcinfo) }) } -pub unsafe fn json_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_cpoint(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_cpoint(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_array_elements(arg_fcinfo) + dist_cpoint(arg_fcinfo) }) } -pub unsafe fn json_array_length(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_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_polyp(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_array_length(arg_fcinfo) + dist_polyp(arg_fcinfo) }) } -pub unsafe fn json_object_keys(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_object_keys(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_read_file(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_keys(arg_fcinfo) + pg_read_file(arg_fcinfo) }) } -pub unsafe fn json_each(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_each(arg_fcinfo: FunctionCallInfo) -> Datum; + fn show_config_by_name_missing_ok(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_each(arg_fcinfo) + show_config_by_name_missing_ok(arg_fcinfo) }) } -pub unsafe fn json_each_text(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_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_read_binary_file(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_each_text(arg_fcinfo) + pg_read_binary_file(arg_fcinfo) }) } -pub unsafe fn json_populate_record(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_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_notification_queue_usage(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_populate_record(arg_fcinfo) + pg_notification_queue_usage(arg_fcinfo) }) } -pub unsafe fn json_populate_recordset(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_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ls_dir(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_populate_recordset(arg_fcinfo) + pg_ls_dir(arg_fcinfo) }) } -pub unsafe fn json_typeof(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_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn row_security_active(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_typeof(arg_fcinfo) + row_security_active(arg_fcinfo) }) } -pub unsafe fn json_array_elements_text(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_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn row_security_active_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_array_elements_text(arg_fcinfo) + row_security_active_name(arg_fcinfo) }) } -pub unsafe fn ordered_set_transition(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ordered_set_transition(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - ordered_set_transition(arg_fcinfo) + uuid_sortsupport(arg_fcinfo) }) } -pub unsafe fn ordered_set_transition_multi(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_multi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_concat(arg_fcinfo: FunctionCallInfo) -> Datum; } - ordered_set_transition_multi(arg_fcinfo) + jsonb_concat(arg_fcinfo) }) } -pub unsafe fn percentile_disc_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_delete(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(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_disc_final(arg_fcinfo) + jsonb_delete(arg_fcinfo) }) } -pub unsafe fn percentile_cont_float8_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_cont_float8_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_delete_idx(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_cont_float8_final(arg_fcinfo) + jsonb_delete_idx(arg_fcinfo) }) } -pub unsafe fn percentile_cont_interval_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_interval_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_delete_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_cont_interval_final(arg_fcinfo) + jsonb_delete_path(arg_fcinfo) }) } -pub unsafe fn percentile_disc_multi_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_disc_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_set(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_disc_multi_final(arg_fcinfo) + jsonb_set(arg_fcinfo) }) } -pub unsafe fn percentile_cont_float8_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_cont_float8_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_cont_float8_multi_final(arg_fcinfo) + jsonb_pretty(arg_fcinfo) }) } -pub unsafe fn percentile_cont_interval_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_interval_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_file(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_cont_interval_multi_final(arg_fcinfo) + pg_stat_file(arg_fcinfo) }) } -pub unsafe fn mode_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xidneq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mode_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xidneq(arg_fcinfo: FunctionCallInfo) -> Datum; } - mode_final(arg_fcinfo) + xidneq(arg_fcinfo) }) } -pub unsafe fn hypothetical_rank_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 hypothetical_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsm_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypothetical_rank_final(arg_fcinfo) + tsm_handler_in(arg_fcinfo) }) } -pub unsafe fn hypothetical_percent_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_percent_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsm_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypothetical_percent_rank_final(arg_fcinfo) + tsm_handler_out(arg_fcinfo) }) } -pub unsafe fn hypothetical_cume_dist_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_cume_dist_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsm_bernoulli_handler(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypothetical_cume_dist_final(arg_fcinfo) + tsm_bernoulli_handler(arg_fcinfo) }) } -pub unsafe fn hypothetical_dense_rank_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_dense_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsm_system_handler(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypothetical_dense_rank_final(arg_fcinfo) + tsm_system_handler(arg_fcinfo) }) } -pub unsafe fn timestamp_izone_transform(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 timestamp_izone_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_wal_receiver(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_izone_transform(arg_fcinfo) + pg_stat_get_wal_receiver(arg_fcinfo) }) } -pub unsafe fn timestamp_zone_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_zone_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_progress_info(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_zone_transform(arg_fcinfo) + pg_stat_get_progress_info(arg_fcinfo) }) } -pub unsafe fn range_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsvector_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_filter(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_fetch(arg_fcinfo) + tsvector_filter(arg_fcinfo) }) } -pub unsafe fn brin_summarize_range(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 brin_summarize_range(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_setweight_by_filter(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_summarize_range(arg_fcinfo) + tsvector_setweight_by_filter(arg_fcinfo) }) } -pub unsafe fn brin_desummarize_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_desummarize_range(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_delete_str(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_desummarize_range(arg_fcinfo) + tsvector_delete_str(arg_fcinfo) }) } -pub unsafe fn spg_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsvector_unnest(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_unnest(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_quad_config(arg_fcinfo) + tsvector_unnest(arg_fcinfo) }) } -pub unsafe fn spg_quad_choose(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_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_delete_arr(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_quad_choose(arg_fcinfo) + tsvector_delete_arr(arg_fcinfo) }) } -pub unsafe fn spg_quad_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_quad_picksplit(arg_fcinfo) + int4_avg_combine(arg_fcinfo) }) } -pub unsafe fn spg_quad_inner_consistent(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_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_quad_inner_consistent(arg_fcinfo) + interval_combine(arg_fcinfo) }) } -pub unsafe fn spg_quad_leaf_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_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_quad_leaf_consistent(arg_fcinfo) + tsvector_to_array(arg_fcinfo) }) } -pub unsafe fn spg_kd_config(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_kd_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_kd_config(arg_fcinfo) + array_to_tsvector(arg_fcinfo) }) } -pub unsafe fn spg_kd_choose(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_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_kd_choose(arg_fcinfo) + bpchar_sortsupport(arg_fcinfo) }) } -pub unsafe fn spg_kd_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn show_all_file_settings(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_kd_picksplit(arg_fcinfo) + show_all_file_settings(arg_fcinfo) }) } -pub unsafe fn spg_kd_inner_consistent(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_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_current_wal_flush_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_kd_inner_consistent(arg_fcinfo) + pg_current_wal_flush_lsn(arg_fcinfo) }) } -pub unsafe fn spg_text_config(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_text_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytea_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_text_config(arg_fcinfo) + bytea_sortsupport(arg_fcinfo) }) } -pub unsafe fn spg_text_choose(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_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttext_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_text_choose(arg_fcinfo) + bttext_pattern_sortsupport(arg_fcinfo) }) } -pub unsafe fn spg_text_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btbpchar_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_text_picksplit(arg_fcinfo) + btbpchar_pattern_sortsupport(arg_fcinfo) }) } -pub unsafe fn spg_text_inner_consistent(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_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_size_bytes(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_text_inner_consistent(arg_fcinfo) + pg_size_bytes(arg_fcinfo) }) } -pub unsafe fn spg_text_leaf_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_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_text_leaf_consistent(arg_fcinfo) + numeric_serialize(arg_fcinfo) }) } -pub unsafe fn pg_sequence_last_value(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_deserialize(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_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_sequence_last_value(arg_fcinfo) + numeric_deserialize(arg_fcinfo) }) } -pub unsafe fn jsonb_ne(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 jsonb_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_ne(arg_fcinfo) + numeric_avg_combine(arg_fcinfo) }) } -pub unsafe fn jsonb_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_lt(arg_fcinfo) + numeric_poly_combine(arg_fcinfo) }) } -pub unsafe fn jsonb_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_gt(arg_fcinfo) + numeric_poly_serialize(arg_fcinfo) }) } -pub unsafe fn jsonb_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_le(arg_fcinfo) + numeric_poly_deserialize(arg_fcinfo) }) } -pub unsafe fn jsonb_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_ge(arg_fcinfo) + numeric_combine(arg_fcinfo) }) } -pub unsafe fn jsonb_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_delete_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_eq(arg_fcinfo) + jsonb_delete_array(arg_fcinfo) }) } -pub unsafe fn jsonb_cmp(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_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mul_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_cmp(arg_fcinfo) + cash_mul_int8(arg_fcinfo) }) } -pub unsafe fn jsonb_hash(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_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_div_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_hash(arg_fcinfo) + cash_div_int8(arg_fcinfo) }) } -pub unsafe fn jsonb_contains(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_contains(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_current_if_assigned(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_contains(arg_fcinfo) + txid_current_if_assigned(arg_fcinfo) }) } -pub unsafe fn jsonb_exists(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_exists(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_partkeydef(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_exists(arg_fcinfo) + pg_get_partkeydef(arg_fcinfo) }) } -pub unsafe fn jsonb_exists_any(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_any(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ls_logdir(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_exists_any(arg_fcinfo) + pg_ls_logdir(arg_fcinfo) }) } -pub unsafe fn jsonb_exists_all(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_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ls_waldir(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_exists_all(arg_fcinfo) + pg_ls_waldir(arg_fcinfo) }) } -pub unsafe fn jsonb_contained(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_contained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ndistinct_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_contained(arg_fcinfo) + pg_ndistinct_in(arg_fcinfo) }) } -pub unsafe fn array_agg_array_transfn(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 array_agg_array_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ndistinct_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_agg_array_transfn(arg_fcinfo) + pg_ndistinct_out(arg_fcinfo) }) } -pub unsafe fn array_agg_array_finalfn(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_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ndistinct_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_agg_array_finalfn(arg_fcinfo) + pg_ndistinct_recv(arg_fcinfo) }) } -pub unsafe fn range_merge(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 range_merge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ndistinct_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_merge(arg_fcinfo) + pg_ndistinct_send(arg_fcinfo) }) } -pub unsafe fn inet_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 inet_merge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_merge(arg_fcinfo) + macaddr_sortsupport(arg_fcinfo) }) } -pub unsafe fn boxes_bound_box(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_status(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boxes_bound_box(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_status(arg_fcinfo: FunctionCallInfo) -> Datum; } - boxes_bound_box(arg_fcinfo) + txid_status(arg_fcinfo) }) } -pub unsafe fn inet_same_family(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 inet_same_family(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_safe_snapshot_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_same_family(arg_fcinfo) + pg_safe_snapshot_blocking_pids(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_record_init_privs(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 binary_upgrade_set_record_init_privs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_isolation_test_session_is_blocked(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_record_init_privs(arg_fcinfo) + pg_isolation_test_session_is_blocked(arg_fcinfo) }) } -pub unsafe fn regnamespacein(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 regnamespacein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_identify_object_as_address(arg_fcinfo: FunctionCallInfo) -> Datum; } - regnamespacein(arg_fcinfo) + pg_identify_object_as_address(arg_fcinfo) }) } -pub unsafe fn regnamespaceout(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 regnamespaceout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn brin_minmax_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum; } - regnamespaceout(arg_fcinfo) + brin_minmax_opcinfo(arg_fcinfo) }) } -pub unsafe fn to_regnamespace(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 to_regnamespace(arg_fcinfo: FunctionCallInfo) -> Datum; + fn brin_minmax_add_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regnamespace(arg_fcinfo) + brin_minmax_add_value(arg_fcinfo) }) } -pub unsafe fn regnamespacerecv(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 regnamespacerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn brin_minmax_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - regnamespacerecv(arg_fcinfo) + brin_minmax_consistent(arg_fcinfo) }) } -pub unsafe fn regnamespacesend(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 regnamespacesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn brin_minmax_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - regnamespacesend(arg_fcinfo) + brin_minmax_union(arg_fcinfo) }) } -pub unsafe fn point_box(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 point_box(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_box(arg_fcinfo) + int8_avg_accum_inv(arg_fcinfo) }) } -pub unsafe fn regroleout(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 regroleout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - regroleout(arg_fcinfo) + numeric_poly_sum(arg_fcinfo) }) } -pub unsafe fn to_regrole(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 to_regrole(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_avg(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regrole(arg_fcinfo) + numeric_poly_avg(arg_fcinfo) }) } -pub unsafe fn regrolerecv(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 regrolerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; } - regrolerecv(arg_fcinfo) + numeric_poly_var_pop(arg_fcinfo) }) } -pub unsafe fn regrolesend(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 regrolesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; } - regrolesend(arg_fcinfo) + numeric_poly_var_samp(arg_fcinfo) }) } -pub unsafe fn regrolein(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 regrolein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; } - regrolein(arg_fcinfo) + numeric_poly_stddev_pop(arg_fcinfo) }) } -pub unsafe fn brin_inclusion_opcinfo(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 brin_inclusion_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_inclusion_opcinfo(arg_fcinfo) + numeric_poly_stddev_samp(arg_fcinfo) }) } -pub unsafe fn brin_inclusion_add_value(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_add_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_match_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_inclusion_add_value(arg_fcinfo) + regexp_match_no_flags(arg_fcinfo) }) } -pub unsafe fn brin_inclusion_consistent(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_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_match(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_inclusion_consistent(arg_fcinfo) + regexp_match(arg_fcinfo) }) } -pub unsafe fn brin_inclusion_union(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_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_inclusion_union(arg_fcinfo) + int8_mul_cash(arg_fcinfo) }) } -pub unsafe fn macaddr8_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_config(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_in(arg_fcinfo) + pg_config(arg_fcinfo) }) } -pub unsafe fn macaddr8_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_hba_file_rules(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_out(arg_fcinfo) + pg_hba_file_rules(arg_fcinfo) }) } -pub unsafe fn macaddr8_trunc(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_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_statistics_obj_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_trunc(arg_fcinfo) + pg_statistics_obj_is_visible(arg_fcinfo) }) } -pub unsafe fn macaddr8_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_dependencies_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_eq(arg_fcinfo) + pg_dependencies_in(arg_fcinfo) }) } -pub unsafe fn macaddr8_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_dependencies_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_lt(arg_fcinfo) + pg_dependencies_out(arg_fcinfo) }) } -pub unsafe fn macaddr8_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_dependencies_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_le(arg_fcinfo) + pg_dependencies_recv(arg_fcinfo) }) } -pub unsafe fn macaddr8_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_dependencies_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_gt(arg_fcinfo) + pg_dependencies_send(arg_fcinfo) }) } -pub unsafe fn macaddr8_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_partition_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_ge(arg_fcinfo) + pg_get_partition_constraintdef(arg_fcinfo) }) } -pub unsafe fn macaddr8_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_statisticsobjdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_ne(arg_fcinfo) + pg_get_statisticsobjdef(arg_fcinfo) }) } -pub unsafe fn macaddr8_cmp(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_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_control_system(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_cmp(arg_fcinfo) + pg_control_system(arg_fcinfo) }) } -pub unsafe fn macaddr8_not(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_not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_control_checkpoint(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_not(arg_fcinfo) + pg_control_checkpoint(arg_fcinfo) }) } -pub unsafe fn macaddr8_and(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_and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_control_recovery(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_and(arg_fcinfo) + pg_control_recovery(arg_fcinfo) }) } -pub unsafe fn macaddr8_or(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_or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_control_init(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_or(arg_fcinfo) + pg_control_init(arg_fcinfo) }) } -pub unsafe fn macaddrtomacaddr8(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 macaddrtomacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_import_system_collations(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddrtomacaddr8(arg_fcinfo) + pg_import_system_collations(arg_fcinfo) }) } -pub unsafe fn macaddr8tomacaddr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr8_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8tomacaddr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr8_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8tomacaddr(arg_fcinfo) + macaddr8_recv(arg_fcinfo) }) } -pub unsafe fn macaddr8_set7bit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr8_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_set7bit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr8_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_set7bit(arg_fcinfo) + macaddr8_send(arg_fcinfo) }) } -pub unsafe fn ts_headline_jsonb_byid_opt(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 ts_headline_jsonb_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_collation_actual_version(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_jsonb_byid_opt(arg_fcinfo) + pg_collation_actual_version(arg_fcinfo) }) } -pub unsafe fn ts_headline_jsonb_byid(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_filenode_relation(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_jsonb_byid(arg_fcinfo) + pg_filenode_relation(arg_fcinfo) }) } -pub unsafe fn ts_headline_jsonb_opt(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_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_from_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_jsonb_opt(arg_fcinfo) + be_lo_from_bytea(arg_fcinfo) }) } -pub unsafe fn ts_headline_jsonb(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_get(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_jsonb(arg_fcinfo) + be_lo_get(arg_fcinfo) }) } -pub unsafe fn ts_headline_json_byid_opt(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_json_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_get_fragment(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_json_byid_opt(arg_fcinfo) + be_lo_get_fragment(arg_fcinfo) }) } -pub unsafe fn ts_headline_json_byid(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_put(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_json_byid(arg_fcinfo) + be_lo_put(arg_fcinfo) }) } -pub unsafe fn ts_headline_json_opt(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_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_json_opt(arg_fcinfo) + make_timestamp(arg_fcinfo) }) } -pub unsafe fn ts_headline_json(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(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_json(arg_fcinfo) + make_timestamptz(arg_fcinfo) }) } -pub unsafe fn jsonb_to_tsvector(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 jsonb_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_timestamptz_at_timezone(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_to_tsvector(arg_fcinfo) + make_timestamptz_at_timezone(arg_fcinfo) }) } -pub unsafe fn json_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 json_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_to_tsvector(arg_fcinfo) + make_interval(arg_fcinfo) }) } -pub unsafe fn jsonb_to_tsvector_byid(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 jsonb_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_to_tsvector_byid(arg_fcinfo) + jsonb_array_elements_text(arg_fcinfo) }) } -pub unsafe fn json_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 json_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spg_range_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_to_tsvector_byid(arg_fcinfo) + spg_range_quad_config(arg_fcinfo) }) } -pub unsafe fn pg_event_trigger_table_rewrite_oid(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 pg_event_trigger_table_rewrite_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spg_range_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_event_trigger_table_rewrite_oid(arg_fcinfo) + spg_range_quad_choose(arg_fcinfo) }) } -pub unsafe fn pg_event_trigger_table_rewrite_reason(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_reason(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spg_range_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_event_trigger_table_rewrite_reason(arg_fcinfo) + spg_range_quad_picksplit(arg_fcinfo) }) } -pub unsafe fn pg_event_trigger_ddl_commands(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_ddl_commands(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spg_range_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_event_trigger_ddl_commands(arg_fcinfo) + spg_range_quad_inner_consistent(arg_fcinfo) }) } -pub unsafe fn phraseto_tsquery(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 phraseto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spg_range_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - phraseto_tsquery(arg_fcinfo) + spg_range_quad_leaf_consistent(arg_fcinfo) }) } -pub unsafe fn tsquery_phrase(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 tsquery_phrase(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_populate_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_phrase(arg_fcinfo) + jsonb_populate_recordset(arg_fcinfo) }) } -pub unsafe fn tsquery_phrase_distance(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_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regoperator(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_phrase_distance(arg_fcinfo) + to_regoperator(arg_fcinfo) }) } -pub unsafe fn phraseto_tsquery_byid(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 phraseto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object_field(arg_fcinfo: FunctionCallInfo) -> Datum; } - phraseto_tsquery_byid(arg_fcinfo) + jsonb_object_field(arg_fcinfo) }) } -pub unsafe fn spg_box_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_regprocedure(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_box_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regprocedure(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_box_quad_config(arg_fcinfo) + to_regprocedure(arg_fcinfo) }) } -pub unsafe fn spg_box_quad_choose(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_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_compare_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_box_quad_choose(arg_fcinfo) + gin_compare_jsonb(arg_fcinfo) }) } -pub unsafe fn spg_box_quad_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_box_quad_picksplit(arg_fcinfo) + gin_extract_jsonb(arg_fcinfo) }) } -pub unsafe fn spg_box_quad_inner_consistent(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_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_jsonb_query(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_box_quad_inner_consistent(arg_fcinfo) + gin_extract_jsonb_query(arg_fcinfo) }) } -pub unsafe fn spg_box_quad_leaf_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_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_consistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_box_quad_leaf_consistent(arg_fcinfo) + gin_consistent_jsonb(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_create(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 pg_replication_origin_create(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_create(arg_fcinfo) + gin_extract_jsonb_path(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_drop(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_drop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_jsonb_query_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_drop(arg_fcinfo) + gin_extract_jsonb_query_path(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_oid(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_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_consistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_oid(arg_fcinfo) + gin_consistent_jsonb_path(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_session_setup(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_session_setup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_triconsistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_session_setup(arg_fcinfo) + gin_triconsistent_jsonb(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_session_reset(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_reset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_triconsistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_session_reset(arg_fcinfo) + gin_triconsistent_jsonb_path(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_session_is_setup(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_is_setup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_to_record(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_session_is_setup(arg_fcinfo) + jsonb_to_record(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_session_progress(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_progress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_to_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_session_progress(arg_fcinfo) + jsonb_to_recordset(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_xact_setup(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_xact_setup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regoper(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_xact_setup(arg_fcinfo) + to_regoper(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_xact_reset(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_reset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regtype(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_xact_reset(arg_fcinfo) + to_regtype(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_advance(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_advance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regproc(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_advance(arg_fcinfo) + to_regproc(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_progress(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_progress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regclass(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_progress(arg_fcinfo) + to_regclass(arg_fcinfo) }) } -pub unsafe fn pg_show_replication_origin_status(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_show_replication_origin_status(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bool_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_show_replication_origin_status(arg_fcinfo) + bool_accum(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_subscription(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_stat_get_subscription(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bool_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_subscription(arg_fcinfo) + bool_accum_inv(arg_fcinfo) }) } -pub unsafe fn pg_get_replica_identity_index(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_get_replica_identity_index(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bool_alltrue(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_replica_identity_index(arg_fcinfo) + bool_alltrue(arg_fcinfo) }) } -pub unsafe fn pg_relation_is_publishable(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_relation_is_publishable(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bool_anytrue(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_relation_is_publishable(arg_fcinfo) + bool_anytrue(arg_fcinfo) }) } -pub unsafe fn numeric_scale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anyenum_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyenum_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_scale(arg_fcinfo) + anyenum_in(arg_fcinfo) }) } -pub unsafe fn parse_bool(arg_value: *const ::std::os::raw::c_char, arg_result: *mut bool) -> bool { +pub unsafe fn anyenum_out(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 anyenum_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - parse_bool(arg_value, arg_result) + anyenum_out(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_in(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_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - parse_bool_with_len(arg_value, arg_len, arg_result) + enum_in(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_out(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_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - domain_check(arg_value, arg_isnull, arg_domainType, arg_extra, arg_mcxt) + enum_out(arg_fcinfo) }) } -pub unsafe fn errdatatype(arg_datatypeOid: Oid) -> ::std::os::raw::c_int { +pub unsafe fn enum_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - errdatatype(arg_datatypeOid) + enum_eq(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_ne(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_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - errdomainconstraint(arg_datatypeOid, arg_conname) + enum_ne(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_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - hex_encode(arg_src, arg_len, arg_dst) + enum_lt(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_gt(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_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - hex_decode(arg_src, arg_len, arg_dst) + enum_gt(arg_fcinfo) }) } -pub unsafe fn buildint2vector( - arg_int2s: *const int16, - arg_n: ::std::os::raw::c_int, -) -> *mut int2vector { +pub unsafe fn enum_le(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_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - buildint2vector(arg_int2s, arg_n) + enum_le(arg_fcinfo) }) } -pub unsafe fn namecpy(arg_n1: Name, arg_n2: Name) -> ::std::os::raw::c_int { +pub unsafe fn enum_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - namecpy(arg_n1, arg_n2) + enum_ge(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 enum_cmp(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 enum_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - namestrcpy(arg_name, arg_str_) + enum_cmp(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 hashenum(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 hashenum(arg_fcinfo: FunctionCallInfo) -> Datum; } - namestrcmp(arg_name, arg_str_) + hashenum(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_smaller(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_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_atoi(arg_s, arg_size, arg_c) + enum_smaller(arg_fcinfo) }) } -pub unsafe fn pg_itoa(arg_i: int16, arg_a: *mut ::std::os::raw::c_char) { +pub unsafe fn enum_larger(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_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_itoa(arg_i, arg_a) + enum_larger(arg_fcinfo) }) } -pub unsafe fn pg_ltoa(arg_l: int32, 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_ltoa(arg_l: int32, arg_a: *mut ::std::os::raw::c_char); + fn enum_first(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ltoa(arg_l, arg_a) + enum_first(arg_fcinfo) }) } -pub unsafe fn pg_lltoa(arg_ll: int64, 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_lltoa(arg_ll: int64, arg_a: *mut ::std::os::raw::c_char); + fn enum_last(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lltoa(arg_ll, arg_a) + enum_last(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_bounds(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_bounds(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ltostr_zeropad(arg_str_, arg_value, arg_minwidth) + enum_range_bounds(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_range_all(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_range_all(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ltostr(arg_str_, arg_value) + enum_range_all(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_recv(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_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_strtouint64(arg_str_, arg_endptr, arg_base) + enum_recv(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 enum_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_float8_infinity() -> f64; + fn enum_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - get_float8_infinity() + enum_send(arg_fcinfo) }) } -pub unsafe fn get_float4_infinity() -> f32 { +pub unsafe fn string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_float4_infinity() -> f32; + fn string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - get_float4_infinity() + string_agg_transfn(arg_fcinfo) }) } -pub unsafe fn get_float8_nan() -> f64 { +pub unsafe fn string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_float8_nan() -> f64; + fn string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - get_float8_nan() + string_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn get_float4_nan() -> f32 { +pub unsafe fn pg_describe_object(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_float4_nan() -> f32; + fn pg_describe_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - get_float4_nan() + pg_describe_object(arg_fcinfo) }) } -pub unsafe fn is_infinite(arg_val: f64) -> ::std::os::raw::c_int { +pub unsafe fn text_format(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(arg_fcinfo: FunctionCallInfo) -> Datum; } - is_infinite(arg_val) + text_format(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 text_format_nv(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 text_format_nv(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8in_internal(arg_num, arg_endptr_p, arg_type_name, arg_orig_string) + text_format_nv(arg_fcinfo) }) } -pub unsafe fn float8out_internal(arg_num: f64) -> *mut ::std::os::raw::c_char { +pub unsafe fn bytea_string_agg_transfn(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_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8out_internal(arg_num) + bytea_string_agg_transfn(arg_fcinfo) }) } -pub unsafe fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int { +pub unsafe fn bytea_string_agg_finalfn(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 bytea_string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4_cmp_internal(arg_a, arg_b) + bytea_string_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int { +pub unsafe fn int8dec(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(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_cmp_internal(arg_a, arg_b) + int8dec(arg_fcinfo) }) } -pub unsafe fn buildoidvector(arg_oids: *const Oid, arg_n: ::std::os::raw::c_int) -> *mut oidvector { +pub unsafe fn int8dec_any(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 int8dec_any(arg_fcinfo: FunctionCallInfo) -> Datum; } - buildoidvector(arg_oids, arg_n) + int8dec_any(arg_fcinfo) }) } -pub unsafe fn oidparse(arg_node: *mut Node) -> Oid { +pub unsafe fn numeric_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidparse(arg_node: *mut Node) -> Oid; + fn numeric_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidparse(arg_node) + numeric_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 interval_accum_inv(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 interval_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - oid_cmp(arg_p1, arg_p2) + interval_accum_inv(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 network_overlap(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 network_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_fixed_prefix(arg_text_re, arg_case_insensitive, arg_collation, arg_exact) + network_overlap(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_consistent(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_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_identifier(arg_ident) + inet_gist_consistent(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_union(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_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_qualified_identifier(arg_qualifier, arg_ident) + inet_gist_union(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_compress(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_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_operator_clause( - arg_buf, - arg_leftop, - arg_leftoptype, - arg_opoid, - arg_rightop, - arg_rightoptype, - ) + inet_gist_compress(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_decompress(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_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchartruelen(arg_s, arg_len) + inet_gist_decompress(arg_fcinfo) }) } -pub unsafe fn cstring_to_text(arg_s: *const ::std::os::raw::c_char) -> *mut text { +pub unsafe fn inet_gist_penalty(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_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_to_text(arg_s) + inet_gist_penalty(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_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_to_text_with_len(arg_s, arg_len) + inet_gist_picksplit(arg_fcinfo) }) } -pub unsafe fn text_to_cstring(arg_t: *const text) -> *mut ::std::os::raw::c_char { +pub unsafe fn inet_gist_same(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 inet_gist_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_to_cstring(arg_t) + inet_gist_same(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 networksel(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 networksel(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_to_cstring_buffer(arg_src, arg_dst, arg_dst_len) + networksel(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 networkjoinsel(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 networkjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - xidComparator(arg_arg1, arg_arg2) + networkjoinsel(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_larger(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_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - xidLogicalComparator(arg_arg1, arg_arg2) + network_larger(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 network_smaller(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 network_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_cidr_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) + network_smaller(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 pg_event_trigger_dropped_objects(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 pg_event_trigger_dropped_objects(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_net_pton(arg_af, arg_src, arg_dst, arg_size) + pg_event_trigger_dropped_objects(arg_fcinfo) }) } -pub unsafe fn convert_network_to_scalar( - arg_value: Datum, - arg_typid: Oid, - arg_failure: *mut bool, -) -> f64 { +pub unsafe fn int2_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 int2_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - convert_network_to_scalar(arg_value, arg_typid, arg_failure) + int2_accum_inv(arg_fcinfo) }) } -pub unsafe fn network_scan_first(arg_in_: Datum) -> Datum { +pub unsafe fn int4_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 int4_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_scan_first(arg_in_) + int4_accum_inv(arg_fcinfo) }) } -pub unsafe fn network_scan_last(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_last(arg_in_: Datum) -> Datum; + fn int8_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_scan_last(arg_in_) + int8_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 int2_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 int2_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - clean_ipv6_addr(arg_addr_family, arg_addr) + int2_avg_accum_inv(arg_fcinfo) }) } -pub unsafe fn numeric_float8_no_overflow(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_float8_no_overflow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_float8_no_overflow(arg_fcinfo) + int4_avg_accum_inv(arg_fcinfo) }) } -pub unsafe fn format_type_be(arg_type_oid: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn int2int4_sum(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 int2int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - format_type_be(arg_type_oid) + int2int4_sum(arg_fcinfo) }) } -pub unsafe fn format_type_be_qualified(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_qualified(arg_type_oid: Oid) -> *mut ::std::os::raw::c_char; + fn inet_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; } - format_type_be_qualified(arg_type_oid) + inet_gist_fetch(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_text(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_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - format_type_with_typemod(arg_type_oid, arg_typemod) + pg_logical_emit_message_text(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 pg_logical_emit_message_bytea(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 pg_logical_emit_message_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; } - format_type_with_typemod_qualified(arg_type_oid, arg_typemod) + pg_logical_emit_message_bytea(arg_fcinfo) }) } -pub unsafe fn type_maximum_size(arg_type_oid: Oid, arg_typemod: int32) -> int32 { +pub unsafe fn jsonb_insert(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 jsonb_insert(arg_fcinfo: FunctionCallInfo) -> Datum; } - type_maximum_size(arg_type_oid, arg_typemod) + jsonb_insert(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 pg_xact_commit_timestamp(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 pg_xact_commit_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_literal_cstr(arg_rawstr) + pg_xact_commit_timestamp(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 binary_upgrade_set_next_pg_type_oid(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 binary_upgrade_set_next_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fpclassify(arg___value) + binary_upgrade_set_next_pg_type_oid(arg_fcinfo) }) } -pub unsafe fn __signbit(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 __signbit(arg___value: f64) -> ::std::os::raw::c_int; + fn pg_last_committed_xact(arg_fcinfo: FunctionCallInfo) -> Datum; } - __signbit(arg___value) + pg_last_committed_xact(arg_fcinfo) }) } -pub unsafe fn __isinf(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 __isinf(arg___value: f64) -> ::std::os::raw::c_int; + fn binary_upgrade_set_next_array_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isinf(arg___value) + binary_upgrade_set_next_array_pg_type_oid(arg_fcinfo) }) } -pub unsafe fn __finite(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 __finite(arg___value: f64) -> ::std::os::raw::c_int; + fn binary_upgrade_set_next_toast_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __finite(arg___value) + binary_upgrade_set_next_toast_pg_type_oid(arg_fcinfo) }) } -pub unsafe fn __isnan(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 __isnan(arg___value: f64) -> ::std::os::raw::c_int; + fn binary_upgrade_set_next_heap_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isnan(arg___value) + binary_upgrade_set_next_heap_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_index_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_index_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __iseqsig(arg___x, arg___y) + binary_upgrade_set_next_index_pg_class_oid(arg_fcinfo) }) } -pub unsafe fn __issignaling(arg___value: 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 __issignaling(arg___value: f64) -> ::std::os::raw::c_int; + fn binary_upgrade_set_next_toast_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __issignaling(arg___value) + binary_upgrade_set_next_toast_pg_class_oid(arg_fcinfo) }) } -pub unsafe fn acos(arg___x: f64) -> f64 { +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 acos(arg___x: f64) -> f64; + fn binary_upgrade_set_next_pg_enum_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - acos(arg___x) + 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 asin(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 asin(arg___x: f64) -> f64; + fn binary_upgrade_create_empty_extension(arg_fcinfo: FunctionCallInfo) -> Datum; } - asin(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 atan(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 atan(arg___x: f64) -> f64; + fn event_trigger_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - atan(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 atan2(arg___y: f64, arg___x: f64) -> f64 { +pub unsafe fn tsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atan2(arg___y: f64, arg___x: f64) -> f64; + fn tsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; } - atan2(arg___y, 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 cos(arg___x: f64) -> f64 { +pub unsafe fn tsqueryout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cos(arg___x: f64) -> f64; + fn tsqueryout(arg_fcinfo: FunctionCallInfo) -> Datum; } - cos(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 sin(arg___x: f64) -> f64 { +pub unsafe fn tsvector_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sin(arg___x: f64) -> f64; + fn tsvector_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - sin(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 tan(arg___x: f64) -> f64 { +pub unsafe fn tsvector_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tan(arg___x: f64) -> f64; + fn tsvector_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - tan(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 cosh(arg___x: f64) -> f64 { +pub unsafe fn tsvector_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cosh(arg___x: f64) -> f64; + fn tsvector_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - cosh(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 sinh(arg___x: f64) -> f64 { +pub unsafe fn tsvector_strip(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sinh(arg___x: f64) -> f64; + fn tsvector_strip(arg_fcinfo: FunctionCallInfo) -> Datum; } - sinh(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 tanh(arg___x: f64) -> f64 { +pub unsafe fn tsvector_concat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tanh(arg___x: f64) -> f64; + fn tsvector_concat(arg_fcinfo: FunctionCallInfo) -> Datum; } - tanh(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 acosh(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 acosh(arg___x: f64) -> f64; + fn ts_match_qv(arg_fcinfo: FunctionCallInfo) -> Datum; } - acosh(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 asinh(arg___x: f64) -> f64 { +pub unsafe fn tsvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asinh(arg___x: f64) -> f64; + fn tsvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - asinh(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 atanh(arg___x: f64) -> f64 { +pub unsafe fn tsqueryrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atanh(arg___x: f64) -> f64; + fn tsqueryrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - atanh(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 exp(arg___x: f64) -> f64 { +pub unsafe fn gtsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exp(arg___x: f64) -> f64; + fn gtsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; } - exp(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 frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn gtsvector_decompress(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_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; } - frexp(arg___x, arg___exponent) + 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 ldexp(arg___x: f64, arg___exponent: ::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 ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; + fn gtsvector_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - ldexp(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 log(arg___x: f64) -> f64 { +pub unsafe fn gtsvector_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log(arg___x: f64) -> f64; + fn gtsvector_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; } - log(arg___x) + 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 log10(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 log10(arg___x: f64) -> f64; + fn gin_extract_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; } - log10(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 modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { +pub unsafe fn gin_tsquery_consistent(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 gin_tsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - modf(arg___x, arg___iptr) + 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 expm1(arg___x: f64) -> f64 { +pub unsafe fn tsquery_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expm1(arg___x: f64) -> f64; + fn tsquery_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - expm1(arg___x) + 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 log1p(arg___x: f64) -> f64 { +pub unsafe fn tsquery_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log1p(arg___x: f64) -> f64; + fn tsquery_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - log1p(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 logb(arg___x: f64) -> f64 { +pub unsafe fn tsquery_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logb(arg___x: f64) -> f64; + fn tsquery_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - logb(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 exp2(arg___x: f64) -> f64 { +pub unsafe fn tsquery_and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exp2(arg___x: f64) -> f64; + fn tsquery_and(arg_fcinfo: FunctionCallInfo) -> Datum; } - exp2(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 log2(arg___x: f64) -> f64 { +pub unsafe fn tsquery_not(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log2(arg___x: f64) -> f64; + fn tsquery_not(arg_fcinfo: FunctionCallInfo) -> Datum; } - log2(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 pow(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn tsquerytree(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pow(arg___x: f64, arg___y: f64) -> f64; + fn tsquerytree(arg_fcinfo: FunctionCallInfo) -> Datum; } - pow(arg___x, arg___y) + 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 sqrt(arg___x: f64) -> f64 { +pub unsafe fn tsquery_rewrite_query(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sqrt(arg___x: f64) -> f64; + fn tsquery_rewrite_query(arg_fcinfo: FunctionCallInfo) -> Datum; } - sqrt(arg___x) + 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 hypot(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn tsmatchjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypot(arg___x: f64, arg___y: f64) -> f64; + fn tsmatchjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypot(arg___x, arg___y) + 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 cbrt(arg___x: f64) -> f64 { +pub unsafe fn ts_stat1(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cbrt(arg___x: f64) -> f64; + fn ts_stat1(arg_fcinfo: FunctionCallInfo) -> Datum; } - cbrt(arg___x) + 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 ceil(arg___x: f64) -> f64 { +pub unsafe fn tsq_mcontains(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ceil(arg___x: f64) -> f64; + fn tsq_mcontains(arg_fcinfo: FunctionCallInfo) -> Datum; } - ceil(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 fabs(arg___x: f64) -> f64 { +pub unsafe fn gtsquery_compress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fabs(arg___x: f64) -> f64; + fn gtsquery_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - fabs(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 floor(arg___x: f64) -> f64 { +pub unsafe fn gtsquery_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn floor(arg___x: f64) -> f64; + fn gtsquery_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - floor(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 fmod(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn gtsquery_same(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_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmod(arg___x, arg___y) + 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 isinf(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn gtsquery_consistent(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 gtsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - isinf(arg___value) + gtsquery_consistent(arg_fcinfo) }) } -pub unsafe fn finite(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 finite(arg___value: f64) -> ::std::os::raw::c_int; + fn ts_rank_wttf(arg_fcinfo: FunctionCallInfo) -> Datum; } - finite(arg___value) + ts_rank_wttf(arg_fcinfo) }) } -pub unsafe fn drem(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn ts_rank_wtt(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_wtt(arg_fcinfo: FunctionCallInfo) -> Datum; } - drem(arg___x, arg___y) + 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 significand(arg___x: f64) -> f64 { +pub unsafe fn ts_rank_tt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn significand(arg___x: f64) -> f64; + fn ts_rank_tt(arg_fcinfo: FunctionCallInfo) -> Datum; } - significand(arg___x) + 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 copysign(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn ts_rankcd_wtt(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_wtt(arg_fcinfo: FunctionCallInfo) -> Datum; } - copysign(arg___x, arg___y) + 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 nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { +pub unsafe fn ts_rankcd_tt(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_rankcd_tt(arg_fcinfo: FunctionCallInfo) -> Datum; } - nan(arg___tagb) + 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 isnan(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn ts_token_type_byid(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_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - isnan(arg___value) + ts_token_type_byid(arg_fcinfo) }) } -pub unsafe fn j0(arg_arg1: f64) -> f64 { +pub unsafe fn ts_token_type_byname(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j0(arg_arg1: f64) -> f64; + fn ts_token_type_byname(arg_fcinfo: FunctionCallInfo) -> Datum; } - j0(arg_arg1) + 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 j1(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 j1(arg_arg1: f64) -> f64; + fn ts_parse_byname(arg_fcinfo: FunctionCallInfo) -> Datum; } - j1(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 jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +pub unsafe fn prsd_nexttoken(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_nexttoken(arg_fcinfo: FunctionCallInfo) -> Datum; } - jn(arg_arg1, arg_arg2) + 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 y0(arg_arg1: f64) -> f64 { +pub unsafe fn prsd_headline(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y0(arg_arg1: f64) -> f64; + fn prsd_headline(arg_fcinfo: FunctionCallInfo) -> Datum; } - y0(arg_arg1) + 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 y1(arg_arg1: f64) -> f64 { +pub unsafe fn ts_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y1(arg_arg1: f64) -> f64; + fn ts_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; } - y1(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 yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +pub unsafe fn dsimple_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 dsimple_init(arg_fcinfo: FunctionCallInfo) -> Datum; } - yn(arg_arg1, arg_arg2) + 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 erf(arg_arg1: f64) -> f64 { +pub unsafe fn dsynonym_init(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erf(arg_arg1: f64) -> f64; + fn dsynonym_init(arg_fcinfo: FunctionCallInfo) -> Datum; } - erf(arg_arg1) + 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 erfc(arg_arg1: f64) -> f64 { +pub unsafe fn dispell_init(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfc(arg_arg1: f64) -> f64; + fn dispell_init(arg_fcinfo: FunctionCallInfo) -> Datum; } - erfc(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 lgamma(arg_arg1: f64) -> f64 { +pub unsafe fn regconfigin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgamma(arg_arg1: f64) -> f64; + fn regconfigin(arg_fcinfo: FunctionCallInfo) -> Datum; } - lgamma(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 tgamma(arg_arg1: f64) -> f64 { +pub unsafe fn regconfigrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tgamma(arg_arg1: f64) -> f64; + fn regconfigrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - tgamma(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 gamma(arg_arg1: f64) -> f64 { +pub unsafe fn thesaurus_init(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gamma(arg_arg1: f64) -> f64; + fn thesaurus_init(arg_fcinfo: FunctionCallInfo) -> Datum; } - gamma(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 lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn ts_headline_byid_opt(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_opt(arg_fcinfo: FunctionCallInfo) -> Datum; } - lgamma_r(arg_arg1, arg___signgamp) + 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 rint(arg___x: f64) -> f64 { +pub unsafe fn to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rint(arg___x: f64) -> f64; + fn to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - rint(arg___x) + 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 nextafter(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn plainto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextafter(arg___x: f64, arg___y: f64) -> f64; + fn plainto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - nextafter(arg___x, arg___y) + 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 nexttoward(arg___x: f64, arg___y: u128) -> f64 { +pub unsafe fn to_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 to_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; } - nexttoward(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 remainder(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn tsvector_update_trigger_byid(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_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - remainder(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 scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { +pub unsafe fn ts_headline_opt(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_opt(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalbn(arg___x, arg___n) + 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 ilogb(arg___x: f64) -> ::std::os::raw::c_int { +pub unsafe fn pg_ts_parser_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_parser_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - ilogb(arg___x) + 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 scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { +pub unsafe fn pg_ts_config_is_visible(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 pg_ts_config_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalbln(arg___x, arg___n) + 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 nearbyint(arg___x: f64) -> f64 { +pub unsafe fn ts_match_tt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nearbyint(arg___x: f64) -> f64; + fn ts_match_tt(arg_fcinfo: FunctionCallInfo) -> Datum; } - nearbyint(arg___x) + 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 round(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 round(arg___x: f64) -> f64; + fn pg_ts_template_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - round(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 trunc(arg___x: f64) -> f64 { +pub unsafe fn regdictionaryout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn trunc(arg___x: f64) -> f64; + fn regdictionaryout(arg_fcinfo: FunctionCallInfo) -> Datum; } - trunc(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 remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn regdictionarysend(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 regdictionarysend(arg_fcinfo: FunctionCallInfo) -> Datum; } - remquo(arg___x, arg___y, arg___quo) + 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 lrint(arg___x: f64) -> ::std::os::raw::c_long { +pub unsafe fn pg_stat_reset_single_table_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_table_counters(arg_fcinfo: FunctionCallInfo) -> Datum; } - lrint(arg___x) + 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 llrint(arg___x: f64) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_tablespace_location(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_tablespace_location(arg_fcinfo: FunctionCallInfo) -> Datum; } - llrint(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 lround(arg___x: f64) -> ::std::os::raw::c_long { +pub unsafe fn pg_drop_replication_slot(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_drop_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; } - lround(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 llround(arg___x: f64) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_logical_slot_get_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_changes(arg_fcinfo: FunctionCallInfo) -> Datum; } - llround(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 fdim(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn pg_logical_slot_peek_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_changes(arg_fcinfo: FunctionCallInfo) -> Datum; } - fdim(arg___x, arg___y) + 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 fmax(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 fmax(arg___x: f64, arg___y: f64) -> f64; + fn pg_create_logical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmax(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 fmin(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 fmin(arg___x: f64, arg___y: f64) -> f64; + fn pg_stat_get_snapshot_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmin(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 fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { +pub unsafe fn gtsvector_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 gtsvector_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; } - fma(arg___x, arg___y, arg___z) + 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 scalb(arg___x: f64, arg___n: f64) -> f64 { +pub unsafe fn gin_tsquery_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 gin_tsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalb(arg___x, arg___n) + 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 __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn inet_spg_config(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_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fpclassifyf(arg___value) + inet_spg_config(arg_fcinfo) }) } -pub unsafe fn __signbitf(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 __signbitf(arg___value: f32) -> ::std::os::raw::c_int; + fn inet_spg_choose(arg_fcinfo: FunctionCallInfo) -> Datum; } - __signbitf(arg___value) + inet_spg_choose(arg_fcinfo) }) } -pub unsafe fn __isinff(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 __isinff(arg___value: f32) -> ::std::os::raw::c_int; + fn inet_spg_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isinff(arg___value) + inet_spg_picksplit(arg_fcinfo) }) } -pub unsafe fn __finitef(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 __finitef(arg___value: f32) -> ::std::os::raw::c_int; + fn inet_spg_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __finitef(arg___value) + inet_spg_inner_consistent(arg_fcinfo) }) } -pub unsafe fn __isnanf(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 __isnanf(arg___value: f32) -> ::std::os::raw::c_int; + fn inet_spg_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isnanf(arg___value) + inet_spg_leaf_consistent(arg_fcinfo) }) } -pub unsafe fn __iseqsigf(arg___x: f32, arg___y: 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 __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int; + fn pg_current_logfile(arg_fcinfo: FunctionCallInfo) -> Datum; } - __iseqsigf(arg___x, arg___y) + pg_current_logfile(arg_fcinfo) }) } -pub unsafe fn __issignalingf(arg___value: 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 __issignalingf(arg___value: f32) -> ::std::os::raw::c_int; + fn pg_current_logfile_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; } - __issignalingf(arg___value) + pg_current_logfile_1arg(arg_fcinfo) }) } -pub unsafe fn acosf(arg___x: f32) -> f32 { +pub unsafe fn jsonb_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acosf(arg___x: f32) -> f32; + fn jsonb_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - acosf(arg___x) + 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 asinf(arg___x: f32) -> f32 { +pub unsafe fn jsonb_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asinf(arg___x: f32) -> f32; + fn jsonb_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - asinf(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 atanf(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 atanf(arg___x: f32) -> f32; + fn pg_get_function_arg_default(arg_fcinfo: FunctionCallInfo) -> Datum; } - atanf(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 atan2f(arg___y: f32, 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 atan2f(arg___y: f32, arg___x: f32) -> f32; + fn pg_is_in_recovery(arg_fcinfo: FunctionCallInfo) -> Datum; } - atan2f(arg___y, 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 cosf(arg___x: f32) -> f32 { +pub unsafe fn int8_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cosf(arg___x: f32) -> f32; + fn int8_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - cosf(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 sinf(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 sinf(arg___x: f32) -> f32; + fn pg_backup_start_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - sinf(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 tanf(arg___x: f32) -> f32 { +pub unsafe fn array_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tanf(arg___x: f32) -> f32; + fn array_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum; } - tanf(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 coshf(arg___x: f32) -> f32 { +pub unsafe fn arraycontjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn coshf(arg___x: f32) -> f32; + fn arraycontjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - coshf(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 sinhf(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 sinhf(arg___x: f32) -> f32; + fn pg_last_wal_receive_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; } - sinhf(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 tanhf(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 tanhf(arg___x: f32) -> f32; + fn cash_div_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - tanhf(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 acoshf(arg___x: f32) -> f32 { +pub unsafe fn numeric_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acoshf(arg___x: f32) -> f32; + fn numeric_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - acoshf(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 asinhf(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 asinhf(arg___x: f32) -> f32; + fn pg_read_binary_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - asinhf(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 atanhf(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 atanhf(arg___x: f32) -> f32; + fn pg_opfamily_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - atanhf(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 expf(arg___x: f32) -> f32 { +pub unsafe fn anyrange_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expf(arg___x: f32) -> f32; + fn anyrange_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - expf(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 frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { +pub unsafe fn range_in(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_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - frexpf(arg___x, arg___exponent) + 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 ldexpf(arg___x: f32, arg___exponent: ::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 ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; + fn range_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - ldexpf(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 logf(arg___x: f32) -> f32 { +pub unsafe fn pg_identify_object(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logf(arg___x: f32) -> f32; + fn pg_identify_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - logf(arg___x) + 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 log10f(arg___x: f32) -> f32 { +pub unsafe fn range_constructor3(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log10f(arg___x: f32) -> f32; + fn range_constructor3(arg_fcinfo: FunctionCallInfo) -> Datum; } - log10f(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 modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { +pub unsafe fn pg_column_is_updatable(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 pg_column_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum; } - modff(arg___x, arg___iptr) + 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 expm1f(arg___x: f32) -> f32 { +pub unsafe fn make_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expm1f(arg___x: f32) -> f32; + fn make_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - expm1f(arg___x) + 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 log1pf(arg___x: f32) -> f32 { +pub unsafe fn range_upper(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log1pf(arg___x: f32) -> f32; + fn range_upper(arg_fcinfo: FunctionCallInfo) -> Datum; } - log1pf(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 logbf(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 logbf(arg___x: f32) -> f32; + fn range_lower_inc(arg_fcinfo: FunctionCallInfo) -> Datum; } - logbf(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 exp2f(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 exp2f(arg___x: f32) -> f32; + fn range_lower_inf(arg_fcinfo: FunctionCallInfo) -> Datum; } - exp2f(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 log2f(arg___x: f32) -> f32 { +pub unsafe fn range_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log2f(arg___x: f32) -> f32; + fn range_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - log2f(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 powf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_overlaps(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_overlaps(arg_fcinfo: FunctionCallInfo) -> Datum; } - powf(arg___x, arg___y) + 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 sqrtf(arg___x: f32) -> f32 { +pub unsafe fn range_contains(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sqrtf(arg___x: f32) -> f32; + fn range_contains(arg_fcinfo: FunctionCallInfo) -> Datum; } - sqrtf(arg___x) + 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 hypotf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_contained_by(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_contained_by(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypotf(arg___x, arg___y) + 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 cbrtf(arg___x: f32) -> f32 { +pub unsafe fn range_before(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cbrtf(arg___x: f32) -> f32; + fn range_before(arg_fcinfo: FunctionCallInfo) -> Datum; } - cbrtf(arg___x) + 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 ceilf(arg___x: f32) -> f32 { +pub unsafe fn range_overleft(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ceilf(arg___x: f32) -> f32; + fn range_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; } - ceilf(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 fabsf(arg___x: f32) -> f32 { +pub unsafe fn range_union(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fabsf(arg___x: f32) -> f32; + fn range_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - fabsf(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 floorf(arg___x: f32) -> f32 { +pub unsafe fn range_minus(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn floorf(arg___x: f32) -> f32; + fn range_minus(arg_fcinfo: FunctionCallInfo) -> Datum; } - floorf(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 fmodf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_lt(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_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmodf(arg___x, arg___y) + 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 isinff(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn range_ge(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_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - isinff(arg___value) + range_ge(arg_fcinfo) }) } -pub unsafe fn finitef(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 finitef(arg___value: f32) -> ::std::os::raw::c_int; + fn range_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - finitef(arg___value) + range_gt(arg_fcinfo) }) } -pub unsafe fn dremf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_gist_consistent(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_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - dremf(arg___x, arg___y) + 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 significandf(arg___x: f32) -> f32 { +pub unsafe fn range_gist_compress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn significandf(arg___x: f32) -> f32; + fn range_gist_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - significandf(arg___x) + 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 copysignf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_gist_penalty(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_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; } - copysignf(arg___x, arg___y) + 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 nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { +pub unsafe fn range_gist_same(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 range_gist_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - nanf(arg___tagb) + 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 isnanf(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn int4range_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 int4range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; } - isnanf(arg___value) + int4range_canonical(arg_fcinfo) }) } -pub unsafe fn j0f(arg_arg1: f32) -> f32 { +pub unsafe fn daterange_canonical(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j0f(arg_arg1: f32) -> f32; + fn daterange_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; } - j0f(arg_arg1) + 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 j1f(arg_arg1: f32) -> f32 { +pub unsafe fn timestamp_transform(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j1f(arg_arg1: f32) -> f32; + fn timestamp_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - j1f(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 jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { +pub unsafe fn ginarraytriconsistent(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 ginarraytriconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - jnf(arg_arg1, arg_arg2) + 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 y0f(arg_arg1: f32) -> f32 { +pub unsafe fn int4range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y0f(arg_arg1: f32) -> f32; + fn int4range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; } - y0f(arg_arg1) + 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 y1f(arg_arg1: f32) -> f32 { +pub unsafe fn numrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y1f(arg_arg1: f32) -> f32; + fn numrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; } - y1f(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 ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { +pub unsafe fn int8range_canonical(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 int8range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; } - ynf(arg_arg1, arg_arg2) + 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 erff(arg_arg1: f32) -> f32 { +pub unsafe fn tstzrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erff(arg_arg1: f32) -> f32; + fn tstzrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; } - erff(arg_arg1) + 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 erfcf(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 erfcf(arg_arg1: f32) -> f32; + fn jsonb_each_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - erfcf(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 lgammaf(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 lgammaf(arg_arg1: f32) -> f32; + fn jsonb_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - lgammaf(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 tgammaf(arg_arg1: f32) -> f32 { +pub unsafe fn time_transform(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tgammaf(arg_arg1: f32) -> f32; + fn time_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - tgammaf(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 gammaf(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 gammaf(arg_arg1: f32) -> f32; + fn json_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - gammaf(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 lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { +pub unsafe fn json_array_element_text(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_array_element_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - lgammaf_r(arg_arg1, arg___signgamp) + 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 rintf(arg___x: f32) -> f32 { +pub unsafe fn brin_summarize_new_values(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rintf(arg___x: f32) -> f32; + fn brin_summarize_new_values(arg_fcinfo: FunctionCallInfo) -> Datum; } - rintf(arg___x) + 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 nextafterf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn pg_get_object_address(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextafterf(arg___x: f32, arg___y: f32) -> f32; + fn pg_get_object_address(arg_fcinfo: FunctionCallInfo) -> Datum; } - nextafterf(arg___x, arg___y) + 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 nexttowardf(arg___x: f32, arg___y: u128) -> f32 { +pub unsafe fn json_array_length(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_array_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - nexttowardf(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 remainderf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn json_each(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(arg_fcinfo: FunctionCallInfo) -> Datum; } - remainderf(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 scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { +pub unsafe fn json_populate_record(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_record(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalbnf(arg___x, arg___n) + 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 ilogbf(arg___x: f32) -> ::std::os::raw::c_int { +pub unsafe fn json_typeof(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_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; } - ilogbf(arg___x) + 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 scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { +pub unsafe fn ordered_set_transition(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(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalblnf(arg___x, arg___n) + 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 nearbyintf(arg___x: f32) -> f32 { +pub unsafe fn percentile_disc_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nearbyintf(arg___x: f32) -> f32; + fn percentile_disc_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - nearbyintf(arg___x) + 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 roundf(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 roundf(arg___x: f32) -> f32; + fn percentile_cont_interval_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - roundf(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 truncf(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 truncf(arg___x: f32) -> f32; + fn percentile_cont_float8_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - truncf(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 remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { +pub unsafe fn mode_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 mode_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - remquof(arg___x, arg___y, arg___quo) + 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 lrintf(arg___x: f32) -> ::std::os::raw::c_long { +pub unsafe fn hypothetical_percent_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_percent_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - lrintf(arg___x) + 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 llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { +pub unsafe fn hypothetical_dense_rank_final(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 hypothetical_dense_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - llrintf(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 lroundf(arg___x: f32) -> ::std::os::raw::c_long { +pub unsafe fn timestamp_zone_transform(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 timestamp_zone_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - lroundf(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 llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { +pub unsafe fn brin_summarize_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_summarize_range(arg_fcinfo: FunctionCallInfo) -> Datum; } - llroundf(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 fdimf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn spg_quad_config(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_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - fdimf(arg___x, arg___y) + 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 fmaxf(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 fmaxf(arg___x: f32, arg___y: f32) -> f32; + fn spg_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmaxf(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 fminf(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 fminf(arg___x: f32, arg___y: f32) -> f32; + fn spg_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - fminf(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 fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { +pub unsafe fn spg_kd_choose(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_choose(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmaf(arg___x, arg___y, arg___z) + 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 scalbf(arg___x: f32, arg___n: f32) -> f32 { +pub unsafe fn spg_kd_inner_consistent(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_kd_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalbf(arg___x, arg___n) + 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 __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn spg_text_choose(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_choose(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fpclassifyl(arg___value) + spg_text_choose(arg_fcinfo) }) } -pub unsafe fn __signbitl(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 __signbitl(arg___value: u128) -> ::std::os::raw::c_int; + fn spg_text_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - __signbitl(arg___value) + spg_text_picksplit(arg_fcinfo) }) } -pub unsafe fn __isinfl(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 __isinfl(arg___value: u128) -> ::std::os::raw::c_int; + fn spg_text_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isinfl(arg___value) + spg_text_inner_consistent(arg_fcinfo) }) } -pub unsafe fn __finitel(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 __finitel(arg___value: u128) -> ::std::os::raw::c_int; + fn spg_text_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __finitel(arg___value) + spg_text_leaf_consistent(arg_fcinfo) }) } -pub unsafe fn __isnanl(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 __isnanl(arg___value: u128) -> ::std::os::raw::c_int; + fn pg_sequence_last_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isnanl(arg___value) + pg_sequence_last_value(arg_fcinfo) }) } -pub unsafe fn __iseqsigl(arg___x: u128, arg___y: 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 __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int; + fn jsonb_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - __iseqsigl(arg___x, arg___y) + jsonb_ne(arg_fcinfo) }) } -pub unsafe fn __issignalingl(arg___value: 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 __issignalingl(arg___value: u128) -> ::std::os::raw::c_int; + fn jsonb_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __issignalingl(arg___value) + jsonb_lt(arg_fcinfo) }) } -pub unsafe fn acosl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acosl(arg___x: u128) -> u128; + fn jsonb_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - acosl(arg___x) + 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 asinl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asinl(arg___x: u128) -> u128; + fn jsonb_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - asinl(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 atanl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atanl(arg___x: u128) -> u128; + fn jsonb_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - atanl(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 atan2l(arg___y: u128, arg___x: u128) -> u128 { +pub unsafe fn jsonb_contains(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_contains(arg_fcinfo: FunctionCallInfo) -> Datum; } - atan2l(arg___y, 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 cosl(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 cosl(arg___x: u128) -> u128; + fn jsonb_exists_any(arg_fcinfo: FunctionCallInfo) -> Datum; } - cosl(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 sinl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_contained(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sinl(arg___x: u128) -> u128; + fn jsonb_contained(arg_fcinfo: FunctionCallInfo) -> Datum; } - sinl(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 tanl(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 tanl(arg___x: u128) -> u128; + fn array_agg_array_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - tanl(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 coshl(arg___x: u128) -> u128 { +pub unsafe fn inet_merge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn coshl(arg___x: u128) -> u128; + fn inet_merge(arg_fcinfo: FunctionCallInfo) -> Datum; } - coshl(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 sinhl(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 sinhl(arg___x: u128) -> u128; + fn inet_same_family(arg_fcinfo: FunctionCallInfo) -> Datum; } - sinhl(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 tanhl(arg___x: u128) -> u128 { +pub unsafe fn regnamespacein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tanhl(arg___x: u128) -> u128; + fn regnamespacein(arg_fcinfo: FunctionCallInfo) -> Datum; } - tanhl(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 acoshl(arg___x: u128) -> u128 { +pub unsafe fn to_regnamespace(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acoshl(arg___x: u128) -> u128; + fn to_regnamespace(arg_fcinfo: FunctionCallInfo) -> Datum; } - acoshl(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 asinhl(arg___x: u128) -> u128 { +pub unsafe fn regnamespacesend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asinhl(arg___x: u128) -> u128; + fn regnamespacesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - asinhl(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 atanhl(arg___x: u128) -> u128 { +pub unsafe fn regroleout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atanhl(arg___x: u128) -> u128; + fn regroleout(arg_fcinfo: FunctionCallInfo) -> Datum; } - atanhl(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 expl(arg___x: u128) -> u128 { +pub unsafe fn regrolerecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expl(arg___x: u128) -> u128; + fn regrolerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - expl(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 frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn regrolein(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 regrolein(arg_fcinfo: FunctionCallInfo) -> Datum; } - frexpl(arg___x, arg___exponent) + 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 ldexpl(arg___x: u128, arg___exponent: ::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 ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; + fn brin_inclusion_add_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - ldexpl(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 logl(arg___x: u128) -> u128 { +pub unsafe fn brin_inclusion_union(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logl(arg___x: u128) -> u128; + fn brin_inclusion_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - logl(arg___x) + 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 log10l(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log10l(arg___x: u128) -> u128; + fn macaddr8_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - log10l(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 modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { +pub unsafe fn macaddr8_eq(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_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - modfl(arg___x, arg___iptr) + 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 expm1l(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expm1l(arg___x: u128) -> u128; + fn macaddr8_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - expm1l(arg___x) + 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 log1pl(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log1pl(arg___x: u128) -> u128; + fn macaddr8_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - log1pl(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 logbl(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logbl(arg___x: u128) -> u128; + fn macaddr8_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - logbl(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 exp2l(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exp2l(arg___x: u128) -> u128; + fn macaddr8_and(arg_fcinfo: FunctionCallInfo) -> Datum; } - exp2l(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 log2l(arg___x: u128) -> u128 { +pub unsafe fn macaddrtomacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log2l(arg___x: u128) -> u128; + fn macaddrtomacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum; } - log2l(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 powl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn macaddr8_set7bit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn powl(arg___x: u128, arg___y: u128) -> u128; + fn macaddr8_set7bit(arg_fcinfo: FunctionCallInfo) -> Datum; } - powl(arg___x, arg___y) + 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 sqrtl(arg___x: u128) -> u128 { +pub unsafe fn ts_headline_jsonb_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sqrtl(arg___x: u128) -> u128; + fn ts_headline_jsonb_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - sqrtl(arg___x) + 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 hypotl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn ts_headline_jsonb(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_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypotl(arg___x, arg___y) + 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 cbrtl(arg___x: u128) -> u128 { +pub unsafe fn ts_headline_json_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cbrtl(arg___x: u128) -> u128; + fn ts_headline_json_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - cbrtl(arg___x) + 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 ceill(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 ceill(arg___x: u128) -> u128; + fn ts_headline_json(arg_fcinfo: FunctionCallInfo) -> Datum; } - ceill(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 fabsl(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 fabsl(arg___x: u128) -> u128; + fn json_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; } - fabsl(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 floorl(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 floorl(arg___x: u128) -> u128; + fn json_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - floorl(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 fmodl(arg___x: u128, arg___y: 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 fmodl(arg___x: u128, arg___y: u128) -> u128; + fn pg_event_trigger_table_rewrite_reason(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmodl(arg___x, arg___y) + 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 isinfl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn phraseto_tsquery(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 phraseto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; } - isinfl(arg___value) + phraseto_tsquery(arg_fcinfo) }) } -pub unsafe fn finitel(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 finitel(arg___value: u128) -> ::std::os::raw::c_int; + fn tsquery_phrase(arg_fcinfo: FunctionCallInfo) -> Datum; } - finitel(arg___value) + tsquery_phrase(arg_fcinfo) }) } -pub unsafe fn dreml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn tsquery_phrase_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dreml(arg___x: u128, arg___y: u128) -> u128; + fn tsquery_phrase_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - dreml(arg___x, arg___y) + 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 significandl(arg___x: u128) -> u128 { +pub unsafe fn spg_box_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn significandl(arg___x: u128) -> u128; + fn spg_box_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - significandl(arg___x) + 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 copysignl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn spg_box_quad_picksplit(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_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - copysignl(arg___x, arg___y) + 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 nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { +pub unsafe fn spg_box_quad_leaf_consistent(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 spg_box_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - nanl(arg___tagb) + 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 isnanl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn pg_replication_origin_drop(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_drop(arg_fcinfo: FunctionCallInfo) -> Datum; } - isnanl(arg___value) + pg_replication_origin_drop(arg_fcinfo) }) } -pub unsafe fn j0l(arg_arg1: u128) -> u128 { +pub unsafe fn pg_replication_origin_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j0l(arg_arg1: u128) -> u128; + fn pg_replication_origin_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - j0l(arg_arg1) + 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 j1l(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 j1l(arg_arg1: u128) -> u128; + fn pg_replication_origin_session_reset(arg_fcinfo: FunctionCallInfo) -> Datum; } - j1l(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 jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: 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 jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn pg_replication_origin_session_progress(arg_fcinfo: FunctionCallInfo) -> Datum; } - jnl(arg_arg1, arg_arg2) + 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 y0l(arg_arg1: 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 y0l(arg_arg1: u128) -> u128; + fn pg_replication_origin_xact_reset(arg_fcinfo: FunctionCallInfo) -> Datum; } - y0l(arg_arg1) + 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 y1l(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 y1l(arg_arg1: u128) -> u128; + fn pg_replication_origin_progress(arg_fcinfo: FunctionCallInfo) -> Datum; } - y1l(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 ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { +pub unsafe fn pg_stat_get_subscription(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_stat_get_subscription(arg_fcinfo: FunctionCallInfo) -> Datum; } - ynl(arg_arg1, arg_arg2) + 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 erfl(arg_arg1: u128) -> u128 { +pub unsafe fn pg_relation_is_publishable(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfl(arg_arg1: u128) -> u128; + fn pg_relation_is_publishable(arg_fcinfo: FunctionCallInfo) -> Datum; } - erfl(arg_arg1) + 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 erfcl(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 erfcl(arg_arg1: u128) -> u128; + fn parse_bool(arg_value: *const ::std::os::raw::c_char, arg_result: *mut bool) -> bool; } - erfcl(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 lgammal(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 lgammal(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, + ); } - lgammal(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 tgammal(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 tgammal(arg_arg1: u128) -> u128; + fn errdomainconstraint( + arg_datatypeOid: Oid, + arg_conname: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - tgammal(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 gammal(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 gammal(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; } - gammal(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 lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> 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 lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; + fn namecpy(arg_n1: Name, arg_n2: Name) -> ::std::os::raw::c_int; } - lgammal_r(arg_arg1, arg___signgamp) + 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 rintl(arg___x: u128) -> 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 rintl(arg___x: u128) -> u128; + fn namestrcmp( + arg_name: Name, + arg_str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - rintl(arg___x) + 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 nextafterl(arg___x: u128, arg___y: 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 nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn pg_itoa(arg_i: int16, arg_a: *mut ::std::os::raw::c_char); } - nextafterl(arg___x, arg___y) + 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 nexttowardl(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 nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn pg_lltoa(arg_ll: int64, arg_a: *mut ::std::os::raw::c_char); } - nexttowardl(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 remainderl(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 remainderl(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; } - remainderl(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 scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +extern "C" { + pub static mut extra_float_digits: ::std::os::raw::c_int; +} +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)] @@ -91588,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( @@ -91646,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( @@ -91706,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( @@ -91735,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( @@ -92220,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) { @@ -92444,6 +78850,7 @@ pub struct RangeType { pub rangetypid: Oid, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct RangeBound { pub val: Datum, pub infinite: bool, @@ -92797,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, } @@ -92850,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 { @@ -92862,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 { @@ -92874,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 { @@ -92886,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 { @@ -92898,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 { @@ -92910,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 { @@ -92922,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 { @@ -92934,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 { @@ -92946,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 { @@ -92958,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 { @@ -92970,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 { @@ -92982,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 { @@ -92994,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 { @@ -93006,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 { @@ -93018,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 { @@ -93030,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 { @@ -93042,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 { @@ -93054,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 { @@ -93066,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 { @@ -93078,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 { @@ -93090,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 { @@ -93102,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 { @@ -93114,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 { @@ -93126,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 { @@ -93138,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 { @@ -93150,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 { @@ -93162,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 { @@ -93174,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 { @@ -93186,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 { @@ -93198,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 { @@ -93210,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 { @@ -93222,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 { @@ -93234,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 { @@ -93246,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 { @@ -93258,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 { @@ -93270,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 { @@ -93282,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 { @@ -93294,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 { @@ -93306,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 { @@ -93318,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 { @@ -93330,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 { @@ -93342,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 { @@ -93354,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 { @@ -93366,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 { @@ -93378,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 { @@ -93390,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 { @@ -93402,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 { @@ -93414,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 { @@ -93426,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 { @@ -93438,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 { @@ -93450,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 { @@ -93462,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 { @@ -93474,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 { @@ -93486,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 { @@ -93498,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 { @@ -93510,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 { @@ -93522,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 { @@ -93534,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 { @@ -93546,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 { @@ -93558,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 { @@ -93570,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 { @@ -93582,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 { @@ -93594,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 { @@ -93606,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 { @@ -93618,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 { @@ -93630,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 { @@ -93642,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 { @@ -93654,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 { @@ -93666,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 { @@ -93678,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 { @@ -93690,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 { @@ -93702,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 { @@ -93714,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 { @@ -93726,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 { @@ -93738,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 { @@ -93750,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 { @@ -93762,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 { @@ -93774,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 { @@ -93786,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 { @@ -93798,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 { @@ -93810,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 { @@ -93822,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 { @@ -93834,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 { @@ -93846,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 { @@ -93858,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 { @@ -93870,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 { @@ -93882,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 { @@ -93894,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 { @@ -93906,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 { @@ -93918,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 { @@ -93930,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 { @@ -93942,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 { @@ -93954,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 { @@ -93966,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 { @@ -93978,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 { @@ -93990,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 { @@ -94002,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 { @@ -94014,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 { @@ -94026,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 { @@ -94038,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 { @@ -94050,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 { @@ -94062,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 { @@ -94074,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 { @@ -94086,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 { @@ -94098,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 { @@ -94110,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 { @@ -94122,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 { @@ -94134,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 { @@ -94146,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 { @@ -94158,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 { @@ -94170,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 { @@ -94182,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 { @@ -94194,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 { @@ -94206,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 { @@ -94218,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 { @@ -94230,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 { @@ -94242,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 { @@ -94254,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 { @@ -94266,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 { @@ -94278,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 { @@ -94290,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 { @@ -94302,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 { @@ -94314,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 { @@ -94326,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 { @@ -94338,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 { @@ -94350,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 { @@ -94362,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 { @@ -94374,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 { @@ -94386,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 { @@ -94398,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 { @@ -94410,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 { @@ -94422,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 { @@ -94434,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 { @@ -94446,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 { @@ -94458,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 { @@ -94470,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 { @@ -94482,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 { @@ -94494,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 { @@ -94506,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 { @@ -94518,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 { @@ -94530,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 { @@ -94542,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 { @@ -94554,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 { @@ -94566,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 { @@ -94578,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 { @@ -94590,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 { @@ -94602,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 { @@ -94614,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 { @@ -94626,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 { @@ -94638,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 { @@ -94650,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 { @@ -94662,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 { @@ -94674,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 { @@ -94686,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 { @@ -94698,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 { @@ -94710,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 { @@ -94722,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 { @@ -94734,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 { @@ -94746,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 { @@ -94758,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 { @@ -94770,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 { @@ -94782,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 { @@ -94794,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 { @@ -94806,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 { @@ -94818,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 { @@ -94830,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 { @@ -94842,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 { @@ -94854,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 { @@ -94866,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 { @@ -94878,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 { @@ -94890,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 { @@ -94902,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 { @@ -94914,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 { @@ -94926,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 { @@ -94938,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 { @@ -94950,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 { @@ -94962,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 { @@ -94974,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 { @@ -94986,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 { @@ -94998,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 { @@ -95010,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 { @@ -95022,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 { @@ -95034,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 { @@ -95046,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 { @@ -95058,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 { @@ -95070,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 { @@ -95082,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 { @@ -95094,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 { @@ -95106,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 { @@ -95118,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 { @@ -95130,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 { @@ -95142,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 { @@ -95154,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 { @@ -95166,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 { @@ -95178,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 { @@ -95190,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 { @@ -95202,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 { @@ -95214,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 { @@ -95226,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 { @@ -95238,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 { @@ -95250,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 { @@ -95262,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 { @@ -95274,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 { @@ -95286,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 { @@ -95298,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 { @@ -95310,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 { @@ -95322,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 { @@ -95334,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 { @@ -95346,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 { @@ -95358,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 { @@ -95370,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 { @@ -95382,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 { @@ -95394,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 { @@ -95406,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 { @@ -95418,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 { @@ -95430,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 { @@ -95442,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 { @@ -95454,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 { @@ -95466,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 { @@ -95478,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 { @@ -95490,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 { @@ -95502,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 { @@ -95514,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 { @@ -95526,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 { @@ -95538,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 { @@ -95550,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 { @@ -95562,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 { @@ -95574,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 { @@ -95586,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 { @@ -95598,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 { @@ -95610,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 { @@ -95622,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 { @@ -95634,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 { @@ -95646,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 { @@ -95658,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 { @@ -95670,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 { @@ -95682,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 { @@ -95694,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 { @@ -95706,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 { @@ -95718,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 { @@ -95730,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 { @@ -95742,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 { @@ -95754,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 { @@ -95766,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 { @@ -95778,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 { @@ -95790,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 { @@ -95802,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 { @@ -95814,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 { @@ -95826,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 { @@ -95838,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 { @@ -95850,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 { @@ -95862,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 { @@ -95874,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 { @@ -95886,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 { @@ -95898,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 { @@ -95910,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 { @@ -95922,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 { @@ -95934,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 { @@ -95946,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 { @@ -95958,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 { @@ -95970,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 { @@ -95982,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 { @@ -95994,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 { @@ -96006,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 { @@ -96018,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 { @@ -96030,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 { @@ -96042,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 { @@ -96054,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 { @@ -96066,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 { @@ -96078,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 { @@ -96090,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 { @@ -96102,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 { @@ -96114,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 { @@ -96126,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 { @@ -96138,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 { @@ -96150,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 { @@ -96162,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 { @@ -96174,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 { @@ -96186,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 { @@ -96198,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 { @@ -96210,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 { @@ -96222,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 { @@ -96234,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 { @@ -96246,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 { @@ -96258,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 { @@ -96270,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 { @@ -96282,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 { @@ -96294,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 { @@ -96306,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 { @@ -96318,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 { @@ -96330,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 { @@ -96342,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 { @@ -96354,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 { @@ -96366,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 { @@ -96378,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 { @@ -96390,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 { @@ -96402,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 { @@ -96414,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 { @@ -96426,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 { @@ -96438,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 { @@ -96450,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 { @@ -96462,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 { @@ -96474,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 { @@ -96486,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 { @@ -96498,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 { @@ -96510,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 { @@ -96522,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 { @@ -96534,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 { @@ -96546,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 { @@ -96558,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 { @@ -96570,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 { @@ -96582,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 { @@ -96594,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 { @@ -96606,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 { @@ -96618,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 { @@ -96630,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 { @@ -96642,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 { @@ -96654,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 { @@ -96666,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 { @@ -96678,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 { @@ -96690,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 { @@ -96702,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 { @@ -96714,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 { @@ -96726,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 { @@ -96738,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 { @@ -96750,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 { @@ -96762,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 { @@ -96774,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 { @@ -96786,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 { @@ -96798,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 { @@ -96810,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 { @@ -96822,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 { @@ -96834,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 { @@ -96846,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 { @@ -96858,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 { @@ -96870,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 { @@ -96882,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 { @@ -96894,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 { @@ -96906,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 { @@ -96918,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 { @@ -96930,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 { @@ -96942,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 { @@ -96954,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 { @@ -96966,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 { @@ -96978,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 { @@ -96990,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 { @@ -97002,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 { @@ -97014,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 { @@ -97026,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 { @@ -97038,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 { @@ -97050,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 { @@ -97062,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 { @@ -97074,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 { @@ -97086,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 { @@ -97098,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 { @@ -97110,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 { @@ -97122,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 { @@ -97134,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 { @@ -97146,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 { @@ -97158,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 { @@ -97170,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 { @@ -97182,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 { @@ -97194,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 { @@ -97206,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 { @@ -97218,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 { @@ -97230,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 { @@ -97242,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 { @@ -97254,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 { @@ -97266,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 { @@ -97278,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 { @@ -97290,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 { @@ -97302,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 { @@ -97314,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 { @@ -97326,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 { @@ -97338,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 { @@ -97350,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 { @@ -97362,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 { @@ -97374,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 { @@ -97386,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 { @@ -97398,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 { @@ -97410,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 { @@ -97422,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 { @@ -97434,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 { @@ -97446,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 { @@ -97458,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 { @@ -97470,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 { @@ -97482,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 5c0d9640e..2dd584cf3 100644 --- a/pgx-pg-sys/src/pg11.rs +++ b/pgx-pg-sys/src/pg11.rs @@ -22,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 } @@ -35,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; @@ -55,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; } } @@ -73,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); } } @@ -365,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 = 36; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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; @@ -516,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"; @@ -770,453 +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 SOL_MPTCP: u32 = 284; -pub const SOL_MCTP: u32 = 285; -pub const SOL_SMC: u32 = 286; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -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_TXREHASH: u32 = 74; -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.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; @@ -1334,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; @@ -1439,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; @@ -1614,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; @@ -1648,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; @@ -1766,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; @@ -1780,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; @@ -1802,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; @@ -1863,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; @@ -3080,137 +1992,17 @@ 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)] @@ -3271,11599 +2063,2020 @@ 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_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 pclose(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; } - pclose(arg___stream) + pg_strsignal(arg_signum) }) } -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 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 popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *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, + ); } - popen(arg___command, arg___modes) + simple_prompt(arg_prompt, arg_destination, arg_destlen, arg_echo) }) } -pub unsafe fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +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 ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; } - ctermid(arg___s) + pclose_check(arg_stream) }) } -pub unsafe fn flockfile(arg___stream: *mut FILE) { +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 flockfile(arg___stream: *mut FILE); + fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; } - flockfile(arg___stream) + rmtree(arg_path, arg_rmtopdir) }) } -pub unsafe fn ftrylockfile(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 ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; } - ftrylockfile(arg___stream) + pg_erand48(arg_xseed) }) } -pub unsafe fn funlockfile(arg___stream: *mut FILE) { +pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn funlockfile(arg___stream: *mut FILE); + fn pg_lrand48() -> ::std::os::raw::c_long; } - funlockfile(arg___stream) + pg_lrand48() }) } -pub unsafe fn __uflow(arg_arg1: *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 __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int; + fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } - __uflow(arg_arg1) + pg_jrand48(arg_xseed) }) } -pub unsafe fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, -) -> ::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 __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pg_srand48(arg_seed: ::std::os::raw::c_long); } - __overflow(arg_arg1, arg_arg2) + pg_srand48(arg_seed) }) } -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 fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ctype_get_mb_cur_max() -> usize; + fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - __ctype_get_mb_cur_max() + fls(arg_mask) }) } -pub unsafe fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64 { +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 atof(arg___nptr: *const ::std::os::raw::c_char) -> f64; + fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, + ) -> ::std::os::raw::c_int; } - atof(arg___nptr) + getpeereid(arg_sock, arg_uid, arg_gid) }) } -pub unsafe fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::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 atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::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; } - atoi(arg___nptr) + strlcat(arg_dst, arg_src, arg_siz) }) } -pub unsafe fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { +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 atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; + 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; } - atol(arg___nptr) + strlcpy(arg_dst, arg_src, arg_siz) }) } -pub unsafe fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::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 atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::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, + >, + ); } - atoll(arg___nptr) + pg_qsort(arg_base, arg_nel, arg_elsize, arg_cmp) }) } -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_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 strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f64; + 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; } - strtod(arg___nptr, arg___endptr) + pg_qsort_strcmp(arg_a, arg_b) }) } -pub unsafe fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f32 { +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 strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f32; + 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, + ); } - strtof(arg___nptr, arg___endptr) + qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) }) } -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 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 strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> u128; + fn pg_get_encoding_from_locale( + arg_ctype: *const ::std::os::raw::c_char, + arg_write_message: bool, + ) -> ::std::os::raw::c_int; } - strtold(arg___nptr, arg___endptr) + pg_get_encoding_from_locale(arg_ctype, arg_write_message) }) } -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 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 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 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; } - strtol(arg___nptr, arg___endptr, arg___base) + inet_net_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) }) } -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 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 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 pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool; } - strtoul(arg___nptr, arg___endptr, arg___base) + pg_strong_random(arg_buf, arg_len) }) } -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_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 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_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - strtoq(arg___nptr, arg___endptr, arg___base) + pg_check_dir(arg_dir) }) } -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_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 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_mkdir_p( + arg_path: *mut ::std::os::raw::c_char, + arg_omode: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - strtouq(arg___nptr, arg___endptr, arg___base) + pg_mkdir_p(arg_path, arg_omode) }) } -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 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 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 pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc; } - strtoll(arg___nptr, arg___endptr, arg___base) + pqsignal(arg_signo, arg_func) }) } -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 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 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 escape_single_quotes_ascii( + arg_src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - strtoull(arg___nptr, arg___endptr, arg___base) + escape_single_quotes_ascii(arg_src) }) } -pub unsafe fn l64a(arg___n: ::std::os::raw::c_long) -> *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 l64a(arg___n: ::std::os::raw::c_long) -> *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; } - l64a(arg___n) + wait_result_to_str(arg_exit_status) }) } -pub unsafe fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::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 a64l(arg___s: *const ::std::os::raw::c_char) -> ::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; } - a64l(arg___s) + wait_result_is_signal(arg_exit_status, arg_signum) }) } -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, +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 timespec { - pub tv_sec: __time_t, - pub tv_nsec: __syscall_slong_t, +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 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 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 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 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; } - select( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - ) + errstart(arg_elevel, arg_filename, arg_lineno, arg_funcname, arg_domain) }) } -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 errfinish(arg_dummy: ::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 errfinish(arg_dummy: ::std::os::raw::c_int); } - pselect( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - arg___sigmask, - ) + errfinish(arg_dummy) }) } -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 errcode(arg_sqlerrcode: ::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 errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - random() + errcode(arg_sqlerrcode) }) } -pub unsafe fn srandom(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 srandom(arg___seed: ::std::os::raw::c_uint); + fn errcode_for_file_access() -> ::std::os::raw::c_int; } - srandom(arg___seed) + errcode_for_file_access() }) } -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 errcode_for_socket_access() -> ::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 errcode_for_socket_access() -> ::std::os::raw::c_int; } - initstate(arg___seed, arg___statebuf, arg___statelen) + errcode_for_socket_access() }) } -pub unsafe fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +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 setstate(arg___statebuf: *mut ::std::os::raw::c_char) - -> *mut ::std::os::raw::c_char; + fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - setstate(arg___statebuf) + errmsg(arg_fmt) }) } -#[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 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 random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, - ) -> ::std::os::raw::c_int; + fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - random_r(arg___buf, arg___result) + errmsg_internal(arg_fmt) }) } -pub unsafe fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, +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 srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, + 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; } - srandom_r(arg___seed, arg___buf) + errmsg_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -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 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 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 errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - initstate_r(arg___seed, arg___statebuf, arg___statelen, arg___buf) + errdetail(arg_fmt) }) } -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 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 setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; + fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - setstate_r(arg___statebuf, arg___buf) + errdetail_internal(arg_fmt) }) } -pub unsafe fn rand() -> ::std::os::raw::c_int { +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 rand() -> ::std::os::raw::c_int; + fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - rand() + errdetail_log(arg_fmt) }) } -pub unsafe fn srand(arg___seed: ::std::os::raw::c_uint) { +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 srand(arg___seed: ::std::os::raw::c_uint); + 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; } - srand(arg___seed) + errdetail_log_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub unsafe fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int { +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 rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; + 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; } - rand_r(arg___seed) + errdetail_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub unsafe fn drand48() -> f64 { +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 drand48() -> f64; + fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - drand48() + errhint(arg_fmt) }) } -pub unsafe fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> 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 erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64; + fn set_errcontext_domain( + arg_domain: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - erand48(arg___xsubi) + set_errcontext_domain(arg_domain) }) } -pub unsafe fn lrand48() -> ::std::os::raw::c_long { +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 lrand48() -> ::std::os::raw::c_long; + fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - lrand48() + errcontext_msg(arg_fmt) }) } -pub unsafe fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { +pub unsafe fn errhidestmt(arg_hide_stmt: bool) -> ::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 errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int; } - nrand48(arg___xsubi) + errhidestmt(arg_hide_stmt) }) } -pub unsafe fn mrand48() -> ::std::os::raw::c_long { +pub unsafe fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mrand48() -> ::std::os::raw::c_long; + fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int; } - mrand48() + errhidecontext(arg_hide_ctx) }) } -pub unsafe fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { +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 jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; + fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - jrand48(arg___xsubi) + errfunction(arg_funcname) }) } -pub unsafe fn srand48(arg___seedval: ::std::os::raw::c_long) { +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 srand48(arg___seedval: ::std::os::raw::c_long); + fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - srand48(arg___seedval) + errposition(arg_cursorpos) }) } -pub unsafe fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, -) -> *mut ::std::os::raw::c_ushort { +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 seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, - ) -> *mut ::std::os::raw::c_ushort; + fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - seed48(arg___seed16v) + internalerrposition(arg_cursorpos) }) } -pub unsafe fn lcong48(arg___param: *mut ::std::os::raw::c_ushort) { +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 lcong48(arg___param: *mut ::std::os::raw::c_ushort); + fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - lcong48(arg___param) + internalerrquery(arg_query) }) } -#[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 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 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, + fn err_generic_string( + arg_field: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - erand48_r(arg___xsubi, arg___buffer, arg___result) + err_generic_string(arg_field, arg_str_) }) } -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 geterrcode() -> ::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 geterrcode() -> ::std::os::raw::c_int; } - lrand48_r(arg___buffer, arg___result) + geterrcode() }) } -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 geterrposition() -> ::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 geterrposition() -> ::std::os::raw::c_int; } - nrand48_r(arg___xsubi, arg___buffer, arg___result) + geterrposition() }) } -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 getinternalerrposition() -> ::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 getinternalerrposition() -> ::std::os::raw::c_int; } - mrand48_r(arg___buffer, arg___result) + getinternalerrposition() }) } -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 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 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 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, + ); } - jrand48_r(arg___xsubi, arg___buffer, arg___result) + elog_start(arg_filename, arg_lineno, arg_funcname) }) } -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 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 srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; + fn elog_finish( + arg_elevel: ::std::os::raw::c_int, + arg_fmt: *const ::std::os::raw::c_char, + ); } - srand48_r(arg___seedval, arg___buffer) + elog_finish(arg_elevel, arg_fmt) }) } -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 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 seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::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, + ); } - seed48_r(arg___seed16v, arg___buffer) + pre_format_elog_string(arg_errnumber, arg_domain) }) } -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 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 lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; + fn format_elog_string( + arg_fmt: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - lcong48_r(arg___param, arg___buffer) + format_elog_string(arg_fmt) }) } -pub unsafe fn arc4random() -> __uint32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn arc4random() -> __uint32_t; - } - arc4random() - }) +#[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 arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize); +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() } - arc4random_buf(arg___buf, arg___size) - }) + } } -pub unsafe fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t; - } - arc4random_uniform(arg___upper_bound) - }) +extern "C" { + pub static mut error_context_stack: *mut ErrorContextCallback; } -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) - }) +extern "C" { + pub static mut PG_exception_stack: *mut sigjmp_buf; } -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) - }) +#[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 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; +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() } - realloc(arg___ptr, arg___size) - }) + } } -pub unsafe fn free(arg___ptr: *mut ::std::os::raw::c_void) { +pub unsafe fn EmitErrorReport() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn free(arg___ptr: *mut ::std::os::raw::c_void); + fn EmitErrorReport(); } - free(arg___ptr) + EmitErrorReport() }) } -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 CopyErrorData() -> *mut ErrorData { 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 CopyErrorData() -> *mut ErrorData; } - reallocarray(arg___ptr, arg___nmemb, arg___size) + CopyErrorData() }) } -pub unsafe fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { +pub unsafe fn FreeErrorData(arg_edata: *mut ErrorData) { 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 FreeErrorData(arg_edata: *mut ErrorData); } - alloca(arg___size) + FreeErrorData(arg_edata) }) } -pub unsafe fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void { +pub unsafe fn FlushErrorState() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void; + fn FlushErrorState(); } - valloc(arg___size) + FlushErrorState() }) } -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 ReThrowError(arg_edata: *mut ErrorData) { 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 ReThrowError(arg_edata: *mut ErrorData); } - posix_memalign(arg___memptr, arg___alignment, arg___size) + ReThrowError(arg_edata) }) } -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 ThrowErrorData(arg_edata: *mut ErrorData) { 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 ThrowErrorData(arg_edata: *mut ErrorData); } - aligned_alloc(arg___alignment, arg___size) + ThrowErrorData(arg_edata) }) } -pub unsafe fn abort() { +pub unsafe fn GetErrorContextStack() -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abort(); + fn GetErrorContextStack() -> *mut ::std::os::raw::c_char; } - abort() + GetErrorContextStack() }) } -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 type emit_log_hook_type = ::std::option::Option; +extern "C" { + pub static mut emit_log_hook: emit_log_hook_type; } -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 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 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) - }) +extern "C" { + pub static mut Log_line_prefix: *mut ::std::os::raw::c_char; } -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) - }) +extern "C" { + pub static mut Log_destination: ::std::os::raw::c_int; } -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) - }) +extern "C" { + pub static mut Log_destination_string: *mut ::std::os::raw::c_char; } -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) - }) +extern "C" { + pub static mut syslog_sequence_numbers: bool; } -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) - }) +extern "C" { + pub static mut syslog_split_messages: bool; } -pub unsafe fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn DebugFileOpen() { 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 DebugFileOpen(); } - putenv(arg___string) + DebugFileOpen() }) } -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 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 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 unpack_sql_state( + arg_sql_state: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - setenv(arg___name, arg___value, arg___replace) + unpack_sql_state(arg_sql_state) }) } -pub unsafe fn unsetenv(arg___name: *const ::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 unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn in_error_recursion_trouble() -> bool; } - unsetenv(arg___name) + in_error_recursion_trouble() }) } -pub unsafe fn clearenv() -> ::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 clearenv() -> ::std::os::raw::c_int; + fn set_syslog_parameters( + arg_ident: *const ::std::os::raw::c_char, + arg_facility: ::std::os::raw::c_int, + ); } - clearenv() + set_syslog_parameters(arg_ident, arg_facility) }) } -pub unsafe fn mktemp(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 mktemp(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); } - mktemp(arg___template) + write_stderr(arg_fmt) }) } -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 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 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; +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() } - 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) - }) +extern "C" { + pub static mut CurrentMemoryContext: MemoryContext; } -pub unsafe fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +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 system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn MemoryContextAlloc( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - system(arg___command) + MemoryContextAlloc(arg_context, arg_size) }) } -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 { +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 realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn MemoryContextAllocZero( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - realpath(arg___name, arg___resolved) + MemoryContextAllocZero(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 MemoryContextAllocZeroAligned( + 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 MemoryContextAllocZeroAligned( + arg_context: MemoryContext, + arg_size: Size, ) -> *mut ::std::os::raw::c_void; } - bsearch(arg___key, arg___base, arg___nmemb, arg___size, arg___compar) + MemoryContextAllocZeroAligned(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 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 qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, - ); + fn MemoryContextAllocExtended( + arg_context: MemoryContext, + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - qsort(arg___base, arg___nmemb, arg___size, arg___compar) + MemoryContextAllocExtended(arg_context, arg_size, arg_flags) }) } -pub unsafe fn abs(arg___x: ::std::os::raw::c_int) -> ::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 abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; } - abs(arg___x) + palloc(arg_size) }) } -pub unsafe fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long { +pub unsafe fn palloc0(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 palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; } - labs(arg___x) + palloc0(arg_size) }) } -pub unsafe fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong { +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 llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; + fn palloc_extended( + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - llabs(arg___x) + palloc_extended(arg_size, arg_flags) }) } -pub unsafe fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) -> div_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 div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) - -> div_t; + fn repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - div(arg___numer, arg___denom) + repalloc(arg_pointer, arg_size) }) } -pub unsafe fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, -) -> ldiv_t { +pub unsafe fn pfree(arg_pointer: *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 pfree(arg_pointer: *mut ::std::os::raw::c_void); } - ldiv(arg___numer, arg___denom) + pfree(arg_pointer) }) } -pub unsafe fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, -) -> lldiv_t { +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 lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, - ) -> lldiv_t; + fn MemoryContextAllocHuge( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - lldiv(arg___numer, arg___denom) + MemoryContextAllocHuge(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 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 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 repalloc_huge( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - ecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + repalloc_huge(arg_pointer, 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 MemoryContextRegisterResetCallback( + arg_context: MemoryContext, + arg_cb: *mut MemoryContextCallback, +) { 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 MemoryContextRegisterResetCallback( + arg_context: MemoryContext, + arg_cb: *mut MemoryContextCallback, + ); } - fcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + MemoryContextRegisterResetCallback(arg_context, arg_cb) }) } -pub unsafe fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, +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 gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, + fn MemoryContextStrdup( + arg_context: MemoryContext, + arg_string: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } - gcvt(arg___value, arg___ndigit, arg___buf) + MemoryContextStrdup(arg_context, arg_string) }) } -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 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 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 pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - qecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + pstrdup(arg_in_) }) } -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, +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 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, + fn pnstrdup( + arg_in_: *const ::std::os::raw::c_char, + arg_len: Size, ) -> *mut ::std::os::raw::c_char; } - qfcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + pnstrdup(arg_in_, arg_len) }) } -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 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 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 pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - qgcvt(arg___value, arg___ndigit, arg___buf) + pchomp(arg_in_) }) } -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 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 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 psprintf(arg_fmt: *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, - ) + psprintf(arg_fmt) }) } -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, - ) - }) +#[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 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, Copy, Clone)] +pub struct varatt_indirect { + pub pointer: *mut varlena, } -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; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct varatt_expanded { + pub eohptr: *mut ExpandedObjectHeader, } -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; +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() } - 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 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 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 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 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, - 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 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 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; - } - 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_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 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; - } - errstart( - arg_elevel, - arg_filename, - arg_lineno, - arg_funcname, - arg_domain, - ) - }) -} -pub unsafe fn errfinish(arg_dummy: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errfinish(arg_dummy: ::std::os::raw::c_int); - } - errfinish(arg_dummy) - }) -} -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 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 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 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, - ); - } - elog_start(arg_filename, arg_lineno, arg_funcname) - }) -} -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 elog_finish( - arg_elevel: ::std::os::raw::c_int, - arg_fmt: *const ::std::os::raw::c_char, - ); - } - elog_finish(arg_elevel, arg_fmt) - }) -} -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 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; -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_1 { + pub va_header: uint32, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } #[repr(C)] #[derive(Debug, Default)] @@ -14924,6 +4137,7 @@ impl Default for FmgrInfo { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct FunctionCallInfoData { pub flinfo: *mut FmgrInfo, pub context: fmNodePtr, @@ -15131,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( @@ -15442,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( @@ -15723,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( @@ -16162,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( @@ -17762,6 +6950,7 @@ 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, @@ -17798,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( @@ -19393,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; @@ -19594,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" { @@ -19933,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( @@ -20053,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( @@ -20457,6 +9476,7 @@ impl Default for Var { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct Const { pub xpr: Expr, pub consttype: Oid, @@ -22119,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( @@ -22565,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)] @@ -23093,6 +11714,7 @@ pub unsafe fn InstrAccumParallelQuery(arg_result: *mut BufferUsage) { }) } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ParamExternData { pub value: Datum, pub isnull: bool, @@ -23130,6 +11752,7 @@ 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, @@ -23150,6 +11773,7 @@ impl Default for ParamListInfoData { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ParamExecData { pub execPlan: *mut ::std::os::raw::c_void, pub value: Datum, @@ -24323,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( @@ -24685,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 closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} -pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - 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 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; @@ -27001,6 +15465,7 @@ pub type ExprStateEvalFunc = ::std::option::Option< ) -> Datum, >; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ExprState { pub tag: Node, pub flags: uint8, @@ -27066,6 +15531,7 @@ 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, @@ -27081,6 +15547,7 @@ impl Default for ExprContext_CB { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ExprContext { pub type_: NodeTag, pub ecxt_scantuple: *mut TupleTableSlot, @@ -27139,6 +15606,7 @@ impl Default for ReturnSetInfo { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ProjectionInfo { pub type_: NodeTag, pub pi_state: ExprState, @@ -27565,6 +16033,7 @@ impl Default for WindowFuncExprState { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct SetExprState { pub type_: NodeTag, pub expr: *mut Expr, @@ -27590,6 +16059,7 @@ impl Default for SetExprState { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct SubPlanState { pub type_: NodeTag, pub subplan: *mut SubPlan, @@ -28596,6 +17066,7 @@ pub struct WindowStatePerAggData { } pub type WindowStatePerAgg = *mut WindowStatePerAggData; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct WindowAggState { pub ss: ScanState, pub funcs: *mut List, @@ -34062,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) { @@ -34608,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( @@ -34632,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( @@ -35224,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( @@ -35447,927 +23895,324 @@ pub unsafe fn ExecBuildGroupingEqual( ExecBuildGroupingEqual( arg_ldesc, arg_rdesc, - arg_numCols, - arg_keyColIdx, - arg_eqfunctions, - arg_parent, - ) - }) -} -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 ExecBuildProjectionInfo( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - ) -> *mut ProjectionInfo; - } - ExecBuildProjectionInfo( - arg_targetList, - arg_econtext, - arg_slot, - arg_parent, - arg_inputDesc, - ) - }) -} -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 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; - } - ExecBuildProjectionInfoExt( - arg_targetList, - arg_econtext, - arg_slot, - arg_assignJunkEntries, - arg_parent, - arg_inputDesc, - ) - }) -} -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 ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; - } - ExecPrepareExpr(arg_node, arg_estate) - }) -} -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 ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; - } - ExecPrepareQual(arg_qual, arg_estate) - }) -} -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 ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; - } - ExecPrepareCheck(arg_qual, arg_estate) - }) -} -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 ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; - } - ExecPrepareExprList(arg_nodes, arg_estate) - }) -} -pub unsafe fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; - } - ExecCheck(arg_state, arg_context) - }) -} -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 ExecInitTableFunctionResult( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, - ) -> *mut SetExprState; - } - ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) - }) -} -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 ExecMakeTableFunctionResult( - arg_setexpr: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_expectedDesc: TupleDesc, - arg_randomAccess: bool, - ) -> *mut Tuplestorestate; - } - ExecMakeTableFunctionResult( - arg_setexpr, - arg_econtext, - arg_argContext, - arg_expectedDesc, - arg_randomAccess, - ) - }) -} -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 ExecInitFunctionResultSet( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, - ) -> *mut SetExprState; - } - ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) - }) -} -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 ExecMakeFunctionResultSet( - arg_fcache: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_isNull: *mut bool, - arg_isDone: *mut ExprDoneCond, - ) -> Datum; - } - ExecMakeFunctionResultSet( - arg_fcache, - arg_econtext, - arg_argContext, - arg_isNull, - arg_isDone, - ) - }) -} -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 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 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); - } - 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) - }) -} -pub unsafe fn ExecInitResultTupleSlotTL(arg_estate: *mut EState, arg_planstate: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitResultTupleSlotTL(arg_estate: *mut EState, arg_planstate: *mut PlanState); - } - ExecInitResultTupleSlotTL(arg_estate, arg_planstate) - }) -} -pub unsafe fn ExecInitScanTupleSlot( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tupleDesc: TupleDesc, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitScanTupleSlot( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tupleDesc: TupleDesc, - ); - } - ExecInitScanTupleSlot(arg_estate, arg_scanstate, arg_tupleDesc) - }) -} -pub unsafe fn ExecInitExtraTupleSlot( - arg_estate: *mut EState, - arg_tupleDesc: TupleDesc, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitExtraTupleSlot( - arg_estate: *mut EState, - arg_tupleDesc: TupleDesc, - ) -> *mut TupleTableSlot; - } - ExecInitExtraTupleSlot(arg_estate, arg_tupleDesc) - }) -} -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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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); - } - UpdateChangedParamSet(arg_node, arg_newchg) - }) -} -#[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 begin_tup_output_tupdesc( - arg_dest: *mut DestReceiver, - arg_tupdesc: TupleDesc, - ) -> *mut TupOutputState; - } - begin_tup_output_tupdesc(arg_dest, arg_tupdesc) - }) -} -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 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 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) + arg_numCols, + arg_keyColIdx, + arg_eqfunctions, + 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, -) { +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, - ); + fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; } - ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate) + 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 ExecCloseScanRelation(arg_scanrel: Relation) { +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 ExecCloseScanRelation(arg_scanrel: Relation); + fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; } - ExecCloseScanRelation(arg_scanrel) + ExecPrepareExprList(arg_nodes, arg_estate) }) } -pub unsafe fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, -) -> ::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 executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; } - executor_errposition(arg_estate, arg_location) + ExecCheck(arg_state, arg_context) }) } -pub unsafe fn RegisterExprContextCallback( +pub unsafe fn ExecInitTableFunctionResult( + 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 RegisterExprContextCallback( + fn ExecInitTableFunctionResult( + arg_expr: *mut Expr, arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) + ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn UnregisterExprContextCallback( +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 UnregisterExprContextCallback( + fn ExecMakeTableFunctionResult( + arg_setexpr: *mut SetExprState, 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, - ); + arg_argContext: MemoryContext, + arg_expectedDesc: TupleDesc, + arg_randomAccess: bool, + ) -> *mut Tuplestorestate; } - ExecLockNonLeafAppendTables(arg_partitioned_rels, arg_estate) + ExecMakeTableFunctionResult( + arg_setexpr, + arg_econtext, + arg_argContext, + arg_expectedDesc, + arg_randomAccess, + ) }) } -pub unsafe fn GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, - arg_isNull: *mut bool, -) -> Datum { +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 GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, - arg_isNull: *mut bool, - ) -> Datum; + fn ExecInitFunctionResultSet( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - GetAttributeByName(arg_tuple, arg_attname, arg_isNull) + ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, +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 GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, + fn ExecMakeFunctionResultSet( + arg_fcache: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, arg_isNull: *mut bool, + arg_isDone: *mut ExprDoneCond, ) -> 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) + ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_argContext, arg_isNull, arg_isDone) }) } -pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { +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 ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; + fn ExecScan( + arg_node: *mut ScanState, + arg_accessMtd: ExecScanAccessMtd, + arg_recheckMtd: ExecScanRecheckMtd, + ) -> *mut TupleTableSlot; } - ExecCleanTargetListLength(arg_targetlist) + ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) }) } -pub unsafe fn ExecGetInsertedCols( - 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 ExecGetInsertedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); } - ExecGetInsertedCols(arg_relinfo, arg_estate) + ExecAssignScanProjectionInfo(arg_node) }) } -pub unsafe fn ExecGetUpdatedCols( - 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 ExecGetUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); } - ExecGetUpdatedCols(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 ExecInitResultTupleSlotTL(arg_estate: *mut EState, arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); + fn ExecInitResultTupleSlotTL(arg_estate: *mut EState, arg_planstate: *mut PlanState); } - ExecCloseIndices(arg_resultRelInfo) + ExecInitResultTupleSlotTL(arg_estate, arg_planstate) }) } -pub unsafe fn ExecInsertIndexTuples( - arg_slot: *mut TupleTableSlot, - arg_tupleid: ItemPointer, +pub unsafe fn ExecInitScanTupleSlot( arg_estate: *mut EState, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, -) -> *mut List { + arg_scanstate: *mut ScanState, + arg_tupleDesc: TupleDesc, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInsertIndexTuples( - arg_slot: *mut TupleTableSlot, - arg_tupleid: ItemPointer, + fn ExecInitScanTupleSlot( arg_estate: *mut EState, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, - ) -> *mut List; + arg_scanstate: *mut ScanState, + arg_tupleDesc: TupleDesc, + ); } - ExecInsertIndexTuples( - arg_slot, - arg_tupleid, - arg_estate, - arg_noDupErr, - arg_specConflict, - arg_arbiterIndexes, - ) + ExecInitScanTupleSlot(arg_estate, arg_scanstate, arg_tupleDesc) }) } -pub unsafe fn ExecCheckIndexConstraints( - arg_slot: *mut TupleTableSlot, +pub unsafe fn ExecInitExtraTupleSlot( arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, -) -> bool { + arg_tupleDesc: TupleDesc, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheckIndexConstraints( - arg_slot: *mut TupleTableSlot, + fn ExecInitExtraTupleSlot( arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, - ) -> bool; + arg_tupleDesc: TupleDesc, + ) -> *mut TupleTableSlot; } - ExecCheckIndexConstraints(arg_slot, arg_estate, arg_conflictTid, arg_arbiterIndexes) + ExecInitExtraTupleSlot(arg_estate, arg_tupleDesc) }) } -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 ExecInitNullTupleSlot( arg_estate: *mut EState, - arg_newIndex: bool, -) { + arg_tupType: TupleDesc, +) -> *mut TupleTableSlot { 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 ExecInitNullTupleSlot( arg_estate: *mut EState, - arg_newIndex: bool, - ); - } - 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, - ) - }) -} -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; + arg_tupType: TupleDesc, + ) -> *mut TupleTableSlot; } - RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) + ExecInitNullTupleSlot(arg_estate, arg_tupType) }) } -pub unsafe fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot) { +pub unsafe fn ExecTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> 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, arg_hasoid: bool) -> TupleDesc; } - ExecSimpleRelationInsert(arg_estate, arg_slot) + ExecTypeFromTL(arg_targetList, arg_hasoid) }) } -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, arg_hasoid: bool) -> 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, arg_hasoid: bool) -> TupleDesc; } - ExecSimpleRelationUpdate(arg_estate, arg_epqstate, arg_searchslot, arg_slot) + ExecCleanTypeFromTL(arg_targetList, arg_hasoid) }) } -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, -} -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 struct TupOutputState { 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 dest: *mut DestReceiver, } -impl Default for FuncCallContext { +impl Default for TupOutputState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36376,777 +24221,563 @@ impl Default for FuncCallContext { } } } -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 begin_tup_output_tupdesc( + arg_dest: *mut DestReceiver, + arg_tupdesc: TupleDesc, +) -> *mut TupOutputState { 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 begin_tup_output_tupdesc( + arg_dest: *mut DestReceiver, + arg_tupdesc: TupleDesc, + ) -> *mut TupOutputState; } - get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) + begin_tup_output_tupdesc(arg_dest, arg_tupdesc) }) } -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; +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, + ); } - get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) + do_tup_output(arg_tstate, arg_values, arg_isnull) }) } -pub unsafe fn get_func_result_type( - arg_functionId: Oid, - 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_func_result_type( - arg_functionId: Oid, - 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_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) + do_text_output_multiline(arg_tstate, arg_txt) }) } -pub unsafe fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc { +pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc; + fn end_tup_output(arg_tstate: *mut TupOutputState); } - get_expr_result_tupdesc(arg_expr, arg_noError) + end_tup_output(arg_tstate) }) } -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 CreateExecutorState() -> *mut EState { 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 CreateExecutorState() -> *mut EState; } - resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) + CreateExecutorState() }) } -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 FreeExecutorState(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 FreeExecutorState(arg_estate: *mut EState); } - get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) + FreeExecutorState(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 CreateExprContext(arg_estate: *mut EState) -> *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 CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) + CreateExprContext(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 CreateStandaloneExprContext() -> *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 CreateStandaloneExprContext() -> *mut ExprContext; } - get_func_trftypes(arg_procTup, arg_p_trftypes) + CreateStandaloneExprContext() }) } -pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { 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 FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); } - get_func_result_name(arg_functionId) + FreeExprContext(arg_econtext, arg_isCommit) }) } -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 ReScanExprContext(arg_econtext: *mut ExprContext) { 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 ReScanExprContext(arg_econtext: *mut ExprContext); } - build_function_result_tupdesc_d( - arg_prokind, - arg_proallargtypes, - arg_proargmodes, - arg_proargnames, - ) + ReScanExprContext(arg_econtext) }) } -pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { +pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; + fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - build_function_result_tupdesc_t(arg_procTuple) + MakePerTupleExprContext(arg_estate) }) } -pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc { +pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; + fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); } - RelationNameGetTupleDesc(arg_relname) + ExecAssignExprContext(arg_estate, arg_planstate) }) } -pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { +pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; + fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; } - TypeGetTupleDesc(arg_typeoid, arg_colaliases) + ExecGetResultType(arg_planstate) }) } -pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { +pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; + fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); } - BlessTupleDesc(arg_tupdesc) + ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) }) } -pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { +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 TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; + fn ExecConditionalAssignProjectionInfo( + arg_planstate: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_varno: Index, + ); } - TupleDescGetAttInMetadata(arg_tupdesc) + ExecConditionalAssignProjectionInfo(arg_planstate, arg_inputDesc, arg_varno) }) } -pub unsafe fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, -) -> HeapTuple { +pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { 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 ExecFreeExprContext(arg_planstate: *mut PlanState); } - BuildTupleFromCStrings(arg_attinmeta, arg_values) + ExecFreeExprContext(arg_planstate) }) } -pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { +pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; + fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); } - HeapTupleHeaderGetDatum(arg_tuple) + ExecAssignScanType(arg_scanstate, arg_tupDesc) }) } -pub unsafe fn TupleDescGetSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot { +pub unsafe fn ExecCreateScanSlotFromOuterPlan( + arg_estate: *mut EState, + arg_scanstate: *mut ScanState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TupleDescGetSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot; + fn ExecCreateScanSlotFromOuterPlan( + arg_estate: *mut EState, + arg_scanstate: *mut ScanState, + ); } - TupleDescGetSlot(arg_tupdesc) + ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate) }) } -pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; } - init_MultiFuncCall(arg_fcinfo) + ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) }) } -pub unsafe fn per_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 per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, + ) -> Relation; } - per_MultiFuncCall(arg_fcinfo) + ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) }) } -pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { +pub unsafe fn ExecCloseScanRelation(arg_scanrel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); + fn ExecCloseScanRelation(arg_scanrel: Relation); } - end_MultiFuncCall(arg_fcinfo, arg_funcctx) + ExecCloseScanRelation(arg_scanrel) }) } -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() - } - } -} -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 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, + ); } - } -} -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, + RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) + }) } -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 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) + }) } -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 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) + }) } -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 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 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 GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, +) -> Datum { 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 GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, + ) -> Datum; } - __sysv_signal(arg___sig, arg___handler) + GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) }) } -pub unsafe fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { 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 ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - signal(arg___sig, arg___handler) + ExecTargetListLength(arg_targetlist) }) } -pub unsafe fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::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; + fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - kill(arg___pid, arg___sig) + ExecCleanTargetListLength(arg_targetlist) }) } -pub unsafe fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, -) -> ::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 killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecGetInsertedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - killpg(arg___pgrp, arg___sig) + ExecGetInsertedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn raise(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 raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecGetUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - raise(arg___sig) + ExecGetUpdatedCols(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_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 psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char); + 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; } - psignal(arg___sig, arg___s) + ExecInsertIndexTuples( + arg_slot, + arg_tupleid, + 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 { @@ -37155,7 +24786,18 @@ 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 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 { @@ -37164,440 +24806,294 @@ 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() +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; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, + get_func_result_name(arg_functionId) + }) } -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 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 build_function_result_tupdesc_d( + arg_prokind: ::std::os::raw::c_char, + arg_proallargtypes: Datum, + arg_proargmodes: Datum, + arg_proargnames: Datum, + ) -> TupleDesc; } - } + build_function_result_tupdesc_d( + arg_prokind, + arg_proallargtypes, + arg_proargmodes, + arg_proargnames, + ) + }) } -pub unsafe fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int { +pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> 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_t(arg_procTuple: HeapTuple) -> TupleDesc; } - sigreturn(arg___scp) + build_function_result_tupdesc_t(arg_procTuple) }) } -#[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 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; } - } -} -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], + RelationNameGetTupleDesc(arg_relname) + }) } -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 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; } - } -} -#[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], + TypeGetTupleDesc(arg_typeoid, arg_colaliases) + }) } -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 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 siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::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 siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; } - siginterrupt(arg___sig, arg___interrupt) + TupleDescGetAttInMetadata(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 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 sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, - ) -> ::std::os::raw::c_int; + fn BuildTupleFromCStrings( + arg_attinmeta: *mut AttInMetadata, + arg_values: *mut *mut ::std::os::raw::c_char, + ) -> HeapTuple; } - sigaltstack(arg___ss, arg___oss) + BuildTupleFromCStrings(arg_attinmeta, arg_values) }) } -#[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 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 sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) -> ::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 sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) - -> ::std::os::raw::c_int; + fn TupleDescGetSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot; } - sigstack(arg___ss, arg___oss) + TupleDescGetSlot(arg_tupdesc) }) } -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)] @@ -38540,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, @@ -38732,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; @@ -39493,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() { @@ -39901,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( @@ -42874,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( @@ -43701,6 +31157,7 @@ pub struct GISTPageOpaqueData { } 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, @@ -43721,6 +31178,7 @@ impl Default for GIST_SPLITVEC { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct GISTENTRY { pub key: Datum, pub rel: Relation, @@ -43738,6 +31196,7 @@ impl Default for GISTENTRY { } } #[repr(C)] +#[derive(Debug)] pub struct GistEntryVector { pub n: int32, pub vector: __IncompleteArrayField, @@ -44231,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( @@ -44569,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( @@ -44598,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( @@ -44625,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( @@ -45603,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( @@ -45643,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( @@ -45669,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( @@ -45815,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( @@ -47597,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( @@ -47623,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( @@ -47651,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( @@ -47799,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( @@ -47841,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( @@ -47866,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( @@ -47891,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( @@ -47949,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( @@ -48270,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( @@ -48296,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( @@ -49244,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( @@ -49299,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 { @@ -50034,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) { @@ -50449,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( @@ -51369,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( @@ -52181,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( @@ -52236,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( @@ -53627,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 { @@ -53981,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) { @@ -54617,13 +41923,7 @@ pub unsafe fn EnableDisableTrigger( arg_lockmode: LOCKMODE, ); } - EnableDisableTrigger( - arg_rel, - arg_tgname, - arg_fires_when, - arg_skip_system, - arg_lockmode, - ) + EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system, arg_lockmode) }) } pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { @@ -55234,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( @@ -55292,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( @@ -55710,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) { @@ -55946,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( @@ -55969,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) { @@ -56406,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 { @@ -56533,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( @@ -56943,6 +44210,7 @@ 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; 96usize], pub bgw_type: [::std::os::raw::c_char; 96usize], @@ -59082,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( @@ -59472,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 { @@ -59784,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( @@ -60950,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( @@ -61196,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( @@ -61787,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( @@ -62242,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( @@ -62301,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( @@ -62710,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( @@ -62738,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( @@ -63746,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< @@ -64338,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( @@ -64830,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< @@ -64909,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 { @@ -65574,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( @@ -65613,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( @@ -65764,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( @@ -65833,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( @@ -65931,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( @@ -65960,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; @@ -66006,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( @@ -66303,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( @@ -67251,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" { @@ -69535,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( @@ -71448,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) { @@ -72951,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" { @@ -73055,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" { @@ -73551,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" { @@ -73575,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" { @@ -77159,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" { @@ -79799,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" { @@ -79959,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" { @@ -80183,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" { @@ -80591,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" { @@ -82815,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" { @@ -83519,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" { @@ -84535,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" { @@ -87679,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" { @@ -92556,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" { @@ -95287,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( @@ -95345,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( @@ -95405,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( @@ -95434,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( @@ -96289,6 +82666,7 @@ pub struct RangeType { pub rangetypid: Oid, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct RangeBound { pub val: Datum, pub infinite: bool, @@ -96642,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, } @@ -96710,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 { @@ -96722,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 { @@ -96734,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 { @@ -96746,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 { @@ -96758,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 { @@ -96770,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 { @@ -96782,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 { @@ -96794,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 { @@ -96806,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 { @@ -96818,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 { @@ -96830,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 { @@ -96842,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 { @@ -96854,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 { @@ -96866,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 { @@ -96878,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 { @@ -96890,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 { @@ -96902,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 { @@ -96914,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 { @@ -96926,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 { @@ -96938,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 { @@ -96950,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 { @@ -96962,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 { @@ -96974,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 { @@ -96986,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 { @@ -96998,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 { @@ -97010,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 { @@ -97022,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 { @@ -97034,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 { @@ -97046,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 { @@ -97058,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 { @@ -97070,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 { @@ -97082,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 { @@ -97094,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 { @@ -97106,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 { @@ -97118,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 { @@ -97130,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 { @@ -97142,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 { @@ -97154,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 { @@ -97166,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 { @@ -97178,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 { @@ -97190,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 { @@ -97202,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 { @@ -97214,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 { @@ -97226,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 { @@ -97238,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 { @@ -97250,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 { @@ -97262,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 { @@ -97274,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 { @@ -97286,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 { @@ -97298,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 { @@ -97310,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 { @@ -97322,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 { @@ -97334,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 { @@ -97346,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 { @@ -97358,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 { @@ -97370,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 { @@ -97382,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 { @@ -97394,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 { @@ -97406,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 { @@ -97418,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 { @@ -97430,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 { @@ -97442,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 { @@ -97454,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 { @@ -97466,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 { @@ -97478,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 { @@ -97490,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 { @@ -97502,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 { @@ -97514,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 { @@ -97526,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 { @@ -97538,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 { @@ -97550,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 { @@ -97562,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 { @@ -97574,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 { @@ -97586,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 { @@ -97598,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 { @@ -97610,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 { @@ -97622,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 { @@ -97634,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 { @@ -97646,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 { @@ -97658,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 { @@ -97670,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 { @@ -97682,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 { @@ -97694,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 { @@ -97706,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 { @@ -97718,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 { @@ -97730,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 { @@ -97742,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 { @@ -97754,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 { @@ -97766,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 { @@ -97778,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 { @@ -97790,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 { @@ -97802,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 { @@ -97814,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 { @@ -97826,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 { @@ -97838,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 { @@ -97850,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 { @@ -97862,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 { @@ -97874,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 { @@ -97886,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 { @@ -97898,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 { @@ -97910,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 { @@ -97922,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 { @@ -97934,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 { @@ -97946,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 { @@ -97958,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 { @@ -97970,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 { @@ -97982,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 { @@ -97994,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 { @@ -98006,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 { @@ -98018,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 { @@ -98030,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 { @@ -98042,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 { @@ -98054,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 { @@ -98066,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 { @@ -98078,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 { @@ -98090,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 { @@ -98102,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 { @@ -98114,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 { @@ -98126,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 { @@ -98138,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 { @@ -98150,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 { @@ -98162,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 { @@ -98174,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 { @@ -98186,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 { @@ -98198,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 { @@ -98210,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 { @@ -98222,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 { @@ -98234,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 { @@ -98246,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 { @@ -98258,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 { @@ -98270,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 { @@ -98282,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 { @@ -98294,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 { @@ -98306,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 { @@ -98318,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 { @@ -98330,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 { @@ -98342,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 { @@ -98354,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 { @@ -98366,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 { @@ -98378,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 { @@ -98390,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 { @@ -98402,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 { @@ -98414,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 { @@ -98426,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 { @@ -98438,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 { @@ -98450,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 { @@ -98462,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 { @@ -98474,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 { @@ -98486,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 { @@ -98498,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 { @@ -98510,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 { @@ -98522,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 { @@ -98534,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 { @@ -98546,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 { @@ -98558,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 { @@ -98570,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 { @@ -98582,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 { @@ -98594,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 { @@ -98606,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 { @@ -98618,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 { @@ -98630,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 { @@ -98642,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 { @@ -98654,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 { @@ -98666,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 { @@ -98678,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 { @@ -98690,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 { @@ -98702,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 { @@ -98714,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 { @@ -98726,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 { @@ -98738,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 { @@ -98750,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 { @@ -98762,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 { @@ -98774,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 { @@ -98786,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 { @@ -98798,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 { @@ -98810,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 { @@ -98822,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 { @@ -98834,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 { @@ -98846,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 { @@ -98858,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 { @@ -98870,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 { @@ -98882,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 { @@ -98894,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 { @@ -98906,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 { @@ -98918,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 { @@ -98930,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 { @@ -98942,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 { @@ -98954,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 { @@ -98966,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 { @@ -98978,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 { @@ -98990,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 { @@ -99002,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 { @@ -99014,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 { @@ -99026,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 { @@ -99038,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 { @@ -99050,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 { @@ -99062,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 { @@ -99074,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 { @@ -99086,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 { @@ -99098,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 { @@ -99110,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 { @@ -99122,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 { @@ -99134,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 { @@ -99146,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 { @@ -99158,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 { @@ -99170,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 { @@ -99182,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 { @@ -99194,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 { @@ -99206,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 { @@ -99218,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 { @@ -99230,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 { @@ -99242,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 { @@ -99254,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 { @@ -99266,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 { @@ -99278,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 { @@ -99290,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 { @@ -99302,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 { @@ -99314,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 { @@ -99326,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 { @@ -99338,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 { @@ -99350,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 { @@ -99362,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 { @@ -99374,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 { @@ -99386,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 { @@ -99398,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 { @@ -99410,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 { @@ -99422,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 { @@ -99434,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 { @@ -99446,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 { @@ -99458,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 { @@ -99470,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 { @@ -99482,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 { @@ -99494,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 { @@ -99506,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 { @@ -99518,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 { @@ -99530,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 { @@ -99542,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 { @@ -99554,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 { @@ -99566,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 { @@ -99578,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 { @@ -99590,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 { @@ -99602,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 { @@ -99614,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 { @@ -99626,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 { @@ -99638,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 { @@ -99650,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 { @@ -99662,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 { @@ -99674,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 { @@ -99686,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 { @@ -99698,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 { @@ -99710,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 { @@ -99722,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 { @@ -99734,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 { @@ -99746,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 { @@ -99758,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 { @@ -99770,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 { @@ -99782,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 { @@ -99794,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 { @@ -99806,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 { @@ -99818,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 { @@ -99830,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 { @@ -99842,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 { @@ -99854,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 { @@ -99866,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 { @@ -99878,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 { @@ -99890,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 { @@ -99902,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 { @@ -99914,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 { @@ -99926,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 { @@ -99938,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 { @@ -99950,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 { @@ -99962,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 { @@ -99974,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 { @@ -99986,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 { @@ -99998,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 { @@ -100010,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 { @@ -100022,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 { @@ -100034,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 { @@ -100046,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 { @@ -100058,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 { @@ -100070,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 { @@ -100082,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 { @@ -100094,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 { @@ -100106,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 { @@ -100118,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 { @@ -100130,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 { @@ -100142,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 { @@ -100154,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 { @@ -100166,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 { @@ -100178,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 { @@ -100190,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 { @@ -100202,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 { @@ -100214,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 { @@ -100226,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 { @@ -100238,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 { @@ -100250,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 { @@ -100262,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 { @@ -100274,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 { @@ -100286,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 { @@ -100298,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 { @@ -100310,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 { @@ -100322,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 { @@ -100334,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 { @@ -100346,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 { @@ -100358,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 { @@ -100370,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 { @@ -100382,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 { @@ -100394,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 { @@ -100406,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 { @@ -100418,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 { @@ -100430,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 { @@ -100442,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 { @@ -100454,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 { @@ -100466,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 { @@ -100478,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 { @@ -100490,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 { @@ -100502,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 { @@ -100514,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 { @@ -100526,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 { @@ -100538,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 { @@ -100550,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 { @@ -100562,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 { @@ -100574,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 { @@ -100586,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 { @@ -100598,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 { @@ -100610,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 { @@ -100622,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 { @@ -100634,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 { @@ -100646,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 { @@ -100658,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 { @@ -100670,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 { @@ -100682,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 { @@ -100694,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 { @@ -100706,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 { @@ -100718,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 { @@ -100730,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 { @@ -100742,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 { @@ -100754,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 { @@ -100766,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 { @@ -100778,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 { @@ -100790,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 { @@ -100802,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 { @@ -100814,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 { @@ -100826,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 { @@ -100838,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 { @@ -100850,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 { @@ -100862,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 { @@ -100874,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 { @@ -100886,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 { @@ -100898,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 { @@ -100910,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 { @@ -100922,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 { @@ -100934,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 { @@ -100946,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 { @@ -100958,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 { @@ -100970,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 { @@ -100982,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 { @@ -100994,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 { @@ -101006,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 { @@ -101018,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 { @@ -101030,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 { @@ -101042,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 { @@ -101054,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 { @@ -101066,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 { @@ -101078,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 { @@ -101090,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 { @@ -101102,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 { @@ -101114,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 { @@ -101126,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 { @@ -101138,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 { @@ -101150,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 { @@ -101162,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 { @@ -101174,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 { @@ -101186,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 { @@ -101198,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 { @@ -101210,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 { @@ -101222,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 { @@ -101234,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 { @@ -101246,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 { @@ -101258,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 { @@ -101270,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 { @@ -101282,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 { @@ -101294,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 { @@ -101306,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 { @@ -101318,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 { @@ -101330,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 { @@ -101342,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 { @@ -101354,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 { @@ -101366,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 { @@ -101378,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 { @@ -101390,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 { @@ -101402,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 { @@ -101414,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 { @@ -101426,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 { @@ -101438,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 fdb4355a3..b8b08e3d1 100644 --- a/pgx-pg-sys/src/pg12.rs +++ b/pgx-pg-sys/src/pg12.rs @@ -22,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 } @@ -35,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; @@ -55,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; } } @@ -73,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); } } @@ -372,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 = 36; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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; @@ -523,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"; @@ -777,420 +397,6 @@ 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 SOL_MPTCP: u32 = 284; -pub const SOL_MCTP: u32 = 285; -pub const SOL_SMC: u32 = 286; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -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_TXREHASH: u32 = 74; -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.12\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; @@ -1198,34 +404,6 @@ 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; @@ -1310,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; @@ -1503,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; @@ -1579,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; @@ -1682,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; @@ -1804,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; @@ -1818,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; @@ -1840,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; @@ -1901,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; @@ -3137,137 +2049,17 @@ 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)] @@ -3328,4293 +2120,3994 @@ 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 arc4random() -> __uint32_t { +pub unsafe fn geterrcode() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arc4random() -> __uint32_t; + fn geterrcode() -> ::std::os::raw::c_int; } - arc4random() + geterrcode() }) } -pub unsafe fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize) { +pub unsafe fn geterrposition() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize); + fn geterrposition() -> ::std::os::raw::c_int; } - arc4random_buf(arg___buf, arg___size) + geterrposition() }) } -pub unsafe fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t { +pub unsafe fn getinternalerrposition() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t; + fn getinternalerrposition() -> ::std::os::raw::c_int; } - arc4random_uniform(arg___upper_bound) + getinternalerrposition() }) } -pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *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 malloc(arg___size: ::std::os::raw::c_ulong) -> *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, + ); } - malloc(arg___size) + elog_start(arg_filename, arg_lineno, arg_funcname) }) } -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 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 calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn elog_finish( + arg_elevel: ::std::os::raw::c_int, + arg_fmt: *const ::std::os::raw::c_char, + ); } - calloc(arg___nmemb, arg___size) + elog_finish(arg_elevel, arg_fmt) }) } -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 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 realloc( - arg___ptr: *mut ::std::os::raw::c_void, - 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, + ); } - realloc(arg___ptr, arg___size) + pre_format_elog_string(arg_errnumber, arg_domain) }) } -pub unsafe fn free(arg___ptr: *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 free(arg___ptr: *mut ::std::os::raw::c_void); + fn format_elog_string( + arg_fmt: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - free(arg___ptr) + format_elog_string(arg_fmt) }) } -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) - }) +#[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 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; +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() } - 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) - }) +extern "C" { + pub static mut error_context_stack: *mut ErrorContextCallback; } -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) - }) +extern "C" { + pub static mut PG_exception_stack: *mut sigjmp_buf; } -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) - }) +#[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 abort() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn abort(); +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() } - abort() - }) + } } -pub unsafe fn atexit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { +pub unsafe fn EmitErrorReport() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atexit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; + fn EmitErrorReport(); } - atexit(arg___func) + EmitErrorReport() }) } -pub unsafe fn at_quick_exit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { +pub unsafe fn CopyErrorData() -> *mut ErrorData { 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 CopyErrorData() -> *mut ErrorData; } - at_quick_exit(arg___func) + CopyErrorData() }) } -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 FreeErrorData(arg_edata: *mut ErrorData) { 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 FreeErrorData(arg_edata: *mut ErrorData); } - on_exit(arg___func, arg___arg) + FreeErrorData(arg_edata) }) } -pub unsafe fn exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn FlushErrorState() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exit(arg___status: ::std::os::raw::c_int); + fn FlushErrorState(); } - exit(arg___status) + FlushErrorState() }) } -pub unsafe fn quick_exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quick_exit(arg___status: ::std::os::raw::c_int); + fn ReThrowError(arg_edata: *mut ErrorData); } - quick_exit(arg___status) + ReThrowError(arg_edata) }) } -pub unsafe fn _Exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn ThrowErrorData(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _Exit(arg___status: ::std::os::raw::c_int); + fn ThrowErrorData(arg_edata: *mut ErrorData); } - _Exit(arg___status) + ThrowErrorData(arg_edata) }) } -pub unsafe fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn GetErrorContextStack() -> *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; + fn GetErrorContextStack() -> *mut ::std::os::raw::c_char; } - getenv(arg___name) + GetErrorContextStack() }) } -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 type emit_log_hook_type = ::std::option::Option; +extern "C" { + pub static mut emit_log_hook: emit_log_hook_type; } -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 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 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) - }) +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; } -pub unsafe fn clearenv() -> ::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 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 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 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; +#[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() } - 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; +#[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 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() } - 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; +#[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, +} +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() } - 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 { +pub unsafe fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo) { 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 fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo); } - getloadavg(arg___loadavg, arg___nelem) + fmgr_info(arg_functionId, arg_finfo) }) } -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 fmgr_info_cxt( + arg_functionId: Oid, + arg_finfo: *mut FmgrInfo, + arg_mcxt: MemoryContext, +) { 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 fmgr_info_cxt( + arg_functionId: Oid, + arg_finfo: *mut FmgrInfo, + arg_mcxt: MemoryContext, + ); } - memcpy(arg___dest, arg___src, arg___n) + fmgr_info_cxt(arg_functionId, arg_finfo, arg_mcxt) }) } -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 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 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 fmgr_info_copy( + arg_dstinfo: *mut FmgrInfo, + arg_srcinfo: *mut FmgrInfo, + arg_destcxt: MemoryContext, + ); } - memmove(arg___dest, arg___src, arg___n) + fmgr_info_copy(arg_dstinfo, arg_srcinfo, arg_destcxt) }) } -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 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 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 fmgr_symbol( + arg_functionId: Oid, + arg_mod_: *mut *mut ::std::os::raw::c_char, + arg_fn_: *mut *mut ::std::os::raw::c_char, + ); } - memccpy(arg___dest, arg___src, arg___c, arg___n) + fmgr_symbol(arg_functionId, arg_mod_, arg_fn_) }) } -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 pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena { 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 pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena; } - memset(arg___s, arg___c, arg___n) + pg_detoast_datum(arg_datum) }) } -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 pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena { 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 pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena; } - memcmp(arg___s1, arg___s2, arg___n) + pg_detoast_datum_copy(arg_datum) }) } -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 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 __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 pg_detoast_datum_slice( + arg_datum: *mut varlena, + arg_first: int32, + arg_count: int32, + ) -> *mut varlena; } - __memcmpeq(arg___s1, arg___s2, arg___n) + pg_detoast_datum_slice(arg_datum, arg_first, arg_count) }) } -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 pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena { 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 pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena; } - memchr(arg___s, arg___c, arg___n) + pg_detoast_datum_packed(arg_datum) }) } -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 { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Pg_finfo_record { + pub api_version: ::std::os::raw::c_int, +} +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 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 strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn DirectFunctionCall1Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - strcpy(arg___dest, arg___src) + DirectFunctionCall1Coll(arg_func, arg_collation, arg_arg1) }) } -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 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 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 DirectFunctionCall2Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - strncpy(arg___dest, arg___src, arg___n) + DirectFunctionCall2Coll(arg_func, arg_collation, arg_arg1, arg_arg2) }) } -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 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 strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn DirectFunctionCall3Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - strcat(arg___dest, arg___src) + DirectFunctionCall3Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -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 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 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 DirectFunctionCall4Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - strncat(arg___dest, arg___src, arg___n) + DirectFunctionCall4Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -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 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 strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::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; } - strcmp(arg___s1, arg___s2) + DirectFunctionCall5Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -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 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 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 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; } - strncmp(arg___s1, arg___s2, arg___n) + DirectFunctionCall6Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -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 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 strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::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; } - strcoll(arg___s1, arg___s2) + DirectFunctionCall7Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -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 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 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 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; } - strxfrm(arg___dest, arg___src, arg___n) + DirectFunctionCall8Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -#[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 { +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 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 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; } - strcoll_l(arg___s1, arg___s2, arg___l) + 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 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 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 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 CallerFInfoFunctionCall1( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - strxfrm_l(arg___dest, arg___src, arg___n, arg___l) + CallerFInfoFunctionCall1(arg_func, arg_flinfo, arg_collation, arg_arg1) }) } -pub unsafe fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +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 strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn CallerFInfoFunctionCall2( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - strdup(arg___s) + CallerFInfoFunctionCall2(arg_func, arg_flinfo, arg_collation, arg_arg1, arg_arg2) }) } -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 FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> 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 FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> Datum; } - strndup(arg___string, arg___n) + FunctionCall0Coll(arg_flinfo, arg_collation) }) } -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 FunctionCall1Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, +) -> 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 FunctionCall1Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - strchr(arg___s, arg___c) + FunctionCall1Coll(arg_flinfo, arg_collation, arg_arg1) }) } -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 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 strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn FunctionCall2Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - strrchr(arg___s, arg___c) + FunctionCall2Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2) }) } -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 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 strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; + fn FunctionCall3Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - strcspn(arg___s, arg___reject) + FunctionCall3Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -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 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 strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; + fn FunctionCall4Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - strspn(arg___s, arg___accept) + FunctionCall4Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -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 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 strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + 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; } - strpbrk(arg___s, arg___accept) + FunctionCall5Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -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 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 strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *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; } - strstr(arg___haystack, arg___needle) + FunctionCall6Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -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 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 strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *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; } - strtok(arg___s, arg___delim) + FunctionCall7Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -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 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 __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 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; } - __strtok_r(arg___s, arg___delim, arg___save_ptr) + FunctionCall8Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -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 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 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 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; } - strtok_r(arg___s, arg___delim, arg___save_ptr) + 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 strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong { +pub unsafe fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> 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 OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum; } - strlen(arg___s) + OidFunctionCall0Coll(arg_functionId, arg_collation) }) } -pub unsafe fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize { +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 strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize; + fn OidFunctionCall1Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - strnlen(arg___string, arg___maxlen) + OidFunctionCall1Coll(arg_functionId, arg_collation, arg_arg1) }) } -pub unsafe fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { +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 strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; + fn OidFunctionCall2Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - strerror(arg___errnum) + OidFunctionCall2Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2) }) } -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 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 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 OidFunctionCall3Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - strerror_r(arg___errnum, arg___buf, arg___buflen) + OidFunctionCall3Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -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 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 strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> *mut ::std::os::raw::c_char; + fn OidFunctionCall4Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - strerror_l(arg___errnum, arg___l) + OidFunctionCall4Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -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 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 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 OidFunctionCall5Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - bcmp(arg___s1, arg___s2, arg___n) + OidFunctionCall5Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -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 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 bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, - ); + 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; } - bcopy(arg___src, arg___dest, arg___n) + OidFunctionCall6Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -pub unsafe fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong) { +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 bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong); + 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; } - bzero(arg___s, arg___n) + OidFunctionCall7Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -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 { +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 index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + 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; } - index(arg___s, arg___c) + OidFunctionCall8Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -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 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 rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *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; } - rindex(arg___s, arg___c) + 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 ffs(arg___i: ::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 ffs(arg___i: ::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; } - ffs(arg___i) + InputFunctionCall(arg_flinfo, arg_str_, arg_typioparam, arg_typmod) }) } -pub unsafe fn ffsl(arg___l: ::std::os::raw::c_long) -> ::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 ffsl(arg___l: ::std::os::raw::c_long) -> ::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; } - ffsl(arg___l) + OidInputFunctionCall(arg_functionId, arg_str_, arg_typioparam, arg_typmod) }) } -pub unsafe fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::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 ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; + fn OutputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_val: Datum, + ) -> *mut ::std::os::raw::c_char; } - ffsll(arg___ll) + OutputFunctionCall(arg_flinfo, arg_val) }) } -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 OidOutputFunctionCall( + arg_functionId: Oid, + arg_val: Datum, +) -> *mut ::std::os::raw::c_char { 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 OidOutputFunctionCall( + arg_functionId: Oid, + arg_val: Datum, + ) -> *mut ::std::os::raw::c_char; } - strcasecmp(arg___s1, arg___s2) + OidOutputFunctionCall(arg_functionId, arg_val) }) } -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 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 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; + fn ReceiveFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - iscntrl(arg_arg1) + ReceiveFunctionCall(arg_flinfo, arg_buf, arg_typioparam, arg_typmod) }) } -pub unsafe fn isdigit(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 isdigit(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; } - isdigit(arg_arg1) + OidReceiveFunctionCall(arg_functionId, arg_buf, arg_typioparam, arg_typmod) }) } -pub unsafe fn islower(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 islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea; } - islower(arg_arg1) + SendFunctionCall(arg_flinfo, arg_val) }) } -pub unsafe fn isgraph(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 isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea; } - isgraph(arg_arg1) + OidSendFunctionCall(arg_functionId, arg_val) }) } -pub unsafe fn isprint(arg_arg1: ::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 isprint(arg_arg1: ::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; } - isprint(arg_arg1) + fetch_finfo_record(arg_filehandle, arg_funcname) }) } -pub unsafe fn ispunct(arg_arg1: ::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 ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void); } - ispunct(arg_arg1) + clear_external_function_hash(arg_filehandle) }) } -pub unsafe fn isspace(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 isspace(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; } - isspace(arg_arg1) + fmgr_internal_function(arg_proname) }) } -pub unsafe fn isupper(arg_arg1: ::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 isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid; } - isupper(arg_arg1) + get_fn_expr_rettype(arg_flinfo) }) } -pub unsafe fn isxdigit(arg_arg1: ::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 isxdigit(arg_arg1: ::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; } - isxdigit(arg_arg1) + get_fn_expr_argtype(arg_flinfo, arg_argnum) }) } -pub unsafe fn tolower(arg___c: ::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 tolower(arg___c: ::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; } - tolower(arg___c) + get_call_expr_argtype(arg_expr, arg_argnum) }) } -pub unsafe fn toupper(arg___c: ::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 toupper(arg___c: ::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; } - toupper(arg___c) + get_fn_expr_arg_stable(arg_flinfo, arg_argnum) }) } -pub unsafe fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::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 isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_call_expr_arg_stable( + arg_expr: fmNodePtr, + arg_argnum: ::std::os::raw::c_int, + ) -> bool; } - isblank(arg_arg1) + get_call_expr_arg_stable(arg_expr, arg_argnum) }) } -pub unsafe fn isascii(arg___c: ::std::os::raw::c_int) -> ::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 isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool; } - isascii(arg___c) + get_fn_expr_variadic(arg_flinfo) }) } -pub unsafe fn toascii(arg___c: ::std::os::raw::c_int) -> ::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 toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool; } - toascii(arg___c) + CheckFunctionValidatorAccess(arg_validatorOid, arg_functionOid) }) } -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) - }) +extern "C" { + pub static mut Dynamic_library_path: *mut ::std::os::raw::c_char; } -pub unsafe fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::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 _tolower(arg_arg1: ::std::os::raw::c_int) -> ::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; } - _tolower(arg_arg1) + load_external_function(arg_filename, arg_funcname, arg_signalNotFound, arg_filehandle) }) } -pub unsafe fn isalnum_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 isalnum_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; } - isalnum_l(arg_arg1, arg_arg2) + lookup_external_function(arg_filehandle, arg_funcname) }) } -pub unsafe fn isalpha_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 isalpha_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); } - isalpha_l(arg_arg1, arg_arg2) + load_file(arg_filename, arg_restricted) }) } -pub unsafe fn iscntrl_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 iscntrl_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; } - iscntrl_l(arg_arg1, arg_arg2) + find_rendezvous_variable(arg_varName) }) } -pub unsafe fn isdigit_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 isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn EstimateLibraryStateSpace() -> Size; } - isdigit_l(arg_arg1, arg_arg2) + EstimateLibraryStateSpace() }) } -pub unsafe fn islower_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 islower_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, + ); } - islower_l(arg_arg1, arg_arg2) + SerializeLibraryState(arg_maxsize, arg_start_address) }) } -pub unsafe fn isgraph_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 isgraph_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); } - isgraph_l(arg_arg1, arg_arg2) + RestoreLibraryState(arg_start_address) }) } -pub unsafe fn isprint_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 isprint_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; } - isprint_l(arg_arg1, arg_arg2) + AggCheckCallContext(arg_fcinfo, arg_aggcontext) }) } -pub unsafe fn ispunct_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 ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr; } - ispunct_l(arg_arg1, arg_arg2) + AggGetAggref(arg_fcinfo) }) } -pub unsafe fn isspace_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 isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext; } - isspace_l(arg_arg1, arg_arg2) + AggGetTempMemoryContext(arg_fcinfo) }) } -pub unsafe fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: 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 isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool; } - isupper_l(arg_arg1, arg_arg2) + AggStateIsShared(arg_fcinfo) }) } -pub unsafe fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: 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 isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn AggRegisterCallback( + arg_fcinfo: FunctionCallInfo, + arg_func: fmExprContextCallbackFunction, + arg_arg: Datum, + ); } - isxdigit_l(arg_arg1, arg_arg2) + AggRegisterCallback(arg_fcinfo, arg_func, arg_arg) }) } -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 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 __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) - }) +extern "C" { + pub static mut fmgr_hook: fmgr_hook_type; } -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 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 __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; +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() } - __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; +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 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 Node { + pub type_: NodeTag, } -impl Default for msghdr { +impl Default for Node { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7623,547 +6116,196 @@ 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 { - 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 { +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 sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; + fn stringToNode(arg_str_: *const ::std::os::raw::c_char) + -> *mut ::std::os::raw::c_void; } - sendmsg(arg___fd, arg___message, arg___flags) + stringToNode(arg_str_) }) } -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 readBitmapset() -> *mut Bitmapset { 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 readBitmapset() -> *mut Bitmapset; } - recvmsg(arg___fd, arg___message, arg___flags) + readBitmapset() }) } -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 readDatum(arg_typbyval: bool) -> usize { 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 readDatum(arg_typbyval: bool) -> usize; } - getsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) + readDatum(arg_typbyval) }) } -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 readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool { 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 readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool; } - setsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) + readBoolCols(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 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 listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int; } - listen(arg___fd, arg___n) + readIntCols(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 readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid { 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; + fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid; } - accept(arg___fd, arg___addr, arg___addr_len) + readOidCols(arg_numCols) }) } -pub unsafe fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::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 shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16; } - shutdown(arg___fd, arg___how) + readAttrNumberCols(arg_numCols) }) } -pub unsafe fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::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 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 { @@ -8172,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 { @@ -8263,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 { @@ -8290,1154 +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 { +#[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() + } + } +} +#[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() + } + } +} +#[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 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; + fn CreateTemplateTupleDesc(arg_natts: ::std::os::raw::c_int) -> TupleDesc; } - getprotoent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) + CreateTemplateTupleDesc(arg_natts) }) } -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 { +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 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; + fn CreateTupleDesc( + arg_natts: ::std::os::raw::c_int, + arg_attrs: *mut Form_pg_attribute, + ) -> TupleDesc; } - getprotobyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + CreateTupleDesc(arg_natts, arg_attrs) }) } -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 { +pub unsafe fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> 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 CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc; } - getprotobynumber_r( - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + CreateTupleDescCopy(arg_tupdesc) }) } -pub unsafe fn setnetgrent(arg___netgroup: *const ::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 setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc; } - setnetgrent(arg___netgroup) + CreateTupleDescCopyConstr(arg_tupdesc) }) } -pub unsafe fn endnetgrent() { +pub unsafe fn TupleDescCopy(arg_dst: TupleDesc, arg_src: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endnetgrent(); + fn TupleDescCopy(arg_dst: TupleDesc, arg_src: TupleDesc); } - endnetgrent() + TupleDescCopy(arg_dst, arg_src) }) } -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 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( - 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 TupleDescCopyEntry( + arg_dst: TupleDesc, + arg_dstAttno: AttrNumber, + arg_src: TupleDesc, + arg_srcAttno: AttrNumber, + ); } - getnetgrent(arg___hostp, arg___userp, arg___domainp) + TupleDescCopyEntry(arg_dst, arg_dstAttno, arg_src, arg_srcAttno) }) } -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 FreeTupleDesc(arg_tupdesc: 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 FreeTupleDesc(arg_tupdesc: TupleDesc); } - innetgr(arg___netgroup, arg___host, arg___user, arg___domain) + FreeTupleDesc(arg_tupdesc) }) } -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 IncrTupleDescRefCount(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 IncrTupleDescRefCount(arg_tupdesc: TupleDesc); } - getnetgrent_r( - arg___hostp, - arg___userp, - arg___domainp, - arg___buffer, - arg___buflen, - ) + IncrTupleDescRefCount(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 DecrTupleDescRefCount(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 DecrTupleDescRefCount(arg_tupdesc: TupleDesc); } - rcmd( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - ) + DecrTupleDescRefCount(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 equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool { 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 equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool; } - rcmd_af( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - arg___af, - ) + equalTupleDescs(arg_tupdesc1, arg_tupdesc2) }) } -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 hashTupleDesc(arg_tupdesc: TupleDesc) -> uint32 { 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 hashTupleDesc(arg_tupdesc: TupleDesc) -> uint32; } - rexec( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - ) + hashTupleDesc(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 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 { @@ -9446,5187 +7211,6440 @@ 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 XLogRecPtr = uint64; +pub type XLogSegNo = uint64; +pub type TimeLineID = uint32; +pub type RepOriginId = uint16; #[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, +#[derive(Debug, Default, Copy, Clone)] +pub struct FullTransactionId { + pub value: uint64, } -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() - } - } +#[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 unsafe fn setpwent() { +pub type VariableCache = *mut VariableCacheData; +pub unsafe fn TransactionStartedDuringRecovery() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setpwent(); + fn TransactionStartedDuringRecovery() -> bool; } - setpwent() + TransactionStartedDuringRecovery() }) } -pub unsafe fn endpwent() { +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 endpwent(); + fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool; } - endpwent() + TransactionIdDidCommit(arg_transactionId) }) } -pub unsafe fn getpwent() -> *mut passwd { +pub unsafe fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwent() -> *mut passwd; + fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool; } - getpwent() + TransactionIdDidAbort(arg_transactionId) }) } -pub unsafe fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd { +pub unsafe fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd; + fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool; } - fgetpwent(arg___stream) + TransactionIdIsKnownCompleted(arg_transactionId) }) } -pub unsafe fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn TransactionIdAbort(arg_transactionId: TransactionId) { 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 TransactionIdAbort(arg_transactionId: TransactionId); } - putpwent(arg___p, arg___f) + TransactionIdAbort(arg_transactionId) }) } -pub unsafe fn getpwuid(arg___uid: __uid_t) -> *mut passwd { +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 getpwuid(arg___uid: __uid_t) -> *mut passwd; + fn TransactionIdCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - getpwuid(arg___uid) + TransactionIdCommitTree(arg_xid, arg_nxids, arg_xids) }) } -pub unsafe fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd { +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 getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd; + fn TransactionIdAsyncCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + arg_lsn: XLogRecPtr, + ); } - getpwnam(arg___name) + TransactionIdAsyncCommitTree(arg_xid, arg_nxids, arg_xids, arg_lsn) }) } -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 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 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 TransactionIdAbortTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - getpwent_r(arg___resultbuf, arg___buffer, arg___buflen, arg___result) + TransactionIdAbortTree(arg_xid, arg_nxids, arg_xids) }) } -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 TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { 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 TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; } - getpwuid_r( - arg___uid, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + TransactionIdPrecedes(arg_id1, arg_id2) }) } -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 TransactionIdPrecedesOrEquals( + arg_id1: TransactionId, + arg_id2: TransactionId, +) -> bool { 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 TransactionIdPrecedesOrEquals( + arg_id1: TransactionId, + arg_id2: TransactionId, + ) -> bool; } - getpwnam_r( - arg___name, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + TransactionIdPrecedesOrEquals(arg_id1, arg_id2) }) } -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 TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { 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 TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; } - fgetpwent_r( - arg___stream, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + TransactionIdFollows(arg_id1, arg_id2) }) } -pub type pgsocket = ::std::os::raw::c_int; -pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { +pub unsafe fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_set_noblock(arg_sock: pgsocket) -> bool; + fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) + -> bool; } - pg_set_noblock(arg_sock) + TransactionIdFollowsOrEquals(arg_id1, arg_id2) }) } -pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { +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 pg_set_block(arg_sock: pgsocket) -> bool; + fn TransactionIdLatest( + arg_mainxid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *const TransactionId, + ) -> TransactionId; } - pg_set_block(arg_sock) + TransactionIdLatest(arg_mainxid, arg_nxids, arg_xids) }) } -pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { +pub unsafe fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; + fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr; } - has_drive_prefix(arg_filename) + TransactionIdGetCommitLSN(arg_xid) }) } -pub unsafe fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *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 first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn GetNewTransactionId(arg_isSubXact: bool) -> FullTransactionId; } - first_dir_separator(arg_filename) + GetNewTransactionId(arg_isSubXact) }) } -pub unsafe fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn AdvanceNextFullTransactionIdPastXid(arg_xid: TransactionId) { 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 AdvanceNextFullTransactionIdPastXid(arg_xid: TransactionId); } - last_dir_separator(arg_filename) + AdvanceNextFullTransactionIdPastXid(arg_xid) }) } -pub unsafe fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn ReadNextFullTransactionId() -> FullTransactionId { 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 ReadNextFullTransactionId() -> FullTransactionId; } - first_path_var_separator(arg_pathlist) + ReadNextFullTransactionId() }) } -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 SetTransactionIdLimit( + arg_oldest_datfrozenxid: TransactionId, + arg_oldest_datoid: Oid, ) { 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 SetTransactionIdLimit( + arg_oldest_datfrozenxid: TransactionId, + arg_oldest_datoid: Oid, ); } - join_path_components(arg_ret_path, arg_head, arg_tail) + SetTransactionIdLimit(arg_oldest_datfrozenxid, arg_oldest_datoid) }) } -pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); + fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId); } - canonicalize_path(arg_path) + AdvanceOldestClogXid(arg_oldest_datfrozenxid) }) } -pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn ForceTransactionIdLimitUpdate() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_native_path(arg_path: *mut ::std::os::raw::c_char); + fn ForceTransactionIdLimitUpdate() -> bool; } - make_native_path(arg_path) + ForceTransactionIdLimitUpdate() }) } -pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn GetNewObjectId() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); + fn GetNewObjectId() -> Oid; } - cleanup_path(arg_path) + GetNewObjectId() }) } -pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { +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 path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; + fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size); } - path_contains_parent_reference(arg_path) + PageInit(arg_page, arg_pageSize, arg_specialSize) }) } -pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { +pub unsafe fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> 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 PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool; } - path_is_relative_and_below_cwd(arg_path) + PageIsVerified(arg_page, arg_blkno) }) } -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 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 path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, + fn PageIsVerifiedExtended( + arg_page: Page, + arg_blkno: BlockNumber, + arg_flags: ::std::os::raw::c_int, ) -> bool; } - path_is_prefix_of_path(arg_path1, arg_path2) + PageIsVerifiedExtended(arg_page, arg_blkno, arg_flags) }) } -pub unsafe fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, -) -> *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 make_absolute_path( - arg_path: *const ::std::os::raw::c_char, - ) -> *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; } - make_absolute_path(arg_path) + PageAddItemExtended(arg_page, arg_item, arg_size, arg_offsetNumber, arg_flags) }) } -pub unsafe fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, -) -> *const ::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_progname( - arg_argv0: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + fn PageGetTempPage(arg_page: Page) -> Page; } - get_progname(arg_argv0) + PageGetTempPage(arg_page) }) } -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 unsafe fn PageGetTempPageCopy(arg_page: Page) -> Page { 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 PageGetTempPageCopy(arg_page: Page) -> Page; } - get_share_path(arg_my_exec_path, arg_ret_path) + PageGetTempPageCopy(arg_page) }) } -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 PageGetTempPageCopySpecial(arg_page: Page) -> Page { 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 PageGetTempPageCopySpecial(arg_page: Page) -> Page; } - get_etc_path(arg_my_exec_path, arg_ret_path) + PageGetTempPageCopySpecial(arg_page) }) } -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 PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page) { 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 PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page); } - get_include_path(arg_my_exec_path, arg_ret_path) + PageRestoreTempPage(arg_tempPage, arg_oldPage) }) } -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 PageRepairFragmentation(arg_page: Page) { 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 PageRepairFragmentation(arg_page: Page); } - get_pkginclude_path(arg_my_exec_path, arg_ret_path) + PageRepairFragmentation(arg_page) }) } -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 PageGetFreeSpace(arg_page: Page) -> Size { 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 PageGetFreeSpace(arg_page: Page) -> Size; } - get_includeserver_path(arg_my_exec_path, arg_ret_path) + PageGetFreeSpace(arg_page) }) } -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 PageGetFreeSpaceForMultipleTuples( + arg_page: Page, + arg_ntups: ::std::os::raw::c_int, +) -> Size { 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 PageGetFreeSpaceForMultipleTuples( + arg_page: Page, + arg_ntups: ::std::os::raw::c_int, + ) -> Size; } - get_lib_path(arg_my_exec_path, arg_ret_path) + PageGetFreeSpaceForMultipleTuples(arg_page, arg_ntups) }) } -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 PageGetExactFreeSpace(arg_page: Page) -> Size { 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 PageGetExactFreeSpace(arg_page: Page) -> Size; } - get_pkglib_path(arg_my_exec_path, arg_ret_path) + PageGetExactFreeSpace(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 PageGetHeapFreeSpace(arg_page: Page) -> Size { 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 PageGetHeapFreeSpace(arg_page: Page) -> Size; } - get_locale_path(arg_my_exec_path, arg_ret_path) + PageGetHeapFreeSpace(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 PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber) { 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 PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber); } - get_doc_path(arg_my_exec_path, arg_ret_path) + PageIndexTupleDelete(arg_page, arg_offset) }) } -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 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 get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, + fn PageIndexMultiDelete( + arg_page: Page, + arg_itemnos: *mut OffsetNumber, + arg_nitems: ::std::os::raw::c_int, ); } - get_html_path(arg_my_exec_path, arg_ret_path) + PageIndexMultiDelete(arg_page, arg_itemnos, arg_nitems) }) } -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 PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber) { 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 PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber); } - get_man_path(arg_my_exec_path, arg_ret_path) + PageIndexTupleDeleteNoCompact(arg_page, arg_offset) }) } -pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { +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 get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; + fn PageIndexTupleOverwrite( + arg_page: Page, + arg_offnum: OffsetNumber, + arg_newtup: Item, + arg_newsize: Size, + ) -> bool; } - get_home_path(arg_ret_path) + PageIndexTupleOverwrite(arg_page, arg_offnum, arg_newtup, arg_newsize) }) } -pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { +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 get_parent_directory(arg_path: *mut ::std::os::raw::c_char); + fn PageSetChecksumCopy( + arg_page: Page, + arg_blkno: BlockNumber, + ) -> *mut ::std::os::raw::c_char; } - get_parent_directory(arg_path) + PageSetChecksumCopy(arg_page, arg_blkno) }) } -pub unsafe fn pgfnames( - arg_path: *const ::std::os::raw::c_char, -) -> *mut *mut ::std::os::raw::c_char { +pub unsafe fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber) { 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 PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber); } - pgfnames(arg_path) + PageSetChecksumInplace(arg_page, arg_blkno) }) } -pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *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, +} +#[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 pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); + fn heap_compute_data_size( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> Size; } - pgfnames_cleanup(arg_filenames) + heap_compute_data_size(arg_tupleDesc, arg_values, arg_isnull) }) } -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 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 set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *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, ); } - set_pglocale_pgservice(arg_argv0, arg_app) + heap_fill_tuple( + arg_tupleDesc, + arg_values, + arg_isnull, + arg_data, + arg_data_size, + arg_infomask, + arg_bit, + ) }) } -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 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 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 heap_attisnull( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + ) -> bool; } - find_my_exec(arg_argv0, arg_retpath) + heap_attisnull(arg_tup, arg_attnum, arg_tupleDesc) }) } -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 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 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 nocachegetattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_att: TupleDesc, + ) -> Datum; } - find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) + nocachegetattr(arg_tup, arg_attnum, arg_att) }) } -pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { +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_usleep(arg_microsec: ::std::os::raw::c_long); + fn heap_getsysattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + arg_isnull: *mut bool, + ) -> Datum; } - pg_usleep(arg_microsec) + heap_getsysattr(arg_tup, arg_attnum, arg_tupleDesc, arg_isnull) }) } -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 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_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *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_strcasecmp(arg_s1, arg_s2) + getmissingattr(arg_tupleDesc, arg_attnum, arg_isnull) }) } -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 heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple { 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 heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple; } - pg_strncasecmp(arg_s1, arg_s2, arg_n) + heap_copytuple(arg_tuple) }) } -pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +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_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple); } - pg_toupper(arg_ch) + heap_copytuple_with_tuple(arg_src, arg_dest) }) } -pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +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_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum; } - pg_tolower(arg_ch) + heap_copy_tuple_as_datum(arg_tuple, arg_tupleDesc) }) } -pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +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_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn heap_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> HeapTuple; } - pg_ascii_toupper(arg_ch) + heap_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +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_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn heap_modify_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, + arg_doReplace: *mut bool, + ) -> HeapTuple; } - pg_ascii_tolower(arg_ch) + heap_modify_tuple(arg_tuple, arg_tupleDesc, arg_replValues, arg_replIsnull, arg_doReplace) }) } -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_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_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_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_vsnprintf(arg_str_, arg_count, arg_fmt, arg_args) + heap_modify_tuple_by_cols( + arg_tuple, + arg_tupleDesc, + arg_nCols, + arg_replCols, + arg_replValues, + arg_replIsnull, + ) }) } -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 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_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 heap_deform_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - pg_snprintf(arg_str_, arg_count, arg_fmt) + heap_deform_tuple(arg_tuple, arg_tupleDesc, arg_values, 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_freetuple(arg_htup: 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_freetuple(arg_htup: HeapTuple); } - pg_vsprintf(arg_str_, arg_fmt, arg_args) + heap_freetuple(arg_htup) }) } -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_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_sprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn heap_form_minimal_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> MinimalTuple; } - pg_sprintf(arg_str_, arg_fmt) + heap_form_minimal_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -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_free_minimal_tuple(arg_mtup: MinimalTuple) { 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_free_minimal_tuple(arg_mtup: MinimalTuple); } - pg_vfprintf(arg_stream, arg_fmt, arg_args) + heap_free_minimal_tuple(arg_mtup) }) } -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_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple { 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_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple; } - pg_fprintf(arg_stream, arg_fmt) + heap_copy_minimal_tuple(arg_mtup) }) } -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_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> 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_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple; } - pg_vprintf(arg_fmt, arg_args) + heap_tuple_from_minimal_tuple(arg_mtup) }) } -pub unsafe fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple { 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 minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple; } - pg_printf(arg_fmt) + minimal_tuple_from_heap_tuple(arg_htup) }) } -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_expand_tuple(arg_sourceTuple: HeapTuple, arg_tupleDesc: TupleDesc) -> HeapTuple { 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_expand_tuple(arg_sourceTuple: HeapTuple, arg_tupleDesc: TupleDesc) + -> HeapTuple; } - pg_strfromd(arg_str_, arg_count, arg_precision, arg_value) + heap_expand_tuple(arg_sourceTuple, arg_tupleDesc) }) } -pub unsafe fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { +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_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; + fn minimal_expand_tuple( + arg_sourceTuple: HeapTuple, + arg_tupleDesc: TupleDesc, + ) -> MinimalTuple; } - pg_strerror(arg_errnum) + minimal_expand_tuple(arg_sourceTuple, arg_tupleDesc) }) } -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; +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, +} +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() } - 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; +#[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, +} +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() } - 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, - ); +#[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() } - 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; +#[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() } - 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; +#[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() } - rmtree(arg_path, arg_rmtopdir) - }) + } } -pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { +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 pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; + fn MakeTupleTableSlot( + arg_tupleDesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - pg_erand48(arg_xseed) + MakeTupleTableSlot(arg_tupleDesc, arg_tts_ops) }) } -pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { +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 pg_lrand48() -> ::std::os::raw::c_long; + fn ExecAllocTableSlot( + arg_tupleTable: *mut *mut List, + arg_desc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - pg_lrand48() + ExecAllocTableSlot(arg_tupleTable, arg_desc, arg_tts_ops) }) } -pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { +pub unsafe fn ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool) { 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 ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool); } - pg_jrand48(arg_xseed) + ExecResetTupleTable(arg_tupleTable, arg_shouldFree) }) } -pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { +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 pg_srand48(arg_seed: ::std::os::raw::c_long); + fn MakeSingleTupleTableSlot( + arg_tupdesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - pg_srand48(arg_seed) + MakeSingleTupleTableSlot(arg_tupdesc, arg_tts_ops) }) } -pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot) { 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 ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot); } - fls(arg_mask) + ExecDropSingleTupleTableSlot(arg_slot) }) } -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 ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc) { 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 ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc); } - getpeereid(arg_sock, arg_uid, arg_gid) + ExecSetSlotDescriptor(arg_slot, arg_tupdesc) }) } -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 ExecStoreHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int; + fn ExecStoreHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ) -> *mut TupleTableSlot; } - __fpclassify(arg___value) + ExecStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) }) } -pub unsafe fn __signbit(arg___value: f64) -> ::std::os::raw::c_int { +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 __signbit(arg___value: f64) -> ::std::os::raw::c_int; + fn ExecForceStoreHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ); } - __signbit(arg___value) + ExecForceStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) }) } -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 { +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 __finite(arg___value: f64) -> ::std::os::raw::c_int; + fn ExecStoreBufferHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_buffer: Buffer, + ) -> *mut TupleTableSlot; } - __finite(arg___value) + ExecStoreBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) }) } -pub unsafe fn __isnan(arg___value: f64) -> ::std::os::raw::c_int { +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 __isnan(arg___value: f64) -> ::std::os::raw::c_int; + fn ExecStorePinnedBufferHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_buffer: Buffer, + ) -> *mut TupleTableSlot; } - __isnan(arg___value) + ExecStorePinnedBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) }) } -pub unsafe fn __iseqsig(arg___x: f64, arg___y: f64) -> ::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 __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int; + fn ExecStoreMinimalTuple( + arg_mtup: MinimalTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ) -> *mut TupleTableSlot; } - __iseqsig(arg___x, arg___y) + ExecStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) }) } -pub unsafe fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int { +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 __issignaling(arg___value: f64) -> ::std::os::raw::c_int; + fn ExecForceStoreMinimalTuple( + arg_mtup: MinimalTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ); } - __issignaling(arg___value) + ExecForceStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) }) } -pub unsafe fn acos(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 acos(arg___x: f64) -> f64; + fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; } - acos(arg___x) + ExecStoreVirtualTuple(arg_slot) }) } -pub unsafe fn __acos(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 __acos(arg___x: f64) -> f64; + fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; } - __acos(arg___x) + ExecStoreAllNullTuple(arg_slot) }) } -pub unsafe fn asin(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 asin(arg___x: f64) -> f64; + fn ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot); } - asin(arg___x) + ExecStoreHeapTupleDatum(arg_data, arg_slot) }) } -pub unsafe fn __asin(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 __asin(arg___x: f64) -> f64; + fn ExecFetchSlotHeapTuple( + arg_slot: *mut TupleTableSlot, + arg_materialize: bool, + arg_shouldFree: *mut bool, + ) -> HeapTuple; } - __asin(arg___x) + ExecFetchSlotHeapTuple(arg_slot, arg_materialize, arg_shouldFree) }) } -pub unsafe fn atan(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 atan(arg___x: f64) -> f64; + fn ExecFetchSlotMinimalTuple( + arg_slot: *mut TupleTableSlot, + arg_shouldFree: *mut bool, + ) -> MinimalTuple; } - atan(arg___x) + ExecFetchSlotMinimalTuple(arg_slot, arg_shouldFree) }) } -pub unsafe fn __atan(arg___x: f64) -> f64 { +pub unsafe fn ExecFetchSlotHeapTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atan(arg___x: f64) -> f64; + fn ExecFetchSlotHeapTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum; } - __atan(arg___x) + ExecFetchSlotHeapTupleDatum(arg_slot) }) } -pub unsafe fn atan2(arg___y: f64, 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 atan2(arg___y: f64, 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, + ); } - atan2(arg___y, arg___x) + slot_getmissingattrs(arg_slot, arg_startAttNum, arg_lastAttNum) }) } -pub unsafe fn __atan2(arg___y: f64, 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 __atan2(arg___y: f64, arg___x: f64) -> f64; + fn slot_getsomeattrs_int( + arg_slot: *mut TupleTableSlot, + arg_attnum: ::std::os::raw::c_int, + ); } - __atan2(arg___y, arg___x) + slot_getsomeattrs_int(arg_slot, arg_attnum) }) } -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 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 __cos(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 __cos(arg___x: f64) -> f64; + fn bms_copy(arg_a: *const Bitmapset) -> *mut Bitmapset; } - __cos(arg___x) + bms_copy(arg_a) }) } -pub unsafe fn sin(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 sin(arg___x: f64) -> f64; + fn bms_equal(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - sin(arg___x) + bms_equal(arg_a, arg_b) }) } -pub unsafe fn __sin(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 __sin(arg___x: f64) -> f64; + fn bms_compare( + arg_a: *const Bitmapset, + arg_b: *const Bitmapset, + ) -> ::std::os::raw::c_int; } - __sin(arg___x) + bms_compare(arg_a, arg_b) }) } -pub unsafe fn tan(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 tan(arg___x: f64) -> f64; + fn bms_make_singleton(arg_x: ::std::os::raw::c_int) -> *mut Bitmapset; } - tan(arg___x) + bms_make_singleton(arg_x) }) } -pub unsafe fn __tan(arg___x: f64) -> f64 { +pub unsafe fn bms_free(arg_a: *mut Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tan(arg___x: f64) -> f64; + fn bms_free(arg_a: *mut Bitmapset); } - __tan(arg___x) + bms_free(arg_a) }) } -pub unsafe fn cosh(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 cosh(arg___x: f64) -> f64; + fn bms_union(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - cosh(arg___x) + bms_union(arg_a, arg_b) }) } -pub unsafe fn __cosh(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 __cosh(arg___x: f64) -> f64; + fn bms_intersect(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - __cosh(arg___x) + bms_intersect(arg_a, arg_b) }) } -pub unsafe fn sinh(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 sinh(arg___x: f64) -> f64; + fn bms_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - sinh(arg___x) + bms_difference(arg_a, arg_b) }) } -pub unsafe fn __sinh(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 __sinh(arg___x: f64) -> f64; + fn bms_is_subset(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - __sinh(arg___x) + bms_is_subset(arg_a, arg_b) }) } -pub unsafe fn tanh(arg___x: f64) -> 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 tanh(arg___x: f64) -> f64; + fn bms_subset_compare( + arg_a: *const Bitmapset, + arg_b: *const Bitmapset, + ) -> BMS_Comparison; } - tanh(arg___x) + bms_subset_compare(arg_a, arg_b) }) } -pub unsafe fn __tanh(arg___x: f64) -> 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 __tanh(arg___x: f64) -> f64; + fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool; } - __tanh(arg___x) + bms_is_member(arg_x, arg_a) }) } -pub unsafe fn acosh(arg___x: f64) -> 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 acosh(arg___x: f64) -> f64; + fn bms_member_index( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - acosh(arg___x) + bms_member_index(arg_a, arg_x) }) } -pub unsafe fn __acosh(arg___x: f64) -> 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 __acosh(arg___x: f64) -> f64; + fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - __acosh(arg___x) + bms_overlap(arg_a, arg_b) }) } -pub unsafe fn asinh(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 asinh(arg___x: f64) -> f64; + fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool; } - asinh(arg___x) + bms_overlap_list(arg_a, arg_b) }) } -pub unsafe fn __asinh(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 __asinh(arg___x: f64) -> f64; + fn bms_nonempty_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - __asinh(arg___x) + bms_nonempty_difference(arg_a, arg_b) }) } -pub unsafe fn atanh(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 atanh(arg___x: f64) -> f64; + fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; } - atanh(arg___x) + bms_singleton_member(arg_a) }) } -pub unsafe fn __atanh(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 __atanh(arg___x: f64) -> f64; + fn bms_get_singleton_member( + arg_a: *const Bitmapset, + arg_member: *mut ::std::os::raw::c_int, + ) -> bool; } - __atanh(arg___x) + bms_get_singleton_member(arg_a, arg_member) }) } -pub unsafe fn exp(arg___x: 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 exp(arg___x: f64) -> f64; + fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; } - exp(arg___x) + bms_num_members(arg_a) }) } -pub unsafe fn __exp(arg___x: f64) -> f64 { +pub unsafe fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __exp(arg___x: f64) -> f64; + fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership; } - __exp(arg___x) + bms_membership(arg_a) }) } -pub unsafe fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn bms_is_empty(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_empty(arg_a: *const Bitmapset) -> bool; } - frexp(arg___x, arg___exponent) + bms_is_empty(arg_a) }) } -pub unsafe fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> 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 __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; + fn bms_add_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> *mut Bitmapset; } - __frexp(arg___x, arg___exponent) + bms_add_member(arg_a, arg_x) }) } -pub unsafe fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> 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 ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; + fn bms_del_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> *mut Bitmapset; } - ldexp(arg___x, arg___exponent) + bms_del_member(arg_a, arg_x) }) } -pub unsafe fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> 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 __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; + fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - __ldexp(arg___x, arg___exponent) + bms_add_members(arg_a, arg_b) }) } -pub unsafe fn log(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 log(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; } - log(arg___x) + bms_add_range(arg_a, arg_lower, arg_upper) }) } -pub unsafe fn __log(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 __log(arg___x: f64) -> f64; + fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - __log(arg___x) + bms_int_members(arg_a, arg_b) }) } -pub unsafe fn log10(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 log10(arg___x: f64) -> f64; + fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - log10(arg___x) + bms_del_members(arg_a, arg_b) }) } -pub unsafe fn __log10(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 __log10(arg___x: f64) -> f64; + fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset; } - __log10(arg___x) + bms_join(arg_a, arg_b) }) } -pub unsafe fn modf(arg___x: f64, arg___iptr: *mut 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 modf(arg___x: f64, arg___iptr: *mut f64) -> f64; + fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int; } - modf(arg___x, arg___iptr) + bms_first_member(arg_a) }) } -pub unsafe fn __modf(arg___x: f64, arg___iptr: *mut 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 __modf(arg___x: f64, arg___iptr: *mut f64) -> f64; + fn bms_next_member( + arg_a: *const Bitmapset, + arg_prevbit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - __modf(arg___x, arg___iptr) + bms_next_member(arg_a, arg_prevbit) }) } -pub unsafe fn expm1(arg___x: 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 expm1(arg___x: f64) -> f64; + fn bms_prev_member( + arg_a: *const Bitmapset, + arg_prevbit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - expm1(arg___x) + bms_prev_member(arg_a, arg_prevbit) }) } -pub unsafe fn __expm1(arg___x: f64) -> f64 { +pub unsafe fn bms_hash_value(arg_a: *const Bitmapset) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __expm1(arg___x: f64) -> f64; + fn bms_hash_value(arg_a: *const Bitmapset) -> uint32; } - __expm1(arg___x) + bms_hash_value(arg_a) }) } -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) - }) +#[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 __log1p(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1p(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() } - __log1p(arg___x) - }) + } } -pub unsafe fn logb(arg___x: 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 logb(arg___x: f64) -> f64; + fn convert_tuples_by_position( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut TupleConversionMap; } - logb(arg___x) + convert_tuples_by_position(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn __logb(arg___x: 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 __logb(arg___x: f64) -> f64; + fn convert_tuples_by_name( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut TupleConversionMap; } - __logb(arg___x) + convert_tuples_by_name(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn exp2(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 exp2(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; } - exp2(arg___x) + convert_tuples_by_name_map(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn __exp2(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 __exp2(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; } - __exp2(arg___x) + convert_tuples_by_name_map_if_req(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn log2(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 log2(arg___x: f64) -> f64; + fn execute_attr_map_tuple( + arg_tuple: HeapTuple, + arg_map: *mut TupleConversionMap, + ) -> HeapTuple; } - log2(arg___x) + execute_attr_map_tuple(arg_tuple, arg_map) }) } -pub unsafe fn __log2(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 __log2(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; } - __log2(arg___x) + execute_attr_map_slot(arg_attrMap, arg_in_slot, arg_out_slot) }) } -pub unsafe fn pow(arg___x: f64, arg___y: 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 pow(arg___x: f64, arg___y: f64) -> f64; + fn execute_attr_map_cols( + arg_inbitmap: *mut Bitmapset, + arg_map: *mut TupleConversionMap, + ) -> *mut Bitmapset; } - pow(arg___x, arg___y) + execute_attr_map_cols(arg_inbitmap, arg_map) }) } -pub unsafe fn __pow(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn free_conversion_map(arg_map: *mut TupleConversionMap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __pow(arg___x: f64, arg___y: f64) -> f64; + fn free_conversion_map(arg_map: *mut TupleConversionMap); } - __pow(arg___x, arg___y) + free_conversion_map(arg_map) }) } -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 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 ntuples2: 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 __sqrt(arg___x: f64) -> f64 { +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 __sqrt(arg___x: f64) -> f64; + fn InstrAlloc( + arg_n: ::std::os::raw::c_int, + arg_instrument_options: ::std::os::raw::c_int, + ) -> *mut Instrumentation; } - __sqrt(arg___x) + InstrAlloc(arg_n, arg_instrument_options) }) } -pub unsafe fn hypot(arg___x: f64, arg___y: f64) -> f64 { +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 hypot(arg___x: f64, arg___y: f64) -> f64; + fn InstrInit( + arg_instr: *mut Instrumentation, + arg_instrument_options: ::std::os::raw::c_int, + ); } - hypot(arg___x, arg___y) + InstrInit(arg_instr, arg_instrument_options) }) } -pub unsafe fn __hypot(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn InstrStartNode(arg_instr: *mut Instrumentation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __hypot(arg___x: f64, arg___y: f64) -> f64; + fn InstrStartNode(arg_instr: *mut Instrumentation); } - __hypot(arg___x, arg___y) + InstrStartNode(arg_instr) }) } -pub unsafe fn cbrt(arg___x: f64) -> f64 { +pub unsafe fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cbrt(arg___x: f64) -> f64; + fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64); } - cbrt(arg___x) + InstrStopNode(arg_instr, arg_nTuples) }) } -pub unsafe fn __cbrt(arg___x: f64) -> f64 { +pub unsafe fn InstrEndLoop(arg_instr: *mut Instrumentation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cbrt(arg___x: f64) -> f64; + fn InstrEndLoop(arg_instr: *mut Instrumentation); } - __cbrt(arg___x) + InstrEndLoop(arg_instr) }) } -pub unsafe fn ceil(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 ceil(arg___x: f64) -> f64; + fn InstrAggNode(arg_dst: *mut Instrumentation, arg_add: *mut Instrumentation); } - ceil(arg___x) + InstrAggNode(arg_dst, arg_add) }) } -pub unsafe fn __ceil(arg___x: f64) -> f64 { +pub unsafe fn InstrStartParallelQuery() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ceil(arg___x: f64) -> f64; + fn InstrStartParallelQuery(); } - __ceil(arg___x) + InstrStartParallelQuery() }) } -pub unsafe fn fabs(arg___x: f64) -> f64 { +pub unsafe fn InstrEndParallelQuery(arg_result: *mut BufferUsage) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fabs(arg___x: f64) -> f64; + fn InstrEndParallelQuery(arg_result: *mut BufferUsage); } - fabs(arg___x) + InstrEndParallelQuery(arg_result) }) } -pub unsafe fn __fabs(arg___x: f64) -> f64 { +pub unsafe fn InstrAccumParallelQuery(arg_result: *mut BufferUsage) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fabs(arg___x: f64) -> f64; + fn InstrAccumParallelQuery(arg_result: *mut BufferUsage); } - __fabs(arg___x) + InstrAccumParallelQuery(arg_result) }) } -pub unsafe fn floor(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floor(arg___x: f64) -> 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() } - floor(arg___x) - }) + } } -pub unsafe fn __floor(arg___x: f64) -> f64 { +pub type StringInfo = *mut StringInfoData; +pub unsafe fn makeStringInfo() -> StringInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __floor(arg___x: f64) -> f64; + fn makeStringInfo() -> StringInfo; } - __floor(arg___x) + makeStringInfo() }) } -pub unsafe fn fmod(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn initStringInfo(arg_str_: StringInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmod(arg___x: f64, arg___y: f64) -> f64; + fn initStringInfo(arg_str_: StringInfo); } - fmod(arg___x, arg___y) + initStringInfo(arg_str_) }) } -pub unsafe fn __fmod(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn resetStringInfo(arg_str_: StringInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmod(arg___x: f64, arg___y: f64) -> f64; + fn resetStringInfo(arg_str_: StringInfo); } - __fmod(arg___x, arg___y) + resetStringInfo(arg_str_) }) } -pub unsafe fn isinf(arg___value: f64) -> ::std::os::raw::c_int { +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 isinf(arg___value: f64) -> ::std::os::raw::c_int; + fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char); } - isinf(arg___value) + appendStringInfo(arg_str_, arg_fmt) }) } -pub unsafe fn finite(arg___value: f64) -> ::std::os::raw::c_int { +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 finite(arg___value: f64) -> ::std::os::raw::c_int; + fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char); } - finite(arg___value) + appendStringInfoString(arg_str_, arg_s) }) } -pub unsafe fn drem(arg___x: f64, arg___y: 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 drem(arg___x: f64, arg___y: f64) -> f64; + fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char); } - drem(arg___x, arg___y) + appendStringInfoChar(arg_str_, arg_ch) }) } -pub unsafe fn __drem(arg___x: f64, arg___y: 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 __drem(arg___x: f64, arg___y: f64) -> f64; + fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int); } - __drem(arg___x, arg___y) + appendStringInfoSpaces(arg_str_, arg_count) }) } -pub unsafe fn significand(arg___x: 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 significand(arg___x: f64) -> f64; + fn appendBinaryStringInfo( + arg_str_: StringInfo, + arg_data: *const ::std::os::raw::c_char, + arg_datalen: ::std::os::raw::c_int, + ); } - significand(arg___x) + appendBinaryStringInfo(arg_str_, arg_data, arg_datalen) }) } -pub unsafe fn __significand(arg___x: 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 __significand(arg___x: f64) -> f64; + fn appendBinaryStringInfoNT( + arg_str_: StringInfo, + arg_data: *const ::std::os::raw::c_char, + arg_datalen: ::std::os::raw::c_int, + ); } - __significand(arg___x) + appendBinaryStringInfoNT(arg_str_, arg_data, arg_datalen) }) } -pub unsafe fn copysign(arg___x: f64, arg___y: 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 copysign(arg___x: f64, arg___y: f64) -> f64; + fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int); } - copysign(arg___x, arg___y) + enlargeStringInfo(arg_str_, arg_needed) }) } -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) - }) +#[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 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; +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() } - 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 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 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; +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() } - isnan(arg___value) - }) + } } -pub unsafe fn j0(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 j0(arg_arg1: f64) -> f64; + fn pairingheap_allocate( + arg_compare: pairingheap_comparator, + arg_arg: *mut ::std::os::raw::c_void, + ) -> *mut pairingheap; } - j0(arg_arg1) + pairingheap_allocate(arg_compare, arg_arg) }) } -pub unsafe fn __j0(arg_arg1: f64) -> f64 { +pub unsafe fn pairingheap_free(arg_heap: *mut pairingheap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j0(arg_arg1: f64) -> f64; + fn pairingheap_free(arg_heap: *mut pairingheap); } - __j0(arg_arg1) + pairingheap_free(arg_heap) }) } -pub unsafe fn j1(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 j1(arg_arg1: f64) -> f64; + fn pairingheap_add(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); } - j1(arg_arg1) + pairingheap_add(arg_heap, arg_node) }) } -pub unsafe fn __j1(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 __j1(arg_arg1: f64) -> f64; + fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; } - __j1(arg_arg1) + pairingheap_first(arg_heap) }) } -pub unsafe fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: 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 jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; } - jn(arg_arg1, arg_arg2) + pairingheap_remove_first(arg_heap) }) } -pub unsafe fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: 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 __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); } - __jn(arg_arg1, arg_arg2) + pairingheap_remove(arg_heap, arg_node) }) } -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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParamExternData { + pub value: Datum, + pub isnull: bool, + pub pflags: uint16, + pub ptype: Oid, } -pub unsafe fn __y0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0(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() } - __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 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 __y1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1(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() } - __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) - }) +#[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 __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 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() } - __yn(arg_arg1, arg_arg2) - }) + } } -pub unsafe fn erf(arg_arg1: 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 erf(arg_arg1: f64) -> f64; + fn makeParamList(arg_numParams: ::std::os::raw::c_int) -> ParamListInfo; } - erf(arg_arg1) + makeParamList(arg_numParams) }) } -pub unsafe fn __erf(arg_arg1: f64) -> f64 { +pub unsafe fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erf(arg_arg1: f64) -> f64; + fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo; } - __erf(arg_arg1) + copyParamList(arg_from) }) } -pub unsafe fn erfc(arg_arg1: f64) -> f64 { +pub unsafe fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfc(arg_arg1: f64) -> f64; + fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size; } - erfc(arg_arg1) + EstimateParamListSpace(arg_paramLI) }) } -pub unsafe fn __erfc(arg_arg1: 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 __erfc(arg_arg1: f64) -> f64; + fn SerializeParamList( + arg_paramLI: ParamListInfo, + arg_start_address: *mut *mut ::std::os::raw::c_char, + ); } - __erfc(arg_arg1) + SerializeParamList(arg_paramLI, arg_start_address) }) } -pub unsafe fn lgamma(arg_arg1: f64) -> 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 lgamma(arg_arg1: f64) -> f64; + fn RestoreParamList( + arg_start_address: *mut *mut ::std::os::raw::c_char, + ) -> ParamListInfo; } - lgamma(arg_arg1) + RestoreParamList(arg_start_address) }) } -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 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 tgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgamma(arg_arg1: 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() } - 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 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 gamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gamma(arg_arg1: f64) -> 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 rint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rint(arg___x: f64) -> 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Expr { + pub type_: NodeTag, } -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; +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() } - 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) - }) +#[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 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; +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() } - 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) - }) +#[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 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 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() } - 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 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 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 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() } - 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 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 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 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() } - 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 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 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 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() } - 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 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 nearbyint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyint(arg___x: f64) -> f64; +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() } - 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) - }) +#[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 __round(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __round(arg___x: 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() } - __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 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 __trunc(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __trunc(arg___x: 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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[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 __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 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() } - __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 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 __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 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() } - __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 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 __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 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() } - __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 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 __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; +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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlternativeSubPlan { + pub xpr: Expr, + pub subplans: *mut List, } -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 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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[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 __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; +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() } - __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) - }) +#[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 __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; +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() } - __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) - }) +#[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 __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; +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() } - __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) - }) +#[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 acosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosf(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() } - 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) - }) +#[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 asinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinf(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() } - 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) - }) +#[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 atanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanf(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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CaseTestExpr { + pub xpr: Expr, + pub typeId: Oid, + pub typeMod: int32, + pub collation: Oid, } -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 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() } - 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) - }) +#[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 cosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosf(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() } - 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) - }) +#[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 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; +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() } - __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 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 __tanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanf(arg___x: f32) -> 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() } - __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 CoalesceExpr { + pub xpr: Expr, + pub coalescetype: Oid, + pub coalescecollid: Oid, + pub args: *mut List, + 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 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() } - __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 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 __sinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinhf(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() } - __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 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 __tanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanhf(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() } - __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 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 __acoshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acoshf(arg___x: 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() } - __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 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 __asinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinhf(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() } - __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 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 __atanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanhf(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() } - __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) - }) +#[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 __expf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expf(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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[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 __logf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logf(arg___x: 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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NextValueExpr { + pub xpr: Expr, + pub seqid: Oid, + pub typeId: Oid, } -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 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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[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 __expm1f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1f(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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTblRef { + pub type_: NodeTag, + pub rtindex: ::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 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() } - __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) - }) +#[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 __logbf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logbf(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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FromExpr { + pub type_: NodeTag, + pub fromlist: *mut List, + pub quals: *mut Node, } -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 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() } - __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) - }) +#[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 __log2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2f(arg___x: 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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Result { + pub plan: Plan, + pub resconstantqual: *mut Node, } -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 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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ProjectSet { + pub plan: Plan, } -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 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() } - __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) - }) +#[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 __fabsf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabsf(arg___x: f32) -> f32; +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() } - __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) - }) +#[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 __floorf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floorf(arg___x: 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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[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 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; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapAnd { + pub plan: Plan, + pub bitmapplans: *mut List, } -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; +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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapOr { + pub plan: Plan, + pub isshared: bool, + pub bitmapplans: *mut List, } -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 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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Scan { + pub plan: Plan, + pub scanrelid: Index, } -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 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() } - __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 type SeqScan = Scan; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SampleScan { + pub scan: Scan, + pub tablesample: *mut TableSampleClause, } -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 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() } - __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) - }) +#[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 j0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0f(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() } - 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) - }) +#[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 j1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1f(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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapHeapScan { + pub scan: Scan, + pub bitmapqualorig: *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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TidScan { + pub scan: Scan, + pub tidquals: *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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubqueryScan { + pub scan: Scan, + pub subplan: *mut Plan, } -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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FunctionScan { + pub scan: Scan, + pub functions: *mut List, + pub funcordinality: bool, } -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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ValuesScan { + pub scan: Scan, + pub values_lists: *mut List, } -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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableFuncScan { + pub scan: Scan, + pub tablefunc: *mut TableFunc, } -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 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() } - 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) - }) +#[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 tgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgammaf(arg_arg1: f32) -> 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NamedTuplestoreScan { + pub scan: Scan, + pub enrname: *mut ::std::os::raw::c_char, } -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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WorkTableScan { + pub scan: Scan, + pub wtParam: ::std::os::raw::c_int, } -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 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() } - 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) - }) +#[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 rintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rintf(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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NestLoop { + pub join: Join, + pub nestParams: *mut List, } -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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Material { + pub plan: Plan, } -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 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() } - 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) - }) +#[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 roundf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn roundf(arg___x: 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() } - 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) - }) +#[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 truncf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn truncf(arg___x: 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Limit { + pub plan: Plan, + pub limitOffset: *mut Node, + pub limitCount: *mut Node, } -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 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() } - 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 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 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 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() } - 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) - }) +#[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 __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; +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() } - __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) - }) +#[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 __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; +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() } - __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 PartitionPruneStep { + pub type_: NodeTag, + pub step_id: ::std::os::raw::c_int, } -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 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() } - 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 PartitionPruneStepOp { + pub step: PartitionPruneStep, + pub opstrategy: StrategyNumber, + pub exprs: *mut List, + pub cmpfns: *mut List, + pub nullkeys: *mut Bitmapset, } -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 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() } - 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 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 atanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanl(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() } - 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) - }) +#[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 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 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() } - 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 PartitionBoundInfoData { + _unused: [u8; 0], } -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 type PartitionBoundInfo = *mut PartitionBoundInfoData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionKeyData { + _unused: [u8; 0], } -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 type PartitionKey = *mut PartitionKeyData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionDescData { + _unused: [u8; 0], } -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 type PartitionDesc = *mut PartitionDescData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionDirectoryData { + _unused: [u8; 0], } -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 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 tanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanl(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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HASHHDR { + _unused: [u8; 0], } -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 HTAB { + _unused: [u8; 0], } -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 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 sinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinhl(arg___x: u128) -> 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() } - 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 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 tanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanhl(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() } - tanhl(arg___x) - }) + } } -pub unsafe fn __tanhl(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 __tanhl(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; } - __tanhl(arg___x) + hash_create(arg_tabname, arg_nelem, arg_info, arg_flags) }) } -pub unsafe fn acoshl(arg___x: u128) -> u128 { +pub unsafe fn hash_destroy(arg_hashp: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acoshl(arg___x: u128) -> u128; + fn hash_destroy(arg_hashp: *mut HTAB); } - acoshl(arg___x) + hash_destroy(arg_hashp) }) } -pub unsafe fn __acoshl(arg___x: 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 __acoshl(arg___x: u128) -> u128; + fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB); } - __acoshl(arg___x) + hash_stats(arg_where_, arg_hashp) }) } -pub unsafe fn asinhl(arg___x: 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 asinhl(arg___x: 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; } - asinhl(arg___x) + hash_search(arg_hashp, arg_keyPtr, arg_action, arg_foundPtr) }) } -pub unsafe fn __asinhl(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 __asinhl(arg___x: u128) -> u128; + fn get_hash_value( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + ) -> uint32; } - __asinhl(arg___x) + get_hash_value(arg_hashp, arg_keyPtr) }) } -pub unsafe fn atanhl(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 atanhl(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; } - atanhl(arg___x) + hash_search_with_hash_value(arg_hashp, arg_keyPtr, arg_hashvalue, arg_action, arg_foundPtr) }) } -pub unsafe fn __atanhl(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 __atanhl(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; } - __atanhl(arg___x) + hash_update_hash_key(arg_hashp, arg_existingEntry, arg_newKeyPtr) }) } -pub unsafe fn expl(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 expl(arg___x: u128) -> u128; + fn hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long; } - expl(arg___x) + hash_get_num_entries(arg_hashp) }) } -pub unsafe fn __expl(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 __expl(arg___x: u128) -> u128; + fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB); } - __expl(arg___x) + hash_seq_init(arg_status, arg_hashp) }) } -pub unsafe fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> 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 frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; + fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void; } - frexpl(arg___x, arg___exponent) + hash_seq_search(arg_status) }) } -pub unsafe fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS) { 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 hash_seq_term(arg_status: *mut HASH_SEQ_STATUS); } - __frexpl(arg___x, arg___exponent) + hash_seq_term(arg_status) }) } -pub unsafe fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { +pub unsafe fn hash_freeze(arg_hashp: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; + fn hash_freeze(arg_hashp: *mut HTAB); } - ldexpl(arg___x, arg___exponent) + hash_freeze(arg_hashp) }) } -pub unsafe fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> 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 __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; + fn hash_estimate_size( + arg_num_entries: ::std::os::raw::c_long, + arg_entrysize: Size, + ) -> Size; } - __ldexpl(arg___x, arg___exponent) + hash_estimate_size(arg_num_entries, arg_entrysize) }) } -pub unsafe fn logl(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 logl(arg___x: u128) -> u128; + fn hash_select_dirsize( + arg_num_entries: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; } - logl(arg___x) + hash_select_dirsize(arg_num_entries) }) } -pub unsafe fn __logl(arg___x: 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 __logl(arg___x: u128) -> u128; + fn hash_get_shared_size( + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, + ) -> Size; } - __logl(arg___x) + hash_get_shared_size(arg_info, arg_flags) }) } -pub unsafe fn log10l(arg___x: u128) -> u128 { +pub unsafe fn AtEOXact_HashTables(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log10l(arg___x: u128) -> u128; + fn AtEOXact_HashTables(arg_isCommit: bool); } - log10l(arg___x) + AtEOXact_HashTables(arg_isCommit) }) } -pub unsafe fn __log10l(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 __log10l(arg___x: u128) -> u128; + fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); } - __log10l(arg___x) + AtEOSubXact_HashTables(arg_isCommit, arg_nestDepth) }) } -pub unsafe fn modfl(arg___x: u128, arg___iptr: *mut 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 modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; + fn string_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - modfl(arg___x, arg___iptr) + string_hash(arg_key, arg_keysize) }) } -pub unsafe fn __modfl(arg___x: u128, arg___iptr: *mut 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 __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; + fn tag_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - __modfl(arg___x, arg___iptr) + tag_hash(arg_key, arg_keysize) }) } -pub unsafe fn expm1l(arg___x: 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 expm1l(arg___x: u128) -> u128; + fn uint32_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - expm1l(arg___x) + uint32_hash(arg_key, arg_keysize) }) } -pub unsafe fn __expm1l(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 __expm1l(arg___x: u128) -> u128; + fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - __expm1l(arg___x) + bitmap_hash(arg_key, arg_keysize) }) } -pub unsafe fn log1pl(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 log1pl(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; } - log1pl(arg___x) + bitmap_match(arg_key1, arg_key2, arg_keysize) }) } -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 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 logbl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logbl(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() } - 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 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 exp2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2l(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() } - 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 type EphemeralNamedRelation = *mut EphemeralNamedRelationData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct QueryEnvironment { + _unused: [u8; 0], } -pub unsafe fn log2l(arg___x: u128) -> u128 { +pub unsafe fn create_queryEnv() -> *mut QueryEnvironment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log2l(arg___x: u128) -> u128; + fn create_queryEnv() -> *mut QueryEnvironment; } - log2l(arg___x) + create_queryEnv() }) } -pub unsafe fn __log2l(arg___x: 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 __log2l(arg___x: u128) -> u128; + fn get_visible_ENR_metadata( + arg_queryEnv: *mut QueryEnvironment, + arg_refname: *const ::std::os::raw::c_char, + ) -> EphemeralNamedRelationMetadata; } - __log2l(arg___x) + get_visible_ENR_metadata(arg_queryEnv, arg_refname) }) } -pub unsafe fn powl(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 powl(arg___x: u128, arg___y: u128) -> u128; + fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation); } - powl(arg___x, arg___y) + register_ENR(arg_queryEnv, arg_enr) }) } -pub unsafe fn __powl(arg___x: u128, arg___y: u128) -> u128 { +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 __powl(arg___x: u128, arg___y: u128) -> u128; + fn unregister_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, + ); } - __powl(arg___x, arg___y) + unregister_ENR(arg_queryEnv, arg_name) }) } -pub unsafe fn sqrtl(arg___x: u128) -> u128 { +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 sqrtl(arg___x: u128) -> u128; + fn get_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, + ) -> EphemeralNamedRelation; } - sqrtl(arg___x) + get_ENR(arg_queryEnv, arg_name) }) } -pub unsafe fn __sqrtl(arg___x: u128) -> u128 { +pub unsafe fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sqrtl(arg___x: u128) -> u128; + fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; } - __sqrtl(arg___x) + ENRMetadataGetTupDesc(arg_enrmd) }) } -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) - }) +#[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 __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; +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() } - __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; +#[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() } - 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; +#[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() } - __cbrtl(arg___x) - }) + } +} +#[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; +} +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 ceill(arg___x: u128) -> u128 { +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 ceill(arg___x: u128) -> u128; + fn PathNameOpenFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + ) -> File; } - ceill(arg___x) + PathNameOpenFile(arg_fileName, arg_fileFlags) }) } -pub unsafe fn __ceill(arg___x: 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 __ceill(arg___x: u128) -> u128; + fn PathNameOpenFilePerm( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: mode_t, + ) -> File; } - __ceill(arg___x) + PathNameOpenFilePerm(arg_fileName, arg_fileFlags, arg_fileMode) }) } -pub unsafe fn fabsl(arg___x: u128) -> u128 { +pub unsafe fn OpenTemporaryFile(arg_interXact: bool) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fabsl(arg___x: u128) -> u128; + fn OpenTemporaryFile(arg_interXact: bool) -> File; } - fabsl(arg___x) + OpenTemporaryFile(arg_interXact) }) } -pub unsafe fn __fabsl(arg___x: u128) -> u128 { +pub unsafe fn FileClose(arg_file: File) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fabsl(arg___x: u128) -> u128; + fn FileClose(arg_file: File); } - __fabsl(arg___x) + FileClose(arg_file) }) } -pub unsafe fn floorl(arg___x: u128) -> u128 { +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 floorl(arg___x: u128) -> u128; + 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; } - floorl(arg___x) + FilePrefetch(arg_file, arg_offset, arg_amount, arg_wait_event_info) }) } -pub unsafe fn __floorl(arg___x: 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 __floorl(arg___x: 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; } - __floorl(arg___x) + FileRead(arg_file, arg_buffer, arg_amount, arg_offset, arg_wait_event_info) }) } -pub unsafe fn fmodl(arg___x: u128, arg___y: 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 fmodl(arg___x: u128, arg___y: 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; } - fmodl(arg___x, arg___y) + FileWrite(arg_file, arg_buffer, arg_amount, arg_offset, arg_wait_event_info) }) } -pub unsafe fn __fmodl(arg___x: u128, arg___y: 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 __fmodl(arg___x: u128, arg___y: u128) -> u128; + fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int; } - __fmodl(arg___x, arg___y) + FileSync(arg_file, arg_wait_event_info) }) } -pub unsafe fn isinfl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn FileSize(arg_file: File) -> off_t { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isinfl(arg___value: u128) -> ::std::os::raw::c_int; + fn FileSize(arg_file: File) -> off_t; } - isinfl(arg___value) + FileSize(arg_file) }) } -pub unsafe fn finitel(arg___value: u128) -> ::std::os::raw::c_int { +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 finitel(arg___value: u128) -> ::std::os::raw::c_int; + fn FileTruncate( + arg_file: File, + arg_offset: off_t, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - finitel(arg___value) + FileTruncate(arg_file, arg_offset, arg_wait_event_info) }) } -pub unsafe fn dreml(arg___x: u128, arg___y: 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 dreml(arg___x: u128, arg___y: u128) -> u128; + fn FileWriteback( + arg_file: File, + arg_offset: off_t, + arg_nbytes: off_t, + arg_wait_event_info: uint32, + ); } - dreml(arg___x, arg___y) + FileWriteback(arg_file, arg_offset, arg_nbytes, arg_wait_event_info) }) } -pub unsafe fn __dreml(arg___x: u128, arg___y: 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 __dreml(arg___x: u128, arg___y: u128) -> u128; + fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char; } - __dreml(arg___x, arg___y) + FilePathName(arg_file) }) } -pub unsafe fn significandl(arg___x: 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 significandl(arg___x: u128) -> u128; + fn FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int; } - significandl(arg___x) + FileGetRawDesc(arg_file) }) } -pub unsafe fn __significandl(arg___x: 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 __significandl(arg___x: u128) -> u128; + fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int; } - __significandl(arg___x) + FileGetRawFlags(arg_file) }) } -pub unsafe fn copysignl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn FileGetRawMode(arg_file: File) -> mode_t { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn copysignl(arg___x: u128, arg___y: u128) -> u128; + fn FileGetRawMode(arg_file: File) -> mode_t; } - copysignl(arg___x, arg___y) + FileGetRawMode(arg_file) }) } -pub unsafe fn __copysignl(arg___x: u128, arg___y: 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 __copysignl(arg___x: u128, arg___y: u128) -> u128; + fn PathNameCreateTemporaryFile( + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, + ) -> File; } - __copysignl(arg___x, arg___y) + PathNameCreateTemporaryFile(arg_name, arg_error_on_failure) }) } -pub unsafe fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> 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 nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; + fn PathNameOpenTemporaryFile(arg_name: *const ::std::os::raw::c_char) -> File; } - nanl(arg___tagb) + PathNameOpenTemporaryFile(arg_name) }) } -pub unsafe fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> 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 __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; + fn PathNameDeleteTemporaryFile( + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, + ) -> bool; } - __nanl(arg___tagb) + PathNameDeleteTemporaryFile(arg_name, arg_error_on_failure) }) } -pub unsafe fn isnanl(arg___value: u128) -> ::std::os::raw::c_int { +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 isnanl(arg___value: u128) -> ::std::os::raw::c_int; + fn PathNameCreateTemporaryDir( + arg_base: *const ::std::os::raw::c_char, + arg_name: *const ::std::os::raw::c_char, + ); } - isnanl(arg___value) + PathNameCreateTemporaryDir(arg_base, arg_name) }) } -pub unsafe fn j0l(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 j0l(arg_arg1: u128) -> u128; + fn PathNameDeleteTemporaryDir(arg_name: *const ::std::os::raw::c_char); } - j0l(arg_arg1) + PathNameDeleteTemporaryDir(arg_name) }) } -pub unsafe fn __j0l(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 __j0l(arg_arg1: u128) -> u128; + fn TempTablespacePath(arg_path: *mut ::std::os::raw::c_char, arg_tablespace: Oid); } - __j0l(arg_arg1) + TempTablespacePath(arg_path, arg_tablespace) }) } -pub unsafe fn j1l(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 j1l(arg_arg1: u128) -> u128; + fn AllocateFile( + arg_name: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; } - j1l(arg_arg1) + AllocateFile(arg_name, arg_mode) }) } -pub unsafe fn __j1l(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 __j1l(arg_arg1: u128) -> u128; + fn FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int; } - __j1l(arg_arg1) + FreeFile(arg_file) }) } -pub unsafe fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: 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 jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn OpenPipeStream( + arg_command: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; } - jnl(arg_arg1, arg_arg2) + OpenPipeStream(arg_command, arg_mode) }) } -pub unsafe fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: 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 __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int; } - __jnl(arg_arg1, arg_arg2) + ClosePipeStream(arg_file) }) } -pub unsafe fn y0l(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 y0l(arg_arg1: u128) -> u128; + fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR; } - y0l(arg_arg1) + AllocateDir(arg_dirname) }) } -pub unsafe fn __y0l(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 __y0l(arg_arg1: u128) -> u128; + fn ReadDir( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, + ) -> *mut dirent; } - __y0l(arg_arg1) + ReadDir(arg_dir, arg_dirname) }) } -pub unsafe fn y1l(arg_arg1: u128) -> 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 y1l(arg_arg1: u128) -> u128; + fn ReadDirExtended( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, + arg_elevel: ::std::os::raw::c_int, + ) -> *mut dirent; } - y1l(arg_arg1) + ReadDirExtended(arg_dir, arg_dirname, arg_elevel) }) } -pub unsafe fn __y1l(arg_arg1: u128) -> 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 __y1l(arg_arg1: u128) -> u128; + fn FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int; } - __y1l(arg_arg1) + FreeDir(arg_dir) }) } -pub unsafe fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: 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 ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn OpenTransientFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - ynl(arg_arg1, arg_arg2) + OpenTransientFile(arg_fileName, arg_fileFlags) }) } -pub unsafe fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: 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 __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: 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; } - __ynl(arg_arg1, arg_arg2) + OpenTransientFilePerm(arg_fileName, arg_fileFlags, arg_fileMode) }) } -pub unsafe fn erfl(arg_arg1: 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 erfl(arg_arg1: u128) -> u128; + fn CloseTransientFile(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - erfl(arg_arg1) + CloseTransientFile(arg_fd) }) } -pub unsafe fn __erfl(arg_arg1: 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 __erfl(arg_arg1: u128) -> u128; + fn BasicOpenFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - __erfl(arg_arg1) + BasicOpenFile(arg_fileName, arg_fileFlags) }) } -pub unsafe fn erfcl(arg_arg1: 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 erfcl(arg_arg1: 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; } - erfcl(arg_arg1) + BasicOpenFilePerm(arg_fileName, arg_fileFlags, arg_fileMode) }) } -pub unsafe fn __erfcl(arg_arg1: 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 __erfcl(arg_arg1: u128) -> u128; + fn MakePGDirectory( + arg_directoryName: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - __erfcl(arg_arg1) + MakePGDirectory(arg_directoryName) }) } -pub unsafe fn lgammal(arg_arg1: u128) -> u128 { +pub unsafe fn InitFileAccess() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgammal(arg_arg1: u128) -> u128; + fn InitFileAccess(); } - lgammal(arg_arg1) + InitFileAccess() }) } -pub unsafe fn __lgammal(arg_arg1: u128) -> u128 { +pub unsafe fn set_max_safe_fds() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgammal(arg_arg1: u128) -> u128; + fn set_max_safe_fds(); } - __lgammal(arg_arg1) + set_max_safe_fds() }) } -pub unsafe fn tgammal(arg_arg1: u128) -> u128 { +pub unsafe fn closeAllVfds() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tgammal(arg_arg1: u128) -> u128; + fn closeAllVfds(); } - tgammal(arg_arg1) + closeAllVfds() }) } -pub unsafe fn __tgammal(arg_arg1: u128) -> 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 __tgammal(arg_arg1: u128) -> u128; + fn SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int); } - __tgammal(arg_arg1) + SetTempTablespaces(arg_tableSpaces, arg_numSpaces) }) } -pub unsafe fn gammal(arg_arg1: u128) -> u128 { +pub unsafe fn TempTablespacesAreSet() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gammal(arg_arg1: u128) -> u128; + fn TempTablespacesAreSet() -> bool; } - gammal(arg_arg1) + TempTablespacesAreSet() }) } -pub unsafe fn __gammal(arg_arg1: u128) -> u128 { +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 __gammal(arg_arg1: u128) -> u128; + fn GetTempTablespaces( + arg_tableSpaces: *mut Oid, + arg_numSpaces: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - __gammal(arg_arg1) + GetTempTablespaces(arg_tableSpaces, arg_numSpaces) }) } -pub unsafe fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn GetNextTempTableSpace() -> Oid { 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 GetNextTempTableSpace() -> Oid; } - lgammal_r(arg_arg1, arg___signgamp) + GetNextTempTableSpace() }) } -pub unsafe fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn AtEOXact_Files(arg_isCommit: bool) { 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 AtEOXact_Files(arg_isCommit: bool); } - __lgammal_r(arg_arg1, arg___signgamp) + AtEOXact_Files(arg_isCommit) }) } -pub unsafe fn rintl(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 rintl(arg___x: u128) -> u128; + fn AtEOSubXact_Files( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - rintl(arg___x) + AtEOSubXact_Files(arg_isCommit, arg_mySubid, arg_parentSubid) }) } -pub unsafe fn __rintl(arg___x: u128) -> u128 { +pub unsafe fn RemovePgTempFiles() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __rintl(arg___x: u128) -> u128; + fn RemovePgTempFiles(); } - __rintl(arg___x) + RemovePgTempFiles() }) } -pub unsafe fn nextafterl(arg___x: u128, arg___y: 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 nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn looks_like_temp_rel_name(arg_name: *const ::std::os::raw::c_char) -> bool; } - nextafterl(arg___x, arg___y) + looks_like_temp_rel_name(arg_name) }) } -pub unsafe fn __nextafterl(arg___x: u128, arg___y: 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 __nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - __nextafterl(arg___x, arg___y) + pg_fsync(arg_fd) }) } -pub unsafe fn nexttowardl(arg___x: u128, arg___y: 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 nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - nexttowardl(arg___x, arg___y) + pg_fsync_no_writethrough(arg_fd) }) } -pub unsafe fn __nexttowardl(arg___x: u128, arg___y: 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 __nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - __nexttowardl(arg___x, arg___y) + pg_fsync_writethrough(arg_fd) }) } -pub unsafe fn remainderl(arg___x: u128, arg___y: u128) -> 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 remainderl(arg___x: u128, arg___y: u128) -> u128; + fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - remainderl(arg___x, arg___y) + pg_fdatasync(arg_fd) }) } -pub unsafe fn __remainderl(arg___x: u128, arg___y: u128) -> 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 __remainderl(arg___x: u128, arg___y: u128) -> u128; + fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t); } - __remainderl(arg___x, arg___y) + pg_flush_data(arg_fd, arg_offset, arg_amount) }) } -pub unsafe fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +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 scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; + fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool); } - scalbnl(arg___x, arg___n) + fsync_fname(arg_fname, arg_isdir) }) } -pub unsafe fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +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 __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; + 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; } - __scalbnl(arg___x, arg___n) + durable_rename(arg_oldfile, arg_newfile, arg_loglevel) }) } -pub unsafe fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int { +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 ilogbl(arg___x: u128) -> ::std::os::raw::c_int; + fn durable_unlink( + arg_fname: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - ilogbl(arg___x) + durable_unlink(arg_fname, arg_loglevel) }) } -pub unsafe fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int { +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 __ilogbl(arg___x: u128) -> ::std::os::raw::c_int; + 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; } - __ilogbl(arg___x) + durable_link_or_rename(arg_oldfile, arg_newfile, arg_loglevel) }) } -pub unsafe fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { +pub unsafe fn SyncDataDirectory() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; + fn SyncDataDirectory(); } - scalblnl(arg___x, arg___n) + SyncDataDirectory() }) } -pub unsafe fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { +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 __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; + fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - __scalblnl(arg___x, arg___n) + data_sync_elevel(arg_elevel) }) } -pub unsafe fn nearbyintl(arg___x: u128) -> u128 { +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 nearbyintl(arg___x: u128) -> u128; + 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; } - nearbyintl(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 __nearbyintl(arg___x: u128) -> u128 { +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 __nearbyintl(arg___x: u128) -> u128; + 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, + ); } - __nearbyintl(arg___x) + dsm_impl_pin_segment(arg_handle, arg_impl_private, arg_impl_private_pm_handle) }) } -pub unsafe fn roundl(arg___x: 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 roundl(arg___x: u128) -> u128; + fn dsm_impl_unpin_segment( + arg_handle: dsm_handle, + arg_impl_private: *mut *mut ::std::os::raw::c_void, + ); } - roundl(arg___x) + dsm_impl_unpin_segment(arg_handle, arg_impl_private) }) } -pub unsafe fn __roundl(arg___x: 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 __roundl(arg___x: u128) -> u128; + fn dsm_cleanup_using_control_segment(arg_old_control_handle: dsm_handle); } - __roundl(arg___x) + dsm_cleanup_using_control_segment(arg_old_control_handle) }) } -pub unsafe fn truncl(arg___x: u128) -> u128 { +pub unsafe fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn truncl(arg___x: u128) -> u128; + fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader); } - truncl(arg___x) + dsm_postmaster_startup(arg_arg1) }) } -pub unsafe fn __truncl(arg___x: u128) -> u128 { +pub unsafe fn dsm_backend_shutdown() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __truncl(arg___x: u128) -> u128; + fn dsm_backend_shutdown(); } - __truncl(arg___x) + dsm_backend_shutdown() }) } -pub unsafe fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn dsm_detach_all() { 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 dsm_detach_all(); } - remquol(arg___x, arg___y, arg___quo) + dsm_detach_all() }) } -pub unsafe fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, -) -> 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 __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, - ) -> u128; + fn dsm_create(arg_size: Size, arg_flags: ::std::os::raw::c_int) -> *mut dsm_segment; } - __remquol(arg___x, arg___y, arg___quo) + dsm_create(arg_size, arg_flags) }) } -pub unsafe fn lrintl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrintl(arg___x: u128) -> ::std::os::raw::c_long; + fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment; } - lrintl(arg___x) + dsm_attach(arg_h) }) } -pub unsafe fn __lrintl(arg___x: u128) -> ::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 __lrintl(arg___x: u128) -> ::std::os::raw::c_long; + fn dsm_detach(arg_seg: *mut dsm_segment); } - __lrintl(arg___x) + dsm_detach(arg_seg) }) } -pub unsafe fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn dsm_pin_mapping(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn dsm_pin_mapping(arg_seg: *mut dsm_segment); } - llrintl(arg___x) + dsm_pin_mapping(arg_seg) }) } -pub unsafe fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn dsm_unpin_mapping(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn dsm_unpin_mapping(arg_seg: *mut dsm_segment); } - __llrintl(arg___x) + dsm_unpin_mapping(arg_seg) }) } -pub unsafe fn lroundl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn dsm_pin_segment(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lroundl(arg___x: u128) -> ::std::os::raw::c_long; + fn dsm_pin_segment(arg_seg: *mut dsm_segment); } - lroundl(arg___x) + dsm_pin_segment(arg_seg) }) } -pub unsafe fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn dsm_unpin_segment(arg_h: dsm_handle) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long; + fn dsm_unpin_segment(arg_h: dsm_handle); } - __lroundl(arg___x) + dsm_unpin_segment(arg_h) }) } -pub unsafe fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment; } - llroundl(arg___x) + dsm_find_mapping(arg_h) }) } -pub unsafe fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { +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 __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn dsm_segment_address(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void; } - __llroundl(arg___x) + dsm_segment_address(arg_seg) }) } -pub unsafe fn fdiml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdiml(arg___x: u128, arg___y: u128) -> u128; + fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size; } - fdiml(arg___x, arg___y) + dsm_segment_map_length(arg_seg) }) } -pub unsafe fn __fdiml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fdiml(arg___x: u128, arg___y: u128) -> u128; + fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle; } - __fdiml(arg___x, arg___y) + dsm_segment_handle(arg_seg) }) } -pub unsafe fn fmaxl(arg___x: u128, arg___y: u128) -> u128 { +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 fmaxl(arg___x: u128, arg___y: u128) -> u128; + fn on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, + ); } - fmaxl(arg___x, arg___y) + on_dsm_detach(arg_seg, arg_function, arg_arg) }) } -pub unsafe fn __fmaxl(arg___x: u128, arg___y: u128) -> u128 { +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 __fmaxl(arg___x: u128, arg___y: u128) -> u128; + fn cancel_on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, + ); } - __fmaxl(arg___x, arg___y) + cancel_on_dsm_detach(arg_seg, arg_function, arg_arg) }) } -pub unsafe fn fminl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn reset_on_dsm_detach() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fminl(arg___x: u128, arg___y: u128) -> u128; + fn reset_on_dsm_detach(); } - fminl(arg___x, arg___y) + reset_on_dsm_detach() }) } -pub unsafe fn __fminl(arg___x: u128, arg___y: u128) -> u128 { +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 __fminl(arg___x: u128, arg___y: u128) -> u128; + 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; } - __fminl(arg___x, arg___y) + s_lock(arg_lock, arg_file, arg_line, arg_func) }) } -pub unsafe fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { +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 fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; + fn set_spins_per_delay(arg_shared_spins_per_delay: ::std::os::raw::c_int); } - fmal(arg___x, arg___y, arg___z) + set_spins_per_delay(arg_shared_spins_per_delay) }) } -pub unsafe fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { +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 __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; + fn update_spins_per_delay( + arg_shared_spins_per_delay: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - __fmal(arg___x, arg___y, arg___z) + update_spins_per_delay(arg_shared_spins_per_delay) }) } -pub unsafe fn scalbl(arg___x: u128, arg___n: u128) -> u128 { +#[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 scalbl(arg___x: u128, arg___n: u128) -> u128; + fn perform_spin_delay(arg_status: *mut SpinDelayStatus); } - scalbl(arg___x, arg___n) + perform_spin_delay(arg_status) }) } -pub unsafe fn __scalbl(arg___x: u128, arg___n: u128) -> u128 { +pub unsafe fn finish_spin_delay(arg_status: *mut SpinDelayStatus) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbl(arg___x: u128, arg___n: u128) -> u128; + fn finish_spin_delay(arg_status: *mut SpinDelayStatus); } - __scalbl(arg___x, arg___n) + finish_spin_delay(arg_status) }) } -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 SpinlockSemas() -> ::std::os::raw::c_int { 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 SpinlockSemas() -> ::std::os::raw::c_int; } - strlcat(arg_dst, arg_src, arg_siz) + SpinlockSemas() }) } -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 SpinlockSemaSize() -> Size { 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 SpinlockSemaSize() -> Size; } - strlcpy(arg_dst, arg_src, arg_siz) + SpinlockSemaSize() }) } -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 { +#[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 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 SharedFileSetInit(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment); } - pqGetpwuid(arg_uid, arg_resultbuf, arg_buffer, arg_buflen, arg_result) + SharedFileSetInit(arg_fileset, arg_seg) }) } -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 SharedFileSetAttach(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment) { 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 SharedFileSetAttach(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment); } - pqGethostbyname( - arg_name, - arg_resultbuf, - arg_buffer, - arg_buflen, - arg_result, - arg_herrno, - ) + SharedFileSetAttach(arg_fileset, 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 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 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 SharedFileSetCreate( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + ) -> File; } - pg_qsort(arg_base, arg_nel, arg_elsize, arg_cmp) + SharedFileSetCreate(arg_fileset, arg_name) }) } -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 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 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 SharedFileSetOpen( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + ) -> File; } - pg_qsort_strcmp(arg_a, arg_b) + SharedFileSetOpen(arg_fileset, arg_name) }) } -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 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 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 SharedFileSetDelete( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, + ) -> bool; } - qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) + SharedFileSetDelete(arg_fileset, arg_name, arg_error_on_failure) }) } -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 SharedFileSetDeleteAll(arg_fileset: *mut SharedFileSet) { 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 SharedFileSetDeleteAll(arg_fileset: *mut SharedFileSet); } - pg_get_encoding_from_locale(arg_ctype, arg_write_message) + SharedFileSetDeleteAll(arg_fileset) }) } -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 { +#[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 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 sts_estimate(arg_participants: ::std::os::raw::c_int) -> usize; } - inet_net_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) + sts_estimate(arg_participants) }) } -pub unsafe fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool { +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 pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool; + 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; } - pg_strong_random(arg_buf, arg_len) + sts_initialize( + arg_sts, + arg_participants, + arg_my_participant_number, + arg_meta_data_size, + arg_flags, + arg_fileset, + arg_name, + ) }) } -pub unsafe fn pg_check_dir(arg_dir: *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 pg_check_dir(arg_dir: *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; } - pg_check_dir(arg_dir) + sts_attach(arg_sts, arg_my_participant_number, arg_fileset) }) } -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 sts_end_write(arg_accessor: *mut SharedTuplestoreAccessor) { 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 sts_end_write(arg_accessor: *mut SharedTuplestoreAccessor); } - pg_mkdir_p(arg_path, arg_omode) + sts_end_write(arg_accessor) }) } -pub type pqsigfunc = ::std::option::Option; -pub unsafe fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc { +pub unsafe fn sts_reinitialize(arg_accessor: *mut SharedTuplestoreAccessor) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc; + fn sts_reinitialize(arg_accessor: *mut SharedTuplestoreAccessor); } - pqsignal(arg_signo, arg_func) + sts_reinitialize(arg_accessor) }) } -pub unsafe fn escape_single_quotes_ascii( - arg_src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn sts_begin_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor) { 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 sts_begin_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor); } - escape_single_quotes_ascii(arg_src) + sts_begin_parallel_scan(arg_accessor) }) } -pub unsafe fn wait_result_to_str( - arg_exit_status: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn sts_end_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor) { 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 sts_end_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor); } - wait_result_to_str(arg_exit_status) + sts_end_parallel_scan(arg_accessor) }) } -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 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 wait_result_is_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_signum: ::std::os::raw::c_int, - ) -> bool; + fn sts_puttuple( + arg_accessor: *mut SharedTuplestoreAccessor, + arg_meta_data: *mut ::std::os::raw::c_void, + arg_tuple: MinimalTuple, + ); } - wait_result_is_signal(arg_exit_status, arg_signum) + sts_puttuple(arg_accessor, arg_meta_data, arg_tuple) }) } -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 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 wait_result_is_any_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_include_command_not_found: bool, - ) -> bool; + fn sts_parallel_scan_next( + arg_accessor: *mut SharedTuplestoreAccessor, + arg_meta_data: *mut ::std::os::raw::c_void, + ) -> MinimalTuple; } - wait_result_is_any_signal(arg_exit_status, arg_include_command_not_found) + sts_parallel_scan_next(arg_accessor, arg_meta_data) }) } -pub type __jmp_buf = [::std::os::raw::c_long; 8usize]; +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 __jmp_buf_tag { - pub __jmpbuf: __jmp_buf, - pub __mask_was_saved: ::std::os::raw::c_int, - pub __saved_mask: __sigset_t, +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 jmp_buf = [__jmp_buf_tag; 1usize]; -pub unsafe fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { +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 setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; + fn RelationIdGetRelation(arg_relationId: Oid) -> Relation; } - setjmp(arg___env) + RelationIdGetRelation(arg_relationId) }) } -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 RelationClose(arg_relation: Relation) { 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 RelationClose(arg_relation: Relation); } - __sigsetjmp(arg___env, arg___savemask) + RelationClose(arg_relation) }) } -pub unsafe fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::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 _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; + fn RelationGetFKeyList(arg_relation: Relation) -> *mut List; } - _setjmp(arg___env) + RelationGetFKeyList(arg_relation) }) } -pub unsafe fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::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 longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); + fn RelationGetIndexList(arg_relation: Relation) -> *mut List; } - longjmp(arg___env, arg___val) + RelationGetIndexList(arg_relation) }) } -pub unsafe fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::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 _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); + fn RelationGetStatExtList(arg_relation: Relation) -> *mut List; } - _longjmp(arg___env, arg___val) + RelationGetStatExtList(arg_relation) }) } -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 RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid { 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 RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid; } - errstart( - arg_elevel, - arg_filename, - arg_lineno, - arg_funcname, - arg_domain, - ) + RelationGetPrimaryKeyIndex(arg_relation) }) } -pub unsafe fn errfinish(arg_dummy: ::std::os::raw::c_int) { +pub unsafe fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errfinish(arg_dummy: ::std::os::raw::c_int); + fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid; } - errfinish(arg_dummy) + RelationGetReplicaIndex(arg_relation) }) } -pub unsafe fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::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 errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List; } - errcode(arg_sqlerrcode) + RelationGetIndexExpressions(arg_relation) }) } -pub unsafe fn errcode_for_file_access() -> ::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 errcode_for_file_access() -> ::std::os::raw::c_int; + fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List; } - errcode_for_file_access() + RelationGetDummyIndexExpressions(arg_relation) }) } -pub unsafe fn errcode_for_socket_access() -> ::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 errcode_for_socket_access() -> ::std::os::raw::c_int; + fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List; } - errcode_for_socket_access() + RelationGetIndexPredicate(arg_relation) }) } -pub unsafe fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::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 errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn RelationGetIndexAttrBitmap( + arg_relation: Relation, + arg_keyAttrs: IndexAttrBitmapKind, + ) -> *mut Bitmapset; } - errmsg(arg_fmt) + RelationGetIndexAttrBitmap(arg_relation, arg_keyAttrs) }) } -pub unsafe fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +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 errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn RelationGetExclusionInfo( + arg_indexRelation: Relation, + arg_operators: *mut *mut Oid, + arg_procs: *mut *mut Oid, + arg_strategies: *mut *mut uint16, + ); } - errmsg_internal(arg_fmt) + RelationGetExclusionInfo(arg_indexRelation, arg_operators, arg_procs, arg_strategies) }) } -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 RelationInitIndexAccessInfo(arg_relation: Relation) { 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 RelationInitIndexAccessInfo(arg_relation: Relation); } - errmsg_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + RelationInitIndexAccessInfo(arg_relation) }) } -pub unsafe fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions { 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 GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions; } - errdetail(arg_fmt) + GetRelationPublicationActions(arg_relation) }) } -pub unsafe fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn RelationInitTableAccessMethod(arg_relation: Relation) { 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 RelationInitTableAccessMethod(arg_relation: Relation); } - errdetail_internal(arg_fmt) + RelationInitTableAccessMethod(arg_relation) }) } -pub unsafe fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn errtable(arg_rel: Relation) -> ::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; + fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int; } - errdetail_log(arg_fmt) + errtable(arg_rel) }) } -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, +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 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, + fn errtablecol( + arg_rel: Relation, + arg_attnum: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - errdetail_log_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + errtablecol(arg_rel, arg_attnum) }) } -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, +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 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, + fn errtablecolname( + arg_rel: Relation, + arg_colname: *const ::std::os::raw::c_char, ) -> ::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) + errtablecolname(arg_rel, arg_colname) }) } -pub unsafe fn set_errcontext_domain( - arg_domain: *const ::std::os::raw::c_char, +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 set_errcontext_domain( - arg_domain: *const ::std::os::raw::c_char, + fn errtableconstraint( + arg_rel: Relation, + arg_conname: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - set_errcontext_domain(arg_domain) + errtableconstraint(arg_rel, arg_conname) }) } -pub unsafe fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn RelationCacheInitialize() { 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 RelationCacheInitialize(); } - errcontext_msg(arg_fmt) + RelationCacheInitialize() }) } -pub unsafe fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int { +pub unsafe fn RelationCacheInitializePhase2() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int; + fn RelationCacheInitializePhase2(); } - errhidestmt(arg_hide_stmt) + RelationCacheInitializePhase2() }) } -pub unsafe fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int { +pub unsafe fn RelationCacheInitializePhase3() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int; + fn RelationCacheInitializePhase3(); } - errhidecontext(arg_hide_ctx) + RelationCacheInitializePhase3() }) } -pub unsafe fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +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 errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + 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; } - errfunction(arg_funcname) + 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 errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +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 errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn RelationSetNewRelfilenode( + arg_relation: Relation, + arg_persistence: ::std::os::raw::c_char, + ); } - errposition(arg_cursorpos) + RelationSetNewRelfilenode(arg_relation, arg_persistence) }) } -pub unsafe fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn RelationForgetRelation(arg_rid: 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 RelationForgetRelation(arg_rid: Oid); } - internalerrposition(arg_cursorpos) + RelationForgetRelation(arg_rid) }) } -pub unsafe fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn RelationCacheInvalidateEntry(arg_relationId: 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 RelationCacheInvalidateEntry(arg_relationId: Oid); } - internalerrquery(arg_query) + RelationCacheInvalidateEntry(arg_relationId) }) } -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 RelationCacheInvalidate(arg_debug_discard: 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 RelationCacheInvalidate(arg_debug_discard: bool); } - err_generic_string(arg_field, arg_str_) + RelationCacheInvalidate(arg_debug_discard) }) } -pub unsafe fn geterrcode() -> ::std::os::raw::c_int { +pub unsafe fn RelationCloseSmgrByOid(arg_relationId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn geterrcode() -> ::std::os::raw::c_int; + fn RelationCloseSmgrByOid(arg_relationId: Oid); } - geterrcode() + RelationCloseSmgrByOid(arg_relationId) }) } -pub unsafe fn geterrposition() -> ::std::os::raw::c_int { +pub unsafe fn AtEOXact_RelationCache(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn geterrposition() -> ::std::os::raw::c_int; + fn AtEOXact_RelationCache(arg_isCommit: bool); } - geterrposition() + AtEOXact_RelationCache(arg_isCommit) }) } -pub unsafe fn getinternalerrposition() -> ::std::os::raw::c_int { +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 getinternalerrposition() -> ::std::os::raw::c_int; + fn AtEOSubXact_RelationCache( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - getinternalerrposition() + AtEOSubXact_RelationCache(arg_isCommit, arg_mySubid, arg_parentSubid) }) } -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 RelationIdIsInInitFile(arg_relationId: Oid) -> bool { 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 RelationIdIsInInitFile(arg_relationId: Oid) -> bool; } - elog_start(arg_filename, arg_lineno, arg_funcname) + RelationIdIsInInitFile(arg_relationId) }) } -pub unsafe fn elog_finish( - arg_elevel: ::std::os::raw::c_int, - arg_fmt: *const ::std::os::raw::c_char, -) { +pub unsafe fn RelationCacheInitFilePreInvalidate() { 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 RelationCacheInitFilePreInvalidate(); } - elog_finish(arg_elevel, arg_fmt) + RelationCacheInitFilePreInvalidate() }) } -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 RelationCacheInitFilePostInvalidate() { 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 RelationCacheInitFilePostInvalidate(); } - pre_format_elog_string(arg_errnumber, arg_domain) + RelationCacheInitFilePostInvalidate() }) } -pub unsafe fn format_elog_string( - arg_fmt: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationCacheInitFileRemove() { 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 RelationCacheInitFileRemove(); } - format_elog_string(arg_fmt) + RelationCacheInitFileRemove() }) } -#[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; + pub static mut criticalRelcachesBuilt: bool; } extern "C" { - pub static mut PG_exception_stack: *mut sigjmp_buf; + pub static mut criticalSharedRelcachesBuilt: bool; } +pub type SortSupport = *mut SortSupportData; #[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 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 ErrorData { +impl Default for SortSupportData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -14635,485 +13653,360 @@ impl Default for ErrorData { } } } -pub unsafe fn EmitErrorReport() { +pub unsafe fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EmitErrorReport(); + fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport); } - EmitErrorReport() + PrepareSortSupportComparisonShim(arg_cmpFunc, arg_ssup) }) } -pub unsafe fn CopyErrorData() -> *mut ErrorData { +pub unsafe fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CopyErrorData() -> *mut ErrorData; + fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport); } - CopyErrorData() + PrepareSortSupportFromOrderingOp(arg_orderingOp, arg_ssup) }) } -pub unsafe fn FreeErrorData(arg_edata: *mut ErrorData) { +pub unsafe fn PrepareSortSupportFromIndexRel( + arg_indexRel: Relation, + arg_strategy: int16, + arg_ssup: SortSupport, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeErrorData(arg_edata: *mut ErrorData); + fn PrepareSortSupportFromIndexRel( + arg_indexRel: Relation, + arg_strategy: int16, + arg_ssup: SortSupport, + ); } - FreeErrorData(arg_edata) + PrepareSortSupportFromIndexRel(arg_indexRel, arg_strategy, arg_ssup) }) } -pub unsafe fn FlushErrorState() { +#[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 FlushErrorState(); + fn tuplestore_begin_heap( + arg_randomAccess: bool, + arg_interXact: bool, + arg_maxKBytes: ::std::os::raw::c_int, + ) -> *mut Tuplestorestate; } - FlushErrorState() + tuplestore_begin_heap(arg_randomAccess, arg_interXact, arg_maxKBytes) }) } -pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { +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 ReThrowError(arg_edata: *mut ErrorData); + fn tuplestore_set_eflags( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, + ); } - ReThrowError(arg_edata) + tuplestore_set_eflags(arg_state, arg_eflags) }) } -pub unsafe fn ThrowErrorData(arg_edata: *mut ErrorData) { +pub unsafe fn tuplestore_puttupleslot( + arg_state: *mut Tuplestorestate, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ThrowErrorData(arg_edata: *mut ErrorData); + fn tuplestore_puttupleslot( + arg_state: *mut Tuplestorestate, + arg_slot: *mut TupleTableSlot, + ); } - ThrowErrorData(arg_edata) + tuplestore_puttupleslot(arg_state, arg_slot) }) } -pub unsafe fn GetErrorContextStack() -> *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 GetErrorContextStack() -> *mut ::std::os::raw::c_char; + fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple); } - GetErrorContextStack() + tuplestore_puttuple(arg_state, arg_tuple) }) } -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 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 DebugFileOpen(); + fn tuplestore_putvalues( + arg_state: *mut Tuplestorestate, + arg_tdesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - DebugFileOpen() + tuplestore_putvalues(arg_state, arg_tdesc, arg_values, arg_isnull) }) } -pub unsafe fn unpack_sql_state( - arg_sql_state: ::std::os::raw::c_int, -) -> *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 unpack_sql_state( - arg_sql_state: ::std::os::raw::c_int, - ) -> *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; } - unpack_sql_state(arg_sql_state) + tuplestore_alloc_read_pointer(arg_state, arg_eflags) }) } -pub unsafe fn in_error_recursion_trouble() -> bool { +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 in_error_recursion_trouble() -> bool; + fn tuplestore_select_read_pointer( + arg_state: *mut Tuplestorestate, + arg_ptr: ::std::os::raw::c_int, + ); } - in_error_recursion_trouble() + tuplestore_select_read_pointer(arg_state, arg_ptr) }) } -pub unsafe fn set_syslog_parameters( - arg_ident: *const ::std::os::raw::c_char, - arg_facility: ::std::os::raw::c_int, +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 set_syslog_parameters( - arg_ident: *const ::std::os::raw::c_char, - arg_facility: ::std::os::raw::c_int, + fn tuplestore_copy_read_pointer( + arg_state: *mut Tuplestorestate, + arg_srcptr: ::std::os::raw::c_int, + arg_destptr: ::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) + tuplestore_copy_read_pointer(arg_state, arg_srcptr, arg_destptr) }) } -pub unsafe fn MemoryContextAllocZero( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn tuplestore_trim(arg_state: *mut Tuplestorestate) { 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 tuplestore_trim(arg_state: *mut Tuplestorestate); } - MemoryContextAllocZero(arg_context, arg_size) + tuplestore_trim(arg_state) }) } -pub unsafe fn MemoryContextAllocZeroAligned( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool { 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 tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool; } - MemoryContextAllocZeroAligned(arg_context, arg_size) + tuplestore_in_memory(arg_state) }) } -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 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 MemoryContextAllocExtended( - arg_context: MemoryContext, - arg_size: Size, - arg_flags: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + fn tuplestore_gettupleslot( + arg_state: *mut Tuplestorestate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, + ) -> bool; } - MemoryContextAllocExtended(arg_context, arg_size, arg_flags) + tuplestore_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot) }) } -pub unsafe fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void { +pub unsafe fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool; } - palloc(arg_size) + tuplestore_advance(arg_state, arg_forward) }) } -pub unsafe fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void { +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 palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn tuplestore_skiptuples( + arg_state: *mut Tuplestorestate, + arg_ntuples: int64, + arg_forward: bool, + ) -> bool; } - palloc0(arg_size) + tuplestore_skiptuples(arg_state, arg_ntuples, arg_forward) }) } -pub unsafe fn palloc_extended( - arg_size: Size, - arg_flags: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64 { 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 tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64; } - palloc_extended(arg_size, arg_flags) + tuplestore_tuple_count(arg_state) }) } -pub unsafe fn repalloc( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool { 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 tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool; } - repalloc(arg_pointer, arg_size) + tuplestore_ateof(arg_state) }) } -pub unsafe fn pfree(arg_pointer: *mut ::std::os::raw::c_void) { +pub unsafe fn tuplestore_rescan(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pfree(arg_pointer: *mut ::std::os::raw::c_void); + fn tuplestore_rescan(arg_state: *mut Tuplestorestate); } - pfree(arg_pointer) + tuplestore_rescan(arg_state) }) } -pub unsafe fn MemoryContextAllocHuge( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn tuplestore_clear(arg_state: *mut Tuplestorestate) { 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 tuplestore_clear(arg_state: *mut Tuplestorestate); } - MemoryContextAllocHuge(arg_context, arg_size) + tuplestore_clear(arg_state) }) } -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 tuplestore_end(arg_state: *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_end(arg_state: *mut Tuplestorestate); } - repalloc_huge(arg_pointer, arg_size) + tuplestore_end(arg_state) }) } -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) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IndexTupleData { + pub t_tid: ItemPointerData, + pub t_info: ::std::os::raw::c_ushort, } -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 type IndexTuple = *mut IndexTupleData; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IndexAttributeBitMapData { + pub bits: [bits8; 4usize], } -pub unsafe fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +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 pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn index_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> IndexTuple; } - pstrdup(arg_in_) + index_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn pnstrdup( - arg_in_: *const ::std::os::raw::c_char, - arg_len: Size, -) -> *mut ::std::os::raw::c_char { +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 pnstrdup( - arg_in_: *const ::std::os::raw::c_char, - arg_len: Size, - ) -> *mut ::std::os::raw::c_char; + fn nocache_index_getattr( + arg_tup: IndexTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + ) -> Datum; } - pnstrdup(arg_in_, arg_len) + nocache_index_getattr(arg_tup, arg_attnum, arg_tupleDesc) }) } -pub unsafe fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +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 pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn index_deform_tuple( + arg_tup: IndexTuple, + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - pchomp(arg_in_) + index_deform_tuple(arg_tup, arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple { 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 CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple; } - psprintf(arg_fmt) + CopyIndexTuple(arg_source) }) } -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 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 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 index_truncate_tuple( + arg_sourceDescriptor: TupleDesc, + arg_source: IndexTuple, + arg_leavenatts: ::std::os::raw::c_int, + ) -> IndexTuple; } - pvsnprintf(arg_buf, arg_len, arg_fmt, arg_args) + index_truncate_tuple(arg_sourceDescriptor, arg_source, arg_leavenatts) }) } #[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() - } - } +pub struct Tuplesortstate { + _unused: [u8; 0], } #[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 struct Sharedsort { + _unused: [u8; 0], } -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, +pub struct SortCoordinateData { + pub isWorker: bool, + pub nParticipants: ::std::os::raw::c_int, + pub sharedsort: *mut Sharedsort, } -impl Default for FmgrInfo { +impl Default for SortCoordinateData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -15122,17 +14015,24 @@ impl Default for FmgrInfo { } } } +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)] -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, +#[derive(Debug, Copy, Clone)] +pub struct TuplesortInstrumentation { + pub sortMethod: TuplesortMethod, + pub spaceType: TuplesortSpaceType, + pub spaceUsed: ::std::os::raw::c_long, } -impl Default for FunctionCallInfoBaseData { +impl Default for TuplesortInstrumentation { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -15141,11406 +14041,929 @@ impl Default for FunctionCallInfoBaseData { } } } -pub unsafe fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo) { +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 fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo); + 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; } - fmgr_info(arg_functionId, arg_finfo) + tuplesort_begin_heap( + arg_tupDesc, + arg_nkeys, + arg_attNums, + arg_sortOperators, + arg_sortCollations, + arg_nullsFirstFlags, + arg_workMem, + arg_coordinate, + arg_randomAccess, + ) }) } -pub unsafe fn fmgr_info_cxt( - arg_functionId: Oid, - arg_finfo: *mut FmgrInfo, - arg_mcxt: MemoryContext, -) { +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 fmgr_info_cxt( - arg_functionId: Oid, - arg_finfo: *mut FmgrInfo, - arg_mcxt: MemoryContext, - ); + 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; } - fmgr_info_cxt(arg_functionId, arg_finfo, arg_mcxt) + tuplesort_begin_cluster( + arg_tupDesc, + arg_indexRel, + arg_workMem, + arg_coordinate, + arg_randomAccess, + ) }) } -pub unsafe fn fmgr_info_copy( - arg_dstinfo: *mut FmgrInfo, - arg_srcinfo: *mut FmgrInfo, - arg_destcxt: MemoryContext, -) { +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 fmgr_info_copy( - arg_dstinfo: *mut FmgrInfo, - arg_srcinfo: *mut FmgrInfo, - arg_destcxt: MemoryContext, - ); - } - fmgr_info_copy(arg_dstinfo, arg_srcinfo, arg_destcxt) - }) -} -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 fmgr_symbol( - arg_functionId: Oid, - arg_mod_: *mut *mut ::std::os::raw::c_char, - arg_fn_: *mut *mut ::std::os::raw::c_char, - ); + 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; } - fmgr_symbol(arg_functionId, arg_mod_, arg_fn_) + tuplesort_begin_index_btree( + arg_heapRel, + arg_indexRel, + arg_enforceUnique, + arg_workMem, + arg_coordinate, + arg_randomAccess, + ) }) } -pub unsafe fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena { +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 pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena; + 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; } - pg_detoast_datum(arg_datum) + 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 pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena { +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 pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena; + 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; } - pg_detoast_datum_copy(arg_datum) + tuplesort_begin_datum( + arg_datumType, + arg_sortOperator, + arg_sortCollation, + arg_nullsFirstFlag, + arg_workMem, + arg_coordinate, + arg_randomAccess, + ) }) } -pub unsafe fn pg_detoast_datum_slice( - arg_datum: *mut varlena, - arg_first: int32, - arg_count: int32, -) -> *mut varlena { +pub unsafe fn tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64) { 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 tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64); } - pg_detoast_datum_slice(arg_datum, arg_first, arg_count) + tuplesort_set_bound(arg_state, arg_bound) }) } -pub unsafe fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena { +pub unsafe fn tuplesort_puttupleslot( + arg_state: *mut Tuplesortstate, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena; + fn tuplesort_puttupleslot( + arg_state: *mut Tuplesortstate, + arg_slot: *mut TupleTableSlot, + ); } - pg_detoast_datum_packed(arg_datum) + tuplesort_puttupleslot(arg_state, arg_slot) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Pg_finfo_record { - pub api_version: ::std::os::raw::c_int, -} -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 type PGModuleMagicFunction = - ::std::option::Option *const Pg_magic_struct>; -pub unsafe fn DirectFunctionCall1Coll( - arg_func: PGFunction, - 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 DirectFunctionCall1Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple); } - DirectFunctionCall1Coll(arg_func, arg_collation, arg_arg1) + tuplesort_putheaptuple(arg_state, arg_tup) }) } -pub unsafe fn DirectFunctionCall2Coll( - arg_func: PGFunction, - 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 DirectFunctionCall2Coll( - arg_func: PGFunction, - 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, + ); } - DirectFunctionCall2Coll(arg_func, arg_collation, arg_arg1, arg_arg2) + tuplesort_putindextuplevalues(arg_state, arg_rel, arg_self_, arg_values, arg_isnull) }) } -pub unsafe fn DirectFunctionCall3Coll( - arg_func: PGFunction, - 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 DirectFunctionCall3Coll( - arg_func: PGFunction, - 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); } - DirectFunctionCall3Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3) + tuplesort_putdatum(arg_state, arg_val, 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 tuplesort_performsort(arg_state: *mut Tuplesortstate) { 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 tuplesort_performsort(arg_state: *mut Tuplesortstate); } - DirectFunctionCall4Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + tuplesort_performsort(arg_state) }) } -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 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 DirectFunctionCall5Coll( - arg_func: PGFunction, - 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; } - DirectFunctionCall5Coll( - arg_func, - 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 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 tuplesort_getheaptuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, +) -> HeapTuple { 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_getheaptuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + ) -> HeapTuple; } - DirectFunctionCall6Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - ) + tuplesort_getheaptuple(arg_state, arg_forward) }) } -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_getindextuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, +) -> IndexTuple { 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_getindextuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + ) -> IndexTuple; } - DirectFunctionCall7Coll( - arg_func, - 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 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_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 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_getdatum( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_val: *mut Datum, + arg_isNull: *mut bool, + arg_abbrev: *mut Datum, + ) -> bool; } - DirectFunctionCall8Coll( - arg_func, - 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 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_skiptuples( + arg_state: *mut Tuplesortstate, + arg_ntuples: int64, + arg_forward: bool, +) -> bool { 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_skiptuples( + arg_state: *mut Tuplesortstate, + arg_ntuples: int64, + arg_forward: bool, + ) -> bool; } - DirectFunctionCall9Coll( - arg_func, - 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 CallerFInfoFunctionCall1( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +pub unsafe fn tuplesort_end(arg_state: *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_end(arg_state: *mut Tuplesortstate); } - CallerFInfoFunctionCall1(arg_func, arg_flinfo, arg_collation, arg_arg1) + tuplesort_end(arg_state) }) } -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_get_stats( + arg_state: *mut Tuplesortstate, + arg_stats: *mut TuplesortInstrumentation, +) { 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_get_stats( + arg_state: *mut Tuplesortstate, + arg_stats: *mut TuplesortInstrumentation, + ); } - CallerFInfoFunctionCall2(arg_func, arg_flinfo, arg_collation, arg_arg1, arg_arg2) + tuplesort_get_stats(arg_state, arg_stats) }) } -pub unsafe fn FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> 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 FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> Datum; + fn tuplesort_method_name(arg_m: TuplesortMethod) -> *const ::std::os::raw::c_char; } - FunctionCall0Coll(arg_flinfo, arg_collation) + tuplesort_method_name(arg_m) }) } -pub unsafe fn FunctionCall1Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: 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 FunctionCall1Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn tuplesort_space_type_name( + arg_t: TuplesortSpaceType, + ) -> *const ::std::os::raw::c_char; } - FunctionCall1Coll(arg_flinfo, arg_collation, arg_arg1) + tuplesort_space_type_name(arg_t) }) } -pub unsafe fn FunctionCall2Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: 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 FunctionCall2Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - ) -> Datum; + fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int; } - FunctionCall2Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2) + tuplesort_merge_order(arg_allowedMem) }) } -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_estimate_shared(arg_nworkers: ::std::os::raw::c_int) -> Size { 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_estimate_shared(arg_nworkers: ::std::os::raw::c_int) -> Size; } - FunctionCall3Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3) + tuplesort_estimate_shared(arg_nworkers) }) } -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_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 FunctionCall4Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - ) -> Datum; + fn tuplesort_initialize_shared( + arg_shared: *mut Sharedsort, + arg_nWorkers: ::std::os::raw::c_int, + arg_seg: *mut dsm_segment, + ); } - FunctionCall4Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + tuplesort_initialize_shared(arg_shared, arg_nWorkers, arg_seg) }) } -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_attach_shared(arg_shared: *mut Sharedsort, arg_seg: *mut dsm_segment) { 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_attach_shared(arg_shared: *mut Sharedsort, arg_seg: *mut dsm_segment); } - FunctionCall5Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - ) + tuplesort_attach_shared(arg_shared, arg_seg) }) } -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_rescan(arg_state: *mut Tuplesortstate) { 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_rescan(arg_state: *mut Tuplesortstate); } - FunctionCall6Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - ) + tuplesort_rescan(arg_state) }) } -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_markpos(arg_state: *mut Tuplesortstate) { 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_markpos(arg_state: *mut Tuplesortstate); } - FunctionCall7Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - ) + tuplesort_markpos(arg_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 tuplesort_restorepos(arg_state: *mut Tuplesortstate) { 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_restorepos(arg_state: *mut Tuplesortstate); } - FunctionCall8Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - ) + tuplesort_restorepos(arg_state) }) } -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 { +#[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 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 dsa_startup(); } - FunctionCall9Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - arg_arg9, - ) + dsa_startup() }) } -pub unsafe fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum { +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 OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum; + fn dsa_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area; } - OidFunctionCall0Coll(arg_functionId, arg_collation) + dsa_create(arg_tranche_id) }) } -pub unsafe fn OidFunctionCall1Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +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 OidFunctionCall1Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + 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; } - OidFunctionCall1Coll(arg_functionId, arg_collation, arg_arg1) + dsa_create_in_place(arg_place, arg_size, arg_tranche_id, arg_segment) }) } -pub unsafe fn OidFunctionCall2Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, -) -> Datum { +pub unsafe fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area { 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 dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area; } - OidFunctionCall2Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2) + dsa_attach(arg_handle) }) } -pub unsafe fn OidFunctionCall3Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, -) -> 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 OidFunctionCall3Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - ) -> Datum; + fn dsa_attach_in_place( + arg_place: *mut ::std::os::raw::c_void, + arg_segment: *mut dsm_segment, + ) -> *mut dsa_area; } - OidFunctionCall3Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3) + dsa_attach_in_place(arg_place, arg_segment) }) } -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 dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void) { 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 dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void); } - OidFunctionCall4Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + dsa_release_in_place(arg_place) }) } -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 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 OidFunctionCall5Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - ) -> Datum; + fn dsa_on_dsm_detach_release_in_place(arg_arg1: *mut dsm_segment, arg_arg2: Datum); } - OidFunctionCall5Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - ) + dsa_on_dsm_detach_release_in_place(arg_arg1, arg_arg2) }) } -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 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 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 dsa_on_shmem_exit_release_in_place(arg_arg1: ::std::os::raw::c_int, arg_arg2: Datum); } - OidFunctionCall6Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - ) + dsa_on_shmem_exit_release_in_place(arg_arg1, arg_arg2) }) } -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 dsa_pin_mapping(arg_area: *mut dsa_area) { 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 dsa_pin_mapping(arg_area: *mut dsa_area); } - OidFunctionCall7Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - ) + dsa_pin_mapping(arg_area) }) } -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 dsa_detach(arg_area: *mut dsa_area) { 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 dsa_detach(arg_area: *mut dsa_area); } - OidFunctionCall8Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - ) + dsa_detach(arg_area) }) } -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 dsa_pin(arg_area: *mut dsa_area) { 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 dsa_pin(arg_area: *mut dsa_area); } - OidFunctionCall9Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - arg_arg9, - ) + dsa_pin(arg_area) }) } -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 dsa_unpin(arg_area: *mut dsa_area) { 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 dsa_unpin(arg_area: *mut dsa_area); } - InputFunctionCall(arg_flinfo, arg_str_, arg_typioparam, arg_typmod) + dsa_unpin(arg_area) }) } -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 dsa_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize) { 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_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize); } - OidInputFunctionCall(arg_functionId, arg_str_, arg_typioparam, arg_typmod) + dsa_set_size_limit(arg_area, arg_limit) }) } -pub unsafe fn OutputFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_val: Datum, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn dsa_minimum_size() -> usize { 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_minimum_size() -> usize; } - OutputFunctionCall(arg_flinfo, arg_val) + dsa_minimum_size() }) } -pub unsafe fn OidOutputFunctionCall( - arg_functionId: Oid, - arg_val: Datum, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle { 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_get_handle(arg_area: *mut dsa_area) -> dsa_handle; } - OidOutputFunctionCall(arg_functionId, arg_val) + dsa_get_handle(arg_area) }) } -pub unsafe fn ReceiveFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, -) -> Datum { +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 ReceiveFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; + fn dsa_allocate_extended( + arg_area: *mut dsa_area, + arg_size: usize, + arg_flags: ::std::os::raw::c_int, + ) -> dsa_pointer; } - ReceiveFunctionCall(arg_flinfo, arg_buf, arg_typioparam, arg_typmod) + dsa_allocate_extended(arg_area, arg_size, arg_flags) }) } -pub unsafe fn OidReceiveFunctionCall( - arg_functionId: Oid, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, -) -> Datum { +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 OidReceiveFunctionCall( - arg_functionId: Oid, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; + fn dsa_free(arg_area: *mut dsa_area, arg_dp: dsa_pointer); } - OidReceiveFunctionCall(arg_functionId, arg_buf, arg_typioparam, arg_typmod) + dsa_free(arg_area, arg_dp) }) } -pub unsafe fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea { +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 SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea; + fn dsa_get_address( + arg_area: *mut dsa_area, + arg_dp: dsa_pointer, + ) -> *mut ::std::os::raw::c_void; } - SendFunctionCall(arg_flinfo, arg_val) + dsa_get_address(arg_area, arg_dp) }) } -pub unsafe fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea { +pub unsafe fn dsa_trim(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea; + fn dsa_trim(arg_area: *mut dsa_area); } - OidSendFunctionCall(arg_functionId, arg_val) + dsa_trim(arg_area) }) } -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_dump(arg_area: *mut dsa_area) { 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_dump(arg_area: *mut dsa_area); } - fetch_finfo_record(arg_filehandle, arg_funcname) + dsa_dump(arg_area) }) } -pub unsafe fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void) { +#[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 clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void); + fn tbm_create( + arg_maxbytes: ::std::os::raw::c_long, + arg_dsa: *mut dsa_area, + ) -> *mut TIDBitmap; } - clear_external_function_hash(arg_filehandle) + tbm_create(arg_maxbytes, arg_dsa) }) } -pub unsafe fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid { +pub unsafe fn tbm_free(arg_tbm: *mut TIDBitmap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid; + fn tbm_free(arg_tbm: *mut TIDBitmap); } - fmgr_internal_function(arg_proname) + tbm_free(arg_tbm) }) } -pub unsafe fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid { +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 get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid; + fn tbm_free_shared_area(arg_dsa: *mut dsa_area, arg_dp: dsa_pointer); } - get_fn_expr_rettype(arg_flinfo) + tbm_free_shared_area(arg_dsa, arg_dp) }) } -pub unsafe fn get_fn_expr_argtype( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, -) -> Oid { +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 get_fn_expr_argtype( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, - ) -> Oid; + fn tbm_add_tuples( + arg_tbm: *mut TIDBitmap, + arg_tids: ItemPointer, + arg_ntids: ::std::os::raw::c_int, + arg_recheck: bool, + ); } - get_fn_expr_argtype(arg_flinfo, arg_argnum) + tbm_add_tuples(arg_tbm, arg_tids, arg_ntids, arg_recheck) }) } -pub unsafe fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) -> Oid { +pub unsafe fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber) { 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 tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber); } - get_call_expr_argtype(arg_expr, arg_argnum) + tbm_add_page(arg_tbm, arg_pageno) }) } -pub unsafe fn get_fn_expr_arg_stable( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { 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 tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); } - get_fn_expr_arg_stable(arg_flinfo, arg_argnum) + tbm_union(arg_a, arg_b) }) } -pub unsafe fn get_call_expr_arg_stable( - arg_expr: fmNodePtr, - arg_argnum: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { 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 tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); } - get_call_expr_arg_stable(arg_expr, arg_argnum) + tbm_intersect(arg_a, arg_b) }) } -pub unsafe fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool { +pub unsafe fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool; + fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool; } - get_fn_expr_variadic(arg_flinfo) + tbm_is_empty(arg_tbm) }) } -pub unsafe fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool { +pub unsafe fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool; + fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator; } - CheckFunctionValidatorAccess(arg_validatorOid, arg_functionOid) + tbm_begin_iterate(arg_tbm) }) } -extern "C" { - pub static mut Dynamic_library_path: *mut ::std::os::raw::c_char; +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 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 tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult { 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 tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult; } - load_external_function( - arg_filename, - arg_funcname, - arg_signalNotFound, - arg_filehandle, - ) + tbm_iterate(arg_iterator) }) } -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 tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult { 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 tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult; } - lookup_external_function(arg_filehandle, arg_funcname) + tbm_shared_iterate(arg_iterator) }) } -pub unsafe fn load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool) { +pub unsafe fn tbm_end_iterate(arg_iterator: *mut TBMIterator) { 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_end_iterate(arg_iterator: *mut TBMIterator); } - load_file(arg_filename, arg_restricted) + tbm_end_iterate(arg_iterator) }) } -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_end_shared_iterate(arg_iterator: *mut TBMSharedIterator) { 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_end_shared_iterate(arg_iterator: *mut TBMSharedIterator); } - find_rendezvous_variable(arg_varName) + tbm_end_shared_iterate(arg_iterator) }) } -pub unsafe fn EstimateLibraryStateSpace() -> Size { +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 EstimateLibraryStateSpace() -> Size; + fn tbm_attach_shared_iterate( + arg_dsa: *mut dsa_area, + arg_dp: dsa_pointer, + ) -> *mut TBMSharedIterator; } - EstimateLibraryStateSpace() + tbm_attach_shared_iterate(arg_dsa, arg_dp) }) } -pub unsafe fn SerializeLibraryState( - arg_maxsize: Size, - arg_start_address: *mut ::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 SerializeLibraryState( - arg_maxsize: Size, - arg_start_address: *mut ::std::os::raw::c_char, - ); + fn tbm_calculate_entries(arg_maxbytes: f64) -> ::std::os::raw::c_long; } - SerializeLibraryState(arg_maxsize, arg_start_address) + tbm_calculate_entries(arg_maxbytes) }) } -pub unsafe fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char) { +#[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 RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char); + fn ConditionVariableInit(arg_cv: *mut ConditionVariable); } - RestoreLibraryState(arg_start_address) + ConditionVariableInit(arg_cv) }) } -pub unsafe fn AggCheckCallContext( - arg_fcinfo: FunctionCallInfo, - arg_aggcontext: *mut MemoryContext, -) -> ::std::os::raw::c_int { +pub unsafe fn ConditionVariableSleep(arg_cv: *mut ConditionVariable, arg_wait_event_info: uint32) { 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 ConditionVariableSleep(arg_cv: *mut ConditionVariable, arg_wait_event_info: uint32); } - AggCheckCallContext(arg_fcinfo, arg_aggcontext) + ConditionVariableSleep(arg_cv, arg_wait_event_info) }) } -pub unsafe fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr { +pub unsafe fn ConditionVariableCancelSleep() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr; + fn ConditionVariableCancelSleep(); } - AggGetAggref(arg_fcinfo) + ConditionVariableCancelSleep() }) } -pub unsafe fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext { +pub unsafe fn ConditionVariablePrepareToSleep(arg_cv: *mut ConditionVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext; + fn ConditionVariablePrepareToSleep(arg_cv: *mut ConditionVariable); } - AggGetTempMemoryContext(arg_fcinfo) + ConditionVariablePrepareToSleep(arg_cv) }) } -pub unsafe fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool { +pub unsafe fn ConditionVariableSignal(arg_cv: *mut ConditionVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool; + fn ConditionVariableSignal(arg_cv: *mut ConditionVariable); } - AggStateIsShared(arg_fcinfo) + ConditionVariableSignal(arg_cv) }) } -pub unsafe fn AggRegisterCallback( - arg_fcinfo: FunctionCallInfo, - arg_func: fmExprContextCallbackFunction, - arg_arg: Datum, -) { +pub unsafe fn ConditionVariableBroadcast(arg_cv: *mut ConditionVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AggRegisterCallback( - arg_fcinfo: FunctionCallInfo, - arg_func: fmExprContextCallbackFunction, - arg_arg: Datum, - ); + fn ConditionVariableBroadcast(arg_cv: *mut ConditionVariable); } - AggRegisterCallback(arg_fcinfo, arg_func, arg_arg) + ConditionVariableBroadcast(arg_cv) }) } -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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionRoutingInfo { + _unused: [u8; 0], } -extern "C" { - pub static mut fmgr_hook: fmgr_hook_type; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParallelHashJoinState { + _unused: [u8; 0], } -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 struct ExprEvalStep { + _unused: [u8; 0], } -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 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) { - 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) - }) -} -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) - }) -} -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) - }) -} -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) - }) -} -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) - }) -} -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 stringToNode(arg_str_: *const ::std::os::raw::c_char) - -> *mut ::std::os::raw::c_void; - } - stringToNode(arg_str_) - }) -} -pub unsafe fn readBitmapset() -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readBitmapset() -> *mut Bitmapset; - } - readBitmapset() - }) -} -pub unsafe fn readDatum(arg_typbyval: bool) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readDatum(arg_typbyval: bool) -> usize; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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, -} -impl Default for 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() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ListCell { - pub data: ListCell__bindgen_ty_1, - pub next: *mut ListCell, -} -#[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, -} -impl Default for ListCell__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 ListCell { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -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 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 lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; - } - lappend_int(arg_list, arg_datum) - }) -} -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 lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; - } - lappend_oid(arg_list, arg_datum) - }) -} -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 lappend_cell( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut ListCell; - } - lappend_cell(arg_list, arg_prev, arg_datum) - }) -} -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 lappend_cell_int( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: ::std::os::raw::c_int, - ) -> *mut ListCell; - } - lappend_cell_int(arg_list, arg_prev, arg_datum) - }) -} -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 { - 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; - } - list_concat_unique_int(arg_list1, arg_list2) - }) -} -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 list_concat_unique_oid(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; - } - list_concat_unique_oid(arg_list1, arg_list2) - }) -} -pub unsafe fn list_free(arg_list: *mut List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_free(arg_list: *mut List); - } - list_free(arg_list) - }) -} -pub unsafe fn list_free_deep(arg_list: *mut List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_free_deep(arg_list: *mut List); - } - list_free_deep(arg_list) - }) -} -pub unsafe fn list_copy(arg_list: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_copy(arg_list: *const List) -> *mut List; - } - list_copy(arg_list) - }) -} -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 list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) - -> *mut List; - } - list_copy_tail(arg_list, arg_nskip) - }) -} -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 list_qsort(arg_list: *const List, arg_cmp: list_qsort_comparator) -> *mut List; - } - list_qsort(arg_list, arg_cmp) - }) -} -#[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() - } - } -} -#[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() - } - } -} -#[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 CreateTemplateTupleDesc(arg_natts: ::std::os::raw::c_int) -> TupleDesc; - } - CreateTemplateTupleDesc(arg_natts) - }) -} -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; - } - 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) - }) -} -pub unsafe fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc; - } - 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 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, - ); - } - 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 unsafe fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc); - } - 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) - }) -} -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; - } - 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) - }) -} -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, - ); - } - 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, - ) - }) -} -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, - ); - } - 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) - }) -} -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; - } - 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, -} -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 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, -} -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 { - 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) - }) -} -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, - ); - } - 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; - } - 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; -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 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) -> 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, -} -#[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) - }) -} -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; - } - 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) - }) -} -pub unsafe fn PageGetTempPage(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPage(arg_page: Page) -> Page; - } - 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) - }) -} -pub unsafe fn PageGetTempPageCopySpecial(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPageCopySpecial(arg_page: Page) -> Page; - } - 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) - }) -} -pub unsafe fn PageRepairFragmentation(arg_page: Page) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageRepairFragmentation(arg_page: Page); - } - 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) - }) -} -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) - }) -} -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) - }) -} -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) - }) -} -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) - }) -} -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) - }) -} -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 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; - } - 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) - }) -} -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); - } - 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, -} -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, - 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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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() - } - } -} -#[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() - } - } -} -#[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() - } - } -} -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) - }) -} -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 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); - } - 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; - } - MakeSingleTupleTableSlot(arg_tupdesc, arg_tts_ops) - }) -} -pub unsafe fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot); - } - ExecDropSingleTupleTableSlot(arg_slot) - }) -} -pub unsafe fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc); - } - ExecSetSlotDescriptor(arg_slot, arg_tupdesc) - }) -} -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 ExecStoreHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ) -> *mut TupleTableSlot; - } - ExecStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) - }) -} -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 ExecForceStoreHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ); - } - ExecForceStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) - }) -} -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 ExecStoreBufferHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_buffer: Buffer, - ) -> *mut TupleTableSlot; - } - ExecStoreBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) - }) -} -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 ExecStorePinnedBufferHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_buffer: Buffer, - ) -> *mut TupleTableSlot; - } - ExecStorePinnedBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) - }) -} -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; - } - ExecStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) - }) -} -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 ExecForceStoreMinimalTuple( - arg_mtup: MinimalTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ); - } - ExecForceStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) - }) -} -pub unsafe fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; - } - ExecStoreVirtualTuple(arg_slot) - }) -} -pub unsafe fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; - } - ExecStoreAllNullTuple(arg_slot) - }) -} -pub unsafe fn ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot); - } - ExecStoreHeapTupleDatum(arg_data, arg_slot) - }) -} -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 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; - } - 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) - }) -} -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, - ); - } - 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, - ); - } - 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, -} -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; - } - 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 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; - } - 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) - }) -} -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); - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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 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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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, -} -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() - } - } -} -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) - }) -} -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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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); - } - 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)] -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 ntuples2: 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 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) - }) -} -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, ->; -#[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)] -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( - 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)] -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, -} -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() - } - } -} -#[repr(C)] -pub struct ParamExecData { - pub execPlan: *mut ::std::os::raw::c_void, - pub value: Datum, - pub isnull: bool, -} -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() - } - } -} -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; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Alias { - pub type_: NodeTag, - pub aliasname: *mut ::std::os::raw::c_char, - pub colnames: *mut List, -} -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() - } - } -} -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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Expr { - pub type_: NodeTag, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -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, -} -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() - } - } -} -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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -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() - } - } -} -#[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() - } - } -} -#[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() - } - } -} -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() - } - } -} -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() - } - } -} -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, -} -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() - } - } -} -#[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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlternativeSubPlan { - pub xpr: Expr, - pub subplans: *mut List, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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() - } - } -} -#[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, -} -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() - } - } -} -#[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 { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -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 ProjectSet { - pub plan: Plan, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapAnd { - pub plan: Plan, - pub bitmapplans: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapOr { - pub plan: Plan, - pub isshared: bool, - pub bitmapplans: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Scan { - pub plan: Plan, - pub scanrelid: Index, -} -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() - } - } -} -pub type SeqScan = Scan; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SampleScan { - pub scan: Scan, - pub tablesample: *mut TableSampleClause, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapHeapScan { - pub scan: Scan, - pub bitmapqualorig: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TidScan { - pub scan: Scan, - pub tidquals: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SubqueryScan { - pub scan: Scan, - pub subplan: *mut Plan, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FunctionScan { - pub scan: Scan, - pub functions: *mut List, - pub funcordinality: bool, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ValuesScan { - pub scan: Scan, - pub values_lists: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TableFuncScan { - pub scan: Scan, - pub tablefunc: *mut TableFunc, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NamedTuplestoreScan { - pub scan: Scan, - pub enrname: *mut ::std::os::raw::c_char, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WorkTableScan { - pub scan: Scan, - pub wtParam: ::std::os::raw::c_int, -} -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() - } - } -} -#[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() - } - } -} -#[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, -} -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 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 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, Copy, Clone)] -pub struct NestLoopParam { - pub type_: NodeTag, - pub paramno: ::std::os::raw::c_int, - pub paramval: *mut Var, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Material { - pub plan: Plan, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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() - } - } -} -#[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 PartitionPruneInfo { - pub type_: NodeTag, - pub prune_infos: *mut List, - pub other_subplans: *mut Bitmapset, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionPruneStep { - pub type_: NodeTag, - pub step_id: ::std::os::raw::c_int, -} -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() - } - } -} -#[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, -} -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() - } - } -} -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, -} -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() - } - } -} -#[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() - } - } -} -#[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 PartitionKeyData { - _unused: [u8; 0], -} -pub type PartitionKey = *mut PartitionKeyData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionDescData { - _unused: [u8; 0], -} -pub type PartitionDesc = *mut PartitionDescData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionDirectoryData { - _unused: [u8; 0], -} -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, -} -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 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, -} -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 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 unsafe fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; - } - 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, -} -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() - } - } -} -#[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() - } - } -} -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 closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} -pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - 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 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 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; - } - 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, - ) - }) -} -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)] -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 { +#[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 { @@ -26586,6 +15009,7 @@ 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, @@ -26601,6 +15025,7 @@ impl Default for ExprContext_CB { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ExprContext { pub type_: NodeTag, pub ecxt_scantuple: *mut TupleTableSlot, @@ -26659,6 +15084,7 @@ impl Default for ReturnSetInfo { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ProjectionInfo { pub type_: NodeTag, pub pi_state: ExprState, @@ -27116,6 +15542,7 @@ impl Default for SetExprState { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct SubPlanState { pub type_: NodeTag, pub subplan: *mut SubPlan, @@ -28153,6 +16580,7 @@ pub struct WindowStatePerAggData { } pub type WindowStatePerAgg = *mut WindowStatePerAggData; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct WindowAggState { pub ss: ScanState, pub funcs: *mut List, @@ -31742,288 +20170,12 @@ impl Default for DiscardStmt { #[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, + pub type_: NodeTag, + pub relations: *mut List, + pub mode: ::std::os::raw::c_int, + pub nowait: bool, } -impl Default for CreateSubscriptionStmt { +impl Default for LockStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32032,23 +20184,14 @@ 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 ConstraintsSetStmt { 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 constraints: *mut List, + pub deferred: bool, } -impl Default for AlterSubscriptionStmt { +impl Default for ConstraintsSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32057,15 +20200,23 @@ impl Default for AlterSubscriptionStmt { } } } +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 DropSubscriptionStmt { +pub struct ReindexStmt { pub type_: NodeTag, - pub subname: *mut ::std::os::raw::c_char, - pub missing_ok: bool, - pub behavior: DropBehavior, + 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 DropSubscriptionStmt { +impl Default for ReindexStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32075,68 +20226,16 @@ 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 CreateConversionStmt { 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 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 MemoryContextData { +impl Default for CreateConversionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32145,2204 +20244,1860 @@ 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 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; -} -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, - ) - }) +#[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 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; +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() } - 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; +#[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() } - 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; +#[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() } - 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; +#[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() } - 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); +#[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() } - 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; +#[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() } - 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; +#[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() } - 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; +#[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() } - 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; +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() } - 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; +#[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() } - 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; +#[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() } - 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; +#[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() } - ExecFilterJunk(arg_junkfilter, arg_slot) - }) + } } -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); +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() } - ExecutorStart(arg_queryDesc, arg_eflags) - }) + } } -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, - ); +#[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() } - standard_ExecutorStart(arg_queryDesc, arg_eflags) - }) + } +} +#[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, } -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, - ); +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() } - ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) - }) + } } -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 TopMemoryContext: 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 ErrorContext: 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 PostmasterContext: 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 CacheMemoryContext: 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 MessageContext: 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 TopTransactionContext: 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 CurTransactionContext: MemoryContext; } -pub unsafe fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { +extern "C" { + pub static mut PortalContext: MemoryContext; +} +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); } - ExecInitResultSlot(arg_planstate, arg_tts_ops) + ExecutorFinish(arg_queryDesc) }) } -pub unsafe fn ExecInitResultTupleSlotTL( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, +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); + } + CheckValidResultRel(arg_resultRelInfo, arg_operation) + }) +} +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 ExecCleanUpTriggerState(arg_estate: *mut EState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecCleanUpTriggerState(arg_estate: *mut EState); + } + ExecCleanUpTriggerState(arg_estate) }) } -pub unsafe fn ExecInitExtraTupleSlot( +pub unsafe fn ExecConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, 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 ExecInitExtraTupleSlot( + fn ExecConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, arg_estate: *mut EState, - arg_tupledesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupleTableSlot; + ); } - ExecInitExtraTupleSlot(arg_estate, arg_tupledesc, arg_tts_ops) + ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecInitNullTupleSlot( +pub unsafe fn ExecPartitionCheck( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, arg_estate: *mut EState, - arg_tupType: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupleTableSlot { + arg_emitError: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitNullTupleSlot( + fn ExecPartitionCheck( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, arg_estate: *mut EState, - arg_tupType: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupleTableSlot; + arg_emitError: bool, + ) -> bool; } - ExecInitNullTupleSlot(arg_estate, arg_tupType, arg_tts_ops) + ExecPartitionCheck(arg_resultRelInfo, arg_slot, arg_estate, arg_emitError) }) } -pub unsafe fn ExecTypeFromTL(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 ExecTypeFromTL(arg_targetList: *mut List) -> TupleDesc; + fn ExecPartitionCheckEmitError( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ); } - ExecTypeFromTL(arg_targetList) + ExecPartitionCheckEmitError(arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecCleanTypeFromTL(arg_targetList: *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 ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc; + fn ExecWithCheckOptions( + arg_kind: WCOKind, + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ); } - ExecCleanTypeFromTL(arg_targetList) + ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc { +pub unsafe fn ExecUpdateLockMode( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, +) -> LockTupleMode { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc; + fn ExecUpdateLockMode( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + ) -> LockTupleMode; } - ExecTypeFromExprList(arg_exprList) + ExecUpdateLockMode(arg_estate, arg_relinfo) }) } -pub unsafe fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List) { +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 ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List); + fn ExecFindRowMark( + arg_estate: *mut EState, + arg_rti: Index, + arg_missing_ok: bool, + ) -> *mut ExecRowMark; } - ExecTypeSetColNames(arg_typeInfo, arg_namesList) + ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) }) } -pub unsafe fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset) { +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 UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset); + fn ExecBuildAuxRowMark( + arg_erm: *mut ExecRowMark, + arg_targetlist: *mut List, + ) -> *mut ExecAuxRowMark; } - UpdateChangedParamSet(arg_node, arg_newchg) + ExecBuildAuxRowMark(arg_erm, arg_targetlist) }) } -#[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 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 begin_tup_output_tupdesc( - arg_dest: *mut DestReceiver, - arg_tupdesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupOutputState; + fn EvalPlanQual( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + arg_testslot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - begin_tup_output_tupdesc(arg_dest, arg_tupdesc, arg_tts_ops) + EvalPlanQual(arg_epqstate, arg_relation, arg_rti, arg_testslot) }) } -pub unsafe fn do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, +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_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, + 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_tup_output(arg_tstate, arg_values, arg_isnull) + EvalPlanQualInit(arg_epqstate, arg_parentestate, arg_subplan, arg_auxrowmarks, arg_epqParam) }) } -pub unsafe fn do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, +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 do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, + fn EvalPlanQualSetPlan( + arg_epqstate: *mut EPQState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, ); } - do_text_output_multiline(arg_tstate, arg_txt) + EvalPlanQualSetPlan(arg_epqstate, arg_subplan, arg_auxrowmarks) }) } -pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { +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 end_tup_output(arg_tstate: *mut TupOutputState); + fn EvalPlanQualSlot( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + ) -> *mut TupleTableSlot; } - end_tup_output(arg_tstate) + EvalPlanQualSlot(arg_epqstate, arg_relation, arg_rti) }) } -pub unsafe fn CreateExecutorState() -> *mut EState { +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 CreateExecutorState() -> *mut EState; + fn EvalPlanQualFetchRowMark( + arg_epqstate: *mut EPQState, + arg_rti: Index, + arg_slot: *mut TupleTableSlot, + ) -> bool; } - CreateExecutorState() + EvalPlanQualFetchRowMark(arg_epqstate, arg_rti, arg_slot) }) } -pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { +pub unsafe fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeExecutorState(arg_estate: *mut EState); + fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot; } - FreeExecutorState(arg_estate) + EvalPlanQualNext(arg_epqstate) }) } -pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { +pub unsafe fn EvalPlanQualBegin(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; + fn EvalPlanQualBegin(arg_epqstate: *mut EPQState); } - CreateExprContext(arg_estate) + EvalPlanQualBegin(arg_epqstate) }) } -pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { +pub unsafe fn EvalPlanQualEnd(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateStandaloneExprContext() -> *mut ExprContext; + fn EvalPlanQualEnd(arg_epqstate: *mut EPQState); } - CreateStandaloneExprContext() + EvalPlanQualEnd(arg_epqstate) }) } -pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: 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 FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); + fn ExecInitNode( + arg_node: *mut Plan, + arg_estate: *mut EState, + arg_eflags: ::std::os::raw::c_int, + ) -> *mut PlanState; } - FreeExprContext(arg_econtext, arg_isCommit) + ExecInitNode(arg_node, arg_estate, arg_eflags) }) } -pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { +pub unsafe fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReScanExprContext(arg_econtext: *mut ExprContext); + fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd); } - ReScanExprContext(arg_econtext) + ExecSetExecProcNode(arg_node, arg_function) }) } -pub unsafe fn MakePerTupleExprContext(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 MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; + fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; } - MakePerTupleExprContext(arg_estate) + MultiExecProcNode(arg_node) }) } -pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { +pub unsafe fn ExecEndNode(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); + fn ExecEndNode(arg_node: *mut PlanState); } - ExecAssignExprContext(arg_estate, arg_planstate) + ExecEndNode(arg_node) }) } -pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { +pub unsafe fn ExecShutdownNode(arg_node: *mut PlanState) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; + fn ExecShutdownNode(arg_node: *mut PlanState) -> bool; } - ExecGetResultType(arg_planstate) + ExecShutdownNode(arg_node) }) } -pub unsafe fn ExecGetResultSlotOps( - arg_planstate: *mut PlanState, - arg_isfixed: *mut bool, -) -> *const TupleTableSlotOps { +pub unsafe fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_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 ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState); } - ExecGetResultSlotOps(arg_planstate, arg_isfixed) + ExecSetTupleBound(arg_tuples_needed, arg_child_node) }) } -pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { +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 ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); + fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) + ExecInitExpr(arg_node, arg_parent) }) } -pub unsafe fn ExecConditionalAssignProjectionInfo( - arg_planstate: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_varno: Index, -) { +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 ExecConditionalAssignProjectionInfo( - arg_planstate: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_varno: Index, - ); + fn ExecInitExprWithParams( + arg_node: *mut Expr, + arg_ext_params: ParamListInfo, + ) -> *mut ExprState; } - ExecConditionalAssignProjectionInfo(arg_planstate, arg_inputDesc, arg_varno) + ExecInitExprWithParams(arg_node, arg_ext_params) }) } -pub unsafe fn ExecFreeExprContext(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 ExecFreeExprContext(arg_planstate: *mut PlanState); + fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecFreeExprContext(arg_planstate) + ExecInitQual(arg_qual, arg_parent) }) } -pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: 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 ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); + fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecAssignScanType(arg_scanstate, arg_tupDesc) + ExecInitCheck(arg_qual, arg_parent) }) } -pub unsafe fn ExecCreateScanSlotFromOuterPlan( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tts_ops: *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 ExecCreateScanSlotFromOuterPlan( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tts_ops: *const TupleTableSlotOps, - ); + fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List; } - ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate, arg_tts_ops) + ExecInitExprList(arg_nodes, arg_parent) }) } -pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { +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 ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; + fn ExecBuildAggTrans( + arg_aggstate: *mut AggState, + arg_phase: *mut AggStatePerPhaseData, + arg_doSort: bool, + arg_doHash: bool, + ) -> *mut ExprState; } - ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) + ExecBuildAggTrans(arg_aggstate, arg_phase, arg_doSort, arg_doHash) }) } -pub unsafe fn ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, -) -> 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 ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, - ) -> 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; } - ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) + ExecBuildGroupingEqual( + arg_ldesc, + arg_rdesc, + arg_lops, + arg_rops, + arg_numCols, + arg_keyColIdx, + arg_eqfunctions, + arg_collations, + arg_parent, + ) }) } -pub unsafe fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List) { +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 ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List); + fn ExecBuildProjectionInfo( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + ) -> *mut ProjectionInfo; } - ExecInitRangeTable(arg_estate, arg_rangeTable) + ExecBuildProjectionInfo(arg_targetList, arg_econtext, arg_slot, arg_parent, arg_inputDesc) }) } -pub unsafe fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation { +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 ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation; + 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; } - ExecGetRangeTableRelation(arg_estate, arg_rti) + ExecBuildProjectionInfoExt( + arg_targetList, + arg_econtext, + arg_slot, + arg_assignJunkEntries, + arg_parent, + arg_inputDesc, + ) }) } -pub unsafe fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +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 executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; } - executor_errposition(arg_estate, arg_location) + ExecPrepareExpr(arg_node, arg_estate) }) } -pub unsafe fn RegisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: 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 RegisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); + fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) + ExecPrepareQual(arg_qual, arg_estate) }) } -pub unsafe fn UnregisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: 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 UnregisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); + fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) + ExecPrepareCheck(arg_qual, 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 ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List { 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 ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; } - GetAttributeByName(arg_tuple, arg_attname, arg_isNull) + ExecPrepareExprList(arg_nodes, arg_estate) }) } -pub unsafe fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, - arg_isNull: *mut bool, -) -> Datum { +pub unsafe fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, - arg_isNull: *mut bool, - ) -> Datum; + fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; } - GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) + ExecCheck(arg_state, arg_context) }) } -pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::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 ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; + fn ExecInitTableFunctionResult( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - ExecTargetListLength(arg_targetlist) + ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { +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 ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; + fn ExecMakeTableFunctionResult( + arg_setexpr: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, + arg_expectedDesc: TupleDesc, + arg_randomAccess: bool, + ) -> *mut Tuplestorestate; } - ExecCleanTargetListLength(arg_targetlist) + ExecMakeTableFunctionResult( + arg_setexpr, + arg_econtext, + arg_argContext, + arg_expectedDesc, + arg_randomAccess, + ) }) } -pub unsafe fn ExecGetTriggerOldSlot( - 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 ExecGetTriggerOldSlot( - 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; } - ExecGetTriggerOldSlot(arg_estate, arg_relInfo) + ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn ExecGetTriggerNewSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { +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 ExecGetTriggerNewSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; + fn ExecMakeFunctionResultSet( + arg_fcache: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, + arg_isNull: *mut bool, + arg_isDone: *mut ExprDoneCond, + ) -> Datum; } - ExecGetTriggerNewSlot(arg_estate, arg_relInfo) + ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_argContext, arg_isNull, arg_isDone) }) } -pub unsafe fn ExecGetReturningSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, +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 ExecGetReturningSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, + fn ExecScan( + arg_node: *mut ScanState, + arg_accessMtd: ExecScanAccessMtd, + arg_recheckMtd: ExecScanRecheckMtd, ) -> *mut TupleTableSlot; } - ExecGetReturningSlot(arg_estate, arg_relInfo) + ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) }) } -pub unsafe fn ExecGetInsertedCols( - 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 ExecGetInsertedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); } - ExecGetInsertedCols(arg_relinfo, arg_estate) + ExecAssignScanProjectionInfo(arg_node) }) } -pub unsafe fn ExecGetUpdatedCols( - 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 ExecGetUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); } - ExecGetUpdatedCols(arg_relinfo, arg_estate) + ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) }) } -pub unsafe fn ExecGetExtraUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { +pub unsafe fn ExecScanReScan(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 ExecScanReScan(arg_node: *mut ScanState); } - ExecGetExtraUpdatedCols(arg_relinfo, arg_estate) + ExecScanReScan(arg_node) }) } -pub unsafe fn ExecGetAllUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { +pub unsafe fn ExecInitResultTypeTL(arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetAllUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn ExecInitResultTypeTL(arg_planstate: *mut PlanState); } - ExecGetAllUpdatedCols(arg_relinfo, arg_estate) + ExecInitResultTypeTL(arg_planstate) }) } -pub unsafe fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool) { +pub unsafe fn ExecInitResultSlot( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool); + fn ExecInitResultSlot( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - ExecOpenIndices(arg_resultRelInfo, arg_speculative) + ExecInitResultSlot(arg_planstate, arg_tts_ops) }) } -pub unsafe fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo) { +pub unsafe fn ExecInitResultTupleSlotTL( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); + fn ExecInitResultTupleSlotTL( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - ExecCloseIndices(arg_resultRelInfo) + ExecInitResultTupleSlotTL(arg_planstate, arg_tts_ops) }) } -pub unsafe fn ExecInsertIndexTuples( - arg_slot: *mut TupleTableSlot, +pub unsafe fn ExecInitScanTupleSlot( arg_estate: *mut EState, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, -) -> *mut List { + arg_scanstate: *mut ScanState, + arg_tupleDesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInsertIndexTuples( - arg_slot: *mut TupleTableSlot, + fn ExecInitScanTupleSlot( arg_estate: *mut EState, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, - ) -> *mut List; + arg_scanstate: *mut ScanState, + arg_tupleDesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ); } - ExecInsertIndexTuples( - arg_slot, - arg_estate, - arg_noDupErr, - arg_specConflict, - arg_arbiterIndexes, - ) + ExecInitScanTupleSlot(arg_estate, arg_scanstate, arg_tupleDesc, arg_tts_ops) }) } -pub unsafe fn ExecCheckIndexConstraints( - arg_slot: *mut TupleTableSlot, +pub unsafe fn ExecInitExtraTupleSlot( arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, -) -> bool { + arg_tupledesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheckIndexConstraints( - arg_slot: *mut TupleTableSlot, + fn ExecInitExtraTupleSlot( arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, - ) -> bool; + arg_tupledesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - ExecCheckIndexConstraints(arg_slot, arg_estate, arg_conflictTid, arg_arbiterIndexes) + ExecInitExtraTupleSlot(arg_estate, arg_tupledesc, 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 ExecInitNullTupleSlot( arg_estate: *mut EState, - arg_newIndex: bool, -) { + arg_tupType: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupleTableSlot { 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 ExecInitNullTupleSlot( arg_estate: *mut EState, - arg_newIndex: bool, - ); - } - 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, - ) - }) -} -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; + 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 { @@ -34351,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 get_func_result_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn CreateExecutorState() -> *mut EState; } - get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) + CreateExecutorState() }) } -pub unsafe fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc { +pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc; + fn FreeExecutorState(arg_estate: *mut EState); } - get_expr_result_tupdesc(arg_expr, arg_noError) + FreeExecutorState(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 CreateExprContext(arg_estate: *mut EState) -> *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 CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) + CreateExprContext(arg_estate) }) } -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 CreateStandaloneExprContext() -> *mut ExprContext { 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 CreateStandaloneExprContext() -> *mut ExprContext; } - get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) + CreateStandaloneExprContext() }) } -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 FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { 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 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); } - 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 { @@ -35141,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 { @@ -35150,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)] @@ -36529,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, @@ -36721,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; @@ -37482,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() { @@ -37900,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( @@ -40668,6 +28100,7 @@ pub unsafe fn pgstat_fetch_global() -> *mut PgStat_GlobalStats { }) } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ScanKeyData { pub sk_flags: ::std::os::raw::c_int, pub sk_attno: AttrNumber, @@ -40704,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( @@ -40902,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( @@ -41022,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( @@ -41639,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( @@ -42528,6 +29936,7 @@ pub struct GISTPageOpaqueData { } 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, @@ -42548,6 +29957,7 @@ impl Default for GIST_SPLITVEC { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct GISTENTRY { pub key: Datum, pub rel: Relation, @@ -42570,6 +29980,7 @@ pub struct GISTDeletedPageContents { pub deleteXid: FullTransactionId, } #[repr(C)] +#[derive(Debug)] pub struct GistEntryVector { pub n: int32, pub vector: __IncompleteArrayField, @@ -43342,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( @@ -43368,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( @@ -43396,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( @@ -43544,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( @@ -43586,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( @@ -43611,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( @@ -43636,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( @@ -43694,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( @@ -44057,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( @@ -45415,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( @@ -45441,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( @@ -46389,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( @@ -46444,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 { @@ -47489,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 { @@ -47661,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( @@ -47791,13 +35109,7 @@ pub unsafe fn heap_fetch_extended( arg_keep_buf: bool, ) -> bool; } - heap_fetch_extended( - arg_relation, - arg_snapshot, - arg_tuple, - arg_userbuf, - arg_keep_buf, - ) + heap_fetch_extended(arg_relation, arg_snapshot, arg_tuple, arg_userbuf, arg_keep_buf) }) } pub unsafe fn heap_hot_search_buffer( @@ -47911,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( @@ -48598,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( @@ -48627,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( @@ -48654,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( @@ -49520,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( @@ -49560,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( @@ -49586,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( @@ -49732,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( @@ -51333,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) { @@ -51679,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) { @@ -51727,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( @@ -52605,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( @@ -53481,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( @@ -53536,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( @@ -53841,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 { @@ -54952,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 { @@ -55306,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) { @@ -55899,13 +43117,7 @@ pub unsafe fn EnableDisableTrigger( arg_lockmode: LOCKMODE, ); } - EnableDisableTrigger( - arg_rel, - arg_tgname, - arg_fires_when, - arg_skip_system, - arg_lockmode, - ) + EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system, arg_lockmode) }) } pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { @@ -56622,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( @@ -57082,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) { @@ -57353,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( @@ -57376,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) { @@ -57810,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 { @@ -57937,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( @@ -58363,6 +45548,7 @@ 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; 96usize], pub bgw_type: [::std::os::raw::c_char; 96usize], @@ -61846,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( @@ -62236,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 { @@ -62663,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( @@ -63350,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( @@ -63886,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( @@ -64132,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( @@ -64812,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" { @@ -64970,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 { @@ -65056,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( @@ -65726,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( @@ -65785,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( @@ -66271,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( @@ -66299,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( @@ -67281,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< @@ -67931,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( @@ -68487,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( @@ -69088,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( @@ -69127,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( @@ -69278,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( @@ -69347,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( @@ -69445,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( @@ -69474,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; @@ -69520,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( @@ -69817,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( @@ -70779,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" { @@ -73270,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) { @@ -75228,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" { @@ -75332,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" { @@ -75692,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" { @@ -75716,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" { @@ -79220,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" { @@ -81844,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" { @@ -82004,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" { @@ -82228,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" { @@ -82636,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" { @@ -84860,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" { @@ -85564,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" { @@ -86580,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" { @@ -89724,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" { @@ -95326,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 { @@ -97324,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( @@ -97574,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( @@ -97618,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( @@ -97647,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( @@ -98142,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( @@ -98555,6 +84814,7 @@ pub struct RangeType { pub rangetypid: Oid, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct RangeBound { pub val: Datum, pub infinite: bool, @@ -98908,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, } @@ -98986,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 { @@ -98998,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 { @@ -99010,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 { @@ -99022,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 { @@ -99034,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 { @@ -99046,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 { @@ -99058,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 { @@ -99070,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 { @@ -99082,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 { @@ -99094,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 { @@ -99106,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 { @@ -99118,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 { @@ -99130,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 { @@ -99142,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 { @@ -99154,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 { @@ -99166,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 { @@ -99178,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 { @@ -99190,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 { @@ -99202,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 { @@ -99214,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 { @@ -99226,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 { @@ -99238,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 { @@ -99250,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 { @@ -99262,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 { @@ -99274,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 { @@ -99286,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 { @@ -99298,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 { @@ -99310,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 { @@ -99322,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 { @@ -99334,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 { @@ -99346,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 { @@ -99358,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 { @@ -99370,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 { @@ -99382,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 { @@ -99394,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 { @@ -99406,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 { @@ -99418,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 { @@ -99430,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 { @@ -99442,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 { @@ -99454,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 { @@ -99466,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 { @@ -99478,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 { @@ -99490,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 { @@ -99502,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 { @@ -99514,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 { @@ -99526,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 { @@ -99538,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 { @@ -99550,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 { @@ -99562,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 { @@ -99574,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 { @@ -99586,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 { @@ -99598,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 { @@ -99610,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 { @@ -99622,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 { @@ -99634,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 { @@ -99646,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 { @@ -99658,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 { @@ -99670,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 { @@ -99682,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 { @@ -99694,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 { @@ -99706,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 { @@ -99718,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 { @@ -99730,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 { @@ -99742,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 { @@ -99754,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 { @@ -99766,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 { @@ -99778,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 { @@ -99790,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 { @@ -99802,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 { @@ -99814,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 { @@ -99826,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 { @@ -99838,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 { @@ -99850,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 { @@ -99862,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 { @@ -99874,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 { @@ -99886,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 { @@ -99898,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 { @@ -99910,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 { @@ -99922,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 { @@ -99934,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 { @@ -99946,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 { @@ -99958,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 { @@ -99970,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 { @@ -99982,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 { @@ -99994,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 { @@ -100006,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 { @@ -100018,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 { @@ -100030,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 { @@ -100042,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 { @@ -100054,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 { @@ -100066,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 { @@ -100078,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 { @@ -100090,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 { @@ -100102,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 { @@ -100114,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 { @@ -100126,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 { @@ -100138,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 { @@ -100150,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 { @@ -100162,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 { @@ -100174,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 { @@ -100186,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 { @@ -100198,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 { @@ -100210,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 { @@ -100222,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 { @@ -100234,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 { @@ -100246,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 { @@ -100258,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 { @@ -100270,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 { @@ -100282,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 { @@ -100294,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 { @@ -100306,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 { @@ -100318,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 { @@ -100330,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 { @@ -100342,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 { @@ -100354,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 { @@ -100366,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 { @@ -100378,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 { @@ -100390,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 { @@ -100402,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 { @@ -100414,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 { @@ -100426,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 { @@ -100438,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 { @@ -100450,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 { @@ -100462,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 { @@ -100474,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 { @@ -100486,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 { @@ -100498,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 { @@ -100510,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 { @@ -100522,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 { @@ -100534,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 { @@ -100546,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 { @@ -100558,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 { @@ -100570,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 { @@ -100582,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 { @@ -100594,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 { @@ -100606,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 { @@ -100618,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 { @@ -100630,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 { @@ -100642,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 { @@ -100654,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 { @@ -100666,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 { @@ -100678,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 { @@ -100690,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 { @@ -100702,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 { @@ -100714,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 { @@ -100726,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 { @@ -100738,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 { @@ -100750,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 { @@ -100762,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 { @@ -100774,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 { @@ -100786,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 { @@ -100798,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 { @@ -100810,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 { @@ -100822,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 { @@ -100834,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 { @@ -100846,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 { @@ -100858,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 { @@ -100870,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 { @@ -100882,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 { @@ -100894,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 { @@ -100906,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 { @@ -100918,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 { @@ -100930,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 { @@ -100942,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 { @@ -100954,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 { @@ -100966,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 { @@ -100978,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 { @@ -100990,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 { @@ -101002,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 { @@ -101014,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 { @@ -101026,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 { @@ -101038,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 { @@ -101050,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 { @@ -101062,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 { @@ -101074,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 { @@ -101086,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 { @@ -101098,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 { @@ -101110,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 { @@ -101122,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 { @@ -101134,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 { @@ -101146,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 { @@ -101158,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 { @@ -101170,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 { @@ -101182,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 { @@ -101194,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 { @@ -101206,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 { @@ -101218,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 { @@ -101230,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 { @@ -101242,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 { @@ -101254,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 { @@ -101266,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 { @@ -101278,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 { @@ -101290,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 { @@ -101302,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 { @@ -101314,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 { @@ -101326,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 { @@ -101338,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 { @@ -101350,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 { @@ -101362,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 { @@ -101374,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 { @@ -101386,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 { @@ -101398,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 { @@ -101410,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 { @@ -101422,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 { @@ -101434,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 { @@ -101446,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 { @@ -101458,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 { @@ -101470,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 { @@ -101482,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 { @@ -101494,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 { @@ -101506,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 { @@ -101518,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 { @@ -101530,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 { @@ -101542,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 { @@ -101554,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 { @@ -101566,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 { @@ -101578,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 { @@ -101590,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 { @@ -101602,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 { @@ -101614,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 { @@ -101626,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 { @@ -101638,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 { @@ -101650,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 { @@ -101662,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 { @@ -101674,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 { @@ -101686,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 { @@ -101698,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 { @@ -101710,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 { @@ -101722,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 { @@ -101734,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 { @@ -101746,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 { @@ -101758,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 { @@ -101770,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 { @@ -101782,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 { @@ -101794,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 { @@ -101806,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 { @@ -101818,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 { @@ -101830,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 { @@ -101842,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 { @@ -101854,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 { @@ -101866,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 { @@ -101878,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 { @@ -101890,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 { @@ -101902,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 { @@ -101914,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 { @@ -101926,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 { @@ -101938,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 { @@ -101950,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 { @@ -101962,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 { @@ -101974,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 { @@ -101986,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 { @@ -101998,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 { @@ -102010,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 { @@ -102022,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 { @@ -102034,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 { @@ -102046,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 { @@ -102058,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 { @@ -102070,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 { @@ -102082,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 { @@ -102094,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 { @@ -102106,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 { @@ -102118,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 { @@ -102130,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 { @@ -102142,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 { @@ -102154,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 { @@ -102166,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 { @@ -102178,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 { @@ -102190,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 { @@ -102202,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 { @@ -102214,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 { @@ -102226,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 { @@ -102238,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 { @@ -102250,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 { @@ -102262,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 { @@ -102274,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 { @@ -102286,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 { @@ -102298,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 { @@ -102310,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 { @@ -102322,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 { @@ -102334,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 { @@ -102346,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 { @@ -102358,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 { @@ -102370,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 { @@ -102382,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 { @@ -102394,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 { @@ -102406,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 { @@ -102418,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 { @@ -102430,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 { @@ -102442,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 { @@ -102454,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 { @@ -102466,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 { @@ -102478,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 { @@ -102490,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 { @@ -102502,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 { @@ -102514,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 { @@ -102526,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 { @@ -102538,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 { @@ -102550,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 { @@ -102562,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 { @@ -102574,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 { @@ -102586,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 { @@ -102598,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 { @@ -102610,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 { @@ -102622,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 { @@ -102634,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 { @@ -102646,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 { @@ -102658,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 { @@ -102670,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 { @@ -102682,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 { @@ -102694,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 { @@ -102706,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 { @@ -102718,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 { @@ -102730,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 { @@ -102742,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 { @@ -102754,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 { @@ -102766,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 { @@ -102778,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 { @@ -102790,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 { @@ -102802,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 { @@ -102814,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 { @@ -102826,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 { @@ -102838,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 { @@ -102850,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 { @@ -102862,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 { @@ -102874,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 { @@ -102886,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 { @@ -102898,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 { @@ -102910,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 { @@ -102922,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 { @@ -102934,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 { @@ -102946,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 { @@ -102958,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 { @@ -102970,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 { @@ -102982,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 { @@ -102994,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 { @@ -103006,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 { @@ -103018,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 { @@ -103030,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 { @@ -103042,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 { @@ -103054,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 { @@ -103066,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 { @@ -103078,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 { @@ -103090,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 { @@ -103102,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 { @@ -103114,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 { @@ -103126,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 { @@ -103138,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 { @@ -103150,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 { @@ -103162,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 { @@ -103174,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 { @@ -103186,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 { @@ -103198,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 { @@ -103210,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 { @@ -103222,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 { @@ -103234,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 { @@ -103246,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 { @@ -103258,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 { @@ -103270,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 { @@ -103282,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 { @@ -103294,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 { @@ -103306,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 { @@ -103318,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 { @@ -103330,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 { @@ -103342,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 { @@ -103354,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 { @@ -103366,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 { @@ -103378,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 { @@ -103390,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 { @@ -103402,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 { @@ -103414,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 { @@ -103426,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 { @@ -103438,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 { @@ -103450,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 { @@ -103462,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 { @@ -103474,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 { @@ -103486,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 { @@ -103498,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 { @@ -103510,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 { @@ -103522,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 { @@ -103534,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 { @@ -103546,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 { @@ -103558,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 { @@ -103570,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 { @@ -103582,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 { @@ -103594,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 { @@ -103606,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 { @@ -103618,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 { @@ -103630,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 { @@ -103642,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 { @@ -103654,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 { @@ -103666,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 { @@ -103678,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 { @@ -103690,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 { @@ -103702,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 { @@ -103714,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 { @@ -103726,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 { @@ -103738,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 { @@ -103750,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 { @@ -103762,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 { @@ -103774,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 { @@ -103786,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 { @@ -103798,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 { @@ -103810,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 { @@ -103822,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 { @@ -103834,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 { @@ -103846,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 80f64d720..9c30c2739 100644 --- a/pgx-pg-sys/src/pg13.rs +++ b/pgx-pg-sys/src/pg13.rs @@ -22,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 } @@ -35,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; @@ -55,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; } } @@ -73,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); } } @@ -366,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 = 36; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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,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; @@ -771,420 +391,6 @@ 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 SOL_MPTCP: u32 = 284; -pub const SOL_MCTP: u32 = 285; -pub const SOL_SMC: u32 = 286; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -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_TXREHASH: u32 = 74; -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.8\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; @@ -1192,34 +398,6 @@ 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; @@ -1289,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; @@ -1722,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; @@ -1788,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; @@ -1896,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; @@ -2030,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; @@ -2044,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; @@ -2066,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; @@ -2127,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; @@ -3152,137 +2064,17 @@ 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)] @@ -3343,3041 +2135,2073 @@ 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 arc4random() -> __uint32_t { +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 arc4random() -> __uint32_t; + fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - arc4random() + errposition(arg_cursorpos) }) } -pub unsafe fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize) { +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 arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize); + fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - arc4random_buf(arg___buf, arg___size) + internalerrposition(arg_cursorpos) }) } -pub unsafe fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t { +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 arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t; + fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - arc4random_uniform(arg___upper_bound) + internalerrquery(arg_query) }) } -pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *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 malloc(arg___size: ::std::os::raw::c_ulong) -> *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; } - malloc(arg___size) + err_generic_string(arg_field, arg_str_) }) } -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 geterrcode() -> ::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 geterrcode() -> ::std::os::raw::c_int; } - calloc(arg___nmemb, arg___size) + geterrcode() }) } -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 geterrposition() -> ::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 geterrposition() -> ::std::os::raw::c_int; } - realloc(arg___ptr, arg___size) + geterrposition() }) } -pub unsafe fn free(arg___ptr: *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 free(arg___ptr: *mut ::std::os::raw::c_void); + fn getinternalerrposition() -> ::std::os::raw::c_int; } - free(arg___ptr) + getinternalerrposition() }) } -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 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 reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - ) -> *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, + ); } - reallocarray(arg___ptr, arg___nmemb, arg___size) + pre_format_elog_string(arg_errnumber, arg_domain) }) } -pub unsafe fn alloca(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 alloca(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; } - alloca(arg___size) + format_elog_string(arg_fmt) }) } -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) - }) +#[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 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; +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() } - 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) - }) +extern "C" { + pub static mut error_context_stack: *mut ErrorContextCallback; } -pub unsafe fn abort() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn abort(); - } - abort() - }) +extern "C" { + pub static mut PG_exception_stack: *mut sigjmp_buf; } -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) - }) +#[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, } -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; +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() } - 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 { +pub unsafe fn EmitErrorReport() { 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 EmitErrorReport(); } - on_exit(arg___func, arg___arg) + EmitErrorReport() }) } -pub unsafe fn 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 exit(arg___status: ::std::os::raw::c_int); + fn CopyErrorData() -> *mut ErrorData; } - exit(arg___status) + CopyErrorData() }) } -pub unsafe fn quick_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 quick_exit(arg___status: ::std::os::raw::c_int); + fn FreeErrorData(arg_edata: *mut ErrorData); } - quick_exit(arg___status) + FreeErrorData(arg_edata) }) } -pub unsafe fn _Exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn FlushErrorState() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _Exit(arg___status: ::std::os::raw::c_int); + fn FlushErrorState(); } - _Exit(arg___status) + FlushErrorState() }) } -pub unsafe fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { 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 ReThrowError(arg_edata: *mut ErrorData); } - getenv(arg___name) + ReThrowError(arg_edata) }) } -pub unsafe fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn ThrowErrorData(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 ThrowErrorData(arg_edata: *mut ErrorData); } - putenv(arg___string) + ThrowErrorData(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 GetErrorContextStack() -> *mut ::std::os::raw::c_char { 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 GetErrorContextStack() -> *mut ::std::os::raw::c_char; } - setenv(arg___name, arg___value, arg___replace) + GetErrorContextStack() }) } -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 type emit_log_hook_type = ::std::option::Option; +extern "C" { + pub static mut emit_log_hook: emit_log_hook_type; } -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 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 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) - }) +extern "C" { + pub static mut Log_line_prefix: *mut ::std::os::raw::c_char; } -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_destination: ::std::os::raw::c_int; } -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_string: *mut ::std::os::raw::c_char; } -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 syslog_sequence_numbers: bool; +} +extern "C" { + pub static mut syslog_split_messages: bool; } -pub unsafe fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +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) - }) -} -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) + set_syslog_parameters(arg_ident, arg_facility) }) } -pub unsafe fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long { +pub unsafe fn write_stderr(arg_fmt: *const ::std::os::raw::c_char) { 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 write_stderr(arg_fmt: *const ::std::os::raw::c_char); } - labs(arg___x) + write_stderr(arg_fmt) }) } -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 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 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; +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() } - 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) - }) +extern "C" { + pub static mut CurrentMemoryContext: MemoryContext; } -pub unsafe fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, -) -> lldiv_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 lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, - ) -> lldiv_t; + fn MemoryContextAlloc( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - lldiv(arg___numer, arg___denom) + MemoryContextAlloc(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 MemoryContextAllocZero( + 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 MemoryContextAllocZero( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - ecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + MemoryContextAllocZero(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 MemoryContextAllocZeroAligned( + arg_context: MemoryContext, + 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 MemoryContextAllocZeroAligned( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - fcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + MemoryContextAllocZeroAligned(arg_context, 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 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 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 MemoryContextAllocExtended( + arg_context: MemoryContext, + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - gcvt(arg___value, arg___ndigit, arg___buf) + MemoryContextAllocExtended(arg_context, arg_size, arg_flags) }) } -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 palloc(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 palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; } - qecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + palloc(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 palloc0(arg_size: Size) -> *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 palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; } - qfcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + palloc0(arg_size) }) } -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 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 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 palloc_extended( + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - qgcvt(arg___value, arg___ndigit, arg___buf) + palloc_extended(arg_size, arg_flags) }) } -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 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 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 repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - ecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + repalloc(arg_pointer, arg_size) }) } -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 pfree(arg_pointer: *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 pfree(arg_pointer: *mut ::std::os::raw::c_void); } - fcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + pfree(arg_pointer) }) } -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 MemoryContextAllocHuge( + arg_context: MemoryContext, + 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 MemoryContextAllocHuge( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - qecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + MemoryContextAllocHuge(arg_context, 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 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 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 repalloc_huge( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - qfcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + repalloc_huge(arg_pointer, arg_size) }) } -pub unsafe fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: 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 mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; + fn MemoryContextRegisterResetCallback( + arg_context: MemoryContext, + arg_cb: *mut MemoryContextCallback, + ); } - mblen(arg___s, arg___n) + MemoryContextRegisterResetCallback(arg_context, arg_cb) }) } -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 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 mbtowc( - arg___pwc: *mut wchar_t, - 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; } - mbtowc(arg___pwc, arg___s, arg___n) + MemoryContextStrdup(arg_context, arg_string) }) } -pub unsafe fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, -) -> ::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 wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, - ) -> ::std::os::raw::c_int; + fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - wctomb(arg___s, arg___wchar) + pstrdup(arg_in_) }) } -pub unsafe fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> usize { +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 mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> usize; + fn pnstrdup( + arg_in_: *const ::std::os::raw::c_char, + arg_len: Size, + ) -> *mut ::std::os::raw::c_char; } - mbstowcs(arg___pwcs, arg___s, arg___n) + pnstrdup(arg_in_, arg_len) }) } -pub unsafe fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - 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 wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, - ) -> usize; + fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - wcstombs(arg___s, arg___pwcs, arg___n) + pchomp(arg_in_) }) } -pub unsafe fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::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 rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - rpmatch(arg___response) + psprintf(arg_fmt) }) } -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, 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 __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 varatt_indirect { + pub pointer: *mut varlena, } -impl Default for __locale_struct { +impl Default for varatt_indirect { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -6386,557 +4210,12 @@ 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) - }) -} -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, +pub struct varatt_expanded { + pub eohptr: *mut ExpandedObjectHeader, } -impl Default for lconv { +impl Default for varatt_expanded { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -6945,138 +4224,31 @@ impl Default for lconv { } } } -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], -} +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)] -#[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 struct varattrib_4b { + pub va_4byte: __BindgenUnionField, + pub va_compressed: __BindgenUnionField, + pub bindgen_union_field: [u32; 2usize], } -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 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 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], +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 nameData { +impl Default for varattrib_4b { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7085,39 +4257,46 @@ impl Default for nameData { } } } -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(Debug, Default)] +pub struct varattrib_1b { + pub va_header: uint8, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } #[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, +#[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>, } -impl Default for PGAlignedBlock { +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, +} +impl Default for FormData_pg_attribute { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7126,14 +4305,436 @@ impl Default for PGAlignedBlock { } } } +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_IncrementalSort: NodeTag = 41; +pub const NodeTag_T_Group: NodeTag = 42; +pub const NodeTag_T_Agg: NodeTag = 43; +pub const NodeTag_T_WindowAgg: NodeTag = 44; +pub const NodeTag_T_Unique: NodeTag = 45; +pub const NodeTag_T_Gather: NodeTag = 46; +pub const NodeTag_T_GatherMerge: NodeTag = 47; +pub const NodeTag_T_Hash: NodeTag = 48; +pub const NodeTag_T_SetOp: NodeTag = 49; +pub const NodeTag_T_LockRows: NodeTag = 50; +pub const NodeTag_T_Limit: NodeTag = 51; +pub const NodeTag_T_NestLoopParam: NodeTag = 52; +pub const NodeTag_T_PlanRowMark: NodeTag = 53; +pub const NodeTag_T_PartitionPruneInfo: NodeTag = 54; +pub const NodeTag_T_PartitionedRelPruneInfo: NodeTag = 55; +pub const NodeTag_T_PartitionPruneStepOp: NodeTag = 56; +pub const NodeTag_T_PartitionPruneStepCombine: NodeTag = 57; +pub const NodeTag_T_PlanInvalItem: NodeTag = 58; +pub const NodeTag_T_PlanState: NodeTag = 59; +pub const NodeTag_T_ResultState: NodeTag = 60; +pub const NodeTag_T_ProjectSetState: NodeTag = 61; +pub const NodeTag_T_ModifyTableState: NodeTag = 62; +pub const NodeTag_T_AppendState: NodeTag = 63; +pub const NodeTag_T_MergeAppendState: NodeTag = 64; +pub const NodeTag_T_RecursiveUnionState: NodeTag = 65; +pub const NodeTag_T_BitmapAndState: NodeTag = 66; +pub const NodeTag_T_BitmapOrState: NodeTag = 67; +pub const NodeTag_T_ScanState: NodeTag = 68; +pub const NodeTag_T_SeqScanState: NodeTag = 69; +pub const NodeTag_T_SampleScanState: NodeTag = 70; +pub const NodeTag_T_IndexScanState: NodeTag = 71; +pub const NodeTag_T_IndexOnlyScanState: NodeTag = 72; +pub const NodeTag_T_BitmapIndexScanState: NodeTag = 73; +pub const NodeTag_T_BitmapHeapScanState: NodeTag = 74; +pub const NodeTag_T_TidScanState: NodeTag = 75; +pub const NodeTag_T_SubqueryScanState: NodeTag = 76; +pub const NodeTag_T_FunctionScanState: NodeTag = 77; +pub const NodeTag_T_TableFuncScanState: NodeTag = 78; +pub const NodeTag_T_ValuesScanState: NodeTag = 79; +pub const NodeTag_T_CteScanState: NodeTag = 80; +pub const NodeTag_T_NamedTuplestoreScanState: NodeTag = 81; +pub const NodeTag_T_WorkTableScanState: NodeTag = 82; +pub const NodeTag_T_ForeignScanState: NodeTag = 83; +pub const NodeTag_T_CustomScanState: NodeTag = 84; +pub const NodeTag_T_JoinState: NodeTag = 85; +pub const NodeTag_T_NestLoopState: NodeTag = 86; +pub const NodeTag_T_MergeJoinState: NodeTag = 87; +pub const NodeTag_T_HashJoinState: NodeTag = 88; +pub const NodeTag_T_MaterialState: NodeTag = 89; +pub const NodeTag_T_SortState: NodeTag = 90; +pub const NodeTag_T_IncrementalSortState: NodeTag = 91; +pub const NodeTag_T_GroupState: NodeTag = 92; +pub const NodeTag_T_AggState: NodeTag = 93; +pub const NodeTag_T_WindowAggState: NodeTag = 94; +pub const NodeTag_T_UniqueState: NodeTag = 95; +pub const NodeTag_T_GatherState: NodeTag = 96; +pub const NodeTag_T_GatherMergeState: NodeTag = 97; +pub const NodeTag_T_HashState: NodeTag = 98; +pub const NodeTag_T_SetOpState: NodeTag = 99; +pub const NodeTag_T_LockRowsState: NodeTag = 100; +pub const NodeTag_T_LimitState: NodeTag = 101; +pub const NodeTag_T_Alias: NodeTag = 102; +pub const NodeTag_T_RangeVar: NodeTag = 103; +pub const NodeTag_T_TableFunc: NodeTag = 104; +pub const NodeTag_T_Expr: NodeTag = 105; +pub const NodeTag_T_Var: NodeTag = 106; +pub const NodeTag_T_Const: NodeTag = 107; +pub const NodeTag_T_Param: NodeTag = 108; +pub const NodeTag_T_Aggref: NodeTag = 109; +pub const NodeTag_T_GroupingFunc: NodeTag = 110; +pub const NodeTag_T_WindowFunc: NodeTag = 111; +pub const NodeTag_T_SubscriptingRef: NodeTag = 112; +pub const NodeTag_T_FuncExpr: NodeTag = 113; +pub const NodeTag_T_NamedArgExpr: NodeTag = 114; +pub const NodeTag_T_OpExpr: NodeTag = 115; +pub const NodeTag_T_DistinctExpr: NodeTag = 116; +pub const NodeTag_T_NullIfExpr: NodeTag = 117; +pub const NodeTag_T_ScalarArrayOpExpr: NodeTag = 118; +pub const NodeTag_T_BoolExpr: NodeTag = 119; +pub const NodeTag_T_SubLink: NodeTag = 120; +pub const NodeTag_T_SubPlan: NodeTag = 121; +pub const NodeTag_T_AlternativeSubPlan: NodeTag = 122; +pub const NodeTag_T_FieldSelect: NodeTag = 123; +pub const NodeTag_T_FieldStore: NodeTag = 124; +pub const NodeTag_T_RelabelType: NodeTag = 125; +pub const NodeTag_T_CoerceViaIO: NodeTag = 126; +pub const NodeTag_T_ArrayCoerceExpr: NodeTag = 127; +pub const NodeTag_T_ConvertRowtypeExpr: NodeTag = 128; +pub const NodeTag_T_CollateExpr: NodeTag = 129; +pub const NodeTag_T_CaseExpr: NodeTag = 130; +pub const NodeTag_T_CaseWhen: NodeTag = 131; +pub const NodeTag_T_CaseTestExpr: NodeTag = 132; +pub const NodeTag_T_ArrayExpr: NodeTag = 133; +pub const NodeTag_T_RowExpr: NodeTag = 134; +pub const NodeTag_T_RowCompareExpr: NodeTag = 135; +pub const NodeTag_T_CoalesceExpr: NodeTag = 136; +pub const NodeTag_T_MinMaxExpr: NodeTag = 137; +pub const NodeTag_T_SQLValueFunction: NodeTag = 138; +pub const NodeTag_T_XmlExpr: NodeTag = 139; +pub const NodeTag_T_NullTest: NodeTag = 140; +pub const NodeTag_T_BooleanTest: NodeTag = 141; +pub const NodeTag_T_CoerceToDomain: NodeTag = 142; +pub const NodeTag_T_CoerceToDomainValue: NodeTag = 143; +pub const NodeTag_T_SetToDefault: NodeTag = 144; +pub const NodeTag_T_CurrentOfExpr: NodeTag = 145; +pub const NodeTag_T_NextValueExpr: NodeTag = 146; +pub const NodeTag_T_InferenceElem: NodeTag = 147; +pub const NodeTag_T_TargetEntry: NodeTag = 148; +pub const NodeTag_T_RangeTblRef: NodeTag = 149; +pub const NodeTag_T_JoinExpr: NodeTag = 150; +pub const NodeTag_T_FromExpr: NodeTag = 151; +pub const NodeTag_T_OnConflictExpr: NodeTag = 152; +pub const NodeTag_T_IntoClause: NodeTag = 153; +pub const NodeTag_T_ExprState: NodeTag = 154; +pub const NodeTag_T_AggrefExprState: NodeTag = 155; +pub const NodeTag_T_WindowFuncExprState: NodeTag = 156; +pub const NodeTag_T_SetExprState: NodeTag = 157; +pub const NodeTag_T_SubPlanState: NodeTag = 158; +pub const NodeTag_T_AlternativeSubPlanState: NodeTag = 159; +pub const NodeTag_T_DomainConstraintState: NodeTag = 160; +pub const NodeTag_T_PlannerInfo: NodeTag = 161; +pub const NodeTag_T_PlannerGlobal: NodeTag = 162; +pub const NodeTag_T_RelOptInfo: NodeTag = 163; +pub const NodeTag_T_IndexOptInfo: NodeTag = 164; +pub const NodeTag_T_ForeignKeyOptInfo: NodeTag = 165; +pub const NodeTag_T_ParamPathInfo: NodeTag = 166; +pub const NodeTag_T_Path: NodeTag = 167; +pub const NodeTag_T_IndexPath: NodeTag = 168; +pub const NodeTag_T_BitmapHeapPath: NodeTag = 169; +pub const NodeTag_T_BitmapAndPath: NodeTag = 170; +pub const NodeTag_T_BitmapOrPath: NodeTag = 171; +pub const NodeTag_T_TidPath: NodeTag = 172; +pub const NodeTag_T_SubqueryScanPath: NodeTag = 173; +pub const NodeTag_T_ForeignPath: NodeTag = 174; +pub const NodeTag_T_CustomPath: NodeTag = 175; +pub const NodeTag_T_NestPath: NodeTag = 176; +pub const NodeTag_T_MergePath: NodeTag = 177; +pub const NodeTag_T_HashPath: NodeTag = 178; +pub const NodeTag_T_AppendPath: NodeTag = 179; +pub const NodeTag_T_MergeAppendPath: NodeTag = 180; +pub const NodeTag_T_GroupResultPath: NodeTag = 181; +pub const NodeTag_T_MaterialPath: NodeTag = 182; +pub const NodeTag_T_UniquePath: NodeTag = 183; +pub const NodeTag_T_GatherPath: NodeTag = 184; +pub const NodeTag_T_GatherMergePath: NodeTag = 185; +pub const NodeTag_T_ProjectionPath: NodeTag = 186; +pub const NodeTag_T_ProjectSetPath: NodeTag = 187; +pub const NodeTag_T_SortPath: NodeTag = 188; +pub const NodeTag_T_IncrementalSortPath: NodeTag = 189; +pub const NodeTag_T_GroupPath: NodeTag = 190; +pub const NodeTag_T_UpperUniquePath: NodeTag = 191; +pub const NodeTag_T_AggPath: NodeTag = 192; +pub const NodeTag_T_GroupingSetsPath: NodeTag = 193; +pub const NodeTag_T_MinMaxAggPath: NodeTag = 194; +pub const NodeTag_T_WindowAggPath: NodeTag = 195; +pub const NodeTag_T_SetOpPath: NodeTag = 196; +pub const NodeTag_T_RecursiveUnionPath: NodeTag = 197; +pub const NodeTag_T_LockRowsPath: NodeTag = 198; +pub const NodeTag_T_ModifyTablePath: NodeTag = 199; +pub const NodeTag_T_LimitPath: NodeTag = 200; +pub const NodeTag_T_EquivalenceClass: NodeTag = 201; +pub const NodeTag_T_EquivalenceMember: NodeTag = 202; +pub const NodeTag_T_PathKey: NodeTag = 203; +pub const NodeTag_T_PathTarget: NodeTag = 204; +pub const NodeTag_T_RestrictInfo: NodeTag = 205; +pub const NodeTag_T_IndexClause: NodeTag = 206; +pub const NodeTag_T_PlaceHolderVar: NodeTag = 207; +pub const NodeTag_T_SpecialJoinInfo: NodeTag = 208; +pub const NodeTag_T_AppendRelInfo: NodeTag = 209; +pub const NodeTag_T_PlaceHolderInfo: NodeTag = 210; +pub const NodeTag_T_MinMaxAggInfo: NodeTag = 211; +pub const NodeTag_T_PlannerParamItem: NodeTag = 212; +pub const NodeTag_T_RollupData: NodeTag = 213; +pub const NodeTag_T_GroupingSetData: NodeTag = 214; +pub const NodeTag_T_StatisticExtInfo: NodeTag = 215; +pub const NodeTag_T_MemoryContext: NodeTag = 216; +pub const NodeTag_T_AllocSetContext: NodeTag = 217; +pub const NodeTag_T_SlabContext: NodeTag = 218; +pub const NodeTag_T_GenerationContext: NodeTag = 219; +pub const NodeTag_T_Value: NodeTag = 220; +pub const NodeTag_T_Integer: NodeTag = 221; +pub const NodeTag_T_Float: NodeTag = 222; +pub const NodeTag_T_String: NodeTag = 223; +pub const NodeTag_T_BitString: NodeTag = 224; +pub const NodeTag_T_Null: NodeTag = 225; +pub const NodeTag_T_List: NodeTag = 226; +pub const NodeTag_T_IntList: NodeTag = 227; +pub const NodeTag_T_OidList: NodeTag = 228; +pub const NodeTag_T_ExtensibleNode: NodeTag = 229; +pub const NodeTag_T_RawStmt: NodeTag = 230; +pub const NodeTag_T_Query: NodeTag = 231; +pub const NodeTag_T_PlannedStmt: NodeTag = 232; +pub const NodeTag_T_InsertStmt: NodeTag = 233; +pub const NodeTag_T_DeleteStmt: NodeTag = 234; +pub const NodeTag_T_UpdateStmt: NodeTag = 235; +pub const NodeTag_T_SelectStmt: NodeTag = 236; +pub const NodeTag_T_AlterTableStmt: NodeTag = 237; +pub const NodeTag_T_AlterTableCmd: NodeTag = 238; +pub const NodeTag_T_AlterDomainStmt: NodeTag = 239; +pub const NodeTag_T_SetOperationStmt: NodeTag = 240; +pub const NodeTag_T_GrantStmt: NodeTag = 241; +pub const NodeTag_T_GrantRoleStmt: NodeTag = 242; +pub const NodeTag_T_AlterDefaultPrivilegesStmt: NodeTag = 243; +pub const NodeTag_T_ClosePortalStmt: NodeTag = 244; +pub const NodeTag_T_ClusterStmt: NodeTag = 245; +pub const NodeTag_T_CopyStmt: NodeTag = 246; +pub const NodeTag_T_CreateStmt: NodeTag = 247; +pub const NodeTag_T_DefineStmt: NodeTag = 248; +pub const NodeTag_T_DropStmt: NodeTag = 249; +pub const NodeTag_T_TruncateStmt: NodeTag = 250; +pub const NodeTag_T_CommentStmt: NodeTag = 251; +pub const NodeTag_T_FetchStmt: NodeTag = 252; +pub const NodeTag_T_IndexStmt: NodeTag = 253; +pub const NodeTag_T_CreateFunctionStmt: NodeTag = 254; +pub const NodeTag_T_AlterFunctionStmt: NodeTag = 255; +pub const NodeTag_T_DoStmt: NodeTag = 256; +pub const NodeTag_T_RenameStmt: NodeTag = 257; +pub const NodeTag_T_RuleStmt: NodeTag = 258; +pub const NodeTag_T_NotifyStmt: NodeTag = 259; +pub const NodeTag_T_ListenStmt: NodeTag = 260; +pub const NodeTag_T_UnlistenStmt: NodeTag = 261; +pub const NodeTag_T_TransactionStmt: NodeTag = 262; +pub const NodeTag_T_ViewStmt: NodeTag = 263; +pub const NodeTag_T_LoadStmt: NodeTag = 264; +pub const NodeTag_T_CreateDomainStmt: NodeTag = 265; +pub const NodeTag_T_CreatedbStmt: NodeTag = 266; +pub const NodeTag_T_DropdbStmt: NodeTag = 267; +pub const NodeTag_T_VacuumStmt: NodeTag = 268; +pub const NodeTag_T_ExplainStmt: NodeTag = 269; +pub const NodeTag_T_CreateTableAsStmt: NodeTag = 270; +pub const NodeTag_T_CreateSeqStmt: NodeTag = 271; +pub const NodeTag_T_AlterSeqStmt: NodeTag = 272; +pub const NodeTag_T_VariableSetStmt: NodeTag = 273; +pub const NodeTag_T_VariableShowStmt: NodeTag = 274; +pub const NodeTag_T_DiscardStmt: NodeTag = 275; +pub const NodeTag_T_CreateTrigStmt: NodeTag = 276; +pub const NodeTag_T_CreatePLangStmt: NodeTag = 277; +pub const NodeTag_T_CreateRoleStmt: NodeTag = 278; +pub const NodeTag_T_AlterRoleStmt: NodeTag = 279; +pub const NodeTag_T_DropRoleStmt: NodeTag = 280; +pub const NodeTag_T_LockStmt: NodeTag = 281; +pub const NodeTag_T_ConstraintsSetStmt: NodeTag = 282; +pub const NodeTag_T_ReindexStmt: NodeTag = 283; +pub const NodeTag_T_CheckPointStmt: NodeTag = 284; +pub const NodeTag_T_CreateSchemaStmt: NodeTag = 285; +pub const NodeTag_T_AlterDatabaseStmt: NodeTag = 286; +pub const NodeTag_T_AlterDatabaseSetStmt: NodeTag = 287; +pub const NodeTag_T_AlterRoleSetStmt: NodeTag = 288; +pub const NodeTag_T_CreateConversionStmt: NodeTag = 289; +pub const NodeTag_T_CreateCastStmt: NodeTag = 290; +pub const NodeTag_T_CreateOpClassStmt: NodeTag = 291; +pub const NodeTag_T_CreateOpFamilyStmt: NodeTag = 292; +pub const NodeTag_T_AlterOpFamilyStmt: NodeTag = 293; +pub const NodeTag_T_PrepareStmt: NodeTag = 294; +pub const NodeTag_T_ExecuteStmt: NodeTag = 295; +pub const NodeTag_T_DeallocateStmt: NodeTag = 296; +pub const NodeTag_T_DeclareCursorStmt: NodeTag = 297; +pub const NodeTag_T_CreateTableSpaceStmt: NodeTag = 298; +pub const NodeTag_T_DropTableSpaceStmt: NodeTag = 299; +pub const NodeTag_T_AlterObjectDependsStmt: NodeTag = 300; +pub const NodeTag_T_AlterObjectSchemaStmt: NodeTag = 301; +pub const NodeTag_T_AlterOwnerStmt: NodeTag = 302; +pub const NodeTag_T_AlterOperatorStmt: NodeTag = 303; +pub const NodeTag_T_AlterTypeStmt: NodeTag = 304; +pub const NodeTag_T_DropOwnedStmt: NodeTag = 305; +pub const NodeTag_T_ReassignOwnedStmt: NodeTag = 306; +pub const NodeTag_T_CompositeTypeStmt: NodeTag = 307; +pub const NodeTag_T_CreateEnumStmt: NodeTag = 308; +pub const NodeTag_T_CreateRangeStmt: NodeTag = 309; +pub const NodeTag_T_AlterEnumStmt: NodeTag = 310; +pub const NodeTag_T_AlterTSDictionaryStmt: NodeTag = 311; +pub const NodeTag_T_AlterTSConfigurationStmt: NodeTag = 312; +pub const NodeTag_T_CreateFdwStmt: NodeTag = 313; +pub const NodeTag_T_AlterFdwStmt: NodeTag = 314; +pub const NodeTag_T_CreateForeignServerStmt: NodeTag = 315; +pub const NodeTag_T_AlterForeignServerStmt: NodeTag = 316; +pub const NodeTag_T_CreateUserMappingStmt: NodeTag = 317; +pub const NodeTag_T_AlterUserMappingStmt: NodeTag = 318; +pub const NodeTag_T_DropUserMappingStmt: NodeTag = 319; +pub const NodeTag_T_AlterTableSpaceOptionsStmt: NodeTag = 320; +pub const NodeTag_T_AlterTableMoveAllStmt: NodeTag = 321; +pub const NodeTag_T_SecLabelStmt: NodeTag = 322; +pub const NodeTag_T_CreateForeignTableStmt: NodeTag = 323; +pub const NodeTag_T_ImportForeignSchemaStmt: NodeTag = 324; +pub const NodeTag_T_CreateExtensionStmt: NodeTag = 325; +pub const NodeTag_T_AlterExtensionStmt: NodeTag = 326; +pub const NodeTag_T_AlterExtensionContentsStmt: NodeTag = 327; +pub const NodeTag_T_CreateEventTrigStmt: NodeTag = 328; +pub const NodeTag_T_AlterEventTrigStmt: NodeTag = 329; +pub const NodeTag_T_RefreshMatViewStmt: NodeTag = 330; +pub const NodeTag_T_ReplicaIdentityStmt: NodeTag = 331; +pub const NodeTag_T_AlterSystemStmt: NodeTag = 332; +pub const NodeTag_T_CreatePolicyStmt: NodeTag = 333; +pub const NodeTag_T_AlterPolicyStmt: NodeTag = 334; +pub const NodeTag_T_CreateTransformStmt: NodeTag = 335; +pub const NodeTag_T_CreateAmStmt: NodeTag = 336; +pub const NodeTag_T_CreatePublicationStmt: NodeTag = 337; +pub const NodeTag_T_AlterPublicationStmt: NodeTag = 338; +pub const NodeTag_T_CreateSubscriptionStmt: NodeTag = 339; +pub const NodeTag_T_AlterSubscriptionStmt: NodeTag = 340; +pub const NodeTag_T_DropSubscriptionStmt: NodeTag = 341; +pub const NodeTag_T_CreateStatsStmt: NodeTag = 342; +pub const NodeTag_T_AlterCollationStmt: NodeTag = 343; +pub const NodeTag_T_CallStmt: NodeTag = 344; +pub const NodeTag_T_AlterStatsStmt: NodeTag = 345; +pub const NodeTag_T_A_Expr: NodeTag = 346; +pub const NodeTag_T_ColumnRef: NodeTag = 347; +pub const NodeTag_T_ParamRef: NodeTag = 348; +pub const NodeTag_T_A_Const: NodeTag = 349; +pub const NodeTag_T_FuncCall: NodeTag = 350; +pub const NodeTag_T_A_Star: NodeTag = 351; +pub const NodeTag_T_A_Indices: NodeTag = 352; +pub const NodeTag_T_A_Indirection: NodeTag = 353; +pub const NodeTag_T_A_ArrayExpr: NodeTag = 354; +pub const NodeTag_T_ResTarget: NodeTag = 355; +pub const NodeTag_T_MultiAssignRef: NodeTag = 356; +pub const NodeTag_T_TypeCast: NodeTag = 357; +pub const NodeTag_T_CollateClause: NodeTag = 358; +pub const NodeTag_T_SortBy: NodeTag = 359; +pub const NodeTag_T_WindowDef: NodeTag = 360; +pub const NodeTag_T_RangeSubselect: NodeTag = 361; +pub const NodeTag_T_RangeFunction: NodeTag = 362; +pub const NodeTag_T_RangeTableSample: NodeTag = 363; +pub const NodeTag_T_RangeTableFunc: NodeTag = 364; +pub const NodeTag_T_RangeTableFuncCol: NodeTag = 365; +pub const NodeTag_T_TypeName: NodeTag = 366; +pub const NodeTag_T_ColumnDef: NodeTag = 367; +pub const NodeTag_T_IndexElem: NodeTag = 368; +pub const NodeTag_T_Constraint: NodeTag = 369; +pub const NodeTag_T_DefElem: NodeTag = 370; +pub const NodeTag_T_RangeTblEntry: NodeTag = 371; +pub const NodeTag_T_RangeTblFunction: NodeTag = 372; +pub const NodeTag_T_TableSampleClause: NodeTag = 373; +pub const NodeTag_T_WithCheckOption: NodeTag = 374; +pub const NodeTag_T_SortGroupClause: NodeTag = 375; +pub const NodeTag_T_GroupingSet: NodeTag = 376; +pub const NodeTag_T_WindowClause: NodeTag = 377; +pub const NodeTag_T_ObjectWithArgs: NodeTag = 378; +pub const NodeTag_T_AccessPriv: NodeTag = 379; +pub const NodeTag_T_CreateOpClassItem: NodeTag = 380; +pub const NodeTag_T_TableLikeClause: NodeTag = 381; +pub const NodeTag_T_FunctionParameter: NodeTag = 382; +pub const NodeTag_T_LockingClause: NodeTag = 383; +pub const NodeTag_T_RowMarkClause: NodeTag = 384; +pub const NodeTag_T_XmlSerialize: NodeTag = 385; +pub const NodeTag_T_WithClause: NodeTag = 386; +pub const NodeTag_T_InferClause: NodeTag = 387; +pub const NodeTag_T_OnConflictClause: NodeTag = 388; +pub const NodeTag_T_CommonTableExpr: NodeTag = 389; +pub const NodeTag_T_RoleSpec: NodeTag = 390; +pub const NodeTag_T_TriggerTransition: NodeTag = 391; +pub const NodeTag_T_PartitionElem: NodeTag = 392; +pub const NodeTag_T_PartitionSpec: NodeTag = 393; +pub const NodeTag_T_PartitionBoundSpec: NodeTag = 394; +pub const NodeTag_T_PartitionRangeDatum: NodeTag = 395; +pub const NodeTag_T_PartitionCmd: NodeTag = 396; +pub const NodeTag_T_VacuumRelation: NodeTag = 397; +pub const NodeTag_T_IdentifySystemCmd: NodeTag = 398; +pub const NodeTag_T_BaseBackupCmd: NodeTag = 399; +pub const NodeTag_T_CreateReplicationSlotCmd: NodeTag = 400; +pub const NodeTag_T_DropReplicationSlotCmd: NodeTag = 401; +pub const NodeTag_T_StartReplicationCmd: NodeTag = 402; +pub const NodeTag_T_TimeLineHistoryCmd: NodeTag = 403; +pub const NodeTag_T_SQLCmd: NodeTag = 404; +pub const NodeTag_T_TriggerData: NodeTag = 405; +pub const NodeTag_T_EventTriggerData: NodeTag = 406; +pub const NodeTag_T_ReturnSetInfo: NodeTag = 407; +pub const NodeTag_T_WindowObjectData: NodeTag = 408; +pub const NodeTag_T_TIDBitmap: NodeTag = 409; +pub const NodeTag_T_InlineCodeBlock: NodeTag = 410; +pub const NodeTag_T_FdwRoutine: NodeTag = 411; +pub const NodeTag_T_IndexAmRoutine: NodeTag = 412; +pub const NodeTag_T_TableAmRoutine: NodeTag = 413; +pub const NodeTag_T_TsmRoutine: NodeTag = 414; +pub const NodeTag_T_ForeignKeyCacheInfo: NodeTag = 415; +pub const NodeTag_T_CallContext: NodeTag = 416; +pub const NodeTag_T_SupportRequestSimplify: NodeTag = 417; +pub const NodeTag_T_SupportRequestSelectivity: NodeTag = 418; +pub const NodeTag_T_SupportRequestCost: NodeTag = 419; +pub const NodeTag_T_SupportRequestRows: NodeTag = 420; +pub const NodeTag_T_SupportRequestIndexCondition: NodeTag = 421; +pub type NodeTag = ::std::os::raw::c_uint; #[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, +#[derive(Debug, Copy, Clone)] +pub struct Node { + pub type_: NodeTag, } -impl Default for PGAlignedXLogBlock { +impl Default for Node { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7142,1364 +4743,876 @@ impl Default for PGAlignedXLogBlock { } } } -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 { +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 __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort; + fn outNode(arg_str_: *mut StringInfoData, arg_obj: *const ::std::os::raw::c_void); } - __ctype_b_loc() + outNode(arg_str_, arg_obj) }) } -pub unsafe fn __ctype_tolower_loc() -> *mut *const __int32_t { +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 __ctype_tolower_loc() -> *mut *const __int32_t; + fn outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char); } - __ctype_tolower_loc() + outToken(arg_str_, arg_s) }) } -pub unsafe fn __ctype_toupper_loc() -> *mut *const __int32_t { +pub unsafe fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ctype_toupper_loc() -> *mut *const __int32_t; + fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset); } - __ctype_toupper_loc() + outBitmapset(arg_str_, arg_bms) }) } -pub unsafe fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::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 isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn outDatum( + arg_str_: *mut StringInfoData, + arg_value: usize, + arg_typlen: ::std::os::raw::c_int, + arg_typbyval: bool, + ); } - isalnum(arg_arg1) + outDatum(arg_str_, arg_value, arg_typlen, arg_typbyval) }) } -pub unsafe fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::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 isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char; } - isalpha(arg_arg1) + nodeToString(arg_obj) }) } -pub unsafe fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::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 iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char; } - iscntrl(arg_arg1) + bmsToString(arg_bms) }) } -pub unsafe fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +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 isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn stringToNode(arg_str_: *const ::std::os::raw::c_char) + -> *mut ::std::os::raw::c_void; } - isdigit(arg_arg1) + stringToNode(arg_str_) }) } -pub unsafe fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn readBitmapset() -> *mut Bitmapset { 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 readBitmapset() -> *mut Bitmapset; } - islower(arg_arg1) + readBitmapset() }) } -pub unsafe fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn readDatum(arg_typbyval: bool) -> usize { 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 readDatum(arg_typbyval: bool) -> usize; } - isgraph(arg_arg1) + readDatum(arg_typbyval) }) } -pub unsafe fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool { 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 readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool; } - isprint(arg_arg1) + readBoolCols(arg_numCols) }) } -pub unsafe fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::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 ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int; } - ispunct(arg_arg1) + readIntCols(arg_numCols) }) } -pub unsafe fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::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 isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid; } - isspace(arg_arg1) + readOidCols(arg_numCols) }) } -pub unsafe fn isupper(arg_arg1: ::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 isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16; } - isupper(arg_arg1) + readAttrNumberCols(arg_numCols) }) } -pub unsafe fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::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 isxdigit(arg_arg1: ::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; } - isxdigit(arg_arg1) + copyObjectImpl(arg_obj) }) } -pub unsafe fn tolower(arg___c: ::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 tolower(arg___c: ::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; } - tolower(arg___c) + equal(arg_a, arg_b) }) } -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; +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; +pub const LimitOption_LIMIT_OPTION_COUNT: LimitOption = 0; +pub const LimitOption_LIMIT_OPTION_WITH_TIES: LimitOption = 1; +pub const LimitOption_LIMIT_OPTION_DEFAULT: LimitOption = 2; +pub type LimitOption = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub union ListCell { + pub ptr_value: *mut ::std::os::raw::c_void, + pub int_value: ::std::os::raw::c_int, + pub oid_value: Oid, +} +impl Default for ListCell { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - 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; +#[repr(C)] +pub struct List { + pub type_: NodeTag, + pub length: ::std::os::raw::c_int, + pub max_length: ::std::os::raw::c_int, + pub elements: *mut ListCell, + pub initial_elements: __IncompleteArrayField, +} +impl Default for 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() } - isblank(arg_arg1) - }) + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForEachState { + pub l: *const List, + pub i: ::std::os::raw::c_int, +} +impl Default for ForEachState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForBothState { + pub l1: *const List, + pub l2: *const List, + pub i: ::std::os::raw::c_int, +} +impl Default for ForBothState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForBothCellState { + pub l1: *const List, + pub l2: *const List, + pub i1: ::std::os::raw::c_int, + pub i2: ::std::os::raw::c_int, +} +impl Default for ForBothCellState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForThreeState { + pub l1: *const List, + pub l2: *const List, + pub l3: *const List, + pub i: ::std::os::raw::c_int, +} +impl Default for ForThreeState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForFourState { + pub l1: *const List, + pub l2: *const List, + pub l3: *const List, + pub l4: *const List, + pub i: ::std::os::raw::c_int, +} +impl Default for ForFourState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForFiveState { + pub l1: *const List, + pub l2: *const List, + pub l3: *const List, + pub l4: *const List, + pub l5: *const List, + pub i: ::std::os::raw::c_int, +} +impl Default for ForFiveState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub unsafe fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn list_make1_impl(arg_t: NodeTag, arg_datum1: ListCell) -> *mut List { 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 list_make1_impl(arg_t: NodeTag, arg_datum1: ListCell) -> *mut List; } - isascii(arg___c) + list_make1_impl(arg_t, arg_datum1) }) } -pub unsafe fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn list_make2_impl( + arg_t: NodeTag, + arg_datum1: ListCell, + arg_datum2: ListCell, +) -> *mut List { 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 list_make2_impl( + arg_t: NodeTag, + arg_datum1: ListCell, + arg_datum2: ListCell, + ) -> *mut List; } - toascii(arg___c) + list_make2_impl(arg_t, arg_datum1, arg_datum2) }) } -pub unsafe fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn list_make3_impl( + arg_t: NodeTag, + arg_datum1: ListCell, + arg_datum2: ListCell, + arg_datum3: ListCell, +) -> *mut List { 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 list_make3_impl( + arg_t: NodeTag, + arg_datum1: ListCell, + arg_datum2: ListCell, + arg_datum3: ListCell, + ) -> *mut List; } - _toupper(arg_arg1) + list_make3_impl(arg_t, arg_datum1, arg_datum2, arg_datum3) }) } -pub unsafe fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn list_make4_impl( + arg_t: NodeTag, + arg_datum1: ListCell, + arg_datum2: ListCell, + arg_datum3: ListCell, + arg_datum4: ListCell, +) -> *mut List { 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 list_make4_impl( + arg_t: NodeTag, + arg_datum1: ListCell, + arg_datum2: ListCell, + arg_datum3: ListCell, + arg_datum4: ListCell, + ) -> *mut List; } - _tolower(arg_arg1) + list_make4_impl(arg_t, arg_datum1, arg_datum2, arg_datum3, arg_datum4) }) } -pub unsafe fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +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 isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List; } - isalnum_l(arg_arg1, arg_arg2) + lappend(arg_list, arg_datum) }) } -pub unsafe fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +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 isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; } - isalpha_l(arg_arg1, arg_arg2) + lappend_int(arg_list, arg_datum) }) } -pub unsafe fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +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 iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; } - iscntrl_l(arg_arg1, arg_arg2) + lappend_oid(arg_list, arg_datum) }) } -pub unsafe fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn list_insert_nth( + arg_list: *mut List, + arg_pos: ::std::os::raw::c_int, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut List { 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; + fn list_insert_nth( + arg_list: *mut List, + arg_pos: ::std::os::raw::c_int, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - isdigit_l(arg_arg1, arg_arg2) + list_insert_nth(arg_list, arg_pos, arg_datum) }) } -pub unsafe fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn list_insert_nth_int( + arg_list: *mut List, + arg_pos: ::std::os::raw::c_int, + arg_datum: ::std::os::raw::c_int, +) -> *mut List { 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 list_insert_nth_int( + arg_list: *mut List, + arg_pos: ::std::os::raw::c_int, + arg_datum: ::std::os::raw::c_int, + ) -> *mut List; } - islower_l(arg_arg1, arg_arg2) + list_insert_nth_int(arg_list, arg_pos, arg_datum) }) } -pub unsafe fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn list_insert_nth_oid( + arg_list: *mut List, + arg_pos: ::std::os::raw::c_int, + arg_datum: Oid, +) -> *mut List { 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 list_insert_nth_oid( + arg_list: *mut List, + arg_pos: ::std::os::raw::c_int, + arg_datum: Oid, + ) -> *mut List; } - isgraph_l(arg_arg1, arg_arg2) + list_insert_nth_oid(arg_list, arg_pos, arg_datum) }) } -pub unsafe fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::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 isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List; } - isprint_l(arg_arg1, arg_arg2) + lcons(arg_datum, arg_list) }) } -pub unsafe fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +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 ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List; } - ispunct_l(arg_arg1, arg_arg2) + lcons_int(arg_datum, arg_list) }) } -pub unsafe fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +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 isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List; } - isspace_l(arg_arg1, arg_arg2) + lcons_oid(arg_datum, arg_list) }) } -pub unsafe fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn list_concat(arg_list1: *mut List, arg_list2: *const List) -> *mut List { 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 list_concat(arg_list1: *mut List, arg_list2: *const List) -> *mut List; } - isupper_l(arg_arg1, arg_arg2) + list_concat(arg_list1, arg_list2) }) } -pub unsafe fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn list_concat_copy(arg_list1: *const List, arg_list2: *const List) -> *mut List { 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 list_concat_copy(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - isxdigit_l(arg_arg1, arg_arg2) + list_concat_copy(arg_list1, arg_list2) }) } -pub unsafe fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +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 isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn list_truncate(arg_list: *mut List, arg_new_size: ::std::os::raw::c_int) + -> *mut List; } - isblank_l(arg_arg1, arg_arg2) + list_truncate(arg_list, arg_new_size) }) } -pub unsafe fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { +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 __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn list_member(arg_list: *const List, arg_datum: *const ::std::os::raw::c_void) + -> bool; } - __tolower_l(arg___c, arg___l) + list_member(arg_list, arg_datum) }) } -pub unsafe fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::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 tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn list_member_ptr( + arg_list: *const List, + arg_datum: *const ::std::os::raw::c_void, + ) -> bool; } - tolower_l(arg___c, arg___l) + list_member_ptr(arg_list, arg_datum) }) } -pub unsafe fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::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 __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool; } - __toupper_l(arg___c, arg___l) + list_member_int(arg_list, arg_datum) }) } -pub unsafe fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { +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 toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool; } - toupper_l(arg___c, arg___l) + list_member_oid(arg_list, arg_datum) }) } -#[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 { +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 __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr; + fn list_delete( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - __cmsg_nxthdr(arg___mhdr, arg___cmsg) + list_delete(arg_list, arg_datum) }) } -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 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 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 list_delete_ptr( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - socket(arg___domain, arg___type, arg___protocol) + list_delete_ptr(arg_list, arg_datum) }) } -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 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 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 list_delete_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; } - socketpair(arg___domain, arg___type, arg___protocol, arg___fds) + list_delete_int(arg_list, arg_datum) }) } -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 list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { 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 list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; } - bind(arg___fd, arg___addr, arg___len) + list_delete_oid(arg_list, arg_datum) }) } -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 list_delete_first(arg_list: *mut List) -> *mut List { 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 list_delete_first(arg_list: *mut List) -> *mut List; } - getsockname(arg___fd, arg___addr, arg___len) + list_delete_first(arg_list) }) } -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 list_delete_last(arg_list: *mut List) -> *mut List { 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 list_delete_last(arg_list: *mut List) -> *mut List; } - connect(arg___fd, arg___addr, arg___len) + list_delete_last(arg_list) }) } -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 list_delete_first_n(arg_list: *mut List, arg_n: ::std::os::raw::c_int) -> *mut List { 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 list_delete_first_n(arg_list: *mut List, arg_n: ::std::os::raw::c_int) -> *mut List; } - getpeername(arg___fd, arg___addr, arg___len) + list_delete_first_n(arg_list, arg_n) }) } -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 list_delete_nth_cell(arg_list: *mut List, arg_n: ::std::os::raw::c_int) -> *mut List { 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 list_delete_nth_cell(arg_list: *mut List, arg_n: ::std::os::raw::c_int) + -> *mut List; } - send(arg___fd, arg___buf, arg___n, arg___flags) + list_delete_nth_cell(arg_list, arg_n) }) } -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 list_delete_cell(arg_list: *mut List, arg_cell: *mut ListCell) -> *mut List { 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 list_delete_cell(arg_list: *mut List, arg_cell: *mut ListCell) -> *mut List; } - recv(arg___fd, arg___buf, arg___n, arg___flags) + list_delete_cell(arg_list, arg_cell) }) } -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 list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List { 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 list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - 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, - ) + list_union(arg_list1, arg_list2) }) } -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 list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { 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 list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - sendmsg(arg___fd, arg___message, arg___flags) + list_union_ptr(arg_list1, arg_list2) }) } -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 list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { 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 list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - recvmsg(arg___fd, arg___message, arg___flags) + list_union_int(arg_list1, arg_list2) }) } -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 list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { 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 list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) + list_union_oid(arg_list1, arg_list2) }) } -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 list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List { 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 list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - setsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) + list_intersection(arg_list1, arg_list2) }) } -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 list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { 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 list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - listen(arg___fd, arg___n) + list_intersection_int(arg_list1, arg_list2) }) } -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 list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List { 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; + fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - accept(arg___fd, arg___addr, arg___addr_len) + list_difference(arg_list1, arg_list2) }) } -pub unsafe fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::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 shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_difference_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - shutdown(arg___fd, arg___how) + list_difference_ptr(arg_list1, arg_list2) }) } -pub unsafe fn sockatmark(arg___fd: ::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 sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - sockatmark(arg___fd) + list_difference_int(arg_list1, arg_list2) }) } -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 list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { 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 list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - isfdtype(arg___fd, arg___fdtype) + list_difference_oid(arg_list1, arg_list2) }) } -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 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 ntohl(arg___netlong: u32) -> u32 { +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 ntohl(arg___netlong: u32) -> u32; + fn list_append_unique_ptr( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - ntohl(arg___netlong) + list_append_unique_ptr(arg_list, arg_datum) }) } -pub unsafe fn ntohs(arg___netshort: u16) -> u16 { +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 ntohs(arg___netshort: u16) -> u16; + fn list_append_unique_int( + arg_list: *mut List, + arg_datum: ::std::os::raw::c_int, + ) -> *mut List; } - ntohs(arg___netshort) + list_append_unique_int(arg_list, arg_datum) }) } -pub unsafe fn htonl(arg___hostlong: u32) -> u32 { +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 htonl(arg___hostlong: u32) -> u32; + fn list_append_unique_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; } - htonl(arg___hostlong) + list_append_unique_oid(arg_list, arg_datum) }) } -pub unsafe fn htons(arg___hostshort: u16) -> u16 { +pub unsafe fn list_concat_unique(arg_list1: *mut List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn htons(arg___hostshort: u16) -> u16; + fn list_concat_unique(arg_list1: *mut List, arg_list2: *const List) -> *mut List; } - htons(arg___hostshort) + list_concat_unique(arg_list1, arg_list2) }) } -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 list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *const List) -> *mut List { 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 list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *const List) -> *mut List; } - bindresvport(arg___sockfd, arg___sock_in) + list_concat_unique_ptr(arg_list1, arg_list2) }) } -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 list_concat_unique_int(arg_list1: *mut List, arg_list2: *const List) -> *mut List { 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 list_concat_unique_int(arg_list1: *mut List, arg_list2: *const List) -> *mut List; } - bindresvport6(arg___sockfd, arg___sock_in) + list_concat_unique_int(arg_list1, arg_list2) }) } -#[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 list_concat_unique_oid(arg_list1: *mut List, arg_list2: *const List) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *const List) -> *mut List; } - } + list_concat_unique_oid(arg_list1, arg_list2) + }) } -pub unsafe fn setrpcent(arg___stayopen: ::std::os::raw::c_int) { +pub unsafe fn list_deduplicate_oid(arg_list: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setrpcent(arg___stayopen: ::std::os::raw::c_int); + fn list_deduplicate_oid(arg_list: *mut List); } - setrpcent(arg___stayopen) + list_deduplicate_oid(arg_list) }) } -pub unsafe fn endrpcent() { +pub unsafe fn list_free(arg_list: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endrpcent(); + fn list_free(arg_list: *mut List); } - endrpcent() + list_free(arg_list) }) } -pub unsafe fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent { +pub unsafe fn list_free_deep(arg_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 list_free_deep(arg_list: *mut List); } - getrpcbyname(arg___name) + list_free_deep(arg_list) }) } -pub unsafe fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent { +pub unsafe fn list_copy(arg_list: *const 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_copy(arg_list: *const List) -> *mut List; } - getrpcbynumber(arg___number) + list_copy(arg_list) }) } -pub unsafe fn getrpcent() -> *mut rpcent { +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 getrpcent() -> *mut rpcent; + fn list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) + -> *mut List; } - getrpcent() + list_copy_tail(arg_list, arg_nskip) }) } -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_copy_deep(arg_oldlist: *const List) -> *mut List { 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_copy_deep(arg_oldlist: *const List) -> *mut List; } - getrpcbyname_r( - arg___name, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) + list_copy_deep(arg_oldlist) }) } -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 type list_sort_comparator = ::std::option::Option< + unsafe extern "C" fn(a: *const ListCell, b: *const ListCell) -> ::std::os::raw::c_int, +>; +pub unsafe fn list_sort(arg_list: *mut List, arg_cmp: list_sort_comparator) { 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_sort(arg_list: *mut List, arg_cmp: list_sort_comparator); } - getrpcbynumber_r( - arg___number, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) + list_sort(arg_list, arg_cmp) }) } -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_oid_cmp( + arg_p1: *const ListCell, + arg_p2: *const ListCell, ) -> ::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_oid_cmp( + arg_p1: *const ListCell, + arg_p2: *const ListCell, ) -> ::std::os::raw::c_int; } - getrpcent_r(arg___result_buf, arg___buffer, arg___buflen, arg___result) + list_oid_cmp(arg_p1, arg_p2) }) } #[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, +pub struct AttrDefault { + pub adnum: AttrNumber, + pub adbin: *mut ::std::os::raw::c_char, } -impl Default for netent { +impl Default for AttrDefault { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -8508,40 +5621,35 @@ impl Default for netent { } } } -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) - }) +#[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 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; +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() } - 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, +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 hostent { +impl Default for TupleConstr { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -8550,326 +5658,237 @@ impl Default for hostent { } } } -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) - }) +#[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, } -pub unsafe fn endhostent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endhostent(); +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() } - endhostent() - }) + } } -pub unsafe fn gethostent() -> *mut hostent { +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 gethostent() -> *mut hostent; + fn CreateTemplateTupleDesc(arg_natts: ::std::os::raw::c_int) -> TupleDesc; } - gethostent() + CreateTemplateTupleDesc(arg_natts) }) } -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 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 gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - ) -> *mut hostent; + fn CreateTupleDesc( + arg_natts: ::std::os::raw::c_int, + arg_attrs: *mut Form_pg_attribute, + ) -> TupleDesc; } - gethostbyaddr(arg___addr, arg___len, arg___type) + CreateTupleDesc(arg_natts, arg_attrs) }) } -pub unsafe fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent { +pub unsafe fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent; + fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc; } - gethostbyname(arg___name) + CreateTupleDescCopy(arg_tupdesc) }) } -pub unsafe fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, -) -> *mut hostent { +pub unsafe fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc { 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 CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc; } - gethostbyname2(arg___name, arg___af) + CreateTupleDescCopyConstr(arg_tupdesc) }) } -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 TupleDescCopy(arg_dst: TupleDesc, arg_src: TupleDesc) { 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 TupleDescCopy(arg_dst: TupleDesc, arg_src: TupleDesc); } - gethostent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + TupleDescCopy(arg_dst, arg_src) }) } -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 TupleDescCopyEntry( + arg_dst: TupleDesc, + arg_dstAttno: AttrNumber, + arg_src: TupleDesc, + arg_srcAttno: AttrNumber, +) { 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 TupleDescCopyEntry( + arg_dst: TupleDesc, + arg_dstAttno: AttrNumber, + arg_src: TupleDesc, + arg_srcAttno: AttrNumber, + ); } - gethostbyaddr_r( - arg___addr, - arg___len, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + TupleDescCopyEntry(arg_dst, arg_dstAttno, arg_src, arg_srcAttno) }) } -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 FreeTupleDesc(arg_tupdesc: TupleDesc) { 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 FreeTupleDesc(arg_tupdesc: TupleDesc); } - gethostbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + FreeTupleDesc(arg_tupdesc) }) } -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 IncrTupleDescRefCount(arg_tupdesc: TupleDesc) { 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 IncrTupleDescRefCount(arg_tupdesc: TupleDesc); } - gethostbyname2_r( - arg___name, - arg___af, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + IncrTupleDescRefCount(arg_tupdesc) }) } -pub unsafe fn setnetent(arg___stay_open: ::std::os::raw::c_int) { +pub unsafe fn DecrTupleDescRefCount(arg_tupdesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setnetent(arg___stay_open: ::std::os::raw::c_int); + fn DecrTupleDescRefCount(arg_tupdesc: TupleDesc); } - setnetent(arg___stay_open) + DecrTupleDescRefCount(arg_tupdesc) }) } -pub unsafe fn endnetent() { +pub unsafe fn equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endnetent(); + fn equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool; } - endnetent() + equalTupleDescs(arg_tupdesc1, arg_tupdesc2) }) } -pub unsafe fn getnetent() -> *mut netent { +pub unsafe fn hashTupleDesc(arg_tupdesc: TupleDesc) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetent() -> *mut netent; + fn hashTupleDesc(arg_tupdesc: TupleDesc) -> uint32; } - getnetent() + hashTupleDesc(arg_tupdesc) }) } -pub unsafe fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent { +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 getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent; + 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, + ); } - getnetbyaddr(arg___net, arg___type) + TupleDescInitEntry( + arg_desc, + arg_attributeNumber, + arg_attributeName, + arg_oidtypeid, + arg_typmod, + arg_attdim, + ) }) } -pub unsafe fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent { +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 getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent; + 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, + ); } - getnetbyname(arg___name) + TupleDescInitBuiltinEntry( + arg_desc, + arg_attributeNumber, + arg_attributeName, + arg_oidtypeid, + arg_typmod, + arg_attdim, + ) }) } -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 TupleDescInitEntryCollation( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_collationid: Oid, +) { 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 TupleDescInitEntryCollation( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_collationid: Oid, + ); } - getnetent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + TupleDescInitEntryCollation(arg_desc, arg_attributeNumber, arg_collationid) }) } -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 BuildDescForRelation(arg_schema: *mut List) -> TupleDesc { 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 BuildDescForRelation(arg_schema: *mut List) -> TupleDesc; } - getnetbyaddr_r( - arg___net, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + BuildDescForRelation(arg_schema) }) } -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 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 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 BuildDescFromLists( + arg_names: *mut List, + arg_types: *mut List, + arg_typmods: *mut List, + arg_collations: *mut List, + ) -> TupleDesc; } - getnetbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + BuildDescFromLists(arg_names, arg_types, arg_typmods, arg_collations) }) } #[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, +pub struct AttrMap { + pub attnums: *mut AttrNumber, + pub maplen: ::std::os::raw::c_int, } -impl Default for servent { +impl Default for AttrMap { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -8878,5713 +5897,7159 @@ impl Default for servent { } } } -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 { +pub unsafe fn make_attrmap(arg_maplen: ::std::os::raw::c_int) -> *mut AttrMap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservent() -> *mut servent; + fn make_attrmap(arg_maplen: ::std::os::raw::c_int) -> *mut AttrMap; } - getservent() + make_attrmap(arg_maplen) }) } -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 free_attrmap(arg_map: *mut AttrMap) { 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 free_attrmap(arg_map: *mut AttrMap); } - getservbyname(arg___name, arg___proto) + free_attrmap(arg_map) }) } -pub unsafe fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { +pub unsafe fn build_attrmap_by_name(arg_indesc: TupleDesc, arg_outdesc: TupleDesc) -> *mut AttrMap { 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 build_attrmap_by_name(arg_indesc: TupleDesc, arg_outdesc: TupleDesc) + -> *mut AttrMap; } - getservbyport(arg___port, arg___proto) + build_attrmap_by_name(arg_indesc, arg_outdesc) }) } -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 build_attrmap_by_name_if_req( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, +) -> *mut AttrMap { 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 build_attrmap_by_name_if_req( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + ) -> *mut AttrMap; } - getservent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) + build_attrmap_by_name_if_req(arg_indesc, arg_outdesc) }) } -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 build_attrmap_by_position( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, +) -> *mut AttrMap { 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 build_attrmap_by_position( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut AttrMap; } - getservbyname_r( - arg___name, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + build_attrmap_by_position(arg_indesc, arg_outdesc, arg_msg) }) } -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, - ) - }) +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)] -#[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, +#[repr(align(4))] +#[derive(Debug, Default, Copy, Clone)] +pub struct ItemIdData { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, } -impl Default for protoent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); +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 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(); + #[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) } - endprotoent() - }) -} -pub unsafe fn getprotoent() -> *mut protoent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotoent() -> *mut protoent; + } + #[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) } - getprotoent() - }) + } + #[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 unsafe fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent { +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 getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent; + fn ItemPointerEquals(arg_pointer1: ItemPointer, arg_pointer2: ItemPointer) -> bool; } - getprotobyname(arg___name) + ItemPointerEquals(arg_pointer1, arg_pointer2) }) } -pub unsafe fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent { +pub unsafe fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent; + fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32; } - getprotobynumber(arg___proto) + ItemPointerCompare(arg_arg1, arg_arg2) }) } -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; +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() } - 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 { +pub type HeapTuple = *mut HeapTupleData; +pub unsafe fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId { 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; + fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId; } - getprotobyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + HeapTupleHeaderGetCmin(arg_tup) }) } -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 { +pub unsafe fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId { 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 HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId; } - getprotobynumber_r( - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + HeapTupleHeaderGetCmax(arg_tup) }) } -pub unsafe fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +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 setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn HeapTupleHeaderAdjustCmax( + arg_tup: HeapTupleHeader, + arg_cmax: *mut CommandId, + arg_iscombo: *mut bool, + ); } - setnetgrent(arg___netgroup) + HeapTupleHeaderAdjustCmax(arg_tup, arg_cmax, arg_iscombo) }) } -pub unsafe fn endnetgrent() { +pub unsafe fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endnetgrent(); + fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId; } - endnetgrent() + HeapTupleGetUpdateXid(arg_tuple) }) } -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 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 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 TransactionStartedDuringRecovery() -> bool; } - getnetgrent(arg___hostp, arg___userp, arg___domainp) + TransactionStartedDuringRecovery() }) } -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 { +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 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 TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool; } - innetgr(arg___netgroup, arg___host, arg___user, arg___domain) + TransactionIdDidCommit(arg_transactionId) }) } -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 TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool { 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 TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool; } - getnetgrent_r( - arg___hostp, - arg___userp, - arg___domainp, - arg___buffer, - arg___buflen, - ) + TransactionIdDidAbort(arg_transactionId) }) } -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 TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool { 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 TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool; } - rcmd( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - ) + TransactionIdIsKnownCompleted(arg_transactionId) }) } -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 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 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 TransactionIdCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - rcmd_af( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - arg___af, - ) + TransactionIdCommitTree(arg_xid, arg_nxids, arg_xids) }) } -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 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 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 TransactionIdAsyncCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + arg_lsn: XLogRecPtr, + ); } - rexec( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - ) + TransactionIdAsyncCommitTree(arg_xid, arg_nxids, arg_xids, arg_lsn) }) } -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 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 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 TransactionIdAbortTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - rexec_af( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - arg___af, - ) + TransactionIdAbortTree(arg_xid, arg_nxids, arg_xids) }) } -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 TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { 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 TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; } - ruserok(arg___rhost, arg___suser, arg___remuser, arg___locuser) + TransactionIdPrecedes(arg_id1, arg_id2) }) } -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 TransactionIdPrecedesOrEquals( + arg_id1: TransactionId, + arg_id2: TransactionId, +) -> bool { 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 TransactionIdPrecedesOrEquals( + arg_id1: TransactionId, + arg_id2: TransactionId, + ) -> bool; } - ruserok_af( - arg___rhost, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) + TransactionIdPrecedesOrEquals(arg_id1, arg_id2) }) } -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 TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { 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 TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; } - iruserok(arg___raddr, arg___suser, arg___remuser, arg___locuser) + TransactionIdFollows(arg_id1, arg_id2) }) } -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 TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { 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 TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) + -> bool; } - iruserok_af( - arg___raddr, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) + TransactionIdFollowsOrEquals(arg_id1, arg_id2) }) } -pub unsafe fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int { +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 rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn TransactionIdLatest( + arg_mainxid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *const TransactionId, + ) -> TransactionId; } - rresvport(arg___alport) + TransactionIdLatest(arg_mainxid, arg_nxids, arg_xids) }) } -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 TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr { 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 TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr; } - rresvport_af(arg___alport, arg___af) + TransactionIdGetCommitLSN(arg_xid) }) } -#[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 { +pub unsafe fn GetNewTransactionId(arg_isSubXact: bool) -> FullTransactionId { 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 GetNewTransactionId(arg_isSubXact: bool) -> FullTransactionId; } - getaddrinfo(arg___name, arg___service, arg___req, arg___pai) + GetNewTransactionId(arg_isSubXact) }) } -pub unsafe fn freeaddrinfo(arg___ai: *mut addrinfo) { +pub unsafe fn AdvanceNextFullTransactionIdPastXid(arg_xid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn freeaddrinfo(arg___ai: *mut addrinfo); + fn AdvanceNextFullTransactionIdPastXid(arg_xid: TransactionId); } - freeaddrinfo(arg___ai) + AdvanceNextFullTransactionIdPastXid(arg_xid) }) } -pub unsafe fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { +pub unsafe fn ReadNextFullTransactionId() -> FullTransactionId { 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 ReadNextFullTransactionId() -> FullTransactionId; } - gai_strerror(arg___ecode) + ReadNextFullTransactionId() }) } -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 SetTransactionIdLimit( + arg_oldest_datfrozenxid: TransactionId, + arg_oldest_datoid: Oid, +) { 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 SetTransactionIdLimit( + arg_oldest_datfrozenxid: TransactionId, + arg_oldest_datoid: Oid, + ); } - getnameinfo( - arg___sa, - arg___salen, - arg___host, - arg___hostlen, - arg___serv, - arg___servlen, - arg___flags, - ) + SetTransactionIdLimit(arg_oldest_datfrozenxid, arg_oldest_datoid) }) } -#[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() { +pub unsafe fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setpwent(); + fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId); } - setpwent() + AdvanceOldestClogXid(arg_oldest_datfrozenxid) }) } -pub unsafe fn endpwent() { +pub unsafe fn ForceTransactionIdLimitUpdate() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endpwent(); + fn ForceTransactionIdLimitUpdate() -> bool; } - endpwent() + ForceTransactionIdLimitUpdate() }) } -pub unsafe fn getpwent() -> *mut passwd { +pub unsafe fn GetNewObjectId() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwent() -> *mut passwd; + fn GetNewObjectId() -> Oid; } - getpwent() + GetNewObjectId() }) } -pub unsafe fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd { +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 fgetpwent(arg___stream: *mut FILE) -> *mut passwd; + fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size); } - fgetpwent(arg___stream) + PageInit(arg_page, arg_pageSize, arg_specialSize) }) } -pub unsafe fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> 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 PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool; } - putpwent(arg___p, arg___f) + PageIsVerified(arg_page, arg_blkno) }) } -pub unsafe fn getpwuid(arg___uid: __uid_t) -> *mut passwd { +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 getpwuid(arg___uid: __uid_t) -> *mut passwd; + fn PageIsVerifiedExtended( + arg_page: Page, + arg_blkno: BlockNumber, + arg_flags: ::std::os::raw::c_int, + ) -> bool; } - getpwuid(arg___uid) + PageIsVerifiedExtended(arg_page, arg_blkno, arg_flags) }) } -pub unsafe fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd { +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 getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd; + fn PageAddItemExtended( + arg_page: Page, + arg_item: Item, + arg_size: Size, + arg_offsetNumber: OffsetNumber, + arg_flags: ::std::os::raw::c_int, + ) -> OffsetNumber; } - getpwnam(arg___name) + PageAddItemExtended(arg_page, arg_item, arg_size, arg_offsetNumber, arg_flags) }) } -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 PageGetTempPage(arg_page: Page) -> Page { 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 PageGetTempPage(arg_page: Page) -> Page; } - getpwent_r(arg___resultbuf, arg___buffer, arg___buflen, arg___result) + PageGetTempPage(arg_page) }) } -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 PageGetTempPageCopy(arg_page: Page) -> Page { 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 PageGetTempPageCopy(arg_page: Page) -> Page; } - getpwuid_r( - arg___uid, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + PageGetTempPageCopy(arg_page) }) } -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 PageGetTempPageCopySpecial(arg_page: Page) -> Page { 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 PageGetTempPageCopySpecial(arg_page: Page) -> Page; } - getpwnam_r( - arg___name, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + PageGetTempPageCopySpecial(arg_page) }) } -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 PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page) { 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 PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page); } - fgetpwent_r( - arg___stream, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + PageRestoreTempPage(arg_tempPage, arg_oldPage) }) } -pub type pgsocket = ::std::os::raw::c_int; -pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { +pub unsafe fn PageRepairFragmentation(arg_page: Page) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_set_noblock(arg_sock: pgsocket) -> bool; + fn PageRepairFragmentation(arg_page: Page); } - pg_set_noblock(arg_sock) + PageRepairFragmentation(arg_page) }) } -pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { +pub unsafe fn PageGetFreeSpace(arg_page: Page) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_set_block(arg_sock: pgsocket) -> bool; + fn PageGetFreeSpace(arg_page: Page) -> Size; } - pg_set_block(arg_sock) + PageGetFreeSpace(arg_page) }) } -pub unsafe fn has_drive_prefix(arg_filename: *const ::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 has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; + fn PageGetFreeSpaceForMultipleTuples( + arg_page: Page, + arg_ntups: ::std::os::raw::c_int, + ) -> Size; } - has_drive_prefix(arg_filename) + PageGetFreeSpaceForMultipleTuples(arg_page, arg_ntups) }) } -pub unsafe fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *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 first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn PageGetExactFreeSpace(arg_page: Page) -> Size; } - first_dir_separator(arg_filename) + PageGetExactFreeSpace(arg_page) }) } -pub unsafe fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *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 last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn PageGetHeapFreeSpace(arg_page: Page) -> Size; } - last_dir_separator(arg_filename) + PageGetHeapFreeSpace(arg_page) }) } -pub unsafe fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, -) -> *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 first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber); } - first_path_var_separator(arg_pathlist) + PageIndexTupleDelete(arg_page, arg_offset) }) } -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 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 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 PageIndexMultiDelete( + arg_page: Page, + arg_itemnos: *mut OffsetNumber, + arg_nitems: ::std::os::raw::c_int, ); } - join_path_components(arg_ret_path, arg_head, arg_tail) + PageIndexMultiDelete(arg_page, arg_itemnos, arg_nitems) }) } -pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); + fn PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber); } - canonicalize_path(arg_path) + PageIndexTupleDeleteNoCompact(arg_page, arg_offset) }) } -pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { +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 make_native_path(arg_path: *mut ::std::os::raw::c_char); + fn PageIndexTupleOverwrite( + arg_page: Page, + arg_offnum: OffsetNumber, + arg_newtup: Item, + arg_newsize: Size, + ) -> bool; } - make_native_path(arg_path) + PageIndexTupleOverwrite(arg_page, arg_offnum, arg_newtup, arg_newsize) }) } -pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { +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 cleanup_path(arg_path: *mut ::std::os::raw::c_char); + fn PageSetChecksumCopy( + arg_page: Page, + arg_blkno: BlockNumber, + ) -> *mut ::std::os::raw::c_char; } - cleanup_path(arg_path) + PageSetChecksumCopy(arg_page, arg_blkno) }) } -pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { +pub unsafe fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber) { 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 PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber); } - path_contains_parent_reference(arg_path) + PageSetChecksumInplace(arg_page, arg_blkno) }) } -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) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub struct HeapTupleFields { + pub t_xmin: TransactionId, + pub t_xmax: TransactionId, + pub t_field3: HeapTupleFields__bindgen_ty_1, } -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) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union HeapTupleFields__bindgen_ty_1 { + pub t_cid: CommandId, + pub t_xvac: TransactionId, } -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; +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() } - 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; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct DatumTupleFields { + pub datum_len_: int32, + pub datum_typmod: int32, + pub datum_typeid: Oid, } -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, - ); +#[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() } - 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, - ); +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() } - 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, -) { +#[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 get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn heap_compute_data_size( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> Size; } - get_pkginclude_path(arg_my_exec_path, arg_ret_path) + heap_compute_data_size(arg_tupleDesc, arg_values, arg_isnull) }) } -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 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 get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::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, ); } - get_includeserver_path(arg_my_exec_path, arg_ret_path) + heap_fill_tuple( + arg_tupleDesc, + arg_values, + arg_isnull, + arg_data, + arg_data_size, + arg_infomask, + arg_bit, + ) }) } -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 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 get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn heap_attisnull( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + ) -> bool; } - get_lib_path(arg_my_exec_path, arg_ret_path) + heap_attisnull(arg_tup, arg_attnum, arg_tupleDesc) }) } -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 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 get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn nocachegetattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_att: TupleDesc, + ) -> Datum; } - get_pkglib_path(arg_my_exec_path, arg_ret_path) + nocachegetattr(arg_tup, arg_attnum, arg_att) }) } -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 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 get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn heap_getsysattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + arg_isnull: *mut bool, + ) -> Datum; } - get_locale_path(arg_my_exec_path, arg_ret_path) + heap_getsysattr(arg_tup, arg_attnum, arg_tupleDesc, arg_isnull) }) } -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 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 get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn getmissingattr( + arg_tupleDesc: TupleDesc, + arg_attnum: ::std::os::raw::c_int, + arg_isnull: *mut bool, + ) -> Datum; } - get_doc_path(arg_my_exec_path, arg_ret_path) + getmissingattr(arg_tupleDesc, arg_attnum, arg_isnull) }) } -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 heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple { 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 heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple; } - get_html_path(arg_my_exec_path, arg_ret_path) + heap_copytuple(arg_tuple) }) } -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 heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple) { 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 heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple); } - get_man_path(arg_my_exec_path, arg_ret_path) + heap_copytuple_with_tuple(arg_src, arg_dest) }) } -pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { +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 get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; + fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum; } - get_home_path(arg_ret_path) + heap_copy_tuple_as_datum(arg_tuple, arg_tupleDesc) }) } -pub unsafe fn get_parent_directory(arg_path: *mut ::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 get_parent_directory(arg_path: *mut ::std::os::raw::c_char); + fn heap_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> HeapTuple; } - get_parent_directory(arg_path) + heap_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn pgfnames( - arg_path: *const ::std::os::raw::c_char, -) -> *mut *mut ::std::os::raw::c_char { +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 pgfnames( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut *mut ::std::os::raw::c_char; + fn heap_modify_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, + arg_doReplace: *mut bool, + ) -> HeapTuple; } - pgfnames(arg_path) + heap_modify_tuple(arg_tuple, arg_tupleDesc, arg_replValues, arg_replIsnull, arg_doReplace) }) } -pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { +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 pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); + 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; } - pgfnames_cleanup(arg_filenames) + heap_modify_tuple_by_cols( + arg_tuple, + arg_tupleDesc, + arg_nCols, + arg_replCols, + arg_replValues, + arg_replIsnull, + ) }) } -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 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 set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, + fn heap_deform_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, ); } - 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) + heap_deform_tuple(arg_tuple, arg_tupleDesc, arg_values, arg_isnull) }) } -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 heap_freetuple(arg_htup: HeapTuple) { 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 heap_freetuple(arg_htup: HeapTuple); } - find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) + heap_freetuple(arg_htup) }) } -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 { +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 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; + fn heap_form_minimal_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> MinimalTuple; } - pipe_read_line(arg_cmd, arg_line, arg_maxsize) + heap_form_minimal_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { +pub unsafe fn heap_free_minimal_tuple(arg_mtup: MinimalTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_usleep(arg_microsec: ::std::os::raw::c_long); + fn heap_free_minimal_tuple(arg_mtup: MinimalTuple); } - pg_usleep(arg_microsec) + heap_free_minimal_tuple(arg_mtup) }) } -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 heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple { 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 heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple; } - pg_strcasecmp(arg_s1, arg_s2) + heap_copy_minimal_tuple(arg_mtup) }) } -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 heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple { 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 heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple; } - pg_strncasecmp(arg_s1, arg_s2, arg_n) + heap_tuple_from_minimal_tuple(arg_mtup) }) } -pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +pub unsafe fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple { 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 minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple; } - pg_toupper(arg_ch) + minimal_tuple_from_heap_tuple(arg_htup) }) } -pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +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_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn heap_expand_tuple(arg_sourceTuple: HeapTuple, arg_tupleDesc: TupleDesc) + -> HeapTuple; } - pg_tolower(arg_ch) + heap_expand_tuple(arg_sourceTuple, arg_tupleDesc) }) } -pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +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_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn minimal_expand_tuple( + arg_sourceTuple: HeapTuple, + arg_tupleDesc: TupleDesc, + ) -> MinimalTuple; } - pg_ascii_toupper(arg_ch) + minimal_expand_tuple(arg_sourceTuple, arg_tupleDesc) }) } -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 type Buffer = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BufferAccessStrategyData { + _unused: [u8; 0], } -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; +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, +} +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() } - 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; +#[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, +} +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() } - 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; +#[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() } - 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; +#[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() } - 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; +#[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() } - 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 { +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 pg_fprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn MakeTupleTableSlot( + arg_tupleDesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - pg_fprintf(arg_stream, arg_fmt) + MakeTupleTableSlot(arg_tupleDesc, arg_tts_ops) }) } -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 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 pg_vprintf( - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn ExecAllocTableSlot( + arg_tupleTable: *mut *mut List, + arg_desc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - pg_vprintf(arg_fmt, arg_args) + ExecAllocTableSlot(arg_tupleTable, arg_desc, arg_tts_ops) }) } -pub unsafe fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::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 pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool); } - pg_printf(arg_fmt) + ExecResetTupleTable(arg_tupleTable, arg_shouldFree) }) } -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 MakeSingleTupleTableSlot( + arg_tupdesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupleTableSlot { 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 MakeSingleTupleTableSlot( + arg_tupdesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - pg_strfromd(arg_str_, arg_count, arg_precision, arg_value) + MakeSingleTupleTableSlot(arg_tupdesc, arg_tts_ops) }) } -pub unsafe fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot) { 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 ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot); } - pg_strerror(arg_errnum) + ExecDropSingleTupleTableSlot(arg_slot) }) } -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 ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc) { 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 ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc); } - pg_strerror_r(arg_errnum, arg_buf, arg_buflen) + ExecSetSlotDescriptor(arg_slot, arg_tupdesc) }) } -pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { +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 pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + fn ExecStoreHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ) -> *mut TupleTableSlot; } - pg_strsignal(arg_signum) + ExecStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) }) } -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 ExecForceStoreHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: 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, + fn ExecForceStoreHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, ); } - simple_prompt(arg_prompt, arg_destination, arg_destlen, arg_echo) + ExecForceStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) }) } -pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { +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 pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; + fn ExecStoreBufferHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_buffer: Buffer, + ) -> *mut TupleTableSlot; } - pclose_check(arg_stream) + ExecStoreBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) }) } -pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { +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 rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; + fn ExecStorePinnedBufferHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_buffer: Buffer, + ) -> *mut TupleTableSlot; } - rmtree(arg_path, arg_rmtopdir) + ExecStorePinnedBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) }) } -pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> 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 pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; + fn ExecStoreMinimalTuple( + arg_mtup: MinimalTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ) -> *mut TupleTableSlot; } - pg_erand48(arg_xseed) + ExecStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) }) } -pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { +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 pg_lrand48() -> ::std::os::raw::c_long; + fn ExecForceStoreMinimalTuple( + arg_mtup: MinimalTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ); } - pg_lrand48() + ExecForceStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) }) } -pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { +pub unsafe fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { 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 ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; } - pg_jrand48(arg_xseed) + ExecStoreVirtualTuple(arg_slot) }) } -pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { +pub unsafe fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_srand48(arg_seed: ::std::os::raw::c_long); + fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; } - pg_srand48(arg_seed) + ExecStoreAllNullTuple(arg_slot) }) } -pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot) { 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 ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot); } - fls(arg_mask) + ExecStoreHeapTupleDatum(arg_data, arg_slot) }) } -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 ExecFetchSlotHeapTuple( + arg_slot: *mut TupleTableSlot, + arg_materialize: bool, + arg_shouldFree: *mut bool, +) -> HeapTuple { 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 ExecFetchSlotHeapTuple( + arg_slot: *mut TupleTableSlot, + arg_materialize: bool, + arg_shouldFree: *mut bool, + ) -> HeapTuple; } - getpeereid(arg_sock, arg_uid, arg_gid) + ExecFetchSlotHeapTuple(arg_slot, arg_materialize, arg_shouldFree) }) } -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 ExecFetchSlotMinimalTuple( + arg_slot: *mut TupleTableSlot, + arg_shouldFree: *mut bool, +) -> MinimalTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int; + fn ExecFetchSlotMinimalTuple( + arg_slot: *mut TupleTableSlot, + arg_shouldFree: *mut bool, + ) -> MinimalTuple; } - __fpclassify(arg___value) + ExecFetchSlotMinimalTuple(arg_slot, arg_shouldFree) }) } -pub unsafe fn __signbit(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn ExecFetchSlotHeapTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __signbit(arg___value: f64) -> ::std::os::raw::c_int; + fn ExecFetchSlotHeapTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum; } - __signbit(arg___value) + ExecFetchSlotHeapTupleDatum(arg_slot) }) } -pub unsafe fn __isinf(arg___value: f64) -> ::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 __isinf(arg___value: f64) -> ::std::os::raw::c_int; + fn slot_getmissingattrs( + arg_slot: *mut TupleTableSlot, + arg_startAttNum: ::std::os::raw::c_int, + arg_lastAttNum: ::std::os::raw::c_int, + ); } - __isinf(arg___value) + slot_getmissingattrs(arg_slot, arg_startAttNum, arg_lastAttNum) }) } -pub unsafe fn __finite(arg___value: f64) -> ::std::os::raw::c_int { +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 __finite(arg___value: f64) -> ::std::os::raw::c_int; + fn slot_getsomeattrs_int( + arg_slot: *mut TupleTableSlot, + arg_attnum: ::std::os::raw::c_int, + ); } - __finite(arg___value) + slot_getsomeattrs_int(arg_slot, arg_attnum) }) } -pub unsafe fn __isnan(arg___value: f64) -> ::std::os::raw::c_int { +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 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 __isnan(arg___value: f64) -> ::std::os::raw::c_int; + fn bms_copy(arg_a: *const Bitmapset) -> *mut Bitmapset; } - __isnan(arg___value) + bms_copy(arg_a) }) } -pub unsafe fn __iseqsig(arg___x: f64, arg___y: f64) -> ::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 __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int; + fn bms_equal(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - __iseqsig(arg___x, arg___y) + bms_equal(arg_a, arg_b) }) } -pub unsafe fn __issignaling(arg___value: f64) -> ::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 __issignaling(arg___value: f64) -> ::std::os::raw::c_int; + fn bms_compare( + arg_a: *const Bitmapset, + arg_b: *const Bitmapset, + ) -> ::std::os::raw::c_int; } - __issignaling(arg___value) + bms_compare(arg_a, arg_b) }) } -pub unsafe fn acos(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 acos(arg___x: f64) -> f64; + fn bms_make_singleton(arg_x: ::std::os::raw::c_int) -> *mut Bitmapset; } - acos(arg___x) + bms_make_singleton(arg_x) }) } -pub unsafe fn __acos(arg___x: f64) -> f64 { +pub unsafe fn bms_free(arg_a: *mut Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __acos(arg___x: f64) -> f64; + fn bms_free(arg_a: *mut Bitmapset); } - __acos(arg___x) + bms_free(arg_a) }) } -pub unsafe fn asin(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 asin(arg___x: f64) -> f64; + fn bms_union(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - asin(arg___x) + bms_union(arg_a, arg_b) }) } -pub unsafe fn __asin(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 __asin(arg___x: f64) -> f64; + fn bms_intersect(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - __asin(arg___x) + bms_intersect(arg_a, arg_b) }) } -pub unsafe fn atan(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 atan(arg___x: f64) -> f64; + fn bms_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - atan(arg___x) + bms_difference(arg_a, arg_b) }) } -pub unsafe fn __atan(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 __atan(arg___x: f64) -> f64; + fn bms_is_subset(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - __atan(arg___x) + bms_is_subset(arg_a, arg_b) }) } -pub unsafe fn atan2(arg___y: f64, arg___x: f64) -> 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 atan2(arg___y: f64, arg___x: f64) -> f64; + fn bms_subset_compare( + arg_a: *const Bitmapset, + arg_b: *const Bitmapset, + ) -> BMS_Comparison; } - atan2(arg___y, arg___x) + bms_subset_compare(arg_a, arg_b) }) } -pub unsafe fn __atan2(arg___y: f64, arg___x: f64) -> 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 __atan2(arg___y: f64, arg___x: f64) -> f64; + fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool; } - __atan2(arg___y, arg___x) + bms_is_member(arg_x, arg_a) }) } -pub unsafe fn cos(arg___x: f64) -> 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 cos(arg___x: f64) -> f64; + fn bms_member_index( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - cos(arg___x) + bms_member_index(arg_a, arg_x) }) } -pub unsafe fn __cos(arg___x: f64) -> 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 __cos(arg___x: f64) -> f64; + fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - __cos(arg___x) + bms_overlap(arg_a, arg_b) }) } -pub unsafe fn sin(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 sin(arg___x: f64) -> f64; + fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool; } - sin(arg___x) + bms_overlap_list(arg_a, arg_b) }) } -pub unsafe fn __sin(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 __sin(arg___x: f64) -> f64; + fn bms_nonempty_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - __sin(arg___x) + bms_nonempty_difference(arg_a, arg_b) }) } -pub unsafe fn tan(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 tan(arg___x: f64) -> f64; + fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; } - tan(arg___x) + bms_singleton_member(arg_a) }) } -pub unsafe fn __tan(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 __tan(arg___x: f64) -> f64; + fn bms_get_singleton_member( + arg_a: *const Bitmapset, + arg_member: *mut ::std::os::raw::c_int, + ) -> bool; } - __tan(arg___x) + bms_get_singleton_member(arg_a, arg_member) }) } -pub unsafe fn cosh(arg___x: 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 cosh(arg___x: f64) -> f64; + fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; } - cosh(arg___x) + bms_num_members(arg_a) }) } -pub unsafe fn __cosh(arg___x: f64) -> f64 { +pub unsafe fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership { 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; + fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership; } - sinh(arg___x) + bms_membership(arg_a) }) } -pub unsafe fn __sinh(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 __sinh(arg___x: f64) -> f64; + fn bms_is_empty(arg_a: *const Bitmapset) -> bool; } - __sinh(arg___x) + bms_is_empty(arg_a) }) } -pub unsafe fn tanh(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 tanh(arg___x: f64) -> f64; + fn bms_add_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> *mut Bitmapset; } - tanh(arg___x) + bms_add_member(arg_a, arg_x) }) } -pub unsafe fn __tanh(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 __tanh(arg___x: f64) -> f64; + fn bms_del_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> *mut Bitmapset; } - __tanh(arg___x) + bms_del_member(arg_a, arg_x) }) } -pub unsafe fn acosh(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 acosh(arg___x: f64) -> f64; + fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - acosh(arg___x) + bms_add_members(arg_a, arg_b) }) } -pub unsafe fn __acosh(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 __acosh(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; } - __acosh(arg___x) + bms_add_range(arg_a, arg_lower, arg_upper) }) } -pub unsafe fn asinh(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 asinh(arg___x: f64) -> f64; + fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - asinh(arg___x) + bms_int_members(arg_a, arg_b) }) } -pub unsafe fn __asinh(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 __asinh(arg___x: f64) -> f64; + fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - __asinh(arg___x) + bms_del_members(arg_a, arg_b) }) } -pub unsafe fn atanh(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 atanh(arg___x: f64) -> f64; + fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset; } - atanh(arg___x) + bms_join(arg_a, arg_b) }) } -pub unsafe fn __atanh(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 __atanh(arg___x: f64) -> f64; + fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int; } - __atanh(arg___x) + bms_first_member(arg_a) }) } -pub unsafe fn exp(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 exp(arg___x: f64) -> f64; + fn bms_next_member( + arg_a: *const Bitmapset, + arg_prevbit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - exp(arg___x) + bms_next_member(arg_a, arg_prevbit) }) } -pub unsafe fn __exp(arg___x: 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 __exp(arg___x: f64) -> f64; + fn bms_prev_member( + arg_a: *const Bitmapset, + arg_prevbit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - __exp(arg___x) + bms_prev_member(arg_a, arg_prevbit) }) } -pub unsafe fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn bms_hash_value(arg_a: *const Bitmapset) -> uint32 { 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_hash_value(arg_a: *const Bitmapset) -> uint32; } - frexp(arg___x, arg___exponent) + bms_hash_value(arg_a) }) } -pub unsafe fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { +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 __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; + fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - __frexp(arg___x, arg___exponent) + bitmap_hash(arg_key, arg_keysize) }) } -pub unsafe fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { +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 ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; + 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; } - ldexp(arg___x, arg___exponent) + bitmap_match(arg_key1, arg_key2, arg_keysize) }) } -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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupleConversionMap { + pub indesc: TupleDesc, + pub outdesc: TupleDesc, + pub attrMap: *mut AttrMap, + pub invalues: *mut Datum, + pub inisnull: *mut bool, + pub outvalues: *mut Datum, + pub outisnull: *mut bool, } -pub unsafe fn log(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log(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() } - log(arg___x) - }) + } } -pub unsafe fn __log(arg___x: 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 __log(arg___x: f64) -> f64; + fn convert_tuples_by_position( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut TupleConversionMap; } - __log(arg___x) + convert_tuples_by_position(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn log10(arg___x: f64) -> f64 { +pub unsafe fn convert_tuples_by_name( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, +) -> *mut TupleConversionMap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log10(arg___x: f64) -> f64; + fn convert_tuples_by_name( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + ) -> *mut TupleConversionMap; } - log10(arg___x) + convert_tuples_by_name(arg_indesc, arg_outdesc) }) } -pub unsafe fn __log10(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 __log10(arg___x: f64) -> f64; + fn execute_attr_map_tuple( + arg_tuple: HeapTuple, + arg_map: *mut TupleConversionMap, + ) -> HeapTuple; } - __log10(arg___x) + execute_attr_map_tuple(arg_tuple, arg_map) }) } -pub unsafe fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { +pub unsafe fn execute_attr_map_slot( + arg_attrMap: *mut AttrMap, + arg_in_slot: *mut TupleTableSlot, + arg_out_slot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64; + fn execute_attr_map_slot( + arg_attrMap: *mut AttrMap, + arg_in_slot: *mut TupleTableSlot, + arg_out_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - modf(arg___x, arg___iptr) + execute_attr_map_slot(arg_attrMap, arg_in_slot, arg_out_slot) }) } -pub unsafe fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { +pub unsafe fn execute_attr_map_cols( + arg_attrMap: *mut AttrMap, + arg_inbitmap: *mut Bitmapset, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64; + fn execute_attr_map_cols( + arg_attrMap: *mut AttrMap, + arg_inbitmap: *mut Bitmapset, + ) -> *mut Bitmapset; } - __modf(arg___x, arg___iptr) + execute_attr_map_cols(arg_attrMap, arg_inbitmap) }) } -pub unsafe fn expm1(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 expm1(arg___x: f64) -> f64; + fn free_conversion_map(arg_map: *mut TupleConversionMap); } - expm1(arg___x) + free_conversion_map(arg_map) }) } -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 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 log1p(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1p(arg___x: f64) -> f64; - } - log1p(arg___x) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct WalUsage { + pub wal_records: ::std::os::raw::c_long, + pub wal_fpi: ::std::os::raw::c_long, + pub wal_bytes: uint64, } -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 const InstrumentOption_INSTRUMENT_TIMER: InstrumentOption = 1; +pub const InstrumentOption_INSTRUMENT_BUFFERS: InstrumentOption = 2; +pub const InstrumentOption_INSTRUMENT_ROWS: InstrumentOption = 4; +pub const InstrumentOption_INSTRUMENT_WAL: InstrumentOption = 8; +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 need_walusage: bool, + pub running: bool, + pub starttime: instr_time, + pub counter: instr_time, + pub firsttuple: f64, + pub tuplecount: f64, + pub bufusage_start: BufferUsage, + pub walusage_start: WalUsage, + 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 walusage: WalUsage, } -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) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct WorkerInstrumentation { + pub num_workers: ::std::os::raw::c_int, + pub instrument: __IncompleteArrayField, } -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) - }) +extern "C" { + pub static mut pgBufferUsage: BufferUsage; } -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) - }) +extern "C" { + pub static mut pgWalUsage: WalUsage; } -pub unsafe fn __exp2(arg___x: f64) -> f64 { +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 __exp2(arg___x: f64) -> f64; + fn InstrAlloc( + arg_n: ::std::os::raw::c_int, + arg_instrument_options: ::std::os::raw::c_int, + ) -> *mut Instrumentation; } - __exp2(arg___x) + InstrAlloc(arg_n, arg_instrument_options) }) } -pub unsafe fn log2(arg___x: f64) -> f64 { +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 log2(arg___x: f64) -> f64; + fn InstrInit( + arg_instr: *mut Instrumentation, + arg_instrument_options: ::std::os::raw::c_int, + ); } - log2(arg___x) + InstrInit(arg_instr, arg_instrument_options) }) } -pub unsafe fn __log2(arg___x: f64) -> f64 { +pub unsafe fn InstrStartNode(arg_instr: *mut Instrumentation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log2(arg___x: f64) -> f64; + fn InstrStartNode(arg_instr: *mut Instrumentation); } - __log2(arg___x) + InstrStartNode(arg_instr) }) } -pub unsafe fn pow(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 pow(arg___x: f64, arg___y: f64) -> f64; + fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64); } - pow(arg___x, arg___y) + InstrStopNode(arg_instr, arg_nTuples) }) } -pub unsafe fn __pow(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 __pow(arg___x: f64, arg___y: f64) -> f64; + fn InstrEndLoop(arg_instr: *mut Instrumentation); } - __pow(arg___x, arg___y) + InstrEndLoop(arg_instr) }) } -pub unsafe fn sqrt(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 sqrt(arg___x: f64) -> f64; + fn InstrAggNode(arg_dst: *mut Instrumentation, arg_add: *mut Instrumentation); } - sqrt(arg___x) + InstrAggNode(arg_dst, arg_add) }) } -pub unsafe fn __sqrt(arg___x: f64) -> f64 { +pub unsafe fn InstrStartParallelQuery() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sqrt(arg___x: f64) -> f64; + fn InstrStartParallelQuery(); } - __sqrt(arg___x) + InstrStartParallelQuery() }) } -pub unsafe fn hypot(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn InstrEndParallelQuery(arg_bufusage: *mut BufferUsage, arg_walusage: *mut WalUsage) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypot(arg___x: f64, arg___y: f64) -> f64; + fn InstrEndParallelQuery(arg_bufusage: *mut BufferUsage, arg_walusage: *mut WalUsage); } - hypot(arg___x, arg___y) + InstrEndParallelQuery(arg_bufusage, arg_walusage) }) } -pub unsafe fn __hypot(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn InstrAccumParallelQuery(arg_bufusage: *mut BufferUsage, arg_walusage: *mut WalUsage) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __hypot(arg___x: f64, arg___y: f64) -> f64; + fn InstrAccumParallelQuery(arg_bufusage: *mut BufferUsage, arg_walusage: *mut WalUsage); } - __hypot(arg___x, arg___y) + InstrAccumParallelQuery(arg_bufusage, arg_walusage) }) } -pub unsafe fn cbrt(arg___x: f64) -> f64 { +pub unsafe fn BufferUsageAccumDiff( + arg_dst: *mut BufferUsage, + arg_add: *const BufferUsage, + arg_sub: *const BufferUsage, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cbrt(arg___x: f64) -> f64; + fn BufferUsageAccumDiff( + arg_dst: *mut BufferUsage, + arg_add: *const BufferUsage, + arg_sub: *const BufferUsage, + ); } - cbrt(arg___x) + BufferUsageAccumDiff(arg_dst, arg_add, arg_sub) }) } -pub unsafe fn __cbrt(arg___x: f64) -> f64 { +pub unsafe fn WalUsageAccumDiff( + arg_dst: *mut WalUsage, + arg_add: *const WalUsage, + arg_sub: *const WalUsage, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cbrt(arg___x: f64) -> f64; + fn WalUsageAccumDiff( + arg_dst: *mut WalUsage, + arg_add: *const WalUsage, + arg_sub: *const WalUsage, + ); } - __cbrt(arg___x) + WalUsageAccumDiff(arg_dst, arg_add, arg_sub) }) } -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 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, } -pub unsafe fn __ceil(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceil(arg___x: f64) -> f64; +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() } - __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) - }) +#[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 __fabs(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabs(arg___x: f64) -> f64; +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() } - __fabs(arg___x) - }) + } } -pub unsafe fn floor(arg___x: f64) -> f64 { +pub unsafe fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn floor(arg___x: f64) -> f64; + fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo); } - floor(arg___x) + fmgr_info(arg_functionId, arg_finfo) }) } -pub unsafe fn __floor(arg___x: f64) -> f64 { +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 __floor(arg___x: f64) -> f64; + fn fmgr_info_cxt( + arg_functionId: Oid, + arg_finfo: *mut FmgrInfo, + arg_mcxt: MemoryContext, + ); } - __floor(arg___x) + fmgr_info_cxt(arg_functionId, arg_finfo, arg_mcxt) }) } -pub unsafe fn fmod(arg___x: f64, arg___y: f64) -> f64 { +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 fmod(arg___x: f64, arg___y: f64) -> f64; + fn fmgr_info_copy( + arg_dstinfo: *mut FmgrInfo, + arg_srcinfo: *mut FmgrInfo, + arg_destcxt: MemoryContext, + ); } - fmod(arg___x, arg___y) + fmgr_info_copy(arg_dstinfo, arg_srcinfo, arg_destcxt) }) } -pub unsafe fn __fmod(arg___x: f64, arg___y: f64) -> f64 { +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 __fmod(arg___x: f64, arg___y: f64) -> f64; + fn fmgr_symbol( + arg_functionId: Oid, + arg_mod_: *mut *mut ::std::os::raw::c_char, + arg_fn_: *mut *mut ::std::os::raw::c_char, + ); } - __fmod(arg___x, arg___y) + fmgr_symbol(arg_functionId, arg_mod_, arg_fn_) }) } -pub unsafe fn isinf(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isinf(arg___value: f64) -> ::std::os::raw::c_int; + fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena; } - isinf(arg___value) + pg_detoast_datum(arg_datum) }) } -pub unsafe fn finite(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn finite(arg___value: f64) -> ::std::os::raw::c_int; + fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena; } - finite(arg___value) + pg_detoast_datum_copy(arg_datum) }) } -pub unsafe fn drem(arg___x: f64, arg___y: f64) -> f64 { +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 drem(arg___x: f64, arg___y: f64) -> f64; + fn pg_detoast_datum_slice( + arg_datum: *mut varlena, + arg_first: int32, + arg_count: int32, + ) -> *mut varlena; } - drem(arg___x, arg___y) + pg_detoast_datum_slice(arg_datum, arg_first, arg_count) }) } -pub unsafe fn __drem(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __drem(arg___x: f64, arg___y: f64) -> f64; + fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena; } - __drem(arg___x, arg___y) + pg_detoast_datum_packed(arg_datum) }) } -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) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Pg_finfo_record { + pub api_version: ::std::os::raw::c_int, } -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 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 float8byval: ::std::os::raw::c_int, } -pub unsafe fn copysign(arg___x: f64, arg___y: f64) -> f64 { +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 copysign(arg___x: f64, arg___y: f64) -> f64; + fn DirectFunctionCall1Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - copysign(arg___x, arg___y) + DirectFunctionCall1Coll(arg_func, arg_collation, arg_arg1) }) } -pub unsafe fn __copysign(arg___x: f64, arg___y: f64) -> f64 { +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 __copysign(arg___x: f64, arg___y: f64) -> f64; + fn DirectFunctionCall2Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - __copysign(arg___x, arg___y) + DirectFunctionCall2Coll(arg_func, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { +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 nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; + fn DirectFunctionCall3Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - nan(arg___tagb) + DirectFunctionCall3Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -pub unsafe fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { +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 __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; + fn DirectFunctionCall4Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - __nan(arg___tagb) + DirectFunctionCall4Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -pub unsafe fn isnan(arg___value: f64) -> ::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 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; + fn DirectFunctionCall5Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - __j0(arg_arg1) + DirectFunctionCall5Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -pub unsafe fn j1(arg_arg1: f64) -> f64 { +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 j1(arg_arg1: f64) -> f64; + 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; } - j1(arg_arg1) + DirectFunctionCall6Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -pub unsafe fn __j1(arg_arg1: f64) -> f64 { +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 __j1(arg_arg1: f64) -> f64; + 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; } - __j1(arg_arg1) + DirectFunctionCall7Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -pub unsafe fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +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 jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + 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; } - jn(arg_arg1, arg_arg2) + DirectFunctionCall8Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -pub unsafe fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +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 __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + 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; } - __jn(arg_arg1, arg_arg2) + 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 y0(arg_arg1: f64) -> f64 { +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 y0(arg_arg1: f64) -> f64; + fn CallerFInfoFunctionCall1( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - y0(arg_arg1) + CallerFInfoFunctionCall1(arg_func, arg_flinfo, arg_collation, arg_arg1) }) } -pub unsafe fn __y0(arg_arg1: f64) -> f64 { +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 __y0(arg_arg1: f64) -> f64; + fn CallerFInfoFunctionCall2( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - __y0(arg_arg1) + CallerFInfoFunctionCall2(arg_func, arg_flinfo, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn y1(arg_arg1: f64) -> f64 { +pub unsafe fn FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y1(arg_arg1: f64) -> f64; + fn FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> Datum; } - y1(arg_arg1) + FunctionCall0Coll(arg_flinfo, arg_collation) }) } -pub unsafe fn __y1(arg_arg1: f64) -> f64 { +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 __y1(arg_arg1: f64) -> f64; + fn FunctionCall1Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - __y1(arg_arg1) + FunctionCall1Coll(arg_flinfo, arg_collation, arg_arg1) }) } -pub unsafe fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +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 yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + fn FunctionCall2Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - yn(arg_arg1, arg_arg2) + FunctionCall2Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +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 __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + fn FunctionCall3Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - __yn(arg_arg1, arg_arg2) + FunctionCall3Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -pub unsafe fn erf(arg_arg1: f64) -> f64 { +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 erf(arg_arg1: f64) -> f64; + fn FunctionCall4Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - erf(arg_arg1) + FunctionCall4Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -pub unsafe fn __erf(arg_arg1: f64) -> f64 { +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 __erf(arg_arg1: f64) -> f64; + 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; } - __erf(arg_arg1) + FunctionCall5Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -pub unsafe fn erfc(arg_arg1: f64) -> f64 { +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 erfc(arg_arg1: f64) -> f64; + 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; } - erfc(arg_arg1) + FunctionCall6Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -pub unsafe fn __erfc(arg_arg1: f64) -> f64 { +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 __erfc(arg_arg1: f64) -> f64; + 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; } - __erfc(arg_arg1) + FunctionCall7Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -pub unsafe fn lgamma(arg_arg1: f64) -> f64 { +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 lgamma(arg_arg1: f64) -> f64; + 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; } - lgamma(arg_arg1) + FunctionCall8Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -pub unsafe fn __lgamma(arg_arg1: f64) -> f64 { +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 __lgamma(arg_arg1: f64) -> f64; + 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; } - __lgamma(arg_arg1) + 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 tgamma(arg_arg1: f64) -> f64 { +pub unsafe fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tgamma(arg_arg1: f64) -> f64; + fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum; } - tgamma(arg_arg1) + OidFunctionCall0Coll(arg_functionId, arg_collation) }) } -pub unsafe fn __tgamma(arg_arg1: f64) -> f64 { +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 __tgamma(arg_arg1: f64) -> f64; + fn OidFunctionCall1Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - __tgamma(arg_arg1) + OidFunctionCall1Coll(arg_functionId, arg_collation, arg_arg1) }) } -pub unsafe fn gamma(arg_arg1: f64) -> f64 { +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 gamma(arg_arg1: f64) -> f64; + fn OidFunctionCall2Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - gamma(arg_arg1) + OidFunctionCall2Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn __gamma(arg_arg1: f64) -> f64 { +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 __gamma(arg_arg1: f64) -> f64; + fn OidFunctionCall3Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - __gamma(arg_arg1) + OidFunctionCall3Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -pub unsafe fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { +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 lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; + fn OidFunctionCall4Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - lgamma_r(arg_arg1, arg___signgamp) + OidFunctionCall4Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -pub unsafe fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { +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 __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; + fn OidFunctionCall5Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - __lgamma_r(arg_arg1, arg___signgamp) + OidFunctionCall5Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -pub unsafe fn rint(arg___x: f64) -> f64 { +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 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; + 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; } - __rint(arg___x) + OidFunctionCall6Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -pub unsafe fn nextafter(arg___x: f64, arg___y: f64) -> f64 { +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 nextafter(arg___x: f64, arg___y: f64) -> f64; + 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; } - nextafter(arg___x, arg___y) + OidFunctionCall7Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -pub unsafe fn __nextafter(arg___x: f64, arg___y: f64) -> f64 { +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 __nextafter(arg___x: f64, arg___y: f64) -> f64; + 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; } - __nextafter(arg___x, arg___y) + OidFunctionCall8Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -pub unsafe fn nexttoward(arg___x: f64, arg___y: u128) -> f64 { +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 nexttoward(arg___x: f64, arg___y: u128) -> f64; + 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; } - nexttoward(arg___x, arg___y) + 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 __nexttoward(arg___x: f64, arg___y: u128) -> f64 { +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 __nexttoward(arg___x: f64, arg___y: u128) -> f64; + fn InputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - __nexttoward(arg___x, arg___y) + InputFunctionCall(arg_flinfo, arg_str_, arg_typioparam, arg_typmod) }) } -pub unsafe fn remainder(arg___x: f64, arg___y: f64) -> f64 { +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 remainder(arg___x: f64, arg___y: f64) -> f64; + fn OidInputFunctionCall( + arg_functionId: Oid, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - remainder(arg___x, arg___y) + OidInputFunctionCall(arg_functionId, arg_str_, arg_typioparam, arg_typmod) }) } -pub unsafe fn __remainder(arg___x: f64, arg___y: f64) -> f64 { +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 __remainder(arg___x: f64, arg___y: f64) -> f64; + fn OutputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_val: Datum, + ) -> *mut ::std::os::raw::c_char; } - __remainder(arg___x, arg___y) + OutputFunctionCall(arg_flinfo, arg_val) }) } -pub unsafe fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { +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 scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; + fn OidOutputFunctionCall( + arg_functionId: Oid, + arg_val: Datum, + ) -> *mut ::std::os::raw::c_char; } - scalbn(arg___x, arg___n) + OidOutputFunctionCall(arg_functionId, arg_val) }) } -pub unsafe fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { +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 __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; + fn ReceiveFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - __scalbn(arg___x, arg___n) + ReceiveFunctionCall(arg_flinfo, arg_buf, arg_typioparam, arg_typmod) }) } -pub unsafe fn ilogb(arg___x: f64) -> ::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 ilogb(arg___x: f64) -> ::std::os::raw::c_int; + fn OidReceiveFunctionCall( + arg_functionId: Oid, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - ilogb(arg___x) + OidReceiveFunctionCall(arg_functionId, arg_buf, arg_typioparam, arg_typmod) }) } -pub unsafe fn __ilogb(arg___x: f64) -> ::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 __ilogb(arg___x: f64) -> ::std::os::raw::c_int; + fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea; } - __ilogb(arg___x) + SendFunctionCall(arg_flinfo, arg_val) }) } -pub unsafe fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { +pub unsafe fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; + fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea; } - scalbln(arg___x, arg___n) + OidSendFunctionCall(arg_functionId, arg_val) }) } -pub unsafe fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { +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 __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; + fn fetch_finfo_record( + arg_filehandle: *mut ::std::os::raw::c_void, + arg_funcname: *const ::std::os::raw::c_char, + ) -> *const Pg_finfo_record; } - __scalbln(arg___x, arg___n) + fetch_finfo_record(arg_filehandle, arg_funcname) }) } -pub unsafe fn nearbyint(arg___x: f64) -> f64 { +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 nearbyint(arg___x: f64) -> f64; + fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void); } - nearbyint(arg___x) + clear_external_function_hash(arg_filehandle) }) } -pub unsafe fn __nearbyint(arg___x: f64) -> f64 { +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 __nearbyint(arg___x: f64) -> f64; + fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid; } - __nearbyint(arg___x) + fmgr_internal_function(arg_proname) }) } -pub unsafe fn round(arg___x: f64) -> f64 { +pub unsafe fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn round(arg___x: f64) -> f64; + fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid; } - round(arg___x) + get_fn_expr_rettype(arg_flinfo) }) } -pub unsafe fn __round(arg___x: f64) -> f64 { +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 __round(arg___x: f64) -> f64; + fn get_fn_expr_argtype( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, + ) -> Oid; } - __round(arg___x) + get_fn_expr_argtype(arg_flinfo, arg_argnum) }) } -pub unsafe fn trunc(arg___x: f64) -> f64 { +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 trunc(arg___x: f64) -> f64; + fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) + -> Oid; } - trunc(arg___x) + get_call_expr_argtype(arg_expr, arg_argnum) }) } -pub unsafe fn __trunc(arg___x: f64) -> f64 { +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 __trunc(arg___x: f64) -> f64; + fn get_fn_expr_arg_stable( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, + ) -> bool; } - __trunc(arg___x) + get_fn_expr_arg_stable(arg_flinfo, arg_argnum) }) } -pub unsafe fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { +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 remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; + fn get_call_expr_arg_stable( + arg_expr: fmNodePtr, + arg_argnum: ::std::os::raw::c_int, + ) -> bool; } - remquo(arg___x, arg___y, arg___quo) + get_call_expr_arg_stable(arg_expr, arg_argnum) }) } -pub unsafe fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool { 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 get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool; } - __remquo(arg___x, arg___y, arg___quo) + get_fn_expr_variadic(arg_flinfo) }) } -pub unsafe fn lrint(arg___x: f64) -> ::std::os::raw::c_long { +pub unsafe fn get_fn_opclass_options(arg_flinfo: *mut FmgrInfo) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrint(arg___x: f64) -> ::std::os::raw::c_long; + fn get_fn_opclass_options(arg_flinfo: *mut FmgrInfo) -> *mut bytea; } - lrint(arg___x) + get_fn_opclass_options(arg_flinfo) }) } -pub unsafe fn __lrint(arg___x: f64) -> ::std::os::raw::c_long { +pub unsafe fn has_fn_opclass_options(arg_flinfo: *mut FmgrInfo) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lrint(arg___x: f64) -> ::std::os::raw::c_long; + fn has_fn_opclass_options(arg_flinfo: *mut FmgrInfo) -> bool; } - __lrint(arg___x) + has_fn_opclass_options(arg_flinfo) }) } -pub unsafe fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong { +pub unsafe fn set_fn_opclass_options(arg_flinfo: *mut FmgrInfo, arg_options: *mut bytea) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong; + fn set_fn_opclass_options(arg_flinfo: *mut FmgrInfo, arg_options: *mut bytea); } - llrint(arg___x) + set_fn_opclass_options(arg_flinfo, arg_options) }) } -pub unsafe fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong { +pub unsafe fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong; + fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool; } - __llrint(arg___x) + CheckFunctionValidatorAccess(arg_validatorOid, arg_functionOid) }) } -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) - }) +extern "C" { + pub static mut Dynamic_library_path: *mut ::std::os::raw::c_char; } -pub unsafe fn __lround(arg___x: f64) -> ::std::os::raw::c_long { +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 __lround(arg___x: f64) -> ::std::os::raw::c_long; + 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; } - __lround(arg___x) + load_external_function(arg_filename, arg_funcname, arg_signalNotFound, arg_filehandle) }) } -pub unsafe fn llround(arg___x: f64) -> ::std::os::raw::c_longlong { +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 llround(arg___x: f64) -> ::std::os::raw::c_longlong; + fn lookup_external_function( + arg_filehandle: *mut ::std::os::raw::c_void, + arg_funcname: *const ::std::os::raw::c_char, + ) -> PGFunction; } - llround(arg___x) + lookup_external_function(arg_filehandle, arg_funcname) }) } -pub unsafe fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong { +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 __llround(arg___x: f64) -> ::std::os::raw::c_longlong; + fn load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool); } - __llround(arg___x) + load_file(arg_filename, arg_restricted) }) } -pub unsafe fn fdim(arg___x: f64, arg___y: f64) -> f64 { +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 fdim(arg___x: f64, arg___y: f64) -> f64; + fn find_rendezvous_variable( + arg_varName: *const ::std::os::raw::c_char, + ) -> *mut *mut ::std::os::raw::c_void; } - fdim(arg___x, arg___y) + find_rendezvous_variable(arg_varName) }) } -pub unsafe fn __fdim(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn EstimateLibraryStateSpace() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fdim(arg___x: f64, arg___y: f64) -> f64; + fn EstimateLibraryStateSpace() -> Size; } - __fdim(arg___x, arg___y) + EstimateLibraryStateSpace() }) } -pub unsafe fn fmax(arg___x: f64, arg___y: f64) -> f64 { +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 fmax(arg___x: f64, arg___y: f64) -> f64; + fn SerializeLibraryState( + arg_maxsize: Size, + arg_start_address: *mut ::std::os::raw::c_char, + ); } - fmax(arg___x, arg___y) + SerializeLibraryState(arg_maxsize, arg_start_address) }) } -pub unsafe fn __fmax(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmax(arg___x: f64, arg___y: f64) -> f64; + fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char); } - __fmax(arg___x, arg___y) + RestoreLibraryState(arg_start_address) }) } -pub unsafe fn fmin(arg___x: f64, arg___y: f64) -> f64 { +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 fmin(arg___x: f64, arg___y: f64) -> f64; + fn AggCheckCallContext( + arg_fcinfo: FunctionCallInfo, + arg_aggcontext: *mut MemoryContext, + ) -> ::std::os::raw::c_int; } - fmin(arg___x, arg___y) + AggCheckCallContext(arg_fcinfo, arg_aggcontext) }) } -pub unsafe fn __fmin(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmin(arg___x: f64, arg___y: f64) -> f64; + fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr; } - __fmin(arg___x, arg___y) + AggGetAggref(arg_fcinfo) }) } -pub unsafe fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { +pub unsafe fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; + fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext; } - fma(arg___x, arg___y, arg___z) + AggGetTempMemoryContext(arg_fcinfo) }) } -pub unsafe fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { +pub unsafe fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; + fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool; } - __fma(arg___x, arg___y, arg___z) + AggStateIsShared(arg_fcinfo) }) } -pub unsafe fn scalb(arg___x: f64, arg___n: f64) -> f64 { +pub unsafe fn AggRegisterCallback( + arg_fcinfo: FunctionCallInfo, + arg_func: fmExprContextCallbackFunction, + arg_arg: Datum, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalb(arg___x: f64, arg___n: f64) -> f64; + fn AggRegisterCallback( + arg_fcinfo: FunctionCallInfo, + arg_func: fmExprContextCallbackFunction, + arg_arg: Datum, + ); } - scalb(arg___x, arg___n) + AggRegisterCallback(arg_fcinfo, arg_func, arg_arg) }) } -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 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 __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) - }) +extern "C" { + pub static mut fmgr_hook: fmgr_hook_type; } -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) - }) +#[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, } -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 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() } - __isinff(arg___value) - }) + } } -pub unsafe fn __finitef(arg___value: f32) -> ::std::os::raw::c_int { +pub type StringInfo = *mut StringInfoData; +pub unsafe fn makeStringInfo() -> StringInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __finitef(arg___value: f32) -> ::std::os::raw::c_int; + fn makeStringInfo() -> StringInfo; } - __finitef(arg___value) + makeStringInfo() }) } -pub unsafe fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn initStringInfo(arg_str_: StringInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int; + fn initStringInfo(arg_str_: StringInfo); } - __isnanf(arg___value) + initStringInfo(arg_str_) }) } -pub unsafe fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int { +pub unsafe fn resetStringInfo(arg_str_: StringInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int; + fn resetStringInfo(arg_str_: StringInfo); } - __iseqsigf(arg___x, arg___y) + resetStringInfo(arg_str_) }) } -pub unsafe fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int { +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 __issignalingf(arg___value: f32) -> ::std::os::raw::c_int; + fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char); } - __issignalingf(arg___value) + appendStringInfo(arg_str_, arg_fmt) }) } -pub unsafe fn acosf(arg___x: f32) -> f32 { +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 acosf(arg___x: f32) -> f32; + fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char); } - acosf(arg___x) + appendStringInfoString(arg_str_, arg_s) }) } -pub unsafe fn __acosf(arg___x: f32) -> f32 { +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 __acosf(arg___x: f32) -> f32; + fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char); } - __acosf(arg___x) + appendStringInfoChar(arg_str_, arg_ch) }) } -pub unsafe fn asinf(arg___x: f32) -> f32 { +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 asinf(arg___x: f32) -> f32; + fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int); } - asinf(arg___x) + appendStringInfoSpaces(arg_str_, arg_count) }) } -pub unsafe fn __asinf(arg___x: f32) -> f32 { +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 __asinf(arg___x: f32) -> f32; + fn appendBinaryStringInfo( + arg_str_: StringInfo, + arg_data: *const ::std::os::raw::c_char, + arg_datalen: ::std::os::raw::c_int, + ); } - __asinf(arg___x) + appendBinaryStringInfo(arg_str_, arg_data, arg_datalen) }) } -pub unsafe fn atanf(arg___x: f32) -> f32 { +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 atanf(arg___x: f32) -> f32; + fn appendBinaryStringInfoNT( + arg_str_: StringInfo, + arg_data: *const ::std::os::raw::c_char, + arg_datalen: ::std::os::raw::c_int, + ); } - atanf(arg___x) + appendBinaryStringInfoNT(arg_str_, arg_data, arg_datalen) }) } -pub unsafe fn __atanf(arg___x: f32) -> f32 { +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 __atanf(arg___x: f32) -> f32; + fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int); } - __atanf(arg___x) + enlargeStringInfo(arg_str_, arg_needed) }) } -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 pairingheap_node { + pub first_child: *mut pairingheap_node, + pub next_sibling: *mut pairingheap_node, + pub prev_or_parent: *mut pairingheap_node, } -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 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() } - __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 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 __cosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosf(arg___x: f32) -> f32; +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() } - __cosf(arg___x) - }) + } } -pub unsafe fn sinf(arg___x: f32) -> f32 { +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 sinf(arg___x: f32) -> f32; + fn pairingheap_allocate( + arg_compare: pairingheap_comparator, + arg_arg: *mut ::std::os::raw::c_void, + ) -> *mut pairingheap; } - sinf(arg___x) + pairingheap_allocate(arg_compare, arg_arg) }) } -pub unsafe fn __sinf(arg___x: f32) -> f32 { +pub unsafe fn pairingheap_free(arg_heap: *mut pairingheap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sinf(arg___x: f32) -> f32; + fn pairingheap_free(arg_heap: *mut pairingheap); } - __sinf(arg___x) + pairingheap_free(arg_heap) }) } -pub unsafe fn tanf(arg___x: f32) -> f32 { +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 tanf(arg___x: f32) -> f32; + fn pairingheap_add(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); } - tanf(arg___x) + pairingheap_add(arg_heap, arg_node) }) } -pub unsafe fn __tanf(arg___x: f32) -> f32 { +pub unsafe fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tanf(arg___x: f32) -> f32; + fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; } - __tanf(arg___x) + pairingheap_first(arg_heap) }) } -pub unsafe fn coshf(arg___x: f32) -> f32 { +pub unsafe fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn coshf(arg___x: f32) -> f32; + fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; } - coshf(arg___x) + pairingheap_remove_first(arg_heap) }) } -pub unsafe fn __coshf(arg___x: f32) -> f32 { +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 __coshf(arg___x: f32) -> f32; + fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); } - __coshf(arg___x) + pairingheap_remove(arg_heap, arg_node) }) } -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 ParamExternData { + pub value: Datum, + pub isnull: bool, + pub pflags: uint16, + pub ptype: Oid, } -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 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() } - __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 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 paramValuesStr: *mut ::std::os::raw::c_char, + pub numParams: ::std::os::raw::c_int, + pub params: __IncompleteArrayField, } -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 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() } - __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 ParamExecData { + pub execPlan: *mut ::std::os::raw::c_void, + pub value: Datum, + pub isnull: bool, } -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 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() } - __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 ParamsErrorCbData { + pub portalName: *const ::std::os::raw::c_char, + pub params: ParamListInfo, } -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 ParamsErrorCbData { + 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 { +pub unsafe fn makeParamList(arg_numParams: ::std::os::raw::c_int) -> ParamListInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atanhf(arg___x: f32) -> f32; + fn makeParamList(arg_numParams: ::std::os::raw::c_int) -> ParamListInfo; } - atanhf(arg___x) + makeParamList(arg_numParams) }) } -pub unsafe fn __atanhf(arg___x: f32) -> f32 { +pub unsafe fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atanhf(arg___x: f32) -> f32; + fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo; } - __atanhf(arg___x) + copyParamList(arg_from) }) } -pub unsafe fn expf(arg___x: f32) -> f32 { +pub unsafe fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expf(arg___x: f32) -> f32; + fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size; } - expf(arg___x) + EstimateParamListSpace(arg_paramLI) }) } -pub unsafe fn __expf(arg___x: f32) -> f32 { +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 __expf(arg___x: f32) -> f32; + fn SerializeParamList( + arg_paramLI: ParamListInfo, + arg_start_address: *mut *mut ::std::os::raw::c_char, + ); } - __expf(arg___x) + SerializeParamList(arg_paramLI, arg_start_address) }) } -pub unsafe fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { +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 frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; + fn RestoreParamList( + arg_start_address: *mut *mut ::std::os::raw::c_char, + ) -> ParamListInfo; } - frexpf(arg___x, arg___exponent) + RestoreParamList(arg_start_address) }) } -pub unsafe fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { +pub unsafe fn BuildParamLogString( + arg_params: ParamListInfo, + arg_paramTextValues: *mut *mut ::std::os::raw::c_char, + arg_valueLen: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { 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 BuildParamLogString( + arg_params: ParamListInfo, + arg_paramTextValues: *mut *mut ::std::os::raw::c_char, + arg_valueLen: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - __frexpf(arg___x, arg___exponent) + BuildParamLogString(arg_params, arg_paramTextValues, arg_valueLen) }) } -pub unsafe fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { +pub unsafe fn ParamsErrorCallback(arg_arg: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; + fn ParamsErrorCallback(arg_arg: *mut ::std::os::raw::c_void); } - ldexpf(arg___x, arg___exponent) + ParamsErrorCallback(arg_arg) }) } -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 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 logf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logf(arg___x: f32) -> f32; +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() } - 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 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 log10f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10f(arg___x: f32) -> f32; +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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 expm1f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1f(arg___x: f32) -> f32; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Expr { + pub type_: NodeTag, } -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 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() } - 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 Var { + pub xpr: Expr, + pub varno: Index, + pub varattno: AttrNumber, + pub vartype: Oid, + pub vartypmod: int32, + pub varcollid: Oid, + pub varlevelsup: Index, + pub varnosyn: Index, + pub varattnosyn: AttrNumber, + 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 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() } - 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 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 exp2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2f(arg___x: f32) -> f32; +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() } - 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 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 log2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2f(arg___x: f32) -> f32; +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() } - 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 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 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 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() } - 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 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 sqrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrtf(arg___x: f32) -> f32; +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() } - 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 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 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 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() } - 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 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 cbrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrtf(arg___x: f32) -> f32; +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() } - 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 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 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; +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() } - __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) - }) +#[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 __floorf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floorf(arg___x: f32) -> f32; +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() } - __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) - }) +#[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 __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 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() } - __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 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 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; +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() } - 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 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 __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; +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() } - __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 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 __significandf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significandf(arg___x: f32) -> f32; +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() } - __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) - }) +#[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 __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 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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlternativeSubPlan { + pub xpr: Expr, + pub subplans: *mut List, } -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 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() } - __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) - }) +#[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 j0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0f(arg_arg1: 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() } - 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) - }) +#[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 j1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1f(arg_arg1: 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 y0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0f(arg_arg1: 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() } - 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) - }) +#[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 y1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1f(arg_arg1: 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() } - 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) - }) +#[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 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 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() } - 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) - }) +#[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 erff(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erff(arg_arg1: 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() } - 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) - }) +#[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 erfcf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfcf(arg_arg1: 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() } - 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) - }) +#[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 lgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammaf(arg_arg1: 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CaseTestExpr { + pub xpr: Expr, + pub typeId: Oid, + pub typeMod: int32, + pub collation: Oid, } -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 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() } - 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) - }) +#[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 gammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gammaf(arg_arg1: 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() } - 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) - }) +#[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 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 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() } - 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 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 rintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rintf(arg___x: f32) -> 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() } - 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) - }) +#[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 __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 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() } - __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 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 __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 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() } - __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 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 __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 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() } - __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 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 __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 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() } - __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 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 __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 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() } - __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 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 __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 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() } - __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 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 __nearbyintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyintf(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() } - __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 CoerceToDomainValue { + pub xpr: Expr, + pub typeId: Oid, + pub typeMod: int32, + pub collation: Oid, + pub location: ::std::os::raw::c_int, } -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 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() } - __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 SetToDefault { + pub xpr: Expr, + pub typeId: Oid, + pub typeMod: int32, + pub collation: Oid, + pub location: ::std::os::raw::c_int, } -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 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() } - __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 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 __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 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() } - __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 NextValueExpr { + pub xpr: Expr, + pub seqid: Oid, + pub typeId: Oid, } -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 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() } - __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 InferenceElem { + pub xpr: Expr, + pub expr: *mut Node, + pub infercollid: Oid, + pub inferopclass: Oid, } -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 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() } - __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 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 __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 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() } - __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 RangeTblRef { + pub type_: NodeTag, + pub rtindex: ::std::os::raw::c_int, } -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 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() } - __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 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 __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 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() } - __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 FromExpr { + pub type_: NodeTag, + pub fromlist: *mut List, + pub quals: *mut Node, } -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 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() } - __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 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 __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 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() } - __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 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 appendRelations: *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 __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 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() } - __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 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 __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 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() } - __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 Result { + pub plan: Plan, + pub resconstantqual: *mut Node, } -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 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() } - __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 ProjectSet { + pub plan: Plan, } -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 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() } - __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 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 __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 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() } - __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 Append { + pub plan: Plan, + pub apprelids: *mut Bitmapset, + pub appendplans: *mut List, + pub first_partial_plan: ::std::os::raw::c_int, + pub part_prune_info: *mut PartitionPruneInfo, } -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 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() } - 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 MergeAppend { + pub plan: Plan, + pub apprelids: *mut Bitmapset, + 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 asinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinl(arg___x: u128) -> u128; +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() } - 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 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 atanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanl(arg___x: u128) -> u128; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapAnd { + pub plan: Plan, + pub bitmapplans: *mut List, } -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 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() } - 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 BitmapOr { + pub plan: Plan, + pub isshared: bool, + pub bitmapplans: *mut List, } -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 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() } - 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 Scan { + pub plan: Plan, + pub scanrelid: Index, } -pub unsafe fn sinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinl(arg___x: u128) -> u128; +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() } - 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 type SeqScan = Scan; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SampleScan { + pub scan: Scan, + pub tablesample: *mut TableSampleClause, } -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 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() } - 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) - }) +#[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 coshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn coshl(arg___x: u128) -> u128; +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() } - 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) - }) +#[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 sinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinhl(arg___x: u128) -> u128; +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() } - 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) - }) +#[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 tanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanhl(arg___x: u128) -> u128; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapHeapScan { + pub scan: Scan, + pub bitmapqualorig: *mut List, } -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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TidScan { + pub scan: Scan, + pub tidquals: *mut List, } -pub unsafe fn asinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinhl(arg___x: u128) -> u128; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubqueryScan { + pub scan: Scan, + pub subplan: *mut Plan, } -pub unsafe fn atanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanhl(arg___x: u128) -> u128; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FunctionScan { + pub scan: Scan, + pub functions: *mut List, + pub funcordinality: bool, } -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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ValuesScan { + pub scan: Scan, + pub values_lists: *mut List, } -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; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableFuncScan { + pub scan: Scan, + pub tablefunc: *mut TableFunc, } -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 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() } - 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) - }) +#[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 logl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logl(arg___x: u128) -> u128; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NamedTuplestoreScan { + pub scan: Scan, + pub enrname: *mut ::std::os::raw::c_char, } -pub unsafe fn log10l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10l(arg___x: u128) -> u128; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WorkTableScan { + pub scan: Scan, + pub wtParam: ::std::os::raw::c_int, } -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; +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() } - 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) - }) +#[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 expm1l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1l(arg___x: u128) -> u128; +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() } - 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) - }) +#[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 log1pl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1pl(arg___x: u128) -> u128; +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() } - 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) - }) +#[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 __logbl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logbl(arg___x: u128) -> u128; +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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NestLoop { + pub join: Join, + pub nestParams: *mut List, } -pub unsafe fn __exp2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2l(arg___x: u128) -> u128; +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() } - __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) - }) +#[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 __log2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2l(arg___x: u128) -> u128; +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() } - __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) - }) +#[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 __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; +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() } - __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) - }) +#[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 __sqrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrtl(arg___x: u128) -> u128; +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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Material { + pub plan: Plan, } -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; +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() } - __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) - }) +#[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 __cbrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrtl(arg___x: u128) -> u128; +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() } - __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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IncrementalSort { + pub sort: Sort, + pub nPresortedCols: ::std::os::raw::c_int, } -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 IncrementalSort { + 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) - }) +#[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 __fabsl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabsl(arg___x: u128) -> u128; +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() } - __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) - }) +#[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 transitionSpace: uint64, + pub aggParams: *mut Bitmapset, + pub groupingSets: *mut List, + pub chain: *mut List, } -pub unsafe fn __floorl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floorl(arg___x: u128) -> u128; +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() } - __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) - }) +#[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 __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; +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() } - __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) - }) +#[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 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 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() } - 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) - }) +#[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 __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; +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() } - __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) - }) +#[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 __significandl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significandl(arg___x: u128) -> u128; +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() } - __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) - }) +#[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 __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; +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() } - __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) - }) +#[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 __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; +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() } - __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) - }) +#[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 j0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0l(arg_arg1: 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Limit { + pub plan: Plan, + pub limitOffset: *mut Node, + pub limitCount: *mut Node, + pub limitOption: LimitOption, + pub uniqNumCols: ::std::os::raw::c_int, + pub uniqColIdx: *mut AttrNumber, + pub uniqOperators: *mut Oid, + pub uniqCollations: *mut Oid, } -pub unsafe fn j1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1l(arg_arg1: 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() } - 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 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 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; +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() } - 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) - }) +#[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 y0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0l(arg_arg1: 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() } - 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) - }) +#[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 y1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1l(arg_arg1: 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionPruneStep { + pub type_: NodeTag, + pub step_id: ::std::os::raw::c_int, } -pub unsafe fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { +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() + } + } +} +#[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, +} +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() + } + } +} +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, +} +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() + } + } +} +#[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() + } + } +} +#[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_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 ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + 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; } - ynl(arg_arg1, arg_arg2) + dsm_impl_op( + arg_op, + arg_handle, + arg_request_size, + arg_impl_private, + arg_mapped_address, + arg_mapped_size, + arg_elevel, + ) }) } -pub unsafe fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { +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 __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + 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, + ); } - __ynl(arg_arg1, arg_arg2) + dsm_impl_pin_segment(arg_handle, arg_impl_private, arg_impl_private_pm_handle) }) } -pub unsafe fn erfl(arg_arg1: 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 erfl(arg_arg1: u128) -> u128; + fn dsm_impl_unpin_segment( + arg_handle: dsm_handle, + arg_impl_private: *mut *mut ::std::os::raw::c_void, + ); } - erfl(arg_arg1) + dsm_impl_unpin_segment(arg_handle, arg_impl_private) }) } -pub unsafe fn __erfl(arg_arg1: 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 __erfl(arg_arg1: u128) -> u128; + fn dsm_cleanup_using_control_segment(arg_old_control_handle: dsm_handle); } - __erfl(arg_arg1) + dsm_cleanup_using_control_segment(arg_old_control_handle) }) } -pub unsafe fn erfcl(arg_arg1: u128) -> u128 { +pub unsafe fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfcl(arg_arg1: u128) -> u128; + fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader); } - erfcl(arg_arg1) + dsm_postmaster_startup(arg_arg1) }) } -pub unsafe fn __erfcl(arg_arg1: u128) -> u128 { +pub unsafe fn dsm_backend_shutdown() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erfcl(arg_arg1: u128) -> u128; + fn dsm_backend_shutdown(); } - __erfcl(arg_arg1) + dsm_backend_shutdown() }) } -pub unsafe fn lgammal(arg_arg1: u128) -> u128 { +pub unsafe fn dsm_detach_all() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgammal(arg_arg1: u128) -> u128; + fn dsm_detach_all(); } - lgammal(arg_arg1) + dsm_detach_all() }) } -pub unsafe fn __lgammal(arg_arg1: 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 __lgammal(arg_arg1: u128) -> u128; + fn dsm_create(arg_size: Size, arg_flags: ::std::os::raw::c_int) -> *mut dsm_segment; } - __lgammal(arg_arg1) + dsm_create(arg_size, arg_flags) }) } -pub unsafe fn tgammal(arg_arg1: 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 tgammal(arg_arg1: u128) -> u128; + fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment; } - tgammal(arg_arg1) + dsm_attach(arg_h) }) } -pub unsafe fn __tgammal(arg_arg1: u128) -> u128 { +pub unsafe fn dsm_detach(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tgammal(arg_arg1: u128) -> u128; + fn dsm_detach(arg_seg: *mut dsm_segment); } - __tgammal(arg_arg1) + dsm_detach(arg_seg) }) } -pub unsafe fn gammal(arg_arg1: u128) -> u128 { +pub unsafe fn dsm_pin_mapping(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gammal(arg_arg1: u128) -> u128; + fn dsm_pin_mapping(arg_seg: *mut dsm_segment); } - gammal(arg_arg1) + dsm_pin_mapping(arg_seg) }) } -pub unsafe fn __gammal(arg_arg1: u128) -> u128 { +pub unsafe fn dsm_unpin_mapping(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __gammal(arg_arg1: u128) -> u128; + fn dsm_unpin_mapping(arg_seg: *mut dsm_segment); } - __gammal(arg_arg1) + dsm_unpin_mapping(arg_seg) }) } -pub unsafe fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn dsm_pin_segment(arg_seg: *mut dsm_segment) { 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 dsm_pin_segment(arg_seg: *mut dsm_segment); } - lgammal_r(arg_arg1, arg___signgamp) + dsm_pin_segment(arg_seg) }) } -pub unsafe fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn dsm_unpin_segment(arg_h: dsm_handle) { 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 dsm_unpin_segment(arg_h: dsm_handle); } - __lgammal_r(arg_arg1, arg___signgamp) + dsm_unpin_segment(arg_h) }) } -pub unsafe fn rintl(arg___x: u128) -> u128 { +pub unsafe fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rintl(arg___x: u128) -> u128; + fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment; } - rintl(arg___x) + dsm_find_mapping(arg_h) }) } -pub unsafe fn __rintl(arg___x: u128) -> u128 { +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 __rintl(arg___x: u128) -> u128; + fn dsm_segment_address(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void; } - __rintl(arg___x) + dsm_segment_address(arg_seg) }) } -pub unsafe fn nextafterl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size; } - nextafterl(arg___x, arg___y) + dsm_segment_map_length(arg_seg) }) } -pub unsafe fn __nextafterl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle; } - __nextafterl(arg___x, arg___y) + dsm_segment_handle(arg_seg) }) } -pub unsafe fn nexttowardl(arg___x: u128, arg___y: u128) -> u128 { +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 nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, + ); } - nexttowardl(arg___x, arg___y) + on_dsm_detach(arg_seg, arg_function, arg_arg) }) } -pub unsafe fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128 { +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 __nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn cancel_on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, + ); } - __nexttowardl(arg___x, arg___y) + cancel_on_dsm_detach(arg_seg, arg_function, arg_arg) }) } -pub unsafe fn remainderl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn reset_on_dsm_detach() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remainderl(arg___x: u128, arg___y: u128) -> u128; + fn reset_on_dsm_detach(); } - remainderl(arg___x, arg___y) + reset_on_dsm_detach() }) } -pub unsafe fn __remainderl(arg___x: u128, arg___y: u128) -> u128 { +#[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_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __remainderl(arg___x: u128, arg___y: u128) -> u128; + fn dsa_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area; } - __remainderl(arg___x, arg___y) + dsa_create(arg_tranche_id) }) } -pub unsafe fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +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 scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; + 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; } - scalbnl(arg___x, arg___n) + dsa_create_in_place(arg_place, arg_size, arg_tranche_id, arg_segment) }) } -pub unsafe fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +pub unsafe fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; + fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area; } - __scalbnl(arg___x, arg___n) + dsa_attach(arg_handle) }) } -pub unsafe fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int { +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 ilogbl(arg___x: u128) -> ::std::os::raw::c_int; + fn dsa_attach_in_place( + arg_place: *mut ::std::os::raw::c_void, + arg_segment: *mut dsm_segment, + ) -> *mut dsa_area; } - ilogbl(arg___x) + dsa_attach_in_place(arg_place, arg_segment) }) } -pub unsafe fn __ilogbl(arg___x: u128) -> ::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 __ilogbl(arg___x: u128) -> ::std::os::raw::c_int; + fn dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void); } - __ilogbl(arg___x) + dsa_release_in_place(arg_place) }) } -pub unsafe fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { +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 scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; + fn dsa_on_dsm_detach_release_in_place(arg_arg1: *mut dsm_segment, arg_arg2: Datum); } - scalblnl(arg___x, arg___n) + dsa_on_dsm_detach_release_in_place(arg_arg1, arg_arg2) }) } -pub unsafe fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { +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 __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; + fn dsa_on_shmem_exit_release_in_place(arg_arg1: ::std::os::raw::c_int, arg_arg2: Datum); } - __scalblnl(arg___x, arg___n) + dsa_on_shmem_exit_release_in_place(arg_arg1, arg_arg2) }) } -pub unsafe fn nearbyintl(arg___x: u128) -> u128 { +pub unsafe fn dsa_pin_mapping(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nearbyintl(arg___x: u128) -> u128; + fn dsa_pin_mapping(arg_area: *mut dsa_area); } - nearbyintl(arg___x) + dsa_pin_mapping(arg_area) }) } -pub unsafe fn __nearbyintl(arg___x: u128) -> u128 { +pub unsafe fn dsa_detach(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nearbyintl(arg___x: u128) -> u128; + fn dsa_detach(arg_area: *mut dsa_area); } - __nearbyintl(arg___x) + dsa_detach(arg_area) }) } -pub unsafe fn roundl(arg___x: u128) -> u128 { +pub unsafe fn dsa_pin(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn roundl(arg___x: u128) -> u128; + fn dsa_pin(arg_area: *mut dsa_area); } - roundl(arg___x) + dsa_pin(arg_area) }) } -pub unsafe fn __roundl(arg___x: u128) -> u128 { +pub unsafe fn dsa_unpin(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __roundl(arg___x: u128) -> u128; + fn dsa_unpin(arg_area: *mut dsa_area); } - __roundl(arg___x) + dsa_unpin(arg_area) }) } -pub unsafe fn truncl(arg___x: u128) -> u128 { +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 truncl(arg___x: u128) -> u128; + fn dsa_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize); } - truncl(arg___x) + dsa_set_size_limit(arg_area, arg_limit) }) } -pub unsafe fn __truncl(arg___x: u128) -> u128 { +pub unsafe fn dsa_minimum_size() -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __truncl(arg___x: u128) -> u128; + fn dsa_minimum_size() -> usize; } - __truncl(arg___x) + dsa_minimum_size() }) } -pub unsafe fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle { 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 dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle; } - remquol(arg___x, arg___y, arg___quo) + dsa_get_handle(arg_area) }) } -pub unsafe fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, -) -> u128 { +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 __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, - ) -> u128; + fn dsa_allocate_extended( + arg_area: *mut dsa_area, + arg_size: usize, + arg_flags: ::std::os::raw::c_int, + ) -> dsa_pointer; } - __remquol(arg___x, arg___y, arg___quo) + dsa_allocate_extended(arg_area, arg_size, arg_flags) }) } -pub unsafe fn lrintl(arg___x: u128) -> ::std::os::raw::c_long { +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 lrintl(arg___x: u128) -> ::std::os::raw::c_long; + fn dsa_free(arg_area: *mut dsa_area, arg_dp: dsa_pointer); } - lrintl(arg___x) + dsa_free(arg_area, arg_dp) }) } -pub unsafe fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long { +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 __lrintl(arg___x: u128) -> ::std::os::raw::c_long; + fn dsa_get_address( + arg_area: *mut dsa_area, + arg_dp: dsa_pointer, + ) -> *mut ::std::os::raw::c_void; } - __lrintl(arg___x) + dsa_get_address(arg_area, arg_dp) }) } -pub unsafe fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn dsa_trim(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn dsa_trim(arg_area: *mut dsa_area); } - llrintl(arg___x) + dsa_trim(arg_area) }) } -pub unsafe fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn dsa_dump(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn dsa_dump(arg_area: *mut dsa_area); } - __llrintl(arg___x) + dsa_dump(arg_area) }) } -pub unsafe fn lroundl(arg___x: u128) -> ::std::os::raw::c_long { +#[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 lroundl(arg___x: u128) -> ::std::os::raw::c_long; + fn tbm_create( + arg_maxbytes: ::std::os::raw::c_long, + arg_dsa: *mut dsa_area, + ) -> *mut TIDBitmap; } - lroundl(arg___x) + tbm_create(arg_maxbytes, arg_dsa) }) } -pub unsafe fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn tbm_free(arg_tbm: *mut TIDBitmap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long; + fn tbm_free(arg_tbm: *mut TIDBitmap); } - __lroundl(arg___x) + tbm_free(arg_tbm) }) } -pub unsafe fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { +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 llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn tbm_free_shared_area(arg_dsa: *mut dsa_area, arg_dp: dsa_pointer); } - llroundl(arg___x) + tbm_free_shared_area(arg_dsa, arg_dp) }) } -pub unsafe fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { +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 __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn tbm_add_tuples( + arg_tbm: *mut TIDBitmap, + arg_tids: ItemPointer, + arg_ntids: ::std::os::raw::c_int, + arg_recheck: bool, + ); } - __llroundl(arg___x) + tbm_add_tuples(arg_tbm, arg_tids, arg_ntids, arg_recheck) }) } -pub unsafe fn fdiml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdiml(arg___x: u128, arg___y: u128) -> u128; + fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber); } - fdiml(arg___x, arg___y) + tbm_add_page(arg_tbm, arg_pageno) }) } -pub unsafe fn __fdiml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fdiml(arg___x: u128, arg___y: u128) -> u128; + fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); } - __fdiml(arg___x, arg___y) + tbm_union(arg_a, arg_b) }) } -pub unsafe fn fmaxl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmaxl(arg___x: u128, arg___y: u128) -> u128; + fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); } - fmaxl(arg___x, arg___y) + tbm_intersect(arg_a, arg_b) }) } -pub unsafe fn __fmaxl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmaxl(arg___x: u128, arg___y: u128) -> u128; + fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool; } - __fmaxl(arg___x, arg___y) + tbm_is_empty(arg_tbm) }) } -pub unsafe fn fminl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fminl(arg___x: u128, arg___y: u128) -> u128; + fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator; } - fminl(arg___x, arg___y) + tbm_begin_iterate(arg_tbm) }) } -pub unsafe fn __fminl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn tbm_prepare_shared_iterate(arg_tbm: *mut TIDBitmap) -> dsa_pointer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fminl(arg___x: u128, arg___y: u128) -> u128; + fn tbm_prepare_shared_iterate(arg_tbm: *mut TIDBitmap) -> dsa_pointer; } - __fminl(arg___x, arg___y) + tbm_prepare_shared_iterate(arg_tbm) }) } -pub unsafe fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { +pub unsafe fn tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; + fn tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult; } - fmal(arg___x, arg___y, arg___z) + tbm_iterate(arg_iterator) }) } -pub unsafe fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { +pub unsafe fn tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; + fn tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult; } - __fmal(arg___x, arg___y, arg___z) + tbm_shared_iterate(arg_iterator) }) } -pub unsafe fn scalbl(arg___x: u128, arg___n: u128) -> u128 { +pub unsafe fn tbm_end_iterate(arg_iterator: *mut TBMIterator) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbl(arg___x: u128, arg___n: u128) -> u128; + fn tbm_end_iterate(arg_iterator: *mut TBMIterator); } - scalbl(arg___x, arg___n) + tbm_end_iterate(arg_iterator) }) } -pub unsafe fn __scalbl(arg___x: u128, arg___n: u128) -> u128 { +pub unsafe fn tbm_end_shared_iterate(arg_iterator: *mut TBMSharedIterator) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbl(arg___x: u128, arg___n: u128) -> u128; + fn tbm_end_shared_iterate(arg_iterator: *mut TBMSharedIterator); } - __scalbl(arg___x, arg___n) + tbm_end_shared_iterate(arg_iterator) }) } -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 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 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 tbm_attach_shared_iterate( + arg_dsa: *mut dsa_area, + arg_dp: dsa_pointer, + ) -> *mut TBMSharedIterator; } - strlcat(arg_dst, arg_src, arg_siz) + tbm_attach_shared_iterate(arg_dsa, arg_dp) }) } -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 tbm_calculate_entries(arg_maxbytes: f64) -> ::std::os::raw::c_long { 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 tbm_calculate_entries(arg_maxbytes: f64) -> ::std::os::raw::c_long; } - strlcpy(arg_dst, arg_src, arg_siz) + tbm_calculate_entries(arg_maxbytes) }) } -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, +#[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 PartitionKeyData { + _unused: [u8; 0], +} +pub type PartitionKey = *mut PartitionKeyData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionDescData { + _unused: [u8; 0], +} +pub type PartitionDesc = *mut PartitionDescData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionDirectoryData { + _unused: [u8; 0], +} +pub type PartitionDirectory = *mut PartitionDirectoryData; +#[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, +} +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 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, + 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; } - pqGetpwuid(arg_uid, arg_resultbuf, arg_buffer, arg_buflen, arg_result) + s_lock(arg_lock, arg_file, arg_line, arg_func) }) } -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, +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 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, + fn update_spins_per_delay( + arg_shared_spins_per_delay: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - pqGethostbyname( - arg_name, - arg_resultbuf, - arg_buffer, - arg_buflen, - arg_result, - arg_herrno, - ) + update_spins_per_delay(arg_shared_spins_per_delay) }) } -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) - }) +#[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 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; +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() } - 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, -) { +pub unsafe fn perform_spin_delay(arg_status: *mut SpinDelayStatus) { 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 perform_spin_delay(arg_status: *mut SpinDelayStatus); } - qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) + perform_spin_delay(arg_status) }) } -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 finish_spin_delay(arg_status: *mut SpinDelayStatus) { 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 finish_spin_delay(arg_status: *mut SpinDelayStatus); } - pg_get_encoding_from_locale(arg_ctype, arg_write_message) + finish_spin_delay(arg_status) }) } -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) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct ConditionVariable { + pub mutex: slock_t, + pub wakeup: proclist_head, } -pub unsafe fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool { +pub unsafe fn ConditionVariableInit(arg_cv: *mut ConditionVariable) { 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 ConditionVariableInit(arg_cv: *mut ConditionVariable); } - pg_strong_random(arg_buf, arg_len) + ConditionVariableInit(arg_cv) }) } -pub unsafe fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn ConditionVariableSleep(arg_cv: *mut ConditionVariable, arg_wait_event_info: uint32) { 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 ConditionVariableSleep(arg_cv: *mut ConditionVariable, arg_wait_event_info: uint32); } - pg_check_dir(arg_dir) + ConditionVariableSleep(arg_cv, arg_wait_event_info) }) } -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 ConditionVariableTimedSleep( + arg_cv: *mut ConditionVariable, + arg_timeout: ::std::os::raw::c_long, + arg_wait_event_info: uint32, +) -> bool { 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 ConditionVariableTimedSleep( + arg_cv: *mut ConditionVariable, + arg_timeout: ::std::os::raw::c_long, + arg_wait_event_info: uint32, + ) -> bool; } - pg_mkdir_p(arg_path, arg_omode) + ConditionVariableTimedSleep(arg_cv, arg_timeout, arg_wait_event_info) }) } -pub type pqsigfunc = ::std::option::Option; -pub unsafe fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc { +pub unsafe fn ConditionVariableCancelSleep() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc; + fn ConditionVariableCancelSleep(); } - pqsignal(arg_signo, arg_func) + ConditionVariableCancelSleep() }) } -pub unsafe fn escape_single_quotes_ascii( - arg_src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn ConditionVariablePrepareToSleep(arg_cv: *mut ConditionVariable) { 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 ConditionVariablePrepareToSleep(arg_cv: *mut ConditionVariable); } - escape_single_quotes_ascii(arg_src) + ConditionVariablePrepareToSleep(arg_cv) }) } -pub unsafe fn wait_result_to_str( - arg_exit_status: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn ConditionVariableSignal(arg_cv: *mut ConditionVariable) { 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 ConditionVariableSignal(arg_cv: *mut ConditionVariable); } - wait_result_to_str(arg_exit_status) + ConditionVariableSignal(arg_cv) }) } -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 ConditionVariableBroadcast(arg_cv: *mut ConditionVariable) { 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 ConditionVariableBroadcast(arg_cv: *mut ConditionVariable); } - wait_result_is_signal(arg_exit_status, arg_signum) + ConditionVariableBroadcast(arg_cv) }) } -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; +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() } - 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, +#[derive(Debug, Copy, Clone)] +pub struct HASHHDR { + _unused: [u8; 0], } -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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HTAB { + _unused: [u8; 0], } -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) - }) +#[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 _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; +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() } - _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 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 _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); +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() } - _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 { +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 errstart( - arg_elevel: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, - ) -> bool; + 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; } - errstart(arg_elevel, arg_domain) + hash_create(arg_tabname, arg_nelem, arg_info, arg_flags) }) } -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, -) { +pub unsafe fn hash_destroy(arg_hashp: *mut HTAB) { 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, - ); + fn hash_destroy(arg_hashp: *mut HTAB); } - errfinish(arg_filename, arg_lineno, arg_funcname) + hash_destroy(arg_hashp) }) } -pub unsafe fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +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 errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB); } - errcode(arg_sqlerrcode) + hash_stats(arg_where_, arg_hashp) }) } -pub unsafe fn errcode_for_file_access() -> ::std::os::raw::c_int { +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 errcode_for_file_access() -> ::std::os::raw::c_int; + 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; } - errcode_for_file_access() + hash_search(arg_hashp, arg_keyPtr, arg_action, arg_foundPtr) }) } -pub unsafe fn errcode_for_socket_access() -> ::std::os::raw::c_int { +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 errcode_for_socket_access() -> ::std::os::raw::c_int; + fn get_hash_value( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + ) -> uint32; } - errcode_for_socket_access() + get_hash_value(arg_hashp, arg_keyPtr) }) } -pub unsafe fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +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 errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + 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; } - errmsg(arg_fmt) + hash_search_with_hash_value(arg_hashp, arg_keyPtr, arg_hashvalue, arg_action, arg_foundPtr) }) } -pub unsafe fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +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 errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + 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; } - errmsg_internal(arg_fmt) + hash_update_hash_key(arg_hashp, arg_existingEntry, arg_newKeyPtr) }) } -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 hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long { 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 hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long; } - errmsg_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + hash_get_num_entries(arg_hashp) }) } -pub unsafe fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +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 errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB); } - errdetail(arg_fmt) + hash_seq_init(arg_status, arg_hashp) }) } -pub unsafe fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +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 errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void; } - errdetail_internal(arg_fmt) + hash_seq_search(arg_status) }) } -pub unsafe fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::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 errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS); } - errdetail_log(arg_fmt) + hash_seq_term(arg_status) }) } -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 hash_freeze(arg_hashp: *mut HTAB) { 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 hash_freeze(arg_hashp: *mut HTAB); } - errdetail_log_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + hash_freeze(arg_hashp) }) } -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 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 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 hash_estimate_size( + arg_num_entries: ::std::os::raw::c_long, + arg_entrysize: Size, + ) -> Size; } - errdetail_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + hash_estimate_size(arg_num_entries, arg_entrysize) }) } -pub unsafe fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +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 errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn hash_select_dirsize( + arg_num_entries: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; } - errhint(arg_fmt) + hash_select_dirsize(arg_num_entries) }) } -pub unsafe fn set_errcontext_domain( - arg_domain: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +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 set_errcontext_domain( - arg_domain: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn hash_get_shared_size( + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, + ) -> Size; } - set_errcontext_domain(arg_domain) + hash_get_shared_size(arg_info, arg_flags) }) } -pub unsafe fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn AtEOXact_HashTables(arg_isCommit: 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 AtEOXact_HashTables(arg_isCommit: bool); } - errcontext_msg(arg_fmt) + AtEOXact_HashTables(arg_isCommit) }) } -pub unsafe fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int { +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 errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int; + fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); } - errhidestmt(arg_hide_stmt) + AtEOSubXact_HashTables(arg_isCommit, arg_nestDepth) }) } -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 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 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; +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() } - 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 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 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; +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() } - 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 type EphemeralNamedRelation = *mut EphemeralNamedRelationData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct QueryEnvironment { + _unused: [u8; 0], } -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 create_queryEnv() -> *mut QueryEnvironment { 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 create_queryEnv() -> *mut QueryEnvironment; } - err_generic_string(arg_field, arg_str_) + create_queryEnv() }) } -pub unsafe fn geterrcode() -> ::std::os::raw::c_int { +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 geterrcode() -> ::std::os::raw::c_int; + fn get_visible_ENR_metadata( + arg_queryEnv: *mut QueryEnvironment, + arg_refname: *const ::std::os::raw::c_char, + ) -> EphemeralNamedRelationMetadata; } - geterrcode() + get_visible_ENR_metadata(arg_queryEnv, arg_refname) }) } -pub unsafe fn geterrposition() -> ::std::os::raw::c_int { +pub unsafe fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn geterrposition() -> ::std::os::raw::c_int; + fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation); } - geterrposition() + register_ENR(arg_queryEnv, arg_enr) }) } -pub unsafe fn getinternalerrposition() -> ::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 getinternalerrposition() -> ::std::os::raw::c_int; + fn unregister_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, + ); } - getinternalerrposition() + unregister_ENR(arg_queryEnv, arg_name) }) } -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 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 pre_format_elog_string( - arg_errnumber: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, - ); + fn get_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, + ) -> EphemeralNamedRelation; } - pre_format_elog_string(arg_errnumber, arg_domain) + get_ENR(arg_queryEnv, arg_name) }) } -pub unsafe fn format_elog_string( - arg_fmt: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc { 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 ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; } - format_elog_string(arg_fmt) + ENRMetadataGetTupDesc(arg_enrmd) }) } #[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 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 tgisclone: 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 ErrorContextCallback { +impl Default for Trigger { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -14593,46 +13058,52 @@ impl Default for ErrorContextCallback { } } } -extern "C" { - pub static mut error_context_stack: *mut ErrorContextCallback; +#[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, } -extern "C" { - pub static mut PG_exception_stack: *mut sigjmp_buf; +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() + } + } } #[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, +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 ErrorData { +impl Default for dirent { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -14641,1863 +13112,1417 @@ impl Default for ErrorData { } } } -pub unsafe fn EmitErrorReport() { +#[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; +} +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 EmitErrorReport(); + fn PathNameOpenFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + ) -> File; } - EmitErrorReport() + PathNameOpenFile(arg_fileName, arg_fileFlags) }) } -pub unsafe fn CopyErrorData() -> *mut ErrorData { +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 CopyErrorData() -> *mut ErrorData; + fn PathNameOpenFilePerm( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: mode_t, + ) -> File; } - CopyErrorData() + PathNameOpenFilePerm(arg_fileName, arg_fileFlags, arg_fileMode) }) } -pub unsafe fn FreeErrorData(arg_edata: *mut ErrorData) { +pub unsafe fn OpenTemporaryFile(arg_interXact: bool) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeErrorData(arg_edata: *mut ErrorData); + fn OpenTemporaryFile(arg_interXact: bool) -> File; } - FreeErrorData(arg_edata) + OpenTemporaryFile(arg_interXact) }) } -pub unsafe fn FlushErrorState() { +pub unsafe fn FileClose(arg_file: File) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FlushErrorState(); + fn FileClose(arg_file: File); } - FlushErrorState() + FileClose(arg_file) }) } -pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { +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 ReThrowError(arg_edata: *mut ErrorData); + 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; } - ReThrowError(arg_edata) + FilePrefetch(arg_file, arg_offset, arg_amount, arg_wait_event_info) }) } -pub unsafe fn ThrowErrorData(arg_edata: *mut ErrorData) { +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 ThrowErrorData(arg_edata: *mut ErrorData); + 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; } - ThrowErrorData(arg_edata) + FileRead(arg_file, arg_buffer, arg_amount, arg_offset, arg_wait_event_info) }) } -pub unsafe fn GetErrorContextStack() -> *mut ::std::os::raw::c_char { +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 GetErrorContextStack() -> *mut ::std::os::raw::c_char; + 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; } - GetErrorContextStack() + FileWrite(arg_file, arg_buffer, arg_amount, arg_offset, arg_wait_event_info) }) } -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 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 DebugFileOpen(); + fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int; } - DebugFileOpen() + FileSync(arg_file, arg_wait_event_info) }) } -pub unsafe fn unpack_sql_state( - arg_sql_state: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn FileSize(arg_file: File) -> off_t { 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 FileSize(arg_file: File) -> off_t; } - unpack_sql_state(arg_sql_state) + FileSize(arg_file) }) } -pub unsafe fn in_error_recursion_trouble() -> bool { +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 in_error_recursion_trouble() -> bool; + fn FileTruncate( + arg_file: File, + arg_offset: off_t, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - in_error_recursion_trouble() + FileTruncate(arg_file, arg_offset, arg_wait_event_info) }) } -pub unsafe fn set_syslog_parameters( - arg_ident: *const ::std::os::raw::c_char, - arg_facility: ::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 set_syslog_parameters( - arg_ident: *const ::std::os::raw::c_char, - arg_facility: ::std::os::raw::c_int, + fn FileWriteback( + arg_file: File, + arg_offset: off_t, + arg_nbytes: off_t, + arg_wait_event_info: uint32, ); } - set_syslog_parameters(arg_ident, arg_facility) + FileWriteback(arg_file, arg_offset, arg_nbytes, arg_wait_event_info) }) } -pub unsafe fn write_stderr(arg_fmt: *const ::std::os::raw::c_char) { +pub unsafe fn FilePathName(arg_file: File) -> *mut ::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); + fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char; } - write_stderr(arg_fmt) + FilePathName(arg_file) }) } -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 FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int { 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 FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int; } - MemoryContextAlloc(arg_context, arg_size) + FileGetRawDesc(arg_file) }) } -pub unsafe fn MemoryContextAllocZero( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int { 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 FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int; } - MemoryContextAllocZero(arg_context, arg_size) + FileGetRawFlags(arg_file) }) } -pub unsafe fn MemoryContextAllocZeroAligned( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn FileGetRawMode(arg_file: File) -> mode_t { 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 FileGetRawMode(arg_file: File) -> mode_t; } - MemoryContextAllocZeroAligned(arg_context, arg_size) + FileGetRawMode(arg_file) }) } -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 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 MemoryContextAllocExtended( - arg_context: MemoryContext, - arg_size: Size, - arg_flags: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + fn PathNameCreateTemporaryFile( + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, + ) -> File; } - MemoryContextAllocExtended(arg_context, arg_size, arg_flags) + PathNameCreateTemporaryFile(arg_name, arg_error_on_failure) }) } -pub unsafe fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void { +pub unsafe fn PathNameOpenTemporaryFile(arg_name: *const ::std::os::raw::c_char) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn PathNameOpenTemporaryFile(arg_name: *const ::std::os::raw::c_char) -> File; } - palloc(arg_size) + PathNameOpenTemporaryFile(arg_name) }) } -pub unsafe fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void { +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 palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn PathNameDeleteTemporaryFile( + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, + ) -> bool; } - palloc0(arg_size) + PathNameDeleteTemporaryFile(arg_name, arg_error_on_failure) }) } -pub unsafe fn palloc_extended( - arg_size: Size, - arg_flags: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { +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 palloc_extended( - arg_size: Size, - arg_flags: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + fn PathNameCreateTemporaryDir( + arg_base: *const ::std::os::raw::c_char, + arg_name: *const ::std::os::raw::c_char, + ); } - palloc_extended(arg_size, arg_flags) + PathNameCreateTemporaryDir(arg_base, arg_name) }) } -pub unsafe fn repalloc( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn PathNameDeleteTemporaryDir(arg_name: *const ::std::os::raw::c_char) { 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 PathNameDeleteTemporaryDir(arg_name: *const ::std::os::raw::c_char); } - repalloc(arg_pointer, arg_size) + PathNameDeleteTemporaryDir(arg_name) }) } -pub unsafe fn pfree(arg_pointer: *mut ::std::os::raw::c_void) { +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 pfree(arg_pointer: *mut ::std::os::raw::c_void); + fn TempTablespacePath(arg_path: *mut ::std::os::raw::c_char, arg_tablespace: Oid); } - pfree(arg_pointer) + TempTablespacePath(arg_path, arg_tablespace) }) } -pub unsafe fn MemoryContextAllocHuge( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +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 MemoryContextAllocHuge( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn AllocateFile( + arg_name: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; } - MemoryContextAllocHuge(arg_context, arg_size) + AllocateFile(arg_name, arg_mode) }) } -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 FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int { 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 FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int; } - repalloc_huge(arg_pointer, arg_size) + FreeFile(arg_file) }) } -pub unsafe fn MemoryContextRegisterResetCallback( - arg_context: MemoryContext, - arg_cb: *mut MemoryContextCallback, -) { +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 MemoryContextRegisterResetCallback( - arg_context: MemoryContext, - arg_cb: *mut MemoryContextCallback, - ); + fn OpenPipeStream( + arg_command: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; } - MemoryContextRegisterResetCallback(arg_context, arg_cb) + OpenPipeStream(arg_command, arg_mode) }) } -pub unsafe fn MemoryContextStrdup( - arg_context: MemoryContext, - arg_string: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int { 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 ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int; } - MemoryContextStrdup(arg_context, arg_string) + ClosePipeStream(arg_file) }) } -pub unsafe fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +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 pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR; } - pstrdup(arg_in_) + AllocateDir(arg_dirname) }) } -pub unsafe fn pnstrdup( - arg_in_: *const ::std::os::raw::c_char, - arg_len: Size, -) -> *mut ::std::os::raw::c_char { +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 pnstrdup( - arg_in_: *const ::std::os::raw::c_char, - arg_len: Size, - ) -> *mut ::std::os::raw::c_char; + fn ReadDir( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, + ) -> *mut dirent; } - pnstrdup(arg_in_, arg_len) + ReadDir(arg_dir, arg_dirname) }) } -pub unsafe fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +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 pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn ReadDirExtended( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, + arg_elevel: ::std::os::raw::c_int, + ) -> *mut dirent; } - pchomp(arg_in_) + ReadDirExtended(arg_dir, arg_dirname, arg_elevel) }) } -pub unsafe fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn FreeDir(arg_dir: *mut DIR) -> ::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 FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int; } - psprintf(arg_fmt) + FreeDir(arg_dir) }) } -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 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 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 OpenTransientFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - pvsnprintf(arg_buf, arg_len, arg_fmt, arg_args) + OpenTransientFile(arg_fileName, arg_fileFlags) }) } -#[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 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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct varatt_indirect { - pub pointer: *mut varlena, +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 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() +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) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct varatt_expanded { - pub eohptr: *mut ExpandedObjectHeader, +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) + }) } -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 unsafe fn AcquireExternalFD() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AcquireExternalFD() -> bool; } - } + AcquireExternalFD() + }) } -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 ReserveExternalFD() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ReserveExternalFD(); + } + ReserveExternalFD() + }) } -#[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 ReleaseExternalFD() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ReleaseExternalFD(); + } + ReleaseExternalFD() + }) } -#[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 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) + }) } -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 InitFileAccess() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn InitFileAccess(); } - } + InitFileAccess() + }) } -#[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 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, 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 closeAllVfds() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn closeAllVfds(); + } + closeAllVfds() + }) } -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 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) + }) } -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 TempTablespacesAreSet() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TempTablespacesAreSet() -> bool; } - } + TempTablespacesAreSet() + }) } -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_IncrementalSort: NodeTag = 41; -pub const NodeTag_T_Group: NodeTag = 42; -pub const NodeTag_T_Agg: NodeTag = 43; -pub const NodeTag_T_WindowAgg: NodeTag = 44; -pub const NodeTag_T_Unique: NodeTag = 45; -pub const NodeTag_T_Gather: NodeTag = 46; -pub const NodeTag_T_GatherMerge: NodeTag = 47; -pub const NodeTag_T_Hash: NodeTag = 48; -pub const NodeTag_T_SetOp: NodeTag = 49; -pub const NodeTag_T_LockRows: NodeTag = 50; -pub const NodeTag_T_Limit: NodeTag = 51; -pub const NodeTag_T_NestLoopParam: NodeTag = 52; -pub const NodeTag_T_PlanRowMark: NodeTag = 53; -pub const NodeTag_T_PartitionPruneInfo: NodeTag = 54; -pub const NodeTag_T_PartitionedRelPruneInfo: NodeTag = 55; -pub const NodeTag_T_PartitionPruneStepOp: NodeTag = 56; -pub const NodeTag_T_PartitionPruneStepCombine: NodeTag = 57; -pub const NodeTag_T_PlanInvalItem: NodeTag = 58; -pub const NodeTag_T_PlanState: NodeTag = 59; -pub const NodeTag_T_ResultState: NodeTag = 60; -pub const NodeTag_T_ProjectSetState: NodeTag = 61; -pub const NodeTag_T_ModifyTableState: NodeTag = 62; -pub const NodeTag_T_AppendState: NodeTag = 63; -pub const NodeTag_T_MergeAppendState: NodeTag = 64; -pub const NodeTag_T_RecursiveUnionState: NodeTag = 65; -pub const NodeTag_T_BitmapAndState: NodeTag = 66; -pub const NodeTag_T_BitmapOrState: NodeTag = 67; -pub const NodeTag_T_ScanState: NodeTag = 68; -pub const NodeTag_T_SeqScanState: NodeTag = 69; -pub const NodeTag_T_SampleScanState: NodeTag = 70; -pub const NodeTag_T_IndexScanState: NodeTag = 71; -pub const NodeTag_T_IndexOnlyScanState: NodeTag = 72; -pub const NodeTag_T_BitmapIndexScanState: NodeTag = 73; -pub const NodeTag_T_BitmapHeapScanState: NodeTag = 74; -pub const NodeTag_T_TidScanState: NodeTag = 75; -pub const NodeTag_T_SubqueryScanState: NodeTag = 76; -pub const NodeTag_T_FunctionScanState: NodeTag = 77; -pub const NodeTag_T_TableFuncScanState: NodeTag = 78; -pub const NodeTag_T_ValuesScanState: NodeTag = 79; -pub const NodeTag_T_CteScanState: NodeTag = 80; -pub const NodeTag_T_NamedTuplestoreScanState: NodeTag = 81; -pub const NodeTag_T_WorkTableScanState: NodeTag = 82; -pub const NodeTag_T_ForeignScanState: NodeTag = 83; -pub const NodeTag_T_CustomScanState: NodeTag = 84; -pub const NodeTag_T_JoinState: NodeTag = 85; -pub const NodeTag_T_NestLoopState: NodeTag = 86; -pub const NodeTag_T_MergeJoinState: NodeTag = 87; -pub const NodeTag_T_HashJoinState: NodeTag = 88; -pub const NodeTag_T_MaterialState: NodeTag = 89; -pub const NodeTag_T_SortState: NodeTag = 90; -pub const NodeTag_T_IncrementalSortState: NodeTag = 91; -pub const NodeTag_T_GroupState: NodeTag = 92; -pub const NodeTag_T_AggState: NodeTag = 93; -pub const NodeTag_T_WindowAggState: NodeTag = 94; -pub const NodeTag_T_UniqueState: NodeTag = 95; -pub const NodeTag_T_GatherState: NodeTag = 96; -pub const NodeTag_T_GatherMergeState: NodeTag = 97; -pub const NodeTag_T_HashState: NodeTag = 98; -pub const NodeTag_T_SetOpState: NodeTag = 99; -pub const NodeTag_T_LockRowsState: NodeTag = 100; -pub const NodeTag_T_LimitState: NodeTag = 101; -pub const NodeTag_T_Alias: NodeTag = 102; -pub const NodeTag_T_RangeVar: NodeTag = 103; -pub const NodeTag_T_TableFunc: NodeTag = 104; -pub const NodeTag_T_Expr: NodeTag = 105; -pub const NodeTag_T_Var: NodeTag = 106; -pub const NodeTag_T_Const: NodeTag = 107; -pub const NodeTag_T_Param: NodeTag = 108; -pub const NodeTag_T_Aggref: NodeTag = 109; -pub const NodeTag_T_GroupingFunc: NodeTag = 110; -pub const NodeTag_T_WindowFunc: NodeTag = 111; -pub const NodeTag_T_SubscriptingRef: NodeTag = 112; -pub const NodeTag_T_FuncExpr: NodeTag = 113; -pub const NodeTag_T_NamedArgExpr: NodeTag = 114; -pub const NodeTag_T_OpExpr: NodeTag = 115; -pub const NodeTag_T_DistinctExpr: NodeTag = 116; -pub const NodeTag_T_NullIfExpr: NodeTag = 117; -pub const NodeTag_T_ScalarArrayOpExpr: NodeTag = 118; -pub const NodeTag_T_BoolExpr: NodeTag = 119; -pub const NodeTag_T_SubLink: NodeTag = 120; -pub const NodeTag_T_SubPlan: NodeTag = 121; -pub const NodeTag_T_AlternativeSubPlan: NodeTag = 122; -pub const NodeTag_T_FieldSelect: NodeTag = 123; -pub const NodeTag_T_FieldStore: NodeTag = 124; -pub const NodeTag_T_RelabelType: NodeTag = 125; -pub const NodeTag_T_CoerceViaIO: NodeTag = 126; -pub const NodeTag_T_ArrayCoerceExpr: NodeTag = 127; -pub const NodeTag_T_ConvertRowtypeExpr: NodeTag = 128; -pub const NodeTag_T_CollateExpr: NodeTag = 129; -pub const NodeTag_T_CaseExpr: NodeTag = 130; -pub const NodeTag_T_CaseWhen: NodeTag = 131; -pub const NodeTag_T_CaseTestExpr: NodeTag = 132; -pub const NodeTag_T_ArrayExpr: NodeTag = 133; -pub const NodeTag_T_RowExpr: NodeTag = 134; -pub const NodeTag_T_RowCompareExpr: NodeTag = 135; -pub const NodeTag_T_CoalesceExpr: NodeTag = 136; -pub const NodeTag_T_MinMaxExpr: NodeTag = 137; -pub const NodeTag_T_SQLValueFunction: NodeTag = 138; -pub const NodeTag_T_XmlExpr: NodeTag = 139; -pub const NodeTag_T_NullTest: NodeTag = 140; -pub const NodeTag_T_BooleanTest: NodeTag = 141; -pub const NodeTag_T_CoerceToDomain: NodeTag = 142; -pub const NodeTag_T_CoerceToDomainValue: NodeTag = 143; -pub const NodeTag_T_SetToDefault: NodeTag = 144; -pub const NodeTag_T_CurrentOfExpr: NodeTag = 145; -pub const NodeTag_T_NextValueExpr: NodeTag = 146; -pub const NodeTag_T_InferenceElem: NodeTag = 147; -pub const NodeTag_T_TargetEntry: NodeTag = 148; -pub const NodeTag_T_RangeTblRef: NodeTag = 149; -pub const NodeTag_T_JoinExpr: NodeTag = 150; -pub const NodeTag_T_FromExpr: NodeTag = 151; -pub const NodeTag_T_OnConflictExpr: NodeTag = 152; -pub const NodeTag_T_IntoClause: NodeTag = 153; -pub const NodeTag_T_ExprState: NodeTag = 154; -pub const NodeTag_T_AggrefExprState: NodeTag = 155; -pub const NodeTag_T_WindowFuncExprState: NodeTag = 156; -pub const NodeTag_T_SetExprState: NodeTag = 157; -pub const NodeTag_T_SubPlanState: NodeTag = 158; -pub const NodeTag_T_AlternativeSubPlanState: NodeTag = 159; -pub const NodeTag_T_DomainConstraintState: NodeTag = 160; -pub const NodeTag_T_PlannerInfo: NodeTag = 161; -pub const NodeTag_T_PlannerGlobal: NodeTag = 162; -pub const NodeTag_T_RelOptInfo: NodeTag = 163; -pub const NodeTag_T_IndexOptInfo: NodeTag = 164; -pub const NodeTag_T_ForeignKeyOptInfo: NodeTag = 165; -pub const NodeTag_T_ParamPathInfo: NodeTag = 166; -pub const NodeTag_T_Path: NodeTag = 167; -pub const NodeTag_T_IndexPath: NodeTag = 168; -pub const NodeTag_T_BitmapHeapPath: NodeTag = 169; -pub const NodeTag_T_BitmapAndPath: NodeTag = 170; -pub const NodeTag_T_BitmapOrPath: NodeTag = 171; -pub const NodeTag_T_TidPath: NodeTag = 172; -pub const NodeTag_T_SubqueryScanPath: NodeTag = 173; -pub const NodeTag_T_ForeignPath: NodeTag = 174; -pub const NodeTag_T_CustomPath: NodeTag = 175; -pub const NodeTag_T_NestPath: NodeTag = 176; -pub const NodeTag_T_MergePath: NodeTag = 177; -pub const NodeTag_T_HashPath: NodeTag = 178; -pub const NodeTag_T_AppendPath: NodeTag = 179; -pub const NodeTag_T_MergeAppendPath: NodeTag = 180; -pub const NodeTag_T_GroupResultPath: NodeTag = 181; -pub const NodeTag_T_MaterialPath: NodeTag = 182; -pub const NodeTag_T_UniquePath: NodeTag = 183; -pub const NodeTag_T_GatherPath: NodeTag = 184; -pub const NodeTag_T_GatherMergePath: NodeTag = 185; -pub const NodeTag_T_ProjectionPath: NodeTag = 186; -pub const NodeTag_T_ProjectSetPath: NodeTag = 187; -pub const NodeTag_T_SortPath: NodeTag = 188; -pub const NodeTag_T_IncrementalSortPath: NodeTag = 189; -pub const NodeTag_T_GroupPath: NodeTag = 190; -pub const NodeTag_T_UpperUniquePath: NodeTag = 191; -pub const NodeTag_T_AggPath: NodeTag = 192; -pub const NodeTag_T_GroupingSetsPath: NodeTag = 193; -pub const NodeTag_T_MinMaxAggPath: NodeTag = 194; -pub const NodeTag_T_WindowAggPath: NodeTag = 195; -pub const NodeTag_T_SetOpPath: NodeTag = 196; -pub const NodeTag_T_RecursiveUnionPath: NodeTag = 197; -pub const NodeTag_T_LockRowsPath: NodeTag = 198; -pub const NodeTag_T_ModifyTablePath: NodeTag = 199; -pub const NodeTag_T_LimitPath: NodeTag = 200; -pub const NodeTag_T_EquivalenceClass: NodeTag = 201; -pub const NodeTag_T_EquivalenceMember: NodeTag = 202; -pub const NodeTag_T_PathKey: NodeTag = 203; -pub const NodeTag_T_PathTarget: NodeTag = 204; -pub const NodeTag_T_RestrictInfo: NodeTag = 205; -pub const NodeTag_T_IndexClause: NodeTag = 206; -pub const NodeTag_T_PlaceHolderVar: NodeTag = 207; -pub const NodeTag_T_SpecialJoinInfo: NodeTag = 208; -pub const NodeTag_T_AppendRelInfo: NodeTag = 209; -pub const NodeTag_T_PlaceHolderInfo: NodeTag = 210; -pub const NodeTag_T_MinMaxAggInfo: NodeTag = 211; -pub const NodeTag_T_PlannerParamItem: NodeTag = 212; -pub const NodeTag_T_RollupData: NodeTag = 213; -pub const NodeTag_T_GroupingSetData: NodeTag = 214; -pub const NodeTag_T_StatisticExtInfo: NodeTag = 215; -pub const NodeTag_T_MemoryContext: NodeTag = 216; -pub const NodeTag_T_AllocSetContext: NodeTag = 217; -pub const NodeTag_T_SlabContext: NodeTag = 218; -pub const NodeTag_T_GenerationContext: NodeTag = 219; -pub const NodeTag_T_Value: NodeTag = 220; -pub const NodeTag_T_Integer: NodeTag = 221; -pub const NodeTag_T_Float: NodeTag = 222; -pub const NodeTag_T_String: NodeTag = 223; -pub const NodeTag_T_BitString: NodeTag = 224; -pub const NodeTag_T_Null: NodeTag = 225; -pub const NodeTag_T_List: NodeTag = 226; -pub const NodeTag_T_IntList: NodeTag = 227; -pub const NodeTag_T_OidList: NodeTag = 228; -pub const NodeTag_T_ExtensibleNode: NodeTag = 229; -pub const NodeTag_T_RawStmt: NodeTag = 230; -pub const NodeTag_T_Query: NodeTag = 231; -pub const NodeTag_T_PlannedStmt: NodeTag = 232; -pub const NodeTag_T_InsertStmt: NodeTag = 233; -pub const NodeTag_T_DeleteStmt: NodeTag = 234; -pub const NodeTag_T_UpdateStmt: NodeTag = 235; -pub const NodeTag_T_SelectStmt: NodeTag = 236; -pub const NodeTag_T_AlterTableStmt: NodeTag = 237; -pub const NodeTag_T_AlterTableCmd: NodeTag = 238; -pub const NodeTag_T_AlterDomainStmt: NodeTag = 239; -pub const NodeTag_T_SetOperationStmt: NodeTag = 240; -pub const NodeTag_T_GrantStmt: NodeTag = 241; -pub const NodeTag_T_GrantRoleStmt: NodeTag = 242; -pub const NodeTag_T_AlterDefaultPrivilegesStmt: NodeTag = 243; -pub const NodeTag_T_ClosePortalStmt: NodeTag = 244; -pub const NodeTag_T_ClusterStmt: NodeTag = 245; -pub const NodeTag_T_CopyStmt: NodeTag = 246; -pub const NodeTag_T_CreateStmt: NodeTag = 247; -pub const NodeTag_T_DefineStmt: NodeTag = 248; -pub const NodeTag_T_DropStmt: NodeTag = 249; -pub const NodeTag_T_TruncateStmt: NodeTag = 250; -pub const NodeTag_T_CommentStmt: NodeTag = 251; -pub const NodeTag_T_FetchStmt: NodeTag = 252; -pub const NodeTag_T_IndexStmt: NodeTag = 253; -pub const NodeTag_T_CreateFunctionStmt: NodeTag = 254; -pub const NodeTag_T_AlterFunctionStmt: NodeTag = 255; -pub const NodeTag_T_DoStmt: NodeTag = 256; -pub const NodeTag_T_RenameStmt: NodeTag = 257; -pub const NodeTag_T_RuleStmt: NodeTag = 258; -pub const NodeTag_T_NotifyStmt: NodeTag = 259; -pub const NodeTag_T_ListenStmt: NodeTag = 260; -pub const NodeTag_T_UnlistenStmt: NodeTag = 261; -pub const NodeTag_T_TransactionStmt: NodeTag = 262; -pub const NodeTag_T_ViewStmt: NodeTag = 263; -pub const NodeTag_T_LoadStmt: NodeTag = 264; -pub const NodeTag_T_CreateDomainStmt: NodeTag = 265; -pub const NodeTag_T_CreatedbStmt: NodeTag = 266; -pub const NodeTag_T_DropdbStmt: NodeTag = 267; -pub const NodeTag_T_VacuumStmt: NodeTag = 268; -pub const NodeTag_T_ExplainStmt: NodeTag = 269; -pub const NodeTag_T_CreateTableAsStmt: NodeTag = 270; -pub const NodeTag_T_CreateSeqStmt: NodeTag = 271; -pub const NodeTag_T_AlterSeqStmt: NodeTag = 272; -pub const NodeTag_T_VariableSetStmt: NodeTag = 273; -pub const NodeTag_T_VariableShowStmt: NodeTag = 274; -pub const NodeTag_T_DiscardStmt: NodeTag = 275; -pub const NodeTag_T_CreateTrigStmt: NodeTag = 276; -pub const NodeTag_T_CreatePLangStmt: NodeTag = 277; -pub const NodeTag_T_CreateRoleStmt: NodeTag = 278; -pub const NodeTag_T_AlterRoleStmt: NodeTag = 279; -pub const NodeTag_T_DropRoleStmt: NodeTag = 280; -pub const NodeTag_T_LockStmt: NodeTag = 281; -pub const NodeTag_T_ConstraintsSetStmt: NodeTag = 282; -pub const NodeTag_T_ReindexStmt: NodeTag = 283; -pub const NodeTag_T_CheckPointStmt: NodeTag = 284; -pub const NodeTag_T_CreateSchemaStmt: NodeTag = 285; -pub const NodeTag_T_AlterDatabaseStmt: NodeTag = 286; -pub const NodeTag_T_AlterDatabaseSetStmt: NodeTag = 287; -pub const NodeTag_T_AlterRoleSetStmt: NodeTag = 288; -pub const NodeTag_T_CreateConversionStmt: NodeTag = 289; -pub const NodeTag_T_CreateCastStmt: NodeTag = 290; -pub const NodeTag_T_CreateOpClassStmt: NodeTag = 291; -pub const NodeTag_T_CreateOpFamilyStmt: NodeTag = 292; -pub const NodeTag_T_AlterOpFamilyStmt: NodeTag = 293; -pub const NodeTag_T_PrepareStmt: NodeTag = 294; -pub const NodeTag_T_ExecuteStmt: NodeTag = 295; -pub const NodeTag_T_DeallocateStmt: NodeTag = 296; -pub const NodeTag_T_DeclareCursorStmt: NodeTag = 297; -pub const NodeTag_T_CreateTableSpaceStmt: NodeTag = 298; -pub const NodeTag_T_DropTableSpaceStmt: NodeTag = 299; -pub const NodeTag_T_AlterObjectDependsStmt: NodeTag = 300; -pub const NodeTag_T_AlterObjectSchemaStmt: NodeTag = 301; -pub const NodeTag_T_AlterOwnerStmt: NodeTag = 302; -pub const NodeTag_T_AlterOperatorStmt: NodeTag = 303; -pub const NodeTag_T_AlterTypeStmt: NodeTag = 304; -pub const NodeTag_T_DropOwnedStmt: NodeTag = 305; -pub const NodeTag_T_ReassignOwnedStmt: NodeTag = 306; -pub const NodeTag_T_CompositeTypeStmt: NodeTag = 307; -pub const NodeTag_T_CreateEnumStmt: NodeTag = 308; -pub const NodeTag_T_CreateRangeStmt: NodeTag = 309; -pub const NodeTag_T_AlterEnumStmt: NodeTag = 310; -pub const NodeTag_T_AlterTSDictionaryStmt: NodeTag = 311; -pub const NodeTag_T_AlterTSConfigurationStmt: NodeTag = 312; -pub const NodeTag_T_CreateFdwStmt: NodeTag = 313; -pub const NodeTag_T_AlterFdwStmt: NodeTag = 314; -pub const NodeTag_T_CreateForeignServerStmt: NodeTag = 315; -pub const NodeTag_T_AlterForeignServerStmt: NodeTag = 316; -pub const NodeTag_T_CreateUserMappingStmt: NodeTag = 317; -pub const NodeTag_T_AlterUserMappingStmt: NodeTag = 318; -pub const NodeTag_T_DropUserMappingStmt: NodeTag = 319; -pub const NodeTag_T_AlterTableSpaceOptionsStmt: NodeTag = 320; -pub const NodeTag_T_AlterTableMoveAllStmt: NodeTag = 321; -pub const NodeTag_T_SecLabelStmt: NodeTag = 322; -pub const NodeTag_T_CreateForeignTableStmt: NodeTag = 323; -pub const NodeTag_T_ImportForeignSchemaStmt: NodeTag = 324; -pub const NodeTag_T_CreateExtensionStmt: NodeTag = 325; -pub const NodeTag_T_AlterExtensionStmt: NodeTag = 326; -pub const NodeTag_T_AlterExtensionContentsStmt: NodeTag = 327; -pub const NodeTag_T_CreateEventTrigStmt: NodeTag = 328; -pub const NodeTag_T_AlterEventTrigStmt: NodeTag = 329; -pub const NodeTag_T_RefreshMatViewStmt: NodeTag = 330; -pub const NodeTag_T_ReplicaIdentityStmt: NodeTag = 331; -pub const NodeTag_T_AlterSystemStmt: NodeTag = 332; -pub const NodeTag_T_CreatePolicyStmt: NodeTag = 333; -pub const NodeTag_T_AlterPolicyStmt: NodeTag = 334; -pub const NodeTag_T_CreateTransformStmt: NodeTag = 335; -pub const NodeTag_T_CreateAmStmt: NodeTag = 336; -pub const NodeTag_T_CreatePublicationStmt: NodeTag = 337; -pub const NodeTag_T_AlterPublicationStmt: NodeTag = 338; -pub const NodeTag_T_CreateSubscriptionStmt: NodeTag = 339; -pub const NodeTag_T_AlterSubscriptionStmt: NodeTag = 340; -pub const NodeTag_T_DropSubscriptionStmt: NodeTag = 341; -pub const NodeTag_T_CreateStatsStmt: NodeTag = 342; -pub const NodeTag_T_AlterCollationStmt: NodeTag = 343; -pub const NodeTag_T_CallStmt: NodeTag = 344; -pub const NodeTag_T_AlterStatsStmt: NodeTag = 345; -pub const NodeTag_T_A_Expr: NodeTag = 346; -pub const NodeTag_T_ColumnRef: NodeTag = 347; -pub const NodeTag_T_ParamRef: NodeTag = 348; -pub const NodeTag_T_A_Const: NodeTag = 349; -pub const NodeTag_T_FuncCall: NodeTag = 350; -pub const NodeTag_T_A_Star: NodeTag = 351; -pub const NodeTag_T_A_Indices: NodeTag = 352; -pub const NodeTag_T_A_Indirection: NodeTag = 353; -pub const NodeTag_T_A_ArrayExpr: NodeTag = 354; -pub const NodeTag_T_ResTarget: NodeTag = 355; -pub const NodeTag_T_MultiAssignRef: NodeTag = 356; -pub const NodeTag_T_TypeCast: NodeTag = 357; -pub const NodeTag_T_CollateClause: NodeTag = 358; -pub const NodeTag_T_SortBy: NodeTag = 359; -pub const NodeTag_T_WindowDef: NodeTag = 360; -pub const NodeTag_T_RangeSubselect: NodeTag = 361; -pub const NodeTag_T_RangeFunction: NodeTag = 362; -pub const NodeTag_T_RangeTableSample: NodeTag = 363; -pub const NodeTag_T_RangeTableFunc: NodeTag = 364; -pub const NodeTag_T_RangeTableFuncCol: NodeTag = 365; -pub const NodeTag_T_TypeName: NodeTag = 366; -pub const NodeTag_T_ColumnDef: NodeTag = 367; -pub const NodeTag_T_IndexElem: NodeTag = 368; -pub const NodeTag_T_Constraint: NodeTag = 369; -pub const NodeTag_T_DefElem: NodeTag = 370; -pub const NodeTag_T_RangeTblEntry: NodeTag = 371; -pub const NodeTag_T_RangeTblFunction: NodeTag = 372; -pub const NodeTag_T_TableSampleClause: NodeTag = 373; -pub const NodeTag_T_WithCheckOption: NodeTag = 374; -pub const NodeTag_T_SortGroupClause: NodeTag = 375; -pub const NodeTag_T_GroupingSet: NodeTag = 376; -pub const NodeTag_T_WindowClause: NodeTag = 377; -pub const NodeTag_T_ObjectWithArgs: NodeTag = 378; -pub const NodeTag_T_AccessPriv: NodeTag = 379; -pub const NodeTag_T_CreateOpClassItem: NodeTag = 380; -pub const NodeTag_T_TableLikeClause: NodeTag = 381; -pub const NodeTag_T_FunctionParameter: NodeTag = 382; -pub const NodeTag_T_LockingClause: NodeTag = 383; -pub const NodeTag_T_RowMarkClause: NodeTag = 384; -pub const NodeTag_T_XmlSerialize: NodeTag = 385; -pub const NodeTag_T_WithClause: NodeTag = 386; -pub const NodeTag_T_InferClause: NodeTag = 387; -pub const NodeTag_T_OnConflictClause: NodeTag = 388; -pub const NodeTag_T_CommonTableExpr: NodeTag = 389; -pub const NodeTag_T_RoleSpec: NodeTag = 390; -pub const NodeTag_T_TriggerTransition: NodeTag = 391; -pub const NodeTag_T_PartitionElem: NodeTag = 392; -pub const NodeTag_T_PartitionSpec: NodeTag = 393; -pub const NodeTag_T_PartitionBoundSpec: NodeTag = 394; -pub const NodeTag_T_PartitionRangeDatum: NodeTag = 395; -pub const NodeTag_T_PartitionCmd: NodeTag = 396; -pub const NodeTag_T_VacuumRelation: NodeTag = 397; -pub const NodeTag_T_IdentifySystemCmd: NodeTag = 398; -pub const NodeTag_T_BaseBackupCmd: NodeTag = 399; -pub const NodeTag_T_CreateReplicationSlotCmd: NodeTag = 400; -pub const NodeTag_T_DropReplicationSlotCmd: NodeTag = 401; -pub const NodeTag_T_StartReplicationCmd: NodeTag = 402; -pub const NodeTag_T_TimeLineHistoryCmd: NodeTag = 403; -pub const NodeTag_T_SQLCmd: NodeTag = 404; -pub const NodeTag_T_TriggerData: NodeTag = 405; -pub const NodeTag_T_EventTriggerData: NodeTag = 406; -pub const NodeTag_T_ReturnSetInfo: NodeTag = 407; -pub const NodeTag_T_WindowObjectData: NodeTag = 408; -pub const NodeTag_T_TIDBitmap: NodeTag = 409; -pub const NodeTag_T_InlineCodeBlock: NodeTag = 410; -pub const NodeTag_T_FdwRoutine: NodeTag = 411; -pub const NodeTag_T_IndexAmRoutine: NodeTag = 412; -pub const NodeTag_T_TableAmRoutine: NodeTag = 413; -pub const NodeTag_T_TsmRoutine: NodeTag = 414; -pub const NodeTag_T_ForeignKeyCacheInfo: NodeTag = 415; -pub const NodeTag_T_CallContext: NodeTag = 416; -pub const NodeTag_T_SupportRequestSimplify: NodeTag = 417; -pub const NodeTag_T_SupportRequestSelectivity: NodeTag = 418; -pub const NodeTag_T_SupportRequestCost: NodeTag = 419; -pub const NodeTag_T_SupportRequestRows: NodeTag = 420; -pub const NodeTag_T_SupportRequestIndexCondition: NodeTag = 421; -pub type NodeTag = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Node { - pub type_: NodeTag, +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) + }) } -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 GetNextTempTableSpace() -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetNextTempTableSpace() -> Oid; } - } + GetNextTempTableSpace() + }) } -pub unsafe fn outNode(arg_str_: *mut StringInfoData, arg_obj: *const ::std::os::raw::c_void) { +pub unsafe fn AtEOXact_Files(arg_isCommit: bool) { 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 AtEOXact_Files(arg_isCommit: bool); } - outNode(arg_str_, arg_obj) + AtEOXact_Files(arg_isCommit) }) } -pub unsafe fn outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char) { +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 outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char); + fn AtEOSubXact_Files( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - outToken(arg_str_, arg_s) + AtEOSubXact_Files(arg_isCommit, arg_mySubid, arg_parentSubid) }) } -pub unsafe fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset) { +pub unsafe fn RemovePgTempFiles() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset); + fn RemovePgTempFiles(); } - outBitmapset(arg_str_, arg_bms) + RemovePgTempFiles() }) } -pub unsafe fn outDatum( - arg_str_: *mut StringInfoData, - arg_value: usize, - arg_typlen: ::std::os::raw::c_int, - arg_typbyval: bool, +pub unsafe fn RemovePgTempFilesInDir( + arg_tmpdirname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + arg_unlink_all: 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, + fn RemovePgTempFilesInDir( + arg_tmpdirname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + arg_unlink_all: bool, ); } - outDatum(arg_str_, arg_value, arg_typlen, arg_typbyval) + RemovePgTempFilesInDir(arg_tmpdirname, arg_missing_ok, arg_unlink_all) }) } -pub unsafe fn nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char { +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 nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char; + fn looks_like_temp_rel_name(arg_name: *const ::std::os::raw::c_char) -> bool; } - nodeToString(arg_obj) + looks_like_temp_rel_name(arg_name) }) } -pub unsafe fn bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char { +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 bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char; + fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - bmsToString(arg_bms) + pg_fsync(arg_fd) }) } -pub unsafe fn stringToNode(arg_str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_void { +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 stringToNode(arg_str_: *const ::std::os::raw::c_char) - -> *mut ::std::os::raw::c_void; + fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - stringToNode(arg_str_) + pg_fsync_no_writethrough(arg_fd) }) } -pub unsafe fn readBitmapset() -> *mut Bitmapset { +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 readBitmapset() -> *mut Bitmapset; + fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - readBitmapset() + pg_fsync_writethrough(arg_fd) }) } -pub unsafe fn readDatum(arg_typbyval: bool) -> usize { +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 readDatum(arg_typbyval: bool) -> usize; + fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - readDatum(arg_typbyval) + pg_fdatasync(arg_fd) }) } -pub unsafe fn readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool { +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 readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool; + fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t); } - readBoolCols(arg_numCols) + pg_flush_data(arg_fd, arg_offset, arg_amount) }) } -pub unsafe fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int { +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 readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int; + fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool); } - readIntCols(arg_numCols) + fsync_fname(arg_fname, arg_isdir) }) } -pub unsafe fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid { +pub unsafe fn fsync_fname_ext( + arg_fname: *const ::std::os::raw::c_char, + arg_isdir: bool, + arg_ignore_perm: bool, + arg_elevel: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid; + fn fsync_fname_ext( + arg_fname: *const ::std::os::raw::c_char, + arg_isdir: bool, + arg_ignore_perm: bool, + arg_elevel: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - readOidCols(arg_numCols) + fsync_fname_ext(arg_fname, arg_isdir, arg_ignore_perm, arg_elevel) }) } -pub unsafe fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16 { +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 readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16; + 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; } - readAttrNumberCols(arg_numCols) + durable_rename(arg_oldfile, arg_newfile, arg_loglevel) }) } -pub unsafe fn copyObjectImpl( - arg_obj: *const ::std::os::raw::c_void, -) -> *mut ::std::os::raw::c_void { +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 copyObjectImpl( - arg_obj: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + fn durable_unlink( + arg_fname: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - copyObjectImpl(arg_obj) + durable_unlink(arg_fname, arg_loglevel) }) } -pub unsafe fn equal( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, -) -> bool { +pub unsafe fn durable_rename_excl( + 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 equal( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, - ) -> bool; + fn durable_rename_excl( + 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; } - equal(arg_a, arg_b) + durable_rename_excl(arg_oldfile, arg_newfile, arg_loglevel) }) } -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; -pub const LimitOption_LIMIT_OPTION_COUNT: LimitOption = 0; -pub const LimitOption_LIMIT_OPTION_WITH_TIES: LimitOption = 1; -pub const LimitOption_LIMIT_OPTION_DEFAULT: LimitOption = 2; -pub type LimitOption = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Copy, Clone)] -pub union ListCell { - pub ptr_value: *mut ::std::os::raw::c_void, - pub int_value: ::std::os::raw::c_int, - pub oid_value: Oid, -} -impl Default for ListCell { - fn default() -> 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 List { - pub type_: NodeTag, - pub length: ::std::os::raw::c_int, - pub max_length: ::std::os::raw::c_int, - pub elements: *mut ListCell, - pub initial_elements: __IncompleteArrayField, -} -impl Default for 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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForEachState { - pub l: *const List, - pub i: ::std::os::raw::c_int, -} -impl Default for ForEachState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForBothState { - pub l1: *const List, - pub l2: *const List, - pub i: ::std::os::raw::c_int, -} -impl Default for ForBothState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForBothCellState { - pub l1: *const List, - pub l2: *const List, - pub i1: ::std::os::raw::c_int, - pub i2: ::std::os::raw::c_int, -} -impl Default for ForBothCellState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForThreeState { - pub l1: *const List, - pub l2: *const List, - pub l3: *const List, - pub i: ::std::os::raw::c_int, -} -impl Default for ForThreeState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForFourState { - pub l1: *const List, - pub l2: *const List, - pub l3: *const List, - pub l4: *const List, - pub i: ::std::os::raw::c_int, -} -impl Default for ForFourState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForFiveState { - pub l1: *const List, - pub l2: *const List, - pub l3: *const List, - pub l4: *const List, - pub l5: *const List, - pub i: ::std::os::raw::c_int, -} -impl Default for ForFiveState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn list_make1_impl(arg_t: NodeTag, arg_datum1: ListCell) -> *mut List { +pub unsafe fn SyncDataDirectory() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_make1_impl(arg_t: NodeTag, arg_datum1: ListCell) -> *mut List; + fn SyncDataDirectory(); } - list_make1_impl(arg_t, arg_datum1) + SyncDataDirectory() }) } -pub unsafe fn list_make2_impl( - arg_t: NodeTag, - arg_datum1: ListCell, - arg_datum2: ListCell, -) -> *mut List { +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 list_make2_impl( - arg_t: NodeTag, - arg_datum1: ListCell, - arg_datum2: ListCell, - ) -> *mut List; + fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - list_make2_impl(arg_t, arg_datum1, arg_datum2) + data_sync_elevel(arg_elevel) }) } -pub unsafe fn list_make3_impl( - arg_t: NodeTag, - arg_datum1: ListCell, - arg_datum2: ListCell, - arg_datum3: ListCell, -) -> *mut List { +pub unsafe fn SpinlockSemas() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_make3_impl( - arg_t: NodeTag, - arg_datum1: ListCell, - arg_datum2: ListCell, - arg_datum3: ListCell, - ) -> *mut List; + fn SpinlockSemas() -> ::std::os::raw::c_int; } - list_make3_impl(arg_t, arg_datum1, arg_datum2, arg_datum3) + SpinlockSemas() }) } -pub unsafe fn list_make4_impl( - arg_t: NodeTag, - arg_datum1: ListCell, - arg_datum2: ListCell, - arg_datum3: ListCell, - arg_datum4: ListCell, -) -> *mut List { +pub unsafe fn SpinlockSemaSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_make4_impl( - arg_t: NodeTag, - arg_datum1: ListCell, - arg_datum2: ListCell, - arg_datum3: ListCell, - arg_datum4: ListCell, - ) -> *mut List; + fn SpinlockSemaSize() -> Size; } - list_make4_impl(arg_t, arg_datum1, arg_datum2, arg_datum3, arg_datum4) + SpinlockSemaSize() }) } -pub unsafe fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List { +#[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 lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List; + fn SharedFileSetInit(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment); } - lappend(arg_list, arg_datum) + SharedFileSetInit(arg_fileset, arg_seg) }) } -pub unsafe fn lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List { +pub unsafe fn SharedFileSetAttach(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment) { 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 SharedFileSetAttach(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment); } - lappend_int(arg_list, arg_datum) + SharedFileSetAttach(arg_fileset, arg_seg) }) } -pub unsafe fn lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { +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 lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; + fn SharedFileSetCreate( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + ) -> File; } - lappend_oid(arg_list, arg_datum) + SharedFileSetCreate(arg_fileset, arg_name) }) } -pub unsafe fn list_insert_nth( - arg_list: *mut List, - arg_pos: ::std::os::raw::c_int, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { +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 list_insert_nth( - arg_list: *mut List, - arg_pos: ::std::os::raw::c_int, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut List; + fn SharedFileSetOpen( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + ) -> File; } - list_insert_nth(arg_list, arg_pos, arg_datum) + SharedFileSetOpen(arg_fileset, arg_name) }) } -pub unsafe fn list_insert_nth_int( - arg_list: *mut List, - arg_pos: ::std::os::raw::c_int, - arg_datum: ::std::os::raw::c_int, -) -> *mut List { +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 list_insert_nth_int( - arg_list: *mut List, - arg_pos: ::std::os::raw::c_int, - arg_datum: ::std::os::raw::c_int, - ) -> *mut List; + fn SharedFileSetDelete( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, + ) -> bool; } - list_insert_nth_int(arg_list, arg_pos, arg_datum) + SharedFileSetDelete(arg_fileset, arg_name, arg_error_on_failure) }) } -pub unsafe fn list_insert_nth_oid( - arg_list: *mut List, - arg_pos: ::std::os::raw::c_int, - arg_datum: Oid, -) -> *mut List { +pub unsafe fn SharedFileSetDeleteAll(arg_fileset: *mut SharedFileSet) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_insert_nth_oid( - arg_list: *mut List, - arg_pos: ::std::os::raw::c_int, - arg_datum: Oid, - ) -> *mut List; + fn SharedFileSetDeleteAll(arg_fileset: *mut SharedFileSet); } - list_insert_nth_oid(arg_list, arg_pos, arg_datum) + SharedFileSetDeleteAll(arg_fileset) }) } -pub unsafe fn lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List { +#[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 lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List; + fn sts_estimate(arg_participants: ::std::os::raw::c_int) -> usize; } - lcons(arg_datum, arg_list) + sts_estimate(arg_participants) }) } -pub unsafe fn lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List { +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 lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List; + 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; } - lcons_int(arg_datum, arg_list) + sts_initialize( + arg_sts, + arg_participants, + arg_my_participant_number, + arg_meta_data_size, + arg_flags, + arg_fileset, + arg_name, + ) }) } -pub unsafe fn lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List { +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 lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List; + fn sts_attach( + arg_sts: *mut SharedTuplestore, + arg_my_participant_number: ::std::os::raw::c_int, + arg_fileset: *mut SharedFileSet, + ) -> *mut SharedTuplestoreAccessor; } - lcons_oid(arg_datum, arg_list) + sts_attach(arg_sts, arg_my_participant_number, arg_fileset) }) } -pub unsafe fn list_concat(arg_list1: *mut List, arg_list2: *const List) -> *mut List { +pub unsafe fn sts_end_write(arg_accessor: *mut SharedTuplestoreAccessor) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat(arg_list1: *mut List, arg_list2: *const List) -> *mut List; + fn sts_end_write(arg_accessor: *mut SharedTuplestoreAccessor); } - list_concat(arg_list1, arg_list2) + sts_end_write(arg_accessor) }) } -pub unsafe fn list_concat_copy(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn sts_reinitialize(arg_accessor: *mut SharedTuplestoreAccessor) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat_copy(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn sts_reinitialize(arg_accessor: *mut SharedTuplestoreAccessor); } - list_concat_copy(arg_list1, arg_list2) + sts_reinitialize(arg_accessor) }) } -pub unsafe fn list_truncate(arg_list: *mut List, arg_new_size: ::std::os::raw::c_int) -> *mut List { +pub unsafe fn sts_begin_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor) { 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 sts_begin_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor); } - list_truncate(arg_list, arg_new_size) + sts_begin_parallel_scan(arg_accessor) }) } -pub unsafe fn list_member(arg_list: *const List, arg_datum: *const ::std::os::raw::c_void) -> bool { +pub unsafe fn sts_end_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor) { 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 sts_end_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor); } - list_member(arg_list, arg_datum) + sts_end_parallel_scan(arg_accessor) }) } -pub unsafe fn list_member_ptr( - arg_list: *const List, - arg_datum: *const ::std::os::raw::c_void, -) -> bool { +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 list_member_ptr( - arg_list: *const List, - arg_datum: *const ::std::os::raw::c_void, - ) -> bool; + fn sts_puttuple( + arg_accessor: *mut SharedTuplestoreAccessor, + arg_meta_data: *mut ::std::os::raw::c_void, + arg_tuple: MinimalTuple, + ); } - list_member_ptr(arg_list, arg_datum) + sts_puttuple(arg_accessor, arg_meta_data, arg_tuple) }) } -pub unsafe fn list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool { +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 list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool; + fn sts_parallel_scan_next( + arg_accessor: *mut SharedTuplestoreAccessor, + arg_meta_data: *mut ::std::os::raw::c_void, + ) -> MinimalTuple; } - list_member_int(arg_list, arg_datum) + sts_parallel_scan_next(arg_accessor, arg_meta_data) }) } -pub unsafe fn list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool { +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 list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool; + fn RelationIdGetRelation(arg_relationId: Oid) -> Relation; } - list_member_oid(arg_list, arg_datum) + RelationIdGetRelation(arg_relationId) }) } -pub unsafe fn list_delete( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { +pub unsafe fn RelationClose(arg_relation: 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 RelationClose(arg_relation: Relation); } - list_delete(arg_list, arg_datum) + RelationClose(arg_relation) }) } -pub unsafe fn list_delete_ptr( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { +pub unsafe fn RelationGetFKeyList(arg_relation: Relation) -> *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; + fn RelationGetFKeyList(arg_relation: Relation) -> *mut List; } - list_delete_ptr(arg_list, arg_datum) + RelationGetFKeyList(arg_relation) }) } -pub unsafe fn list_delete_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List { +pub unsafe fn RelationGetIndexList(arg_relation: Relation) -> *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; + fn RelationGetIndexList(arg_relation: Relation) -> *mut List; } - list_delete_int(arg_list, arg_datum) + RelationGetIndexList(arg_relation) }) } -pub unsafe fn list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { +pub unsafe fn RelationGetStatExtList(arg_relation: Relation) -> *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; + fn RelationGetStatExtList(arg_relation: Relation) -> *mut List; } - list_delete_oid(arg_list, arg_datum) + RelationGetStatExtList(arg_relation) }) } -pub unsafe fn list_delete_first(arg_list: *mut List) -> *mut List { +pub unsafe fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete_first(arg_list: *mut List) -> *mut List; + fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid; } - list_delete_first(arg_list) + RelationGetPrimaryKeyIndex(arg_relation) }) } -pub unsafe fn list_delete_last(arg_list: *mut List) -> *mut List { +pub unsafe fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete_last(arg_list: *mut List) -> *mut List; + fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid; } - list_delete_last(arg_list) + RelationGetReplicaIndex(arg_relation) }) } -pub unsafe fn list_delete_first_n(arg_list: *mut List, arg_n: ::std::os::raw::c_int) -> *mut List { +pub unsafe fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete_first_n(arg_list: *mut List, arg_n: ::std::os::raw::c_int) -> *mut List; + fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List; } - list_delete_first_n(arg_list, arg_n) + RelationGetIndexExpressions(arg_relation) }) } -pub unsafe fn list_delete_nth_cell(arg_list: *mut List, arg_n: ::std::os::raw::c_int) -> *mut List { +pub unsafe fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete_nth_cell(arg_list: *mut List, arg_n: ::std::os::raw::c_int) - -> *mut List; + fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List; } - list_delete_nth_cell(arg_list, arg_n) + RelationGetDummyIndexExpressions(arg_relation) }) } -pub unsafe fn list_delete_cell(arg_list: *mut List, arg_cell: *mut ListCell) -> *mut List { +pub unsafe fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete_cell(arg_list: *mut List, arg_cell: *mut ListCell) -> *mut List; + fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List; } - list_delete_cell(arg_list, arg_cell) + RelationGetIndexPredicate(arg_relation) }) } -pub unsafe fn list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn RelationGetIndexRawAttOptions(arg_relation: Relation) -> *mut Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn RelationGetIndexRawAttOptions(arg_relation: Relation) -> *mut Datum; } - list_union(arg_list1, arg_list2) + RelationGetIndexRawAttOptions(arg_relation) }) } -pub unsafe fn list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn RelationGetIndexAttOptions( + arg_relation: Relation, + arg_copy: bool, +) -> *mut *mut bytea { 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 RelationGetIndexAttOptions( + arg_relation: Relation, + arg_copy: bool, + ) -> *mut *mut bytea; } - list_union_ptr(arg_list1, arg_list2) + RelationGetIndexAttOptions(arg_relation, arg_copy) }) } -pub unsafe fn list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { +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_attrKind: IndexAttrBitmapKind, +) -> *mut Bitmapset { 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 RelationGetIndexAttrBitmap( + arg_relation: Relation, + arg_attrKind: IndexAttrBitmapKind, + ) -> *mut Bitmapset; } - list_union_int(arg_list1, arg_list2) + RelationGetIndexAttrBitmap(arg_relation, arg_attrKind) }) } -pub unsafe fn list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { +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 list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn RelationGetExclusionInfo( + arg_indexRelation: Relation, + arg_operators: *mut *mut Oid, + arg_procs: *mut *mut Oid, + arg_strategies: *mut *mut uint16, + ); } - list_union_oid(arg_list1, arg_list2) + RelationGetExclusionInfo(arg_indexRelation, arg_operators, arg_procs, arg_strategies) }) } -pub unsafe fn list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn RelationInitIndexAccessInfo(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn RelationInitIndexAccessInfo(arg_relation: Relation); } - list_intersection(arg_list1, arg_list2) + RelationInitIndexAccessInfo(arg_relation) }) } -pub unsafe fn list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions { 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 GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions; } - list_intersection_int(arg_list1, arg_list2) + GetRelationPublicationActions(arg_relation) }) } -pub unsafe fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn RelationInitTableAccessMethod(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn RelationInitTableAccessMethod(arg_relation: Relation); } - list_difference(arg_list1, arg_list2) + RelationInitTableAccessMethod(arg_relation) }) } -pub unsafe fn list_difference_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int { 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 errtable(arg_rel: Relation) -> ::std::os::raw::c_int; } - list_difference_ptr(arg_list1, arg_list2) + errtable(arg_rel) }) } -pub unsafe fn list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { +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 list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn errtablecol( + arg_rel: Relation, + arg_attnum: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - list_difference_int(arg_list1, arg_list2) + errtablecol(arg_rel, arg_attnum) }) } -pub unsafe fn list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { +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 list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn errtablecolname( + arg_rel: Relation, + arg_colname: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - list_difference_oid(arg_list1, arg_list2) + errtablecolname(arg_rel, arg_colname) }) } -pub unsafe fn list_append_unique( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { +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 list_append_unique( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut List; + fn errtableconstraint( + arg_rel: Relation, + arg_conname: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - list_append_unique(arg_list, arg_datum) + errtableconstraint(arg_rel, arg_conname) }) } -pub unsafe fn list_append_unique_ptr( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { +pub unsafe fn RelationCacheInitialize() { 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 RelationCacheInitialize(); } - list_append_unique_ptr(arg_list, arg_datum) + RelationCacheInitialize() }) } -pub unsafe fn list_append_unique_int( - arg_list: *mut List, - arg_datum: ::std::os::raw::c_int, -) -> *mut List { +pub unsafe fn RelationCacheInitializePhase2() { 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 RelationCacheInitializePhase2(); } - list_append_unique_int(arg_list, arg_datum) + RelationCacheInitializePhase2() }) } -pub unsafe fn list_append_unique_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { +pub unsafe fn RelationCacheInitializePhase3() { 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 RelationCacheInitializePhase3(); } - list_append_unique_oid(arg_list, arg_datum) + RelationCacheInitializePhase3() }) } -pub unsafe fn list_concat_unique(arg_list1: *mut List, arg_list2: *const List) -> *mut List { +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 list_concat_unique(arg_list1: *mut List, arg_list2: *const List) -> *mut List; + 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; } - list_concat_unique(arg_list1, arg_list2) + 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 list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *const List) -> *mut List { +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 list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *const List) -> *mut List; + fn RelationSetNewRelfilenode( + arg_relation: Relation, + arg_persistence: ::std::os::raw::c_char, + ); } - list_concat_unique_ptr(arg_list1, arg_list2) + RelationSetNewRelfilenode(arg_relation, arg_persistence) }) } -pub unsafe fn list_concat_unique_int(arg_list1: *mut List, arg_list2: *const List) -> *mut List { +pub unsafe fn RelationAssumeNewRelfilenode(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat_unique_int(arg_list1: *mut List, arg_list2: *const List) -> *mut List; + fn RelationAssumeNewRelfilenode(arg_relation: Relation); } - list_concat_unique_int(arg_list1, arg_list2) + RelationAssumeNewRelfilenode(arg_relation) }) } -pub unsafe fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *const List) -> *mut List { +pub unsafe fn RelationForgetRelation(arg_rid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *const List) -> *mut List; + fn RelationForgetRelation(arg_rid: Oid); } - list_concat_unique_oid(arg_list1, arg_list2) + RelationForgetRelation(arg_rid) }) } -pub unsafe fn list_deduplicate_oid(arg_list: *mut List) { +pub unsafe fn RelationCacheInvalidateEntry(arg_relationId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_deduplicate_oid(arg_list: *mut List); + fn RelationCacheInvalidateEntry(arg_relationId: Oid); } - list_deduplicate_oid(arg_list) + RelationCacheInvalidateEntry(arg_relationId) }) } -pub unsafe fn list_free(arg_list: *mut List) { +pub unsafe fn RelationCacheInvalidate(arg_debug_discard: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_free(arg_list: *mut List); + fn RelationCacheInvalidate(arg_debug_discard: bool); } - list_free(arg_list) + RelationCacheInvalidate(arg_debug_discard) }) } -pub unsafe fn list_free_deep(arg_list: *mut List) { +pub unsafe fn RelationCloseSmgrByOid(arg_relationId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_free_deep(arg_list: *mut List); + fn RelationCloseSmgrByOid(arg_relationId: Oid); } - list_free_deep(arg_list) + RelationCloseSmgrByOid(arg_relationId) }) } -pub unsafe fn list_copy(arg_list: *const List) -> *mut List { +pub unsafe fn AssertPendingSyncs_RelationCache() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_copy(arg_list: *const List) -> *mut List; + fn AssertPendingSyncs_RelationCache(); } - list_copy(arg_list) + AssertPendingSyncs_RelationCache() }) } -pub unsafe fn list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) -> *mut List { +pub unsafe fn AtEOXact_RelationCache(arg_isCommit: bool) { 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 AtEOXact_RelationCache(arg_isCommit: bool); } - list_copy_tail(arg_list, arg_nskip) + AtEOXact_RelationCache(arg_isCommit) }) } -pub unsafe fn list_copy_deep(arg_oldlist: *const List) -> *mut List { +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 list_copy_deep(arg_oldlist: *const List) -> *mut List; + fn AtEOSubXact_RelationCache( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - list_copy_deep(arg_oldlist) + AtEOSubXact_RelationCache(arg_isCommit, arg_mySubid, arg_parentSubid) }) } -pub type list_sort_comparator = ::std::option::Option< - unsafe extern "C" fn(a: *const ListCell, b: *const ListCell) -> ::std::os::raw::c_int, ->; -pub unsafe fn list_sort(arg_list: *mut List, arg_cmp: list_sort_comparator) { +pub unsafe fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_sort(arg_list: *mut List, arg_cmp: list_sort_comparator); + fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool; } - list_sort(arg_list, arg_cmp) + RelationIdIsInInitFile(arg_relationId) }) } -pub unsafe fn list_oid_cmp( - arg_p1: *const ListCell, - arg_p2: *const ListCell, -) -> ::std::os::raw::c_int { +pub unsafe fn RelationCacheInitFilePreInvalidate() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_oid_cmp( - arg_p1: *const ListCell, - arg_p2: *const ListCell, - ) -> ::std::os::raw::c_int; + fn RelationCacheInitFilePreInvalidate(); } - list_oid_cmp(arg_p1, arg_p2) + RelationCacheInitFilePreInvalidate() }) } -#[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 unsafe fn RelationCacheInitFilePostInvalidate() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationCacheInitFilePostInvalidate(); } - } -} -#[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, + RelationCacheInitFilePostInvalidate() + }) } -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 unsafe fn RelationCacheInitFileRemove() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationCacheInitFileRemove(); } - } + RelationCacheInitFileRemove() + }) } -#[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, +extern "C" { + pub static mut criticalRelcachesBuilt: 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() - } - } +extern "C" { + pub static mut criticalSharedRelcachesBuilt: bool; } +pub type SortSupport = *mut SortSupportData; #[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 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 TupleDescData { +impl Default for SortSupportData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16506,218 +14531,169 @@ impl Default for TupleDescData { } } } -pub type TupleDesc = *mut TupleDescData; -pub unsafe fn CreateTemplateTupleDesc(arg_natts: ::std::os::raw::c_int) -> TupleDesc { +pub unsafe fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateTemplateTupleDesc(arg_natts: ::std::os::raw::c_int) -> TupleDesc; + fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport); } - CreateTemplateTupleDesc(arg_natts) + PrepareSortSupportComparisonShim(arg_cmpFunc, arg_ssup) }) } -pub unsafe fn CreateTupleDesc( - arg_natts: ::std::os::raw::c_int, - arg_attrs: *mut Form_pg_attribute, -) -> TupleDesc { +pub unsafe fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport) { 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; + fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport); } - CreateTupleDesc(arg_natts, arg_attrs) + PrepareSortSupportFromOrderingOp(arg_orderingOp, arg_ssup) }) } -pub unsafe fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc { +pub unsafe fn PrepareSortSupportFromIndexRel( + arg_indexRel: Relation, + arg_strategy: int16, + arg_ssup: SortSupport, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc; + fn PrepareSortSupportFromIndexRel( + arg_indexRel: Relation, + arg_strategy: int16, + arg_ssup: SortSupport, + ); } - CreateTupleDescCopy(arg_tupdesc) + PrepareSortSupportFromIndexRel(arg_indexRel, arg_strategy, arg_ssup) }) } -pub unsafe fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc { +#[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 CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc; + fn index_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> IndexTuple; } - CreateTupleDescCopyConstr(arg_tupdesc) + index_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn TupleDescCopy(arg_dst: TupleDesc, arg_src: TupleDesc) { +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 TupleDescCopy(arg_dst: TupleDesc, arg_src: TupleDesc); + fn nocache_index_getattr( + arg_tup: IndexTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + ) -> Datum; } - TupleDescCopy(arg_dst, arg_src) + nocache_index_getattr(arg_tup, arg_attnum, arg_tupleDesc) }) } -pub unsafe fn TupleDescCopyEntry( - arg_dst: TupleDesc, - arg_dstAttno: AttrNumber, - arg_src: TupleDesc, - arg_srcAttno: AttrNumber, +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 TupleDescCopyEntry( - arg_dst: TupleDesc, - arg_dstAttno: AttrNumber, - arg_src: TupleDesc, - arg_srcAttno: AttrNumber, + fn index_deform_tuple( + arg_tup: IndexTuple, + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, ); } - TupleDescCopyEntry(arg_dst, arg_dstAttno, arg_src, arg_srcAttno) + index_deform_tuple(arg_tup, arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn FreeTupleDesc(arg_tupdesc: TupleDesc) { +pub unsafe fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeTupleDesc(arg_tupdesc: TupleDesc); + fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple; } - FreeTupleDesc(arg_tupdesc) + CopyIndexTuple(arg_source) }) } -pub unsafe fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc) { +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 IncrTupleDescRefCount(arg_tupdesc: TupleDesc); + fn index_truncate_tuple( + arg_sourceDescriptor: TupleDesc, + arg_source: IndexTuple, + arg_leavenatts: ::std::os::raw::c_int, + ) -> IndexTuple; } - IncrTupleDescRefCount(arg_tupdesc) + index_truncate_tuple(arg_sourceDescriptor, arg_source, arg_leavenatts) }) } -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) - }) -} -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; - } - 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) - }) -} -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, - ); - } - 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 Tuplesortstate { + _unused: [u8; 0], } -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, - ); - } - TupleDescInitEntryCollation(arg_desc, arg_attributeNumber, arg_collationid) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Sharedsort { + _unused: [u8; 0], } -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 SortCoordinateData { + pub isWorker: bool, + pub nParticipants: ::std::os::raw::c_int, + pub sharedsort: *mut Sharedsort, } -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 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() } - BuildDescFromLists(arg_names, arg_types, arg_typmods, arg_collations) - }) + } } +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 = 4; +pub const TuplesortMethod_SORT_TYPE_EXTERNAL_MERGE: TuplesortMethod = 8; +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 AttrMap { - pub attnums: *mut AttrNumber, - pub maplen: ::std::os::raw::c_int, +pub struct TuplesortInstrumentation { + pub sortMethod: TuplesortMethod, + pub spaceType: TuplesortSpaceType, + pub spaceUsed: int64, } -impl Default for AttrMap { +impl Default for TuplesortInstrumentation { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16726,831 +14702,816 @@ impl Default for AttrMap { } } } -pub unsafe fn make_attrmap(arg_maplen: ::std::os::raw::c_int) -> *mut AttrMap { +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 make_attrmap(arg_maplen: ::std::os::raw::c_int) -> *mut AttrMap; + 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; } - make_attrmap(arg_maplen) + tuplesort_begin_heap( + arg_tupDesc, + arg_nkeys, + arg_attNums, + arg_sortOperators, + arg_sortCollations, + arg_nullsFirstFlags, + arg_workMem, + arg_coordinate, + arg_randomAccess, + ) }) } -pub unsafe fn free_attrmap(arg_map: *mut AttrMap) { +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 free_attrmap(arg_map: *mut AttrMap); + 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; } - free_attrmap(arg_map) + tuplesort_begin_cluster( + arg_tupDesc, + arg_indexRel, + arg_workMem, + arg_coordinate, + arg_randomAccess, + ) }) } -pub unsafe fn build_attrmap_by_name(arg_indesc: TupleDesc, arg_outdesc: TupleDesc) -> *mut AttrMap { +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 build_attrmap_by_name(arg_indesc: TupleDesc, arg_outdesc: TupleDesc) - -> *mut AttrMap; + 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; } - build_attrmap_by_name(arg_indesc, arg_outdesc) + tuplesort_begin_index_btree( + arg_heapRel, + arg_indexRel, + arg_enforceUnique, + arg_workMem, + arg_coordinate, + arg_randomAccess, + ) }) } -pub unsafe fn build_attrmap_by_name_if_req( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, -) -> *mut AttrMap { +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 build_attrmap_by_name_if_req( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - ) -> *mut AttrMap; + 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; } - build_attrmap_by_name_if_req(arg_indesc, arg_outdesc) + 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 build_attrmap_by_position( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, -) -> *mut AttrMap { +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 build_attrmap_by_position( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, - ) -> *mut AttrMap; + 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; } - build_attrmap_by_position(arg_indesc, arg_outdesc, arg_msg) + tuplesort_begin_datum( + arg_datumType, + arg_sortOperator, + arg_sortCollation, + arg_nullsFirstFlag, + arg_workMem, + arg_coordinate, + arg_randomAccess, + ) }) } -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 tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ItemPointerEquals(arg_pointer1: ItemPointer, arg_pointer2: ItemPointer) -> bool; + fn tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64); } - ItemPointerEquals(arg_pointer1, arg_pointer2) + tuplesort_set_bound(arg_state, arg_bound) }) } -pub unsafe fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32 { +pub unsafe fn tuplesort_used_bound(arg_state: *mut Tuplesortstate) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32; + fn tuplesort_used_bound(arg_state: *mut Tuplesortstate) -> bool; } - ItemPointerCompare(arg_arg1, arg_arg2) + tuplesort_used_bound(arg_state) }) } -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 tuplesort_puttupleslot( + arg_state: *mut Tuplesortstate, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId; + fn tuplesort_puttupleslot( + arg_state: *mut Tuplesortstate, + arg_slot: *mut TupleTableSlot, + ); } - HeapTupleHeaderGetCmin(arg_tup) + tuplesort_puttupleslot(arg_state, arg_slot) }) } -pub unsafe fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId { +pub unsafe fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId; + fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple); } - HeapTupleHeaderGetCmax(arg_tup) + tuplesort_putheaptuple(arg_state, arg_tup) }) } -pub unsafe fn HeapTupleHeaderAdjustCmax( - arg_tup: HeapTupleHeader, - arg_cmax: *mut CommandId, - arg_iscombo: *mut 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 HeapTupleHeaderAdjustCmax( - arg_tup: HeapTupleHeader, - arg_cmax: *mut CommandId, - arg_iscombo: *mut bool, + fn tuplesort_putindextuplevalues( + arg_state: *mut Tuplesortstate, + arg_rel: Relation, + arg_self_: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, ); } - HeapTupleHeaderAdjustCmax(arg_tup, arg_cmax, arg_iscombo) + tuplesort_putindextuplevalues(arg_state, arg_rel, arg_self_, arg_values, arg_isnull) }) } -pub unsafe fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId { +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 HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId; + fn tuplesort_putdatum(arg_state: *mut Tuplesortstate, arg_val: Datum, arg_isNull: bool); } - HeapTupleGetUpdateXid(arg_tuple) + tuplesort_putdatum(arg_state, arg_val, arg_isNull) }) } -#[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_performsort(arg_state: *mut Tuplesortstate) { 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_performsort(arg_state: *mut Tuplesortstate); } - fcntl(arg___fd, arg___cmd) + tuplesort_performsort(arg_state) }) } -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_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 open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::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; } - open(arg___file, arg___oflag) + tuplesort_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot, arg_abbrev) }) } -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 || { +pub unsafe fn tuplesort_getheaptuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, +) -> HeapTuple { + 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_getheaptuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + ) -> HeapTuple; } - openat(arg___fd, arg___file, arg___oflag) + tuplesort_getheaptuple(arg_state, arg_forward) }) } -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_getindextuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, +) -> IndexTuple { 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_getindextuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + ) -> IndexTuple; } - creat(arg___file, arg___mode) + tuplesort_getindextuple(arg_state, arg_forward) }) } -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_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 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_getdatum( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_val: *mut Datum, + arg_isNull: *mut bool, + arg_abbrev: *mut Datum, + ) -> bool; } - lockf(arg___fd, arg___cmd, arg___len) + tuplesort_getdatum(arg_state, arg_forward, arg_val, arg_isNull, arg_abbrev) }) } -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_skiptuples( + arg_state: *mut Tuplesortstate, + arg_ntuples: int64, + arg_forward: bool, +) -> 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_skiptuples( + arg_state: *mut Tuplesortstate, + arg_ntuples: int64, + arg_forward: bool, + ) -> bool; } - posix_fadvise(arg___fd, arg___offset, arg___len, arg___advise) + tuplesort_skiptuples(arg_state, arg_ntuples, arg_forward) }) } -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_end(arg_state: *mut Tuplesortstate) { 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_end(arg_state: *mut Tuplesortstate); } - posix_fallocate(arg___fd, arg___offset, arg___len) + tuplesort_end(arg_state) }) } -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 { +pub unsafe fn tuplesort_reset(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionStartedDuringRecovery() -> bool; + fn tuplesort_reset(arg_state: *mut Tuplesortstate); } - TransactionStartedDuringRecovery() + tuplesort_reset(arg_state) }) } -extern "C" { - pub static mut ShmemVariableCache: VariableCache; -} -pub unsafe fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool { +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 TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool; + fn tuplesort_get_stats( + arg_state: *mut Tuplesortstate, + arg_stats: *mut TuplesortInstrumentation, + ); } - TransactionIdDidCommit(arg_transactionId) + tuplesort_get_stats(arg_state, arg_stats) }) } -pub unsafe fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool { +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 TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool; + fn tuplesort_method_name(arg_m: TuplesortMethod) -> *const ::std::os::raw::c_char; } - TransactionIdDidAbort(arg_transactionId) + tuplesort_method_name(arg_m) }) } -pub unsafe fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool { +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 TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool; + fn tuplesort_space_type_name( + arg_t: TuplesortSpaceType, + ) -> *const ::std::os::raw::c_char; } - TransactionIdIsKnownCompleted(arg_transactionId) + tuplesort_space_type_name(arg_t) }) } -pub unsafe fn TransactionIdCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, -) { +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 TransactionIdCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - ); + fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int; } - TransactionIdCommitTree(arg_xid, arg_nxids, arg_xids) + tuplesort_merge_order(arg_allowedMem) }) } -pub unsafe fn TransactionIdAsyncCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - arg_lsn: XLogRecPtr, -) { +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 TransactionIdAsyncCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - arg_lsn: XLogRecPtr, - ); + fn tuplesort_estimate_shared(arg_nworkers: ::std::os::raw::c_int) -> Size; } - TransactionIdAsyncCommitTree(arg_xid, arg_nxids, arg_xids, arg_lsn) + tuplesort_estimate_shared(arg_nworkers) }) } -pub unsafe fn TransactionIdAbortTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, +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 TransactionIdAbortTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, + fn tuplesort_initialize_shared( + arg_shared: *mut Sharedsort, + arg_nWorkers: ::std::os::raw::c_int, + arg_seg: *mut dsm_segment, ); } - TransactionIdAbortTree(arg_xid, arg_nxids, arg_xids) + tuplesort_initialize_shared(arg_shared, arg_nWorkers, arg_seg) }) } -pub unsafe fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { +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 TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; + fn tuplesort_attach_shared(arg_shared: *mut Sharedsort, arg_seg: *mut dsm_segment); } - TransactionIdPrecedes(arg_id1, arg_id2) + tuplesort_attach_shared(arg_shared, arg_seg) }) } -pub unsafe fn TransactionIdPrecedesOrEquals( - arg_id1: TransactionId, - arg_id2: TransactionId, -) -> bool { +pub unsafe fn tuplesort_rescan(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdPrecedesOrEquals( - arg_id1: TransactionId, - arg_id2: TransactionId, - ) -> bool; + fn tuplesort_rescan(arg_state: *mut Tuplesortstate); } - TransactionIdPrecedesOrEquals(arg_id1, arg_id2) + tuplesort_rescan(arg_state) }) } -pub unsafe fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { +pub unsafe fn tuplesort_markpos(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; + fn tuplesort_markpos(arg_state: *mut Tuplesortstate); } - TransactionIdFollows(arg_id1, arg_id2) + tuplesort_markpos(arg_state) }) } -pub unsafe fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { +pub unsafe fn tuplesort_restorepos(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) - -> bool; + fn tuplesort_restorepos(arg_state: *mut Tuplesortstate); } - TransactionIdFollowsOrEquals(arg_id1, arg_id2) + tuplesort_restorepos(arg_state) }) } -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 Tuplestorestate { + _unused: [u8; 0], } -pub unsafe fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr { +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 TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr; + fn tuplestore_begin_heap( + arg_randomAccess: bool, + arg_interXact: bool, + arg_maxKBytes: ::std::os::raw::c_int, + ) -> *mut Tuplestorestate; } - TransactionIdGetCommitLSN(arg_xid) + tuplestore_begin_heap(arg_randomAccess, arg_interXact, arg_maxKBytes) }) } -pub unsafe fn GetNewTransactionId(arg_isSubXact: bool) -> FullTransactionId { +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 GetNewTransactionId(arg_isSubXact: bool) -> FullTransactionId; + fn tuplestore_set_eflags( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, + ); } - GetNewTransactionId(arg_isSubXact) + tuplestore_set_eflags(arg_state, arg_eflags) }) } -pub unsafe fn AdvanceNextFullTransactionIdPastXid(arg_xid: TransactionId) { +pub unsafe fn tuplestore_puttupleslot( + arg_state: *mut Tuplestorestate, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AdvanceNextFullTransactionIdPastXid(arg_xid: TransactionId); + fn tuplestore_puttupleslot( + arg_state: *mut Tuplestorestate, + arg_slot: *mut TupleTableSlot, + ); } - AdvanceNextFullTransactionIdPastXid(arg_xid) + tuplestore_puttupleslot(arg_state, arg_slot) }) } -pub unsafe fn ReadNextFullTransactionId() -> FullTransactionId { +pub unsafe fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReadNextFullTransactionId() -> FullTransactionId; + fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple); } - ReadNextFullTransactionId() + tuplestore_puttuple(arg_state, arg_tuple) }) } -pub unsafe fn SetTransactionIdLimit( - arg_oldest_datfrozenxid: TransactionId, - arg_oldest_datoid: Oid, +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 SetTransactionIdLimit( - arg_oldest_datfrozenxid: TransactionId, - arg_oldest_datoid: Oid, + fn tuplestore_putvalues( + arg_state: *mut Tuplestorestate, + arg_tdesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, ); } - SetTransactionIdLimit(arg_oldest_datfrozenxid, arg_oldest_datoid) + tuplestore_putvalues(arg_state, arg_tdesc, arg_values, arg_isnull) }) } -pub unsafe fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId) { +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 AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId); + fn tuplestore_alloc_read_pointer( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - AdvanceOldestClogXid(arg_oldest_datfrozenxid) + tuplestore_alloc_read_pointer(arg_state, arg_eflags) }) } -pub unsafe fn ForceTransactionIdLimitUpdate() -> bool { +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 ForceTransactionIdLimitUpdate() -> bool; + fn tuplestore_select_read_pointer( + arg_state: *mut Tuplestorestate, + arg_ptr: ::std::os::raw::c_int, + ); } - ForceTransactionIdLimitUpdate() + tuplestore_select_read_pointer(arg_state, arg_ptr) }) } -pub unsafe fn GetNewObjectId() -> Oid { +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 GetNewObjectId() -> Oid; + fn tuplestore_copy_read_pointer( + arg_state: *mut Tuplestorestate, + arg_srcptr: ::std::os::raw::c_int, + arg_destptr: ::std::os::raw::c_int, + ); } - GetNewObjectId() + tuplestore_copy_read_pointer(arg_state, arg_srcptr, arg_destptr) }) } -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) { +pub unsafe fn tuplestore_trim(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size); + fn tuplestore_trim(arg_state: *mut Tuplestorestate); } - PageInit(arg_page, arg_pageSize, arg_specialSize) + tuplestore_trim(arg_state) }) } -pub unsafe fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool { +pub unsafe fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool; + fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool; } - PageIsVerified(arg_page, arg_blkno) + tuplestore_in_memory(arg_state) }) } -pub unsafe fn PageIsVerifiedExtended( - arg_page: Page, - arg_blkno: BlockNumber, - arg_flags: ::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 PageIsVerifiedExtended( - arg_page: Page, - arg_blkno: BlockNumber, - arg_flags: ::std::os::raw::c_int, + fn tuplestore_gettupleslot( + arg_state: *mut Tuplestorestate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, ) -> bool; } - 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) - }) -} -pub unsafe fn PageGetTempPage(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPage(arg_page: Page) -> Page; - } - PageGetTempPage(arg_page) + tuplestore_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot) }) } -pub unsafe fn PageGetTempPageCopy(arg_page: Page) -> Page { +pub unsafe fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PageGetTempPageCopy(arg_page: Page) -> Page; + fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool; } - PageGetTempPageCopy(arg_page) + tuplestore_advance(arg_state, arg_forward) }) } -pub unsafe fn PageGetTempPageCopySpecial(arg_page: Page) -> Page { +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 PageGetTempPageCopySpecial(arg_page: Page) -> Page; + fn tuplestore_skiptuples( + arg_state: *mut Tuplestorestate, + arg_ntuples: int64, + arg_forward: bool, + ) -> bool; } - PageGetTempPageCopySpecial(arg_page) + tuplestore_skiptuples(arg_state, arg_ntuples, arg_forward) }) } -pub unsafe fn PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page) { +pub unsafe fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page); + fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64; } - PageRestoreTempPage(arg_tempPage, arg_oldPage) + tuplestore_tuple_count(arg_state) }) } -pub unsafe fn PageRepairFragmentation(arg_page: Page) { +pub unsafe fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PageRepairFragmentation(arg_page: Page); + fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool; } - PageRepairFragmentation(arg_page) + tuplestore_ateof(arg_state) }) } -pub unsafe fn PageGetFreeSpace(arg_page: Page) -> Size { +pub unsafe fn tuplestore_rescan(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PageGetFreeSpace(arg_page: Page) -> Size; + fn tuplestore_rescan(arg_state: *mut Tuplestorestate); } - PageGetFreeSpace(arg_page) + tuplestore_rescan(arg_state) }) } -pub unsafe fn PageGetFreeSpaceForMultipleTuples( - arg_page: Page, - arg_ntups: ::std::os::raw::c_int, -) -> Size { +pub unsafe fn tuplestore_clear(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PageGetFreeSpaceForMultipleTuples( - arg_page: Page, - arg_ntups: ::std::os::raw::c_int, - ) -> Size; + fn tuplestore_clear(arg_state: *mut Tuplestorestate); } - PageGetFreeSpaceForMultipleTuples(arg_page, arg_ntups) + tuplestore_clear(arg_state) }) } -pub unsafe fn PageGetExactFreeSpace(arg_page: Page) -> Size { +pub unsafe fn tuplestore_end(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PageGetExactFreeSpace(arg_page: Page) -> Size; + fn tuplestore_end(arg_state: *mut Tuplestorestate); } - PageGetExactFreeSpace(arg_page) + tuplestore_end(arg_state) }) } -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 PartitionRoutingInfo { + _unused: [u8; 0], } -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 ParallelHashJoinState { + _unused: [u8; 0], } -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 ExprEvalStep { + _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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CopyMultiInsertBuffer { + _unused: [u8; 0], } -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; +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: NodeTag, + 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() } - 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; +#[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_OpclassOptions: *mut Datum, + 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() } - PageSetChecksumCopy(arg_page, arg_blkno) - }) + } } -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); +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() } - 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, +#[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(Copy, Clone)] -pub union HeapTupleFields__bindgen_ty_1 { - pub t_cid: CommandId, - pub t_xvac: TransactionId, +#[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 HeapTupleFields__bindgen_ty_1 { +impl Default for ReturnSetInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17559,7 +15520,14 @@ impl Default for HeapTupleFields__bindgen_ty_1 { } } } -impl Default for HeapTupleFields { +#[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 { @@ -17569,28 +15537,78 @@ 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 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)] -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 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(Copy, Clone)] -pub union HeapTupleHeaderData__bindgen_ty_1 { - pub t_heap: HeapTupleFields, - pub t_datum: DatumTupleFields, +#[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_NumGeneratedNeeded: ::std::os::raw::c_int, + 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 HeapTupleHeaderData__bindgen_ty_1 { +impl Default for ResultRelInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17599,7 +15617,50 @@ impl Default for HeapTupleHeaderData__bindgen_ty_1 { } } } -impl Default for HeapTupleHeaderData { +#[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_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 { @@ -17609,343 +15670,411 @@ 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, +#[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 heap_compute_data_size( - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> Size { +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() + } + } +} +extern "C" { + pub static pg_leftmost_one_pos: [uint8; 256usize]; +} +extern "C" { + pub static pg_rightmost_one_pos: [uint8; 256usize]; +} +extern "C" { + pub static pg_number_of_ones: [uint8; 256usize]; +} +extern "C" { + pub static mut pg_popcount32: + ::std::option::Option ::std::os::raw::c_int>; +} +extern "C" { + pub static mut pg_popcount64: + ::std::option::Option ::std::os::raw::c_int>; +} +pub unsafe fn pg_popcount( + arg_buf: *const ::std::os::raw::c_char, + arg_bytes: ::std::os::raw::c_int, +) -> uint64 { 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; + fn pg_popcount( + arg_buf: *const ::std::os::raw::c_char, + arg_bytes: ::std::os::raw::c_int, + ) -> uint64; } - heap_compute_data_size(arg_tupleDesc, arg_values, arg_isnull) + pg_popcount(arg_buf, arg_bytes) }) } -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, -) { +#[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 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, - ); + fn tuplehash_create( + arg_ctx: MemoryContext, + arg_nelements: uint32, + arg_private_data: *mut ::std::os::raw::c_void, + ) -> *mut tuplehash_hash; } - heap_fill_tuple( - arg_tupleDesc, - arg_values, - arg_isnull, - arg_data, - arg_data_size, - arg_infomask, - arg_bit, - ) + tuplehash_create(arg_ctx, arg_nelements, arg_private_data) }) } -pub unsafe fn heap_attisnull( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, -) -> bool { +pub unsafe fn tuplehash_destroy(arg_tb: *mut tuplehash_hash) { 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; + fn tuplehash_destroy(arg_tb: *mut tuplehash_hash); } - heap_attisnull(arg_tup, arg_attnum, arg_tupleDesc) + tuplehash_destroy(arg_tb) }) } -pub unsafe fn nocachegetattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_att: TupleDesc, -) -> Datum { +pub unsafe fn tuplehash_reset(arg_tb: *mut tuplehash_hash) { 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; + fn tuplehash_reset(arg_tb: *mut tuplehash_hash); } - nocachegetattr(arg_tup, arg_attnum, arg_att) + tuplehash_reset(arg_tb) }) } -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 { +pub unsafe fn tuplehash_grow(arg_tb: *mut tuplehash_hash, arg_newsize: uint64) { 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; + fn tuplehash_grow(arg_tb: *mut tuplehash_hash, arg_newsize: uint64); } - getmissingattr(arg_tupleDesc, arg_attnum, arg_isnull) + tuplehash_grow(arg_tb, arg_newsize) }) } -pub unsafe fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple { +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 heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple; + fn tuplehash_insert( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + arg_found: *mut bool, + ) -> *mut TupleHashEntryData; } - heap_copytuple(arg_tuple) + tuplehash_insert(arg_tb, arg_key, arg_found) }) } -pub unsafe fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple) { +pub unsafe fn tuplehash_insert_hash( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + arg_hash: uint32, + arg_found: *mut bool, +) -> *mut TupleHashEntryData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple); + fn tuplehash_insert_hash( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + arg_hash: uint32, + arg_found: *mut bool, + ) -> *mut TupleHashEntryData; } - heap_copytuple_with_tuple(arg_src, arg_dest) + tuplehash_insert_hash(arg_tb, arg_key, arg_hash, arg_found) }) } -pub unsafe fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum { +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 heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum; + fn tuplehash_lookup( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + ) -> *mut TupleHashEntryData; } - heap_copy_tuple_as_datum(arg_tuple, arg_tupleDesc) + tuplehash_lookup(arg_tb, arg_key) }) } -pub unsafe fn heap_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> HeapTuple { +pub unsafe fn tuplehash_lookup_hash( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + arg_hash: uint32, +) -> *mut TupleHashEntryData { 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; + fn tuplehash_lookup_hash( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + arg_hash: uint32, + ) -> *mut TupleHashEntryData; } - heap_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) + tuplehash_lookup_hash(arg_tb, arg_key, arg_hash) }) } -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 { +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 heap_modify_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_replValues: *mut Datum, - arg_replIsnull: *mut bool, - arg_doReplace: *mut bool, - ) -> HeapTuple; + fn tuplehash_delete(arg_tb: *mut tuplehash_hash, arg_key: MinimalTuple) -> bool; } - heap_modify_tuple( - arg_tuple, - arg_tupleDesc, - arg_replValues, - arg_replIsnull, - arg_doReplace, - ) + tuplehash_delete(arg_tb, arg_key) }) } -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 { +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 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; + fn tuplehash_start_iterate( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + ); } - heap_modify_tuple_by_cols( - arg_tuple, - arg_tupleDesc, - arg_nCols, - arg_replCols, - arg_replValues, - arg_replIsnull, - ) + tuplehash_start_iterate(arg_tb, arg_iter) }) } -pub unsafe fn heap_deform_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, +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 heap_deform_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, + fn tuplehash_start_iterate_at( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + arg_at: uint32, ); } - heap_deform_tuple(arg_tuple, arg_tupleDesc, arg_values, arg_isnull) + tuplehash_start_iterate_at(arg_tb, arg_iter, arg_at) }) } -pub unsafe fn heap_freetuple(arg_htup: 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 heap_freetuple(arg_htup: HeapTuple); + fn tuplehash_iterate( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + ) -> *mut TupleHashEntryData; } - heap_freetuple(arg_htup) + tuplehash_iterate(arg_tb, arg_iter) }) } -pub unsafe fn heap_form_minimal_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> MinimalTuple { +pub unsafe fn tuplehash_stat(arg_tb: *mut tuplehash_hash) { 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; + fn tuplehash_stat(arg_tb: *mut tuplehash_hash); } - heap_form_minimal_tuple(arg_tupleDescriptor, arg_values, arg_isnull) + tuplehash_stat(arg_tb) }) } -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) - }) +#[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, } -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; +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() } - 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 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, } -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; +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() } - 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) - }) +#[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, } -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; +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() } - 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 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() + } + } } -pub type BufferAccessStrategy = *mut BufferAccessStrategyData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TupleTableSlot { +pub struct SubPlanState { 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 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 numCols: ::std::os::raw::c_int, + 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, } -impl Default for TupleTableSlot { +impl Default for SubPlanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17955,54 +16084,35 @@ 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; +#[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, } -extern "C" { - pub static TTSOpsBufferHeapTuple: TupleTableSlotOps; +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 VirtualTupleTableSlot { - pub base: TupleTableSlot, - pub data: *mut ::std::os::raw::c_char, +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 VirtualTupleTableSlot { +impl Default for DomainConstraintState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18011,15 +16121,44 @@ impl Default for VirtualTupleTableSlot { } } } +pub type ExecProcNodeMtd = + ::std::option::Option *mut TupleTableSlot>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HeapTupleTableSlot { - pub base: TupleTableSlot, - pub tuple: HeapTuple, - pub off: uint32, - pub tupdata: HeapTupleData, +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 HeapTupleTableSlot { +impl Default for PlanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18030,11 +16169,20 @@ impl Default for HeapTupleTableSlot { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BufferHeapTupleTableSlot { - pub base: HeapTupleTableSlot, - pub buffer: Buffer, +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 BufferHeapTupleTableSlot { +impl Default for EPQState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18045,14 +16193,13 @@ impl Default for BufferHeapTupleTableSlot { } #[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 ResultState { + pub ps: PlanState, + pub resconstantqual: *mut ExprState, + pub rs_done: bool, + pub rs_checkqual: bool, } -impl Default for MinimalTupleTableSlot { +impl Default for ResultState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18061,619 +16208,557 @@ 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) - }) -} -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 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); - } - ExecResetTupleTable(arg_tupleTable, arg_shouldFree) - }) +#[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 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; +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() } - MakeSingleTupleTableSlot(arg_tupdesc, arg_tts_ops) - }) + } } -pub unsafe fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot); - } - ExecDropSingleTupleTableSlot(arg_slot) - }) +#[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_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 ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: 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() } - ExecSetSlotDescriptor(arg_slot, arg_tupdesc) - }) + } } -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 ExecStoreHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ) -> *mut TupleTableSlot; - } - ExecStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParallelAppendState { + _unused: [u8; 0], } -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 ExecForceStoreHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ); - } - ExecForceStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionPruneState { + _unused: [u8; 0], } -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 ExecStoreBufferHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_buffer: Buffer, - ) -> *mut TupleTableSlot; - } - ExecStoreBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) - }) +#[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>, } -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 ExecStorePinnedBufferHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_buffer: Buffer, - ) -> *mut TupleTableSlot; +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() } - ExecStorePinnedBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) - }) + } } -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; - } - ExecStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) - }) +#[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_prune_state: *mut PartitionPruneState, + pub ms_valid_subplans: *mut Bitmapset, } -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 ExecForceStoreMinimalTuple( - arg_mtup: MinimalTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ); +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() } - ExecForceStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) - }) + } } -pub unsafe fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; - } - ExecStoreVirtualTuple(arg_slot) - }) +#[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 ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; +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() } - ExecStoreAllNullTuple(arg_slot) - }) + } } -pub unsafe fn ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot); - } - ExecStoreHeapTupleDatum(arg_data, arg_slot) - }) +#[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 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; +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() } - ExecFetchSlotHeapTuple(arg_slot, arg_materialize, arg_shouldFree) - }) + } } -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; - } - ExecFetchSlotMinimalTuple(arg_slot, arg_shouldFree) - }) +#[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 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; +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() } - ExecFetchSlotHeapTupleDatum(arg_slot) - }) + } } -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, - ); - } - slot_getmissingattrs(arg_slot, arg_startAttNum, arg_lastAttNum) - }) +#[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 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, - ); +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() } - 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, -} -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; - } - bms_copy(arg_a) - }) +#[derive(Debug, Copy, Clone)] +pub struct SeqScanState { + pub ss: ScanState, + pub pscan_len: Size, } -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; +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() } - bms_equal(arg_a, arg_b) - }) + } } -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; - } - bms_compare(arg_a, arg_b) - }) +#[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 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; +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() } - bms_make_singleton(arg_x) - }) + } } -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); - } - bms_free(arg_a) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexRuntimeKeyInfo { + pub scan_key: *mut ScanKeyData, + pub key_expr: *mut ExprState, + pub key_toastable: bool, } -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; +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() } - bms_union(arg_a, arg_b) - }) + } } -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; - } - bms_intersect(arg_a, arg_b) - }) +#[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, } -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; +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() } - bms_difference(arg_a, arg_b) - }) + } } -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; - } - bms_is_subset(arg_a, arg_b) - }) +#[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 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; +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() } - bms_subset_compare(arg_a, arg_b) - }) + } } -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; - } - bms_is_member(arg_x, arg_a) - }) +#[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 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; +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() } - bms_member_index(arg_a, arg_x) - }) + } } -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; - } - bms_overlap(arg_a, arg_b) - }) +#[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 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; +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() } - bms_overlap_list(arg_a, arg_b) - }) + } } -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; - } - bms_nonempty_difference(arg_a, arg_b) - }) +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 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; +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() } - bms_singleton_member(arg_a) - }) + } } -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; - } - bms_get_singleton_member(arg_a, arg_member) - }) +#[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 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; +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() } - bms_num_members(arg_a) - }) + } } -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; - } - bms_membership(arg_a) - }) +#[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 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; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubqueryScanState { + pub ss: ScanState, + pub subplan: *mut PlanState, } -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; +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() } - bms_del_member(arg_a, arg_x) - }) + } } -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; - } - bms_add_members(arg_a, arg_b) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FunctionScanPerFuncState { + _unused: [u8; 0], } -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 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 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 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() } - 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 ValuesScanState { + pub ss: ScanState, + pub rowcontext: *mut ExprContext, + pub exprlists: *mut *mut List, + pub exprstatelists: *mut *mut List, + pub array_len: ::std::os::raw::c_int, + pub curr_idx: ::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 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() } - 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 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 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 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() } - 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 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 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 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() } - bms_hash_value(arg_a) - }) + } } -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) - }) +#[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 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; +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() } - bitmap_match(arg_key1, arg_key2, arg_keysize) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TupleConversionMap { - pub indesc: TupleDesc, - pub outdesc: TupleDesc, - pub attrMap: *mut AttrMap, - pub invalues: *mut Datum, - pub inisnull: *mut bool, - pub outvalues: *mut Datum, - pub outisnull: *mut bool, +pub struct WorkTableScanState { + pub ss: ScanState, + pub rustate: *mut RecursiveUnionState, } -impl Default for TupleConversionMap { +impl Default for WorkTableScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18682,104 +16767,34 @@ 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; +#[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() } - convert_tuples_by_position(arg_indesc, arg_outdesc, arg_msg) - }) -} -pub unsafe fn convert_tuples_by_name( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, -) -> *mut TupleConversionMap { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn convert_tuples_by_name( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - ) -> *mut TupleConversionMap; - } - convert_tuples_by_name(arg_indesc, arg_outdesc) - }) -} -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) - }) -} -pub unsafe fn execute_attr_map_slot( - arg_attrMap: *mut AttrMap, - 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 AttrMap, - arg_in_slot: *mut TupleTableSlot, - arg_out_slot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; - } - execute_attr_map_slot(arg_attrMap, arg_in_slot, arg_out_slot) - }) -} -pub unsafe fn execute_attr_map_cols( - arg_attrMap: *mut AttrMap, - arg_inbitmap: *mut Bitmapset, -) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn execute_attr_map_cols( - arg_attrMap: *mut AttrMap, - arg_inbitmap: *mut Bitmapset, - ) -> *mut Bitmapset; - } - execute_attr_map_cols(arg_attrMap, arg_inbitmap) - }) -} -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); - } - 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 CustomScanState { + pub ss: ScanState, + pub flags: uint32, + pub custom_ps: *mut List, + pub pscan_len: Size, + pub methods: *const CustomExecMethods, } -impl Default for tm { +impl Default for CustomScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18789,575 +16804,513 @@ 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() - }) -} -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) - }) +#[derive(Debug, Copy, Clone)] +pub struct JoinState { + pub ps: PlanState, + pub jointype: JoinType, + pub single_match: bool, + pub joinqual: *mut ExprState, } -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; +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() } - 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) - }) +#[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 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; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MergeJoinClauseData { + _unused: [u8; 0], } -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 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, } -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 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() } - 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 HashJoinTupleData { + _unused: [u8; 0], } -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 type HashJoinTuple = *mut HashJoinTupleData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HashJoinTableData { + _unused: [u8; 0], } -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 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, } -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 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() } - 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 MaterialState { + pub ss: ScanState, + pub eflags: ::std::os::raw::c_int, + pub eof_underlying: bool, + pub tuplestorestate: *mut Tuplestorestate, } -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 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() } - 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]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PresortedKeyData { + pub flinfo: FmgrInfo, + pub fcinfo: FunctionCallInfo, + pub attno: OffsetNumber, } -pub unsafe fn tzset() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tzset(); +impl Default for PresortedKeyData { + 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 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) - }) +#[repr(C)] +#[derive(Debug)] +pub struct SharedSortInfo { + pub num_workers: ::std::os::raw::c_int, + pub sinstrument: __IncompleteArrayField, } -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; +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() } - 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) - }) +#[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, } -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; +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IncrementalSortGroupInfo { + pub groupCount: int64, + pub maxDiskSpaceUsed: int64, + pub totalDiskSpaceUsed: int64, + pub maxMemorySpaceUsed: int64, + pub totalMemorySpaceUsed: int64, + pub sortMethods: bits32, } -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, Default, Copy, Clone)] +pub struct IncrementalSortInfo { + pub fullsortGroupInfo: IncrementalSortGroupInfo, + pub prefixsortGroupInfo: IncrementalSortGroupInfo, } -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) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct SharedIncrementalSortInfo { + pub num_workers: ::std::os::raw::c_int, + pub sinfo: __IncompleteArrayField, } -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 IncrementalSortExecutionStatus_INCSORT_LOADFULLSORT: IncrementalSortExecutionStatus = 0; +pub const IncrementalSortExecutionStatus_INCSORT_LOADPREFIXSORT: IncrementalSortExecutionStatus = 1; +pub const IncrementalSortExecutionStatus_INCSORT_READFULLSORT: IncrementalSortExecutionStatus = 2; +pub const IncrementalSortExecutionStatus_INCSORT_READPREFIXSORT: IncrementalSortExecutionStatus = 3; +pub type IncrementalSortExecutionStatus = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IncrementalSortState { + pub ss: ScanState, + pub bounded: bool, + pub bound: int64, + pub outerNodeDone: bool, + pub bound_Done: int64, + pub execution_status: IncrementalSortExecutionStatus, + pub n_fullsort_remaining: int64, + pub fullsort_state: *mut Tuplesortstate, + pub prefixsort_state: *mut Tuplesortstate, + pub presorted_keys: *mut PresortedKeyData, + pub incsort_info: IncrementalSortInfo, + pub group_pivot: *mut TupleTableSlot, + pub transfer_tuple: *mut TupleTableSlot, + pub am_worker: bool, + pub shared_info: *mut SharedIncrementalSortInfo, } -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 IncrementalSortState { + 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 GroupState { + pub ss: ScanState, + pub eqfunction: *mut ExprState, + pub grp_done: 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 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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct AggregateInstrumentation { + pub hash_mem_peak: Size, + pub hash_disk_used: uint64, + pub hash_batches_used: ::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; - } - timer_gettime(arg___timerid, arg___value) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct SharedAggInfo { + pub num_workers: ::std::os::raw::c_int, + pub sinstrument: __IncompleteArrayField, } -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 AggStatePerAggData { + _unused: [u8; 0], } -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 AggStatePerAgg = *mut AggStatePerAggData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AggStatePerTransData { + _unused: [u8; 0], } -pub type instr_time = timespec; +pub type AggStatePerTrans = *mut AggStatePerTransData; #[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 AggStatePerGroupData { + _unused: [u8; 0], } +pub type AggStatePerGroup = *mut AggStatePerGroupData; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct WalUsage { - pub wal_records: ::std::os::raw::c_long, - pub wal_fpi: ::std::os::raw::c_long, - pub wal_bytes: uint64, +#[derive(Debug, Copy, Clone)] +pub struct AggStatePerPhaseData { + _unused: [u8; 0], } -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_WAL: InstrumentOption = 8; -pub const InstrumentOption_INSTRUMENT_ALL: InstrumentOption = 2147483647; -pub type InstrumentOption = ::std::os::raw::c_uint; +pub type AggStatePerPhase = *mut AggStatePerPhaseData; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Instrumentation { - pub need_timer: bool, - pub need_bufusage: bool, - pub need_walusage: bool, - pub running: bool, - pub starttime: instr_time, - pub counter: instr_time, - pub firsttuple: f64, - pub tuplecount: f64, - pub bufusage_start: BufferUsage, - pub walusage_start: WalUsage, - 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 walusage: WalUsage, +#[derive(Debug, Copy, Clone)] +pub struct AggStatePerHashData { + _unused: [u8; 0], } +pub type AggStatePerHash = *mut AggStatePerHashData; #[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; -} -extern "C" { - pub static mut pgWalUsage: WalUsage; -} -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) - }) +#[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 colnos_needed: *mut Bitmapset, + pub max_colno_needed: ::std::os::raw::c_int, + pub all_cols_needed: bool, + 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 hash_metacxt: MemoryContext, + pub hash_tapeinfo: *mut HashTapeInfo, + pub hash_spills: *mut HashAggSpill, + pub hash_spill_rslot: *mut TupleTableSlot, + pub hash_spill_wslot: *mut TupleTableSlot, + pub hash_batches: *mut List, + pub hash_ever_spilled: bool, + pub hash_spill_mode: bool, + pub hash_mem_limit: Size, + pub hash_ngroups_limit: uint64, + pub hash_planned_partitions: ::std::os::raw::c_int, + pub hashentrysize: f64, + pub hash_mem_peak: Size, + pub hash_ngroups_current: uint64, + pub hash_disk_used: uint64, + pub hash_batches_used: ::std::os::raw::c_int, + pub perhash: AggStatePerHash, + pub hash_pergroup: *mut AggStatePerGroup, + pub all_pergroups: *mut AggStatePerGroup, + pub combinedproj: *mut ProjectionInfo, + pub shared_info: *mut SharedAggInfo, } -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, - ); +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() } - 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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowStatePerFuncData { + _unused: [u8; 0], } -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 type WindowStatePerFunc = *mut WindowStatePerFuncData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowStatePerAggData { + _unused: [u8; 0], } -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 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, } -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); +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() } - InstrAggNode(arg_dst, arg_add) - }) + } } -pub unsafe fn InstrStartParallelQuery() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrStartParallelQuery(); - } - InstrStartParallelQuery() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct UniqueState { + pub ps: PlanState, + pub eqfunction: *mut ExprState, } -pub unsafe fn InstrEndParallelQuery(arg_bufusage: *mut BufferUsage, arg_walusage: *mut WalUsage) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrEndParallelQuery(arg_bufusage: *mut BufferUsage, arg_walusage: *mut WalUsage); +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() } - InstrEndParallelQuery(arg_bufusage, arg_walusage) - }) + } } -pub unsafe fn InstrAccumParallelQuery(arg_bufusage: *mut BufferUsage, arg_walusage: *mut WalUsage) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrAccumParallelQuery(arg_bufusage: *mut BufferUsage, arg_walusage: *mut WalUsage); - } - InstrAccumParallelQuery(arg_bufusage, arg_walusage) - }) +#[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, } -pub unsafe fn BufferUsageAccumDiff( - arg_dst: *mut BufferUsage, - arg_add: *const BufferUsage, - arg_sub: *const BufferUsage, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BufferUsageAccumDiff( - arg_dst: *mut BufferUsage, - arg_add: *const BufferUsage, - arg_sub: *const BufferUsage, - ); +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() } - BufferUsageAccumDiff(arg_dst, arg_add, arg_sub) - }) + } } -pub unsafe fn WalUsageAccumDiff( - arg_dst: *mut WalUsage, - arg_add: *const WalUsage, - arg_sub: *const WalUsage, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn WalUsageAccumDiff( - arg_dst: *mut WalUsage, - arg_add: *const WalUsage, - arg_sub: *const WalUsage, - ); - } - WalUsageAccumDiff(arg_dst, arg_add, arg_sub) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GMReaderTupleBuffer { + _unused: [u8; 0], } -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, +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 FmgrInfo { +impl Default for GatherMergeState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19367,16 +17320,31 @@ impl Default for FmgrInfo { } } #[repr(C)] -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, +#[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: Size, } -impl Default for FunctionCallInfoBaseData { +#[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 { @@ -19385,10177 +17353,643 @@ impl Default for FunctionCallInfoBaseData { } } } -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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SetOpStatePerGroupData { + _unused: [u8; 0], } -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 fmgr_info_cxt( - arg_functionId: Oid, - arg_finfo: *mut FmgrInfo, - arg_mcxt: MemoryContext, - ); - } - fmgr_info_cxt(arg_functionId, arg_finfo, arg_mcxt) - }) +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, } -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 fmgr_info_copy( - arg_dstinfo: *mut FmgrInfo, - arg_srcinfo: *mut FmgrInfo, - arg_destcxt: MemoryContext, - ); +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() } - fmgr_info_copy(arg_dstinfo, arg_srcinfo, arg_destcxt) - }) + } } -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 fmgr_symbol( - arg_functionId: Oid, - arg_mod_: *mut *mut ::std::os::raw::c_char, - arg_fn_: *mut *mut ::std::os::raw::c_char, - ); - } - fmgr_symbol(arg_functionId, arg_mod_, arg_fn_) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LockRowsState { + pub ps: PlanState, + pub lr_arowMarks: *mut List, + pub lr_epqstate: EPQState, } -pub unsafe fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena; +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() } - pg_detoast_datum(arg_datum) - }) + } } -pub unsafe fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena; +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_WINDOWEND_TIES: LimitStateCond = 4; +pub const LimitStateCond_LIMIT_SUBPLANEOF: LimitStateCond = 5; +pub const LimitStateCond_LIMIT_WINDOWEND: LimitStateCond = 6; +pub const LimitStateCond_LIMIT_WINDOWSTART: LimitStateCond = 7; +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 limitOption: LimitOption, + pub offset: int64, + pub count: int64, + pub noCount: bool, + pub lstate: LimitStateCond, + pub position: int64, + pub subSlot: *mut TupleTableSlot, + pub eqfunction: *mut ExprState, + pub last_slot: *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() } - pg_detoast_datum_copy(arg_datum) - }) + } } -pub unsafe fn pg_detoast_datum_slice( - arg_datum: *mut varlena, - arg_first: int32, - arg_count: int32, -) -> *mut varlena { +pub const CommandTag_CMDTAG_UNKNOWN: CommandTag = 0; +pub const CommandTag_CMDTAG_ALTER_ACCESS_METHOD: CommandTag = 1; +pub const CommandTag_CMDTAG_ALTER_AGGREGATE: CommandTag = 2; +pub const CommandTag_CMDTAG_ALTER_CAST: CommandTag = 3; +pub const CommandTag_CMDTAG_ALTER_COLLATION: CommandTag = 4; +pub const CommandTag_CMDTAG_ALTER_CONSTRAINT: CommandTag = 5; +pub const CommandTag_CMDTAG_ALTER_CONVERSION: CommandTag = 6; +pub const CommandTag_CMDTAG_ALTER_DATABASE: CommandTag = 7; +pub const CommandTag_CMDTAG_ALTER_DEFAULT_PRIVILEGES: CommandTag = 8; +pub const CommandTag_CMDTAG_ALTER_DOMAIN: CommandTag = 9; +pub const CommandTag_CMDTAG_ALTER_EVENT_TRIGGER: CommandTag = 10; +pub const CommandTag_CMDTAG_ALTER_EXTENSION: CommandTag = 11; +pub const CommandTag_CMDTAG_ALTER_FOREIGN_DATA_WRAPPER: CommandTag = 12; +pub const CommandTag_CMDTAG_ALTER_FOREIGN_TABLE: CommandTag = 13; +pub const CommandTag_CMDTAG_ALTER_FUNCTION: CommandTag = 14; +pub const CommandTag_CMDTAG_ALTER_INDEX: CommandTag = 15; +pub const CommandTag_CMDTAG_ALTER_LANGUAGE: CommandTag = 16; +pub const CommandTag_CMDTAG_ALTER_LARGE_OBJECT: CommandTag = 17; +pub const CommandTag_CMDTAG_ALTER_MATERIALIZED_VIEW: CommandTag = 18; +pub const CommandTag_CMDTAG_ALTER_OPERATOR: CommandTag = 19; +pub const CommandTag_CMDTAG_ALTER_OPERATOR_CLASS: CommandTag = 20; +pub const CommandTag_CMDTAG_ALTER_OPERATOR_FAMILY: CommandTag = 21; +pub const CommandTag_CMDTAG_ALTER_POLICY: CommandTag = 22; +pub const CommandTag_CMDTAG_ALTER_PROCEDURE: CommandTag = 23; +pub const CommandTag_CMDTAG_ALTER_PUBLICATION: CommandTag = 24; +pub const CommandTag_CMDTAG_ALTER_ROLE: CommandTag = 25; +pub const CommandTag_CMDTAG_ALTER_ROUTINE: CommandTag = 26; +pub const CommandTag_CMDTAG_ALTER_RULE: CommandTag = 27; +pub const CommandTag_CMDTAG_ALTER_SCHEMA: CommandTag = 28; +pub const CommandTag_CMDTAG_ALTER_SEQUENCE: CommandTag = 29; +pub const CommandTag_CMDTAG_ALTER_SERVER: CommandTag = 30; +pub const CommandTag_CMDTAG_ALTER_STATISTICS: CommandTag = 31; +pub const CommandTag_CMDTAG_ALTER_SUBSCRIPTION: CommandTag = 32; +pub const CommandTag_CMDTAG_ALTER_SYSTEM: CommandTag = 33; +pub const CommandTag_CMDTAG_ALTER_TABLE: CommandTag = 34; +pub const CommandTag_CMDTAG_ALTER_TABLESPACE: CommandTag = 35; +pub const CommandTag_CMDTAG_ALTER_TEXT_SEARCH_CONFIGURATION: CommandTag = 36; +pub const CommandTag_CMDTAG_ALTER_TEXT_SEARCH_DICTIONARY: CommandTag = 37; +pub const CommandTag_CMDTAG_ALTER_TEXT_SEARCH_PARSER: CommandTag = 38; +pub const CommandTag_CMDTAG_ALTER_TEXT_SEARCH_TEMPLATE: CommandTag = 39; +pub const CommandTag_CMDTAG_ALTER_TRANSFORM: CommandTag = 40; +pub const CommandTag_CMDTAG_ALTER_TRIGGER: CommandTag = 41; +pub const CommandTag_CMDTAG_ALTER_TYPE: CommandTag = 42; +pub const CommandTag_CMDTAG_ALTER_USER_MAPPING: CommandTag = 43; +pub const CommandTag_CMDTAG_ALTER_VIEW: CommandTag = 44; +pub const CommandTag_CMDTAG_ANALYZE: CommandTag = 45; +pub const CommandTag_CMDTAG_BEGIN: CommandTag = 46; +pub const CommandTag_CMDTAG_CALL: CommandTag = 47; +pub const CommandTag_CMDTAG_CHECKPOINT: CommandTag = 48; +pub const CommandTag_CMDTAG_CLOSE: CommandTag = 49; +pub const CommandTag_CMDTAG_CLOSE_CURSOR: CommandTag = 50; +pub const CommandTag_CMDTAG_CLOSE_CURSOR_ALL: CommandTag = 51; +pub const CommandTag_CMDTAG_CLUSTER: CommandTag = 52; +pub const CommandTag_CMDTAG_COMMENT: CommandTag = 53; +pub const CommandTag_CMDTAG_COMMIT: CommandTag = 54; +pub const CommandTag_CMDTAG_COMMIT_PREPARED: CommandTag = 55; +pub const CommandTag_CMDTAG_COPY: CommandTag = 56; +pub const CommandTag_CMDTAG_COPY_FROM: CommandTag = 57; +pub const CommandTag_CMDTAG_CREATE_ACCESS_METHOD: CommandTag = 58; +pub const CommandTag_CMDTAG_CREATE_AGGREGATE: CommandTag = 59; +pub const CommandTag_CMDTAG_CREATE_CAST: CommandTag = 60; +pub const CommandTag_CMDTAG_CREATE_COLLATION: CommandTag = 61; +pub const CommandTag_CMDTAG_CREATE_CONSTRAINT: CommandTag = 62; +pub const CommandTag_CMDTAG_CREATE_CONVERSION: CommandTag = 63; +pub const CommandTag_CMDTAG_CREATE_DATABASE: CommandTag = 64; +pub const CommandTag_CMDTAG_CREATE_DOMAIN: CommandTag = 65; +pub const CommandTag_CMDTAG_CREATE_EVENT_TRIGGER: CommandTag = 66; +pub const CommandTag_CMDTAG_CREATE_EXTENSION: CommandTag = 67; +pub const CommandTag_CMDTAG_CREATE_FOREIGN_DATA_WRAPPER: CommandTag = 68; +pub const CommandTag_CMDTAG_CREATE_FOREIGN_TABLE: CommandTag = 69; +pub const CommandTag_CMDTAG_CREATE_FUNCTION: CommandTag = 70; +pub const CommandTag_CMDTAG_CREATE_INDEX: CommandTag = 71; +pub const CommandTag_CMDTAG_CREATE_LANGUAGE: CommandTag = 72; +pub const CommandTag_CMDTAG_CREATE_MATERIALIZED_VIEW: CommandTag = 73; +pub const CommandTag_CMDTAG_CREATE_OPERATOR: CommandTag = 74; +pub const CommandTag_CMDTAG_CREATE_OPERATOR_CLASS: CommandTag = 75; +pub const CommandTag_CMDTAG_CREATE_OPERATOR_FAMILY: CommandTag = 76; +pub const CommandTag_CMDTAG_CREATE_POLICY: CommandTag = 77; +pub const CommandTag_CMDTAG_CREATE_PROCEDURE: CommandTag = 78; +pub const CommandTag_CMDTAG_CREATE_PUBLICATION: CommandTag = 79; +pub const CommandTag_CMDTAG_CREATE_ROLE: CommandTag = 80; +pub const CommandTag_CMDTAG_CREATE_ROUTINE: CommandTag = 81; +pub const CommandTag_CMDTAG_CREATE_RULE: CommandTag = 82; +pub const CommandTag_CMDTAG_CREATE_SCHEMA: CommandTag = 83; +pub const CommandTag_CMDTAG_CREATE_SEQUENCE: CommandTag = 84; +pub const CommandTag_CMDTAG_CREATE_SERVER: CommandTag = 85; +pub const CommandTag_CMDTAG_CREATE_STATISTICS: CommandTag = 86; +pub const CommandTag_CMDTAG_CREATE_SUBSCRIPTION: CommandTag = 87; +pub const CommandTag_CMDTAG_CREATE_TABLE: CommandTag = 88; +pub const CommandTag_CMDTAG_CREATE_TABLE_AS: CommandTag = 89; +pub const CommandTag_CMDTAG_CREATE_TABLESPACE: CommandTag = 90; +pub const CommandTag_CMDTAG_CREATE_TEXT_SEARCH_CONFIGURATION: CommandTag = 91; +pub const CommandTag_CMDTAG_CREATE_TEXT_SEARCH_DICTIONARY: CommandTag = 92; +pub const CommandTag_CMDTAG_CREATE_TEXT_SEARCH_PARSER: CommandTag = 93; +pub const CommandTag_CMDTAG_CREATE_TEXT_SEARCH_TEMPLATE: CommandTag = 94; +pub const CommandTag_CMDTAG_CREATE_TRANSFORM: CommandTag = 95; +pub const CommandTag_CMDTAG_CREATE_TRIGGER: CommandTag = 96; +pub const CommandTag_CMDTAG_CREATE_TYPE: CommandTag = 97; +pub const CommandTag_CMDTAG_CREATE_USER_MAPPING: CommandTag = 98; +pub const CommandTag_CMDTAG_CREATE_VIEW: CommandTag = 99; +pub const CommandTag_CMDTAG_DEALLOCATE: CommandTag = 100; +pub const CommandTag_CMDTAG_DEALLOCATE_ALL: CommandTag = 101; +pub const CommandTag_CMDTAG_DECLARE_CURSOR: CommandTag = 102; +pub const CommandTag_CMDTAG_DELETE: CommandTag = 103; +pub const CommandTag_CMDTAG_DISCARD: CommandTag = 104; +pub const CommandTag_CMDTAG_DISCARD_ALL: CommandTag = 105; +pub const CommandTag_CMDTAG_DISCARD_PLANS: CommandTag = 106; +pub const CommandTag_CMDTAG_DISCARD_SEQUENCES: CommandTag = 107; +pub const CommandTag_CMDTAG_DISCARD_TEMP: CommandTag = 108; +pub const CommandTag_CMDTAG_DO: CommandTag = 109; +pub const CommandTag_CMDTAG_DROP_ACCESS_METHOD: CommandTag = 110; +pub const CommandTag_CMDTAG_DROP_AGGREGATE: CommandTag = 111; +pub const CommandTag_CMDTAG_DROP_CAST: CommandTag = 112; +pub const CommandTag_CMDTAG_DROP_COLLATION: CommandTag = 113; +pub const CommandTag_CMDTAG_DROP_CONSTRAINT: CommandTag = 114; +pub const CommandTag_CMDTAG_DROP_CONVERSION: CommandTag = 115; +pub const CommandTag_CMDTAG_DROP_DATABASE: CommandTag = 116; +pub const CommandTag_CMDTAG_DROP_DOMAIN: CommandTag = 117; +pub const CommandTag_CMDTAG_DROP_EVENT_TRIGGER: CommandTag = 118; +pub const CommandTag_CMDTAG_DROP_EXTENSION: CommandTag = 119; +pub const CommandTag_CMDTAG_DROP_FOREIGN_DATA_WRAPPER: CommandTag = 120; +pub const CommandTag_CMDTAG_DROP_FOREIGN_TABLE: CommandTag = 121; +pub const CommandTag_CMDTAG_DROP_FUNCTION: CommandTag = 122; +pub const CommandTag_CMDTAG_DROP_INDEX: CommandTag = 123; +pub const CommandTag_CMDTAG_DROP_LANGUAGE: CommandTag = 124; +pub const CommandTag_CMDTAG_DROP_MATERIALIZED_VIEW: CommandTag = 125; +pub const CommandTag_CMDTAG_DROP_OPERATOR: CommandTag = 126; +pub const CommandTag_CMDTAG_DROP_OPERATOR_CLASS: CommandTag = 127; +pub const CommandTag_CMDTAG_DROP_OPERATOR_FAMILY: CommandTag = 128; +pub const CommandTag_CMDTAG_DROP_OWNED: CommandTag = 129; +pub const CommandTag_CMDTAG_DROP_POLICY: CommandTag = 130; +pub const CommandTag_CMDTAG_DROP_PROCEDURE: CommandTag = 131; +pub const CommandTag_CMDTAG_DROP_PUBLICATION: CommandTag = 132; +pub const CommandTag_CMDTAG_DROP_ROLE: CommandTag = 133; +pub const CommandTag_CMDTAG_DROP_ROUTINE: CommandTag = 134; +pub const CommandTag_CMDTAG_DROP_RULE: CommandTag = 135; +pub const CommandTag_CMDTAG_DROP_SCHEMA: CommandTag = 136; +pub const CommandTag_CMDTAG_DROP_SEQUENCE: CommandTag = 137; +pub const CommandTag_CMDTAG_DROP_SERVER: CommandTag = 138; +pub const CommandTag_CMDTAG_DROP_STATISTICS: CommandTag = 139; +pub const CommandTag_CMDTAG_DROP_SUBSCRIPTION: CommandTag = 140; +pub const CommandTag_CMDTAG_DROP_TABLE: CommandTag = 141; +pub const CommandTag_CMDTAG_DROP_TABLESPACE: CommandTag = 142; +pub const CommandTag_CMDTAG_DROP_TEXT_SEARCH_CONFIGURATION: CommandTag = 143; +pub const CommandTag_CMDTAG_DROP_TEXT_SEARCH_DICTIONARY: CommandTag = 144; +pub const CommandTag_CMDTAG_DROP_TEXT_SEARCH_PARSER: CommandTag = 145; +pub const CommandTag_CMDTAG_DROP_TEXT_SEARCH_TEMPLATE: CommandTag = 146; +pub const CommandTag_CMDTAG_DROP_TRANSFORM: CommandTag = 147; +pub const CommandTag_CMDTAG_DROP_TRIGGER: CommandTag = 148; +pub const CommandTag_CMDTAG_DROP_TYPE: CommandTag = 149; +pub const CommandTag_CMDTAG_DROP_USER_MAPPING: CommandTag = 150; +pub const CommandTag_CMDTAG_DROP_VIEW: CommandTag = 151; +pub const CommandTag_CMDTAG_EXECUTE: CommandTag = 152; +pub const CommandTag_CMDTAG_EXPLAIN: CommandTag = 153; +pub const CommandTag_CMDTAG_FETCH: CommandTag = 154; +pub const CommandTag_CMDTAG_GRANT: CommandTag = 155; +pub const CommandTag_CMDTAG_GRANT_ROLE: CommandTag = 156; +pub const CommandTag_CMDTAG_IMPORT_FOREIGN_SCHEMA: CommandTag = 157; +pub const CommandTag_CMDTAG_INSERT: CommandTag = 158; +pub const CommandTag_CMDTAG_LISTEN: CommandTag = 159; +pub const CommandTag_CMDTAG_LOAD: CommandTag = 160; +pub const CommandTag_CMDTAG_LOCK_TABLE: CommandTag = 161; +pub const CommandTag_CMDTAG_MOVE: CommandTag = 162; +pub const CommandTag_CMDTAG_NOTIFY: CommandTag = 163; +pub const CommandTag_CMDTAG_PREPARE: CommandTag = 164; +pub const CommandTag_CMDTAG_PREPARE_TRANSACTION: CommandTag = 165; +pub const CommandTag_CMDTAG_REASSIGN_OWNED: CommandTag = 166; +pub const CommandTag_CMDTAG_REFRESH_MATERIALIZED_VIEW: CommandTag = 167; +pub const CommandTag_CMDTAG_REINDEX: CommandTag = 168; +pub const CommandTag_CMDTAG_RELEASE: CommandTag = 169; +pub const CommandTag_CMDTAG_RESET: CommandTag = 170; +pub const CommandTag_CMDTAG_REVOKE: CommandTag = 171; +pub const CommandTag_CMDTAG_REVOKE_ROLE: CommandTag = 172; +pub const CommandTag_CMDTAG_ROLLBACK: CommandTag = 173; +pub const CommandTag_CMDTAG_ROLLBACK_PREPARED: CommandTag = 174; +pub const CommandTag_CMDTAG_SAVEPOINT: CommandTag = 175; +pub const CommandTag_CMDTAG_SECURITY_LABEL: CommandTag = 176; +pub const CommandTag_CMDTAG_SELECT: CommandTag = 177; +pub const CommandTag_CMDTAG_SELECT_FOR_KEY_SHARE: CommandTag = 178; +pub const CommandTag_CMDTAG_SELECT_FOR_NO_KEY_UPDATE: CommandTag = 179; +pub const CommandTag_CMDTAG_SELECT_FOR_SHARE: CommandTag = 180; +pub const CommandTag_CMDTAG_SELECT_FOR_UPDATE: CommandTag = 181; +pub const CommandTag_CMDTAG_SELECT_INTO: CommandTag = 182; +pub const CommandTag_CMDTAG_SET: CommandTag = 183; +pub const CommandTag_CMDTAG_SET_CONSTRAINTS: CommandTag = 184; +pub const CommandTag_CMDTAG_SHOW: CommandTag = 185; +pub const CommandTag_CMDTAG_START_TRANSACTION: CommandTag = 186; +pub const CommandTag_CMDTAG_TRUNCATE_TABLE: CommandTag = 187; +pub const CommandTag_CMDTAG_UNLISTEN: CommandTag = 188; +pub const CommandTag_CMDTAG_UPDATE: CommandTag = 189; +pub const CommandTag_CMDTAG_VACUUM: CommandTag = 190; +pub const CommandTag_COMMAND_TAG_NEXTTAG: CommandTag = 191; +pub type CommandTag = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct QueryCompletion { + pub commandTag: CommandTag, + pub nprocessed: uint64, +} +impl Default for QueryCompletion { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn InitializeQueryCompletion(arg_qc: *mut QueryCompletion) { 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 InitializeQueryCompletion(arg_qc: *mut QueryCompletion); } - pg_detoast_datum_slice(arg_datum, arg_first, arg_count) + InitializeQueryCompletion(arg_qc) }) } -pub unsafe fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena { +pub unsafe fn GetCommandTagName(arg_commandTag: CommandTag) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena; + fn GetCommandTagName(arg_commandTag: CommandTag) -> *const ::std::os::raw::c_char; } - pg_detoast_datum_packed(arg_datum) + GetCommandTagName(arg_commandTag) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Pg_finfo_record { - pub api_version: ::std::os::raw::c_int, -} -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 float8byval: ::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 { +pub unsafe fn command_tag_display_rowcount(arg_commandTag: CommandTag) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall1Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn command_tag_display_rowcount(arg_commandTag: CommandTag) -> bool; } - DirectFunctionCall1Coll(arg_func, arg_collation, arg_arg1) + command_tag_display_rowcount(arg_commandTag) }) } -pub unsafe fn DirectFunctionCall2Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, -) -> Datum { +pub unsafe fn command_tag_event_trigger_ok(arg_commandTag: CommandTag) -> bool { 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 command_tag_event_trigger_ok(arg_commandTag: CommandTag) -> bool; } - DirectFunctionCall2Coll(arg_func, arg_collation, arg_arg1, arg_arg2) + command_tag_event_trigger_ok(arg_commandTag) }) } -pub unsafe fn DirectFunctionCall3Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, -) -> Datum { +pub unsafe fn command_tag_table_rewrite_ok(arg_commandTag: CommandTag) -> 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 command_tag_table_rewrite_ok(arg_commandTag: CommandTag) -> bool; } - DirectFunctionCall3Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3) + command_tag_table_rewrite_ok(arg_commandTag) }) } -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 GetCommandTagEnum(arg_tagname: *const ::std::os::raw::c_char) -> CommandTag { 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 GetCommandTagEnum(arg_tagname: *const ::std::os::raw::c_char) -> CommandTag; } - DirectFunctionCall4Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + GetCommandTagEnum(arg_tagname) }) } -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 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: CommandTag, arg_dest: CommandDest) { 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 BeginCommand(arg_commandTag: CommandTag, arg_dest: CommandDest); } - DirectFunctionCall5Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - ) + BeginCommand(arg_commandTag, arg_dest) }) } -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 CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver { 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 CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver; } - DirectFunctionCall6Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - ) + CreateDestReceiver(arg_dest) }) } -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 EndCommand( + arg_qc: *const QueryCompletion, + arg_dest: CommandDest, + arg_force_undecorated_output: bool, +) { 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 EndCommand( + arg_qc: *const QueryCompletion, + arg_dest: CommandDest, + arg_force_undecorated_output: bool, + ); } - DirectFunctionCall7Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - ) + EndCommand(arg_qc, arg_dest, arg_force_undecorated_output) }) } -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 EndReplicationCommand(arg_commandTag: *const ::std::os::raw::c_char) { 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 EndReplicationCommand(arg_commandTag: *const ::std::os::raw::c_char); } - DirectFunctionCall8Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - ) + EndReplicationCommand(arg_commandTag) }) } -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 NullCommand(arg_dest: CommandDest) { 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 NullCommand(arg_dest: CommandDest); } - DirectFunctionCall9Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - arg_arg9, - ) + NullCommand(arg_dest) }) } -pub unsafe fn CallerFInfoFunctionCall1( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +pub unsafe fn ReadyForQuery(arg_dest: CommandDest) { 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 ReadyForQuery(arg_dest: CommandDest); } - CallerFInfoFunctionCall1(arg_func, arg_flinfo, arg_collation, arg_arg1) + ReadyForQuery(arg_dest) }) } -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 CallerFInfoFunctionCall2( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - ) -> Datum; - } - CallerFInfoFunctionCall2(arg_func, arg_flinfo, arg_collation, arg_arg1, arg_arg2) - }) +#[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 unsafe fn FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> Datum; +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() } - FunctionCall0Coll(arg_flinfo, arg_collation) - }) + } } -pub unsafe fn FunctionCall1Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +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 FunctionCall1Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + 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; } - FunctionCall1Coll(arg_flinfo, arg_collation, arg_arg1) + CreateQueryDesc( + arg_plannedstmt, + arg_sourceText, + arg_snapshot, + arg_crosscheck_snapshot, + arg_dest, + arg_params, + arg_queryEnv, + arg_instrument_options, + ) }) } -pub unsafe fn FunctionCall2Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, -) -> Datum { +pub unsafe fn FreeQueryDesc(arg_qdesc: *mut QueryDesc) { 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 FreeQueryDesc(arg_qdesc: *mut QueryDesc); } - FunctionCall2Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2) + FreeQueryDesc(arg_qdesc) }) } -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 FunctionCall3Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - ) -> Datum; - } - FunctionCall3Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Value { + pub type_: NodeTag, + pub val: Value_ValUnion, } -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 FunctionCall4Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - ) -> Datum; - } - FunctionCall4Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union Value_ValUnion { + pub ival: ::std::os::raw::c_int, + pub str_: *mut ::std::os::raw::c_char, } -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 FunctionCall5Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - ) -> Datum; +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() } - FunctionCall5Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - ) - }) + } } -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 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; +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() } - FunctionCall6Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - ) - }) + } } -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 makeInteger(arg_i: ::std::os::raw::c_int) -> *mut Value { 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 makeInteger(arg_i: ::std::os::raw::c_int) -> *mut Value; } - FunctionCall7Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - ) + makeInteger(arg_i) }) } -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 makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value { 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 makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value; } - FunctionCall8Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - ) + makeFloat(arg_numericStr) }) } -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 makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { 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 makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; } - FunctionCall9Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - arg_arg9, - ) + makeString(arg_str_) }) } -pub unsafe fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum { +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 OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum; + fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; } - OidFunctionCall0Coll(arg_functionId, arg_collation) + makeBitString(arg_str_) }) } -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 OidFunctionCall1Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; - } - OidFunctionCall1Coll(arg_functionId, arg_collation, arg_arg1) - }) +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 limitOption: LimitOption, + 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 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 OidFunctionCall2Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - ) -> Datum; - } - OidFunctionCall2Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2) - }) -} -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 OidFunctionCall3Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - ) -> Datum; - } - OidFunctionCall3Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3) - }) -} -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 OidFunctionCall4Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - ) -> Datum; - } - OidFunctionCall4Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) - }) -} -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 OidFunctionCall5Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - ) -> Datum; - } - OidFunctionCall5Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - ) - }) -} -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 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 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; - } - OidFunctionCall7Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - ) - }) -} -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 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; - } - OidFunctionCall8Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - ) - }) -} -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 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, - ) - }) -} -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 InputFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_str_: *mut ::std::os::raw::c_char, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; - } - InputFunctionCall(arg_flinfo, arg_str_, arg_typioparam, arg_typmod) - }) -} -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 OidInputFunctionCall( - arg_functionId: Oid, - arg_str_: *mut ::std::os::raw::c_char, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; - } - OidInputFunctionCall(arg_functionId, arg_str_, arg_typioparam, arg_typmod) - }) -} -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 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; - } - 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 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; - } - 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) - }) -} -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; - } - 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) - }) -} -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); - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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) - }) -} -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; - } - 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 unsafe fn get_fn_opclass_options(arg_flinfo: *mut FmgrInfo) -> *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_fn_opclass_options(arg_flinfo: *mut FmgrInfo) -> *mut bytea; - } - get_fn_opclass_options(arg_flinfo) - }) -} -pub unsafe fn has_fn_opclass_options(arg_flinfo: *mut FmgrInfo) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn has_fn_opclass_options(arg_flinfo: *mut FmgrInfo) -> bool; - } - has_fn_opclass_options(arg_flinfo) - }) -} -pub unsafe fn set_fn_opclass_options(arg_flinfo: *mut FmgrInfo, arg_options: *mut bytea) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_fn_opclass_options(arg_flinfo: *mut FmgrInfo, arg_options: *mut bytea); - } - set_fn_opclass_options(arg_flinfo, arg_options) - }) -} -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; - } - CheckFunctionValidatorAccess(arg_validatorOid, arg_functionOid) - }) -} -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 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; - } - 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) - }) -} -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); - } - 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) - }) -} -pub unsafe fn EstimateLibraryStateSpace() -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EstimateLibraryStateSpace() -> Size; - } - 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, - ); - } - 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); - } - 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; - } - 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; - } - 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; - } - AggGetTempMemoryContext(arg_fcinfo) - }) -} -pub unsafe fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool; - } - AggStateIsShared(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, - ); - } - 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; -} -extern "C" { - pub static mut fmgr_hook: fmgr_hook_type; -} -#[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, ->; -#[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)] -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( - 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)] -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 paramValuesStr: *mut ::std::os::raw::c_char, - pub numParams: ::std::os::raw::c_int, - 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() - } - } -} -#[repr(C)] -pub struct ParamExecData { - pub execPlan: *mut ::std::os::raw::c_void, - pub value: Datum, - pub isnull: bool, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParamsErrorCbData { - pub portalName: *const ::std::os::raw::c_char, - pub params: ParamListInfo, -} -impl Default for ParamsErrorCbData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -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 unsafe fn BuildParamLogString( - arg_params: ParamListInfo, - arg_paramTextValues: *mut *mut ::std::os::raw::c_char, - arg_valueLen: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildParamLogString( - arg_params: ParamListInfo, - arg_paramTextValues: *mut *mut ::std::os::raw::c_char, - arg_valueLen: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - BuildParamLogString(arg_params, arg_paramTextValues, arg_valueLen) - }) -} -pub unsafe fn ParamsErrorCallback(arg_arg: *mut ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ParamsErrorCallback(arg_arg: *mut ::std::os::raw::c_void); - } - ParamsErrorCallback(arg_arg) - }) -} -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, -} -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() - } - } -} -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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Expr { - pub type_: NodeTag, -} -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() - } - } -} -#[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 varnosyn: Index, - pub varattnosyn: AttrNumber, - pub location: ::std::os::raw::c_int, -} -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() - } - } -} -#[repr(C)] -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, -} -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() - } - } -} -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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -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() - } - } -} -#[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() - } - } -} -#[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() - } - } -} -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() - } - } -} -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() - } - } -} -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, -} -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() - } - } -} -#[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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlternativeSubPlan { - pub xpr: Expr, - pub subplans: *mut List, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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() - } - } -} -#[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, -} -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() - } - } -} -#[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 { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -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, -} -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() - } - } -} -#[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 appendRelations: *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, -} -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() - } - } -} -#[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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -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 ProjectSet { - pub plan: Plan, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Append { - pub plan: Plan, - pub apprelids: *mut Bitmapset, - pub appendplans: *mut List, - pub first_partial_plan: ::std::os::raw::c_int, - pub part_prune_info: *mut PartitionPruneInfo, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MergeAppend { - pub plan: Plan, - pub apprelids: *mut Bitmapset, - 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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapAnd { - pub plan: Plan, - pub bitmapplans: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapOr { - pub plan: Plan, - pub isshared: bool, - pub bitmapplans: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Scan { - pub plan: Plan, - pub scanrelid: Index, -} -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() - } - } -} -pub type SeqScan = Scan; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SampleScan { - pub scan: Scan, - pub tablesample: *mut TableSampleClause, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapHeapScan { - pub scan: Scan, - pub bitmapqualorig: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TidScan { - pub scan: Scan, - pub tidquals: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SubqueryScan { - pub scan: Scan, - pub subplan: *mut Plan, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FunctionScan { - pub scan: Scan, - pub functions: *mut List, - pub funcordinality: bool, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ValuesScan { - pub scan: Scan, - pub values_lists: *mut List, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TableFuncScan { - pub scan: Scan, - pub tablefunc: *mut TableFunc, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NamedTuplestoreScan { - pub scan: Scan, - pub enrname: *mut ::std::os::raw::c_char, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WorkTableScan { - pub scan: Scan, - pub wtParam: ::std::os::raw::c_int, -} -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() - } - } -} -#[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() - } - } -} -#[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, -} -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 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 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, Copy, Clone)] -pub struct NestLoopParam { - pub type_: NodeTag, - pub paramno: ::std::os::raw::c_int, - pub paramval: *mut Var, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Material { - pub plan: Plan, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IncrementalSort { - pub sort: Sort, - pub nPresortedCols: ::std::os::raw::c_int, -} -impl Default for IncrementalSort { - fn default() -> Self { - let mut s = ::std::mem::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 { - pub plan: Plan, - pub numCols: ::std::os::raw::c_int, - pub grpColIdx: *mut AttrNumber, - pub grpOperators: *mut Oid, - pub grpCollations: *mut Oid, -} -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() - } - } -} -#[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 transitionSpace: uint64, - 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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Limit { - pub plan: Plan, - pub limitOffset: *mut Node, - pub limitCount: *mut Node, - pub limitOption: LimitOption, - pub uniqNumCols: ::std::os::raw::c_int, - pub uniqColIdx: *mut AttrNumber, - pub uniqOperators: *mut Oid, - pub uniqCollations: *mut Oid, -} -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 PartitionPruneInfo { - pub type_: NodeTag, - pub prune_infos: *mut List, - pub other_subplans: *mut Bitmapset, -} -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() - } - } -} -#[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, -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionPruneStep { - pub type_: NodeTag, - pub step_id: ::std::os::raw::c_int, -} -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() - } - } -} -#[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, -} -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() - } - } -} -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, -} -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() - } - } -} -#[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() - } - } -} -#[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_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() - }) -} -#[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_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, Copy, Clone)] -pub struct PartitionBoundInfoData { - _unused: [u8; 0], -} -pub type PartitionBoundInfo = *mut PartitionBoundInfoData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionKeyData { - _unused: [u8; 0], -} -pub type PartitionKey = *mut PartitionKeyData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionDescData { - _unused: [u8; 0], -} -pub type PartitionDesc = *mut PartitionDescData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionDirectoryData { - _unused: [u8; 0], -} -pub type PartitionDirectory = *mut PartitionDirectoryData; -#[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, -} -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) - }) -} -#[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 ConditionVariableTimedSleep( - arg_cv: *mut ConditionVariable, - arg_timeout: ::std::os::raw::c_long, - arg_wait_event_info: uint32, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableTimedSleep( - arg_cv: *mut ConditionVariable, - arg_timeout: ::std::os::raw::c_long, - arg_wait_event_info: uint32, - ) -> bool; - } - ConditionVariableTimedSleep(arg_cv, arg_timeout, 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) - }) -} -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 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 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 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 unsafe fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; - } - 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 tgisclone: 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() - } - } -} -#[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() - } - } -} -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 closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} -pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - 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 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 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; - } - 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, - ) - }) -} -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 AcquireExternalFD() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AcquireExternalFD() -> bool; - } - AcquireExternalFD() - }) -} -pub unsafe fn ReserveExternalFD() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReserveExternalFD(); - } - ReserveExternalFD() - }) -} -pub unsafe fn ReleaseExternalFD() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReleaseExternalFD(); - } - ReleaseExternalFD() - }) -} -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 RemovePgTempFilesInDir( - arg_tmpdirname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - arg_unlink_all: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemovePgTempFilesInDir( - arg_tmpdirname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - arg_unlink_all: bool, - ); - } - RemovePgTempFilesInDir(arg_tmpdirname, arg_missing_ok, arg_unlink_all) - }) -} -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 fsync_fname_ext( - arg_fname: *const ::std::os::raw::c_char, - arg_isdir: bool, - arg_ignore_perm: bool, - arg_elevel: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fsync_fname_ext( - arg_fname: *const ::std::os::raw::c_char, - arg_isdir: bool, - arg_ignore_perm: bool, - arg_elevel: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - fsync_fname_ext(arg_fname, arg_isdir, arg_ignore_perm, arg_elevel) - }) -} -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_rename_excl( - 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_excl( - 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_excl(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) - }) -} -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 unsafe fn RelationGetIndexRawAttOptions(arg_relation: Relation) -> *mut Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetIndexRawAttOptions(arg_relation: Relation) -> *mut Datum; - } - RelationGetIndexRawAttOptions(arg_relation) - }) -} -pub unsafe fn RelationGetIndexAttOptions( - arg_relation: Relation, - arg_copy: bool, -) -> *mut *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetIndexAttOptions( - arg_relation: Relation, - arg_copy: bool, - ) -> *mut *mut bytea; - } - RelationGetIndexAttOptions(arg_relation, arg_copy) - }) -} -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_attrKind: IndexAttrBitmapKind, -) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetIndexAttrBitmap( - arg_relation: Relation, - arg_attrKind: IndexAttrBitmapKind, - ) -> *mut Bitmapset; - } - RelationGetIndexAttrBitmap(arg_relation, arg_attrKind) - }) -} -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 RelationAssumeNewRelfilenode(arg_relation: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationAssumeNewRelfilenode(arg_relation: Relation); - } - RelationAssumeNewRelfilenode(arg_relation) - }) -} -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 AssertPendingSyncs_RelationCache() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AssertPendingSyncs_RelationCache(); - } - AssertPendingSyncs_RelationCache() - }) -} -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, 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 = 4; -pub const TuplesortMethod_SORT_TYPE_EXTERNAL_MERGE: TuplesortMethod = 8; -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: int64, -} -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_used_bound(arg_state: *mut Tuplesortstate) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_used_bound(arg_state: *mut Tuplesortstate) -> bool; - } - tuplesort_used_bound(arg_state) - }) -} -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_reset(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_reset(arg_state: *mut Tuplesortstate); - } - tuplesort_reset(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, 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, 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)] -pub struct ExprState { - pub tag: NodeTag, - 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_OpclassOptions: *mut Datum, - 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)] -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)] -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)] -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_NumGeneratedNeeded: ::std::os::raw::c_int, - 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_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() - } - } -} -extern "C" { - pub static pg_leftmost_one_pos: [uint8; 256usize]; -} -extern "C" { - pub static pg_rightmost_one_pos: [uint8; 256usize]; -} -extern "C" { - pub static pg_number_of_ones: [uint8; 256usize]; -} -extern "C" { - pub static mut pg_popcount32: - ::std::option::Option ::std::os::raw::c_int>; -} -extern "C" { - pub static mut pg_popcount64: - ::std::option::Option ::std::os::raw::c_int>; -} -pub unsafe fn pg_popcount( - arg_buf: *const ::std::os::raw::c_char, - arg_bytes: ::std::os::raw::c_int, -) -> uint64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_popcount( - arg_buf: *const ::std::os::raw::c_char, - arg_bytes: ::std::os::raw::c_int, - ) -> uint64; - } - pg_popcount(arg_buf, arg_bytes) - }) -} -#[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_insert_hash( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, - arg_hash: uint32, - arg_found: *mut bool, -) -> *mut TupleHashEntryData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_insert_hash( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, - arg_hash: uint32, - arg_found: *mut bool, - ) -> *mut TupleHashEntryData; - } - tuplehash_insert_hash(arg_tb, arg_key, arg_hash, 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_lookup_hash( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, - arg_hash: uint32, -) -> *mut TupleHashEntryData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_lookup_hash( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, - arg_hash: uint32, - ) -> *mut TupleHashEntryData; - } - tuplehash_lookup_hash(arg_tb, arg_key, arg_hash) - }) -} -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)] -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 numCols: ::std::os::raw::c_int, - 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, -} -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_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_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 exprstatelists: *mut *mut List, - pub array_len: ::std::os::raw::c_int, - pub curr_idx: ::std::os::raw::c_int, -} -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, Copy, Clone)] -pub struct PresortedKeyData { - pub flinfo: FmgrInfo, - pub fcinfo: FunctionCallInfo, - pub attno: OffsetNumber, -} -impl Default for PresortedKeyData { - fn default() -> Self { - let 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, Default, Copy, Clone)] -pub struct IncrementalSortGroupInfo { - pub groupCount: int64, - pub maxDiskSpaceUsed: int64, - pub totalDiskSpaceUsed: int64, - pub maxMemorySpaceUsed: int64, - pub totalMemorySpaceUsed: int64, - pub sortMethods: bits32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IncrementalSortInfo { - pub fullsortGroupInfo: IncrementalSortGroupInfo, - pub prefixsortGroupInfo: IncrementalSortGroupInfo, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct SharedIncrementalSortInfo { - pub num_workers: ::std::os::raw::c_int, - pub sinfo: __IncompleteArrayField, -} -pub const IncrementalSortExecutionStatus_INCSORT_LOADFULLSORT: IncrementalSortExecutionStatus = 0; -pub const IncrementalSortExecutionStatus_INCSORT_LOADPREFIXSORT: IncrementalSortExecutionStatus = 1; -pub const IncrementalSortExecutionStatus_INCSORT_READFULLSORT: IncrementalSortExecutionStatus = 2; -pub const IncrementalSortExecutionStatus_INCSORT_READPREFIXSORT: IncrementalSortExecutionStatus = 3; -pub type IncrementalSortExecutionStatus = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IncrementalSortState { - pub ss: ScanState, - pub bounded: bool, - pub bound: int64, - pub outerNodeDone: bool, - pub bound_Done: int64, - pub execution_status: IncrementalSortExecutionStatus, - pub n_fullsort_remaining: int64, - pub fullsort_state: *mut Tuplesortstate, - pub prefixsort_state: *mut Tuplesortstate, - pub presorted_keys: *mut PresortedKeyData, - pub incsort_info: IncrementalSortInfo, - pub group_pivot: *mut TupleTableSlot, - pub transfer_tuple: *mut TupleTableSlot, - pub am_worker: bool, - pub shared_info: *mut SharedIncrementalSortInfo, -} -impl Default for IncrementalSortState { - fn default() -> Self { - let mut s = ::std::mem::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, Default, Copy, Clone)] -pub struct AggregateInstrumentation { - pub hash_mem_peak: Size, - pub hash_disk_used: uint64, - pub hash_batches_used: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct SharedAggInfo { - pub num_workers: ::std::os::raw::c_int, - pub sinstrument: __IncompleteArrayField, -} -#[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 colnos_needed: *mut Bitmapset, - pub max_colno_needed: ::std::os::raw::c_int, - pub all_cols_needed: bool, - 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 hash_metacxt: MemoryContext, - pub hash_tapeinfo: *mut HashTapeInfo, - pub hash_spills: *mut HashAggSpill, - pub hash_spill_rslot: *mut TupleTableSlot, - pub hash_spill_wslot: *mut TupleTableSlot, - pub hash_batches: *mut List, - pub hash_ever_spilled: bool, - pub hash_spill_mode: bool, - pub hash_mem_limit: Size, - pub hash_ngroups_limit: uint64, - pub hash_planned_partitions: ::std::os::raw::c_int, - pub hashentrysize: f64, - pub hash_mem_peak: Size, - pub hash_ngroups_current: uint64, - pub hash_disk_used: uint64, - pub hash_batches_used: ::std::os::raw::c_int, - pub perhash: AggStatePerHash, - pub hash_pergroup: *mut AggStatePerGroup, - pub all_pergroups: *mut AggStatePerGroup, - pub combinedproj: *mut ProjectionInfo, - pub shared_info: *mut SharedAggInfo, -} -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)] -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: Size, -} -#[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_WINDOWEND_TIES: LimitStateCond = 4; -pub const LimitStateCond_LIMIT_SUBPLANEOF: LimitStateCond = 5; -pub const LimitStateCond_LIMIT_WINDOWEND: LimitStateCond = 6; -pub const LimitStateCond_LIMIT_WINDOWSTART: LimitStateCond = 7; -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 limitOption: LimitOption, - pub offset: int64, - pub count: int64, - pub noCount: bool, - pub lstate: LimitStateCond, - pub position: int64, - pub subSlot: *mut TupleTableSlot, - pub eqfunction: *mut ExprState, - pub last_slot: *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 CommandTag_CMDTAG_UNKNOWN: CommandTag = 0; -pub const CommandTag_CMDTAG_ALTER_ACCESS_METHOD: CommandTag = 1; -pub const CommandTag_CMDTAG_ALTER_AGGREGATE: CommandTag = 2; -pub const CommandTag_CMDTAG_ALTER_CAST: CommandTag = 3; -pub const CommandTag_CMDTAG_ALTER_COLLATION: CommandTag = 4; -pub const CommandTag_CMDTAG_ALTER_CONSTRAINT: CommandTag = 5; -pub const CommandTag_CMDTAG_ALTER_CONVERSION: CommandTag = 6; -pub const CommandTag_CMDTAG_ALTER_DATABASE: CommandTag = 7; -pub const CommandTag_CMDTAG_ALTER_DEFAULT_PRIVILEGES: CommandTag = 8; -pub const CommandTag_CMDTAG_ALTER_DOMAIN: CommandTag = 9; -pub const CommandTag_CMDTAG_ALTER_EVENT_TRIGGER: CommandTag = 10; -pub const CommandTag_CMDTAG_ALTER_EXTENSION: CommandTag = 11; -pub const CommandTag_CMDTAG_ALTER_FOREIGN_DATA_WRAPPER: CommandTag = 12; -pub const CommandTag_CMDTAG_ALTER_FOREIGN_TABLE: CommandTag = 13; -pub const CommandTag_CMDTAG_ALTER_FUNCTION: CommandTag = 14; -pub const CommandTag_CMDTAG_ALTER_INDEX: CommandTag = 15; -pub const CommandTag_CMDTAG_ALTER_LANGUAGE: CommandTag = 16; -pub const CommandTag_CMDTAG_ALTER_LARGE_OBJECT: CommandTag = 17; -pub const CommandTag_CMDTAG_ALTER_MATERIALIZED_VIEW: CommandTag = 18; -pub const CommandTag_CMDTAG_ALTER_OPERATOR: CommandTag = 19; -pub const CommandTag_CMDTAG_ALTER_OPERATOR_CLASS: CommandTag = 20; -pub const CommandTag_CMDTAG_ALTER_OPERATOR_FAMILY: CommandTag = 21; -pub const CommandTag_CMDTAG_ALTER_POLICY: CommandTag = 22; -pub const CommandTag_CMDTAG_ALTER_PROCEDURE: CommandTag = 23; -pub const CommandTag_CMDTAG_ALTER_PUBLICATION: CommandTag = 24; -pub const CommandTag_CMDTAG_ALTER_ROLE: CommandTag = 25; -pub const CommandTag_CMDTAG_ALTER_ROUTINE: CommandTag = 26; -pub const CommandTag_CMDTAG_ALTER_RULE: CommandTag = 27; -pub const CommandTag_CMDTAG_ALTER_SCHEMA: CommandTag = 28; -pub const CommandTag_CMDTAG_ALTER_SEQUENCE: CommandTag = 29; -pub const CommandTag_CMDTAG_ALTER_SERVER: CommandTag = 30; -pub const CommandTag_CMDTAG_ALTER_STATISTICS: CommandTag = 31; -pub const CommandTag_CMDTAG_ALTER_SUBSCRIPTION: CommandTag = 32; -pub const CommandTag_CMDTAG_ALTER_SYSTEM: CommandTag = 33; -pub const CommandTag_CMDTAG_ALTER_TABLE: CommandTag = 34; -pub const CommandTag_CMDTAG_ALTER_TABLESPACE: CommandTag = 35; -pub const CommandTag_CMDTAG_ALTER_TEXT_SEARCH_CONFIGURATION: CommandTag = 36; -pub const CommandTag_CMDTAG_ALTER_TEXT_SEARCH_DICTIONARY: CommandTag = 37; -pub const CommandTag_CMDTAG_ALTER_TEXT_SEARCH_PARSER: CommandTag = 38; -pub const CommandTag_CMDTAG_ALTER_TEXT_SEARCH_TEMPLATE: CommandTag = 39; -pub const CommandTag_CMDTAG_ALTER_TRANSFORM: CommandTag = 40; -pub const CommandTag_CMDTAG_ALTER_TRIGGER: CommandTag = 41; -pub const CommandTag_CMDTAG_ALTER_TYPE: CommandTag = 42; -pub const CommandTag_CMDTAG_ALTER_USER_MAPPING: CommandTag = 43; -pub const CommandTag_CMDTAG_ALTER_VIEW: CommandTag = 44; -pub const CommandTag_CMDTAG_ANALYZE: CommandTag = 45; -pub const CommandTag_CMDTAG_BEGIN: CommandTag = 46; -pub const CommandTag_CMDTAG_CALL: CommandTag = 47; -pub const CommandTag_CMDTAG_CHECKPOINT: CommandTag = 48; -pub const CommandTag_CMDTAG_CLOSE: CommandTag = 49; -pub const CommandTag_CMDTAG_CLOSE_CURSOR: CommandTag = 50; -pub const CommandTag_CMDTAG_CLOSE_CURSOR_ALL: CommandTag = 51; -pub const CommandTag_CMDTAG_CLUSTER: CommandTag = 52; -pub const CommandTag_CMDTAG_COMMENT: CommandTag = 53; -pub const CommandTag_CMDTAG_COMMIT: CommandTag = 54; -pub const CommandTag_CMDTAG_COMMIT_PREPARED: CommandTag = 55; -pub const CommandTag_CMDTAG_COPY: CommandTag = 56; -pub const CommandTag_CMDTAG_COPY_FROM: CommandTag = 57; -pub const CommandTag_CMDTAG_CREATE_ACCESS_METHOD: CommandTag = 58; -pub const CommandTag_CMDTAG_CREATE_AGGREGATE: CommandTag = 59; -pub const CommandTag_CMDTAG_CREATE_CAST: CommandTag = 60; -pub const CommandTag_CMDTAG_CREATE_COLLATION: CommandTag = 61; -pub const CommandTag_CMDTAG_CREATE_CONSTRAINT: CommandTag = 62; -pub const CommandTag_CMDTAG_CREATE_CONVERSION: CommandTag = 63; -pub const CommandTag_CMDTAG_CREATE_DATABASE: CommandTag = 64; -pub const CommandTag_CMDTAG_CREATE_DOMAIN: CommandTag = 65; -pub const CommandTag_CMDTAG_CREATE_EVENT_TRIGGER: CommandTag = 66; -pub const CommandTag_CMDTAG_CREATE_EXTENSION: CommandTag = 67; -pub const CommandTag_CMDTAG_CREATE_FOREIGN_DATA_WRAPPER: CommandTag = 68; -pub const CommandTag_CMDTAG_CREATE_FOREIGN_TABLE: CommandTag = 69; -pub const CommandTag_CMDTAG_CREATE_FUNCTION: CommandTag = 70; -pub const CommandTag_CMDTAG_CREATE_INDEX: CommandTag = 71; -pub const CommandTag_CMDTAG_CREATE_LANGUAGE: CommandTag = 72; -pub const CommandTag_CMDTAG_CREATE_MATERIALIZED_VIEW: CommandTag = 73; -pub const CommandTag_CMDTAG_CREATE_OPERATOR: CommandTag = 74; -pub const CommandTag_CMDTAG_CREATE_OPERATOR_CLASS: CommandTag = 75; -pub const CommandTag_CMDTAG_CREATE_OPERATOR_FAMILY: CommandTag = 76; -pub const CommandTag_CMDTAG_CREATE_POLICY: CommandTag = 77; -pub const CommandTag_CMDTAG_CREATE_PROCEDURE: CommandTag = 78; -pub const CommandTag_CMDTAG_CREATE_PUBLICATION: CommandTag = 79; -pub const CommandTag_CMDTAG_CREATE_ROLE: CommandTag = 80; -pub const CommandTag_CMDTAG_CREATE_ROUTINE: CommandTag = 81; -pub const CommandTag_CMDTAG_CREATE_RULE: CommandTag = 82; -pub const CommandTag_CMDTAG_CREATE_SCHEMA: CommandTag = 83; -pub const CommandTag_CMDTAG_CREATE_SEQUENCE: CommandTag = 84; -pub const CommandTag_CMDTAG_CREATE_SERVER: CommandTag = 85; -pub const CommandTag_CMDTAG_CREATE_STATISTICS: CommandTag = 86; -pub const CommandTag_CMDTAG_CREATE_SUBSCRIPTION: CommandTag = 87; -pub const CommandTag_CMDTAG_CREATE_TABLE: CommandTag = 88; -pub const CommandTag_CMDTAG_CREATE_TABLE_AS: CommandTag = 89; -pub const CommandTag_CMDTAG_CREATE_TABLESPACE: CommandTag = 90; -pub const CommandTag_CMDTAG_CREATE_TEXT_SEARCH_CONFIGURATION: CommandTag = 91; -pub const CommandTag_CMDTAG_CREATE_TEXT_SEARCH_DICTIONARY: CommandTag = 92; -pub const CommandTag_CMDTAG_CREATE_TEXT_SEARCH_PARSER: CommandTag = 93; -pub const CommandTag_CMDTAG_CREATE_TEXT_SEARCH_TEMPLATE: CommandTag = 94; -pub const CommandTag_CMDTAG_CREATE_TRANSFORM: CommandTag = 95; -pub const CommandTag_CMDTAG_CREATE_TRIGGER: CommandTag = 96; -pub const CommandTag_CMDTAG_CREATE_TYPE: CommandTag = 97; -pub const CommandTag_CMDTAG_CREATE_USER_MAPPING: CommandTag = 98; -pub const CommandTag_CMDTAG_CREATE_VIEW: CommandTag = 99; -pub const CommandTag_CMDTAG_DEALLOCATE: CommandTag = 100; -pub const CommandTag_CMDTAG_DEALLOCATE_ALL: CommandTag = 101; -pub const CommandTag_CMDTAG_DECLARE_CURSOR: CommandTag = 102; -pub const CommandTag_CMDTAG_DELETE: CommandTag = 103; -pub const CommandTag_CMDTAG_DISCARD: CommandTag = 104; -pub const CommandTag_CMDTAG_DISCARD_ALL: CommandTag = 105; -pub const CommandTag_CMDTAG_DISCARD_PLANS: CommandTag = 106; -pub const CommandTag_CMDTAG_DISCARD_SEQUENCES: CommandTag = 107; -pub const CommandTag_CMDTAG_DISCARD_TEMP: CommandTag = 108; -pub const CommandTag_CMDTAG_DO: CommandTag = 109; -pub const CommandTag_CMDTAG_DROP_ACCESS_METHOD: CommandTag = 110; -pub const CommandTag_CMDTAG_DROP_AGGREGATE: CommandTag = 111; -pub const CommandTag_CMDTAG_DROP_CAST: CommandTag = 112; -pub const CommandTag_CMDTAG_DROP_COLLATION: CommandTag = 113; -pub const CommandTag_CMDTAG_DROP_CONSTRAINT: CommandTag = 114; -pub const CommandTag_CMDTAG_DROP_CONVERSION: CommandTag = 115; -pub const CommandTag_CMDTAG_DROP_DATABASE: CommandTag = 116; -pub const CommandTag_CMDTAG_DROP_DOMAIN: CommandTag = 117; -pub const CommandTag_CMDTAG_DROP_EVENT_TRIGGER: CommandTag = 118; -pub const CommandTag_CMDTAG_DROP_EXTENSION: CommandTag = 119; -pub const CommandTag_CMDTAG_DROP_FOREIGN_DATA_WRAPPER: CommandTag = 120; -pub const CommandTag_CMDTAG_DROP_FOREIGN_TABLE: CommandTag = 121; -pub const CommandTag_CMDTAG_DROP_FUNCTION: CommandTag = 122; -pub const CommandTag_CMDTAG_DROP_INDEX: CommandTag = 123; -pub const CommandTag_CMDTAG_DROP_LANGUAGE: CommandTag = 124; -pub const CommandTag_CMDTAG_DROP_MATERIALIZED_VIEW: CommandTag = 125; -pub const CommandTag_CMDTAG_DROP_OPERATOR: CommandTag = 126; -pub const CommandTag_CMDTAG_DROP_OPERATOR_CLASS: CommandTag = 127; -pub const CommandTag_CMDTAG_DROP_OPERATOR_FAMILY: CommandTag = 128; -pub const CommandTag_CMDTAG_DROP_OWNED: CommandTag = 129; -pub const CommandTag_CMDTAG_DROP_POLICY: CommandTag = 130; -pub const CommandTag_CMDTAG_DROP_PROCEDURE: CommandTag = 131; -pub const CommandTag_CMDTAG_DROP_PUBLICATION: CommandTag = 132; -pub const CommandTag_CMDTAG_DROP_ROLE: CommandTag = 133; -pub const CommandTag_CMDTAG_DROP_ROUTINE: CommandTag = 134; -pub const CommandTag_CMDTAG_DROP_RULE: CommandTag = 135; -pub const CommandTag_CMDTAG_DROP_SCHEMA: CommandTag = 136; -pub const CommandTag_CMDTAG_DROP_SEQUENCE: CommandTag = 137; -pub const CommandTag_CMDTAG_DROP_SERVER: CommandTag = 138; -pub const CommandTag_CMDTAG_DROP_STATISTICS: CommandTag = 139; -pub const CommandTag_CMDTAG_DROP_SUBSCRIPTION: CommandTag = 140; -pub const CommandTag_CMDTAG_DROP_TABLE: CommandTag = 141; -pub const CommandTag_CMDTAG_DROP_TABLESPACE: CommandTag = 142; -pub const CommandTag_CMDTAG_DROP_TEXT_SEARCH_CONFIGURATION: CommandTag = 143; -pub const CommandTag_CMDTAG_DROP_TEXT_SEARCH_DICTIONARY: CommandTag = 144; -pub const CommandTag_CMDTAG_DROP_TEXT_SEARCH_PARSER: CommandTag = 145; -pub const CommandTag_CMDTAG_DROP_TEXT_SEARCH_TEMPLATE: CommandTag = 146; -pub const CommandTag_CMDTAG_DROP_TRANSFORM: CommandTag = 147; -pub const CommandTag_CMDTAG_DROP_TRIGGER: CommandTag = 148; -pub const CommandTag_CMDTAG_DROP_TYPE: CommandTag = 149; -pub const CommandTag_CMDTAG_DROP_USER_MAPPING: CommandTag = 150; -pub const CommandTag_CMDTAG_DROP_VIEW: CommandTag = 151; -pub const CommandTag_CMDTAG_EXECUTE: CommandTag = 152; -pub const CommandTag_CMDTAG_EXPLAIN: CommandTag = 153; -pub const CommandTag_CMDTAG_FETCH: CommandTag = 154; -pub const CommandTag_CMDTAG_GRANT: CommandTag = 155; -pub const CommandTag_CMDTAG_GRANT_ROLE: CommandTag = 156; -pub const CommandTag_CMDTAG_IMPORT_FOREIGN_SCHEMA: CommandTag = 157; -pub const CommandTag_CMDTAG_INSERT: CommandTag = 158; -pub const CommandTag_CMDTAG_LISTEN: CommandTag = 159; -pub const CommandTag_CMDTAG_LOAD: CommandTag = 160; -pub const CommandTag_CMDTAG_LOCK_TABLE: CommandTag = 161; -pub const CommandTag_CMDTAG_MOVE: CommandTag = 162; -pub const CommandTag_CMDTAG_NOTIFY: CommandTag = 163; -pub const CommandTag_CMDTAG_PREPARE: CommandTag = 164; -pub const CommandTag_CMDTAG_PREPARE_TRANSACTION: CommandTag = 165; -pub const CommandTag_CMDTAG_REASSIGN_OWNED: CommandTag = 166; -pub const CommandTag_CMDTAG_REFRESH_MATERIALIZED_VIEW: CommandTag = 167; -pub const CommandTag_CMDTAG_REINDEX: CommandTag = 168; -pub const CommandTag_CMDTAG_RELEASE: CommandTag = 169; -pub const CommandTag_CMDTAG_RESET: CommandTag = 170; -pub const CommandTag_CMDTAG_REVOKE: CommandTag = 171; -pub const CommandTag_CMDTAG_REVOKE_ROLE: CommandTag = 172; -pub const CommandTag_CMDTAG_ROLLBACK: CommandTag = 173; -pub const CommandTag_CMDTAG_ROLLBACK_PREPARED: CommandTag = 174; -pub const CommandTag_CMDTAG_SAVEPOINT: CommandTag = 175; -pub const CommandTag_CMDTAG_SECURITY_LABEL: CommandTag = 176; -pub const CommandTag_CMDTAG_SELECT: CommandTag = 177; -pub const CommandTag_CMDTAG_SELECT_FOR_KEY_SHARE: CommandTag = 178; -pub const CommandTag_CMDTAG_SELECT_FOR_NO_KEY_UPDATE: CommandTag = 179; -pub const CommandTag_CMDTAG_SELECT_FOR_SHARE: CommandTag = 180; -pub const CommandTag_CMDTAG_SELECT_FOR_UPDATE: CommandTag = 181; -pub const CommandTag_CMDTAG_SELECT_INTO: CommandTag = 182; -pub const CommandTag_CMDTAG_SET: CommandTag = 183; -pub const CommandTag_CMDTAG_SET_CONSTRAINTS: CommandTag = 184; -pub const CommandTag_CMDTAG_SHOW: CommandTag = 185; -pub const CommandTag_CMDTAG_START_TRANSACTION: CommandTag = 186; -pub const CommandTag_CMDTAG_TRUNCATE_TABLE: CommandTag = 187; -pub const CommandTag_CMDTAG_UNLISTEN: CommandTag = 188; -pub const CommandTag_CMDTAG_UPDATE: CommandTag = 189; -pub const CommandTag_CMDTAG_VACUUM: CommandTag = 190; -pub const CommandTag_COMMAND_TAG_NEXTTAG: CommandTag = 191; -pub type CommandTag = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct QueryCompletion { - pub commandTag: CommandTag, - pub nprocessed: uint64, -} -impl Default for QueryCompletion { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn InitializeQueryCompletion(arg_qc: *mut QueryCompletion) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitializeQueryCompletion(arg_qc: *mut QueryCompletion); - } - InitializeQueryCompletion(arg_qc) - }) -} -pub unsafe fn GetCommandTagName(arg_commandTag: CommandTag) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCommandTagName(arg_commandTag: CommandTag) -> *const ::std::os::raw::c_char; - } - GetCommandTagName(arg_commandTag) - }) -} -pub unsafe fn command_tag_display_rowcount(arg_commandTag: CommandTag) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn command_tag_display_rowcount(arg_commandTag: CommandTag) -> bool; - } - command_tag_display_rowcount(arg_commandTag) - }) -} -pub unsafe fn command_tag_event_trigger_ok(arg_commandTag: CommandTag) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn command_tag_event_trigger_ok(arg_commandTag: CommandTag) -> bool; - } - command_tag_event_trigger_ok(arg_commandTag) - }) -} -pub unsafe fn command_tag_table_rewrite_ok(arg_commandTag: CommandTag) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn command_tag_table_rewrite_ok(arg_commandTag: CommandTag) -> bool; - } - command_tag_table_rewrite_ok(arg_commandTag) - }) -} -pub unsafe fn GetCommandTagEnum(arg_tagname: *const ::std::os::raw::c_char) -> CommandTag { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCommandTagEnum(arg_tagname: *const ::std::os::raw::c_char) -> CommandTag; - } - GetCommandTagEnum(arg_tagname) - }) -} -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: CommandTag, arg_dest: CommandDest) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BeginCommand(arg_commandTag: CommandTag, 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_qc: *const QueryCompletion, - arg_dest: CommandDest, - arg_force_undecorated_output: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EndCommand( - arg_qc: *const QueryCompletion, - arg_dest: CommandDest, - arg_force_undecorated_output: bool, - ); - } - EndCommand(arg_qc, arg_dest, arg_force_undecorated_output) - }) -} -pub unsafe fn EndReplicationCommand(arg_commandTag: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EndReplicationCommand(arg_commandTag: *const ::std::os::raw::c_char); - } - EndReplicationCommand(arg_commandTag) - }) -} -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 limitOption: LimitOption, - 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() +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() } } } @@ -32883,3232 +21317,2407 @@ pub struct AlterTSConfigurationStmt { 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 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() - } - } -} -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; + pub missing_ok: bool, } -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 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() } - 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 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 ExecRestrPos(arg_node: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecRestrPos(arg_node: *mut PlanState); +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() } - 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 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 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 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() } - 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) - }) +#[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 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 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() } - 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 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 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 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() } - 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 DropSubscriptionStmt { + pub type_: NodeTag, + pub subname: *mut ::std::os::raw::c_char, + pub missing_ok: bool, + pub behavior: DropBehavior, } -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 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() } - 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, Default, Copy, Clone)] +pub struct MemoryContextCounters { + pub nblocks: Size, + pub freechunks: Size, + pub totalspace: Size, + pub freespace: Size, } -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; - } - TupleHashTableHash(arg_hashtable, arg_slot) - }) +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, } -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) - }) +#[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, } -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 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() } - 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) - }) +extern "C" { + pub static mut TopMemoryContext: MemoryContext; } -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) - }) +extern "C" { + pub static mut ErrorContext: MemoryContext; } -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) - }) +extern "C" { + pub static mut PostmasterContext: MemoryContext; } -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) - }) +extern "C" { + pub static mut CacheMemoryContext: MemoryContext; } -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 MessageContext: MemoryContext; } -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) - }) +extern "C" { + pub static mut TopTransactionContext: MemoryContext; } -pub unsafe fn ExecGetJunkAttribute( - arg_slot: *mut TupleTableSlot, - arg_attno: AttrNumber, - arg_isNull: *mut bool, -) -> Datum { +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 ExecGetJunkAttribute( - arg_slot: *mut TupleTableSlot, - arg_attno: AttrNumber, - arg_isNull: *mut bool, - ) -> Datum; + fn MemoryContextInit(); } - ExecGetJunkAttribute(arg_slot, arg_attno, arg_isNull) + MemoryContextInit() }) } -pub unsafe fn ExecFilterJunk( - arg_junkfilter: *mut JunkFilter, - arg_slot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { +pub unsafe fn MemoryContextReset(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 MemoryContextReset(arg_context: MemoryContext); } - ExecFilterJunk(arg_junkfilter, arg_slot) + MemoryContextReset(arg_context) }) } -pub unsafe fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int) { +pub unsafe fn MemoryContextDelete(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 MemoryContextDelete(arg_context: MemoryContext); } - ExecutorStart(arg_queryDesc, arg_eflags) + MemoryContextDelete(arg_context) }) } -pub unsafe fn standard_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 standard_ExecutorStart( - arg_queryDesc: *mut QueryDesc, - arg_eflags: ::std::os::raw::c_int, - ); + fn MemoryContextResetOnly(arg_context: MemoryContext); } - standard_ExecutorStart(arg_queryDesc, arg_eflags) + MemoryContextResetOnly(arg_context) }) } -pub unsafe fn ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, -) { +pub unsafe fn MemoryContextResetChildren(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 MemoryContextResetChildren(arg_context: MemoryContext); } - ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) + MemoryContextResetChildren(arg_context) }) } -pub unsafe fn standard_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 standard_ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, - ); + fn MemoryContextDeleteChildren(arg_context: MemoryContext); } - standard_ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) + MemoryContextDeleteChildren(arg_context) }) } -pub unsafe fn ExecutorFinish(arg_queryDesc: *mut QueryDesc) { +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 ExecutorFinish(arg_queryDesc: *mut QueryDesc); + fn MemoryContextSetIdentifier( + arg_context: MemoryContext, + arg_id: *const ::std::os::raw::c_char, + ); } - 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 { @@ -36117,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 { @@ -36126,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)] @@ -37542,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, @@ -37734,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; @@ -37936,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 { @@ -38026,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( @@ -38590,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() { @@ -39005,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( @@ -41908,6 +29328,7 @@ pub unsafe fn pgstat_slru_index(arg_name: *const ::std::os::raw::c_char) -> ::st }) } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ScanKeyData { pub sk_flags: ::std::os::raw::c_int, pub sk_attno: AttrNumber, @@ -41944,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( @@ -42142,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( @@ -42262,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( @@ -42900,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( @@ -43821,6 +31217,7 @@ pub struct GISTPageOpaqueData { } 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, @@ -43841,6 +31238,7 @@ impl Default for GIST_SPLITVEC { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct GISTENTRY { pub key: Datum, pub rel: Relation, @@ -43863,6 +31261,7 @@ pub struct GISTDeletedPageContents { pub deleteXid: FullTransactionId, } #[repr(C)] +#[derive(Debug)] pub struct GistEntryVector { pub n: int32, pub vector: __IncompleteArrayField, @@ -44635,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( @@ -44661,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( @@ -44689,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( @@ -44837,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( @@ -44879,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( @@ -44904,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( @@ -44929,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( @@ -44987,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( @@ -45350,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( @@ -46420,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( @@ -46475,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 { @@ -47560,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 { @@ -47875,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( @@ -48005,13 +35323,7 @@ pub unsafe fn heap_fetch_extended( arg_keep_buf: bool, ) -> bool; } - heap_fetch_extended( - arg_relation, - arg_snapshot, - arg_tuple, - arg_userbuf, - arg_keep_buf, - ) + heap_fetch_extended(arg_relation, arg_snapshot, arg_tuple, arg_userbuf, arg_keep_buf) }) } pub unsafe fn heap_hot_search_buffer( @@ -48125,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( @@ -50074,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( @@ -50114,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( @@ -50140,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( @@ -50286,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( @@ -51979,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) { @@ -52322,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) { @@ -52370,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( @@ -53241,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( @@ -54417,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( @@ -54472,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( @@ -54745,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 { @@ -56215,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) { @@ -56809,13 +44054,7 @@ pub unsafe fn EnableDisableTrigger( arg_lockmode: LOCKMODE, ); } - EnableDisableTrigger( - arg_rel, - arg_tgname, - arg_fires_when, - arg_skip_system, - arg_lockmode, - ) + EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system, arg_lockmode) }) } pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { @@ -57542,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( @@ -58135,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) { @@ -58314,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( @@ -58337,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) { @@ -58771,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 { @@ -58898,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( @@ -59324,6 +46536,7 @@ 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; 96usize], pub bgw_type: [::std::os::raw::c_char; 96usize], @@ -62769,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( @@ -63113,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 { @@ -63540,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( @@ -64227,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( @@ -64766,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( @@ -65056,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( @@ -65739,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" { @@ -65835,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 { @@ -65904,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 { @@ -65990,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( @@ -66660,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( @@ -66719,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( @@ -67205,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( @@ -67262,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( @@ -68969,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( @@ -69530,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( @@ -69555,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( @@ -70156,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( @@ -70195,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( @@ -70346,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( @@ -70415,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( @@ -70513,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( @@ -70542,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; @@ -70588,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( @@ -71825,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" { @@ -73957,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( @@ -73980,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( @@ -74873,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) { @@ -76406,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" { @@ -76510,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" { @@ -76870,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" { @@ -76894,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" { @@ -80462,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" { @@ -83110,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" { @@ -83270,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" { @@ -83494,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" { @@ -83902,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" { @@ -86158,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" { @@ -86862,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" { @@ -87878,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" { @@ -91022,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" { @@ -97146,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 { @@ -97459,20 +83770,21 @@ pub const jbvType_jbvBinary: jbvType = 18; pub const jbvType_jbvDatetime: jbvType = 32; pub type jbvType = ::std::os::raw::c_uint; #[repr(C)] +#[derive(Copy, Clone)] pub struct JsonbValue { pub type_: jbvType, pub val: JsonbValue__bindgen_ty_1, } #[repr(C)] -pub struct JsonbValue__bindgen_ty_1 { - pub numeric: __BindgenUnionField, - pub boolean: __BindgenUnionField, - pub string: __BindgenUnionField, - pub array: __BindgenUnionField, - pub object: __BindgenUnionField, - pub binary: __BindgenUnionField, - pub datetime: __BindgenUnionField, - pub bindgen_union_field: [u64; 3usize], +#[derive(Copy, Clone)] +pub union JsonbValue__bindgen_ty_1 { + pub numeric: Numeric, + pub boolean: bool, + pub string: JsonbValue__bindgen_ty_1__bindgen_ty_1, + pub array: JsonbValue__bindgen_ty_1__bindgen_ty_2, + pub object: JsonbValue__bindgen_ty_1__bindgen_ty_3, + pub binary: JsonbValue__bindgen_ty_1__bindgen_ty_4, + pub datetime: JsonbValue__bindgen_ty_1__bindgen_ty_5, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -97536,6 +83848,7 @@ impl Default for JsonbValue__bindgen_ty_1__bindgen_ty_4 { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct JsonbValue__bindgen_ty_1__bindgen_ty_5 { pub value: Datum, pub typid: Oid, @@ -97570,6 +83883,7 @@ impl Default for JsonbValue { } } #[repr(C)] +#[derive(Copy, Clone)] pub struct JsonbPair { pub key: JsonbValue, pub value: JsonbValue, @@ -97585,6 +83899,7 @@ impl Default for JsonbPair { } } #[repr(C)] +#[derive(Copy, Clone)] pub struct JsonbParseState { pub contVal: JsonbValue, pub size: Size, @@ -99437,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( @@ -99466,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( @@ -99961,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( @@ -100375,6 +86669,7 @@ pub struct RangeType { pub rangetypid: Oid, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct RangeBound { pub val: Datum, pub infinite: bool, @@ -100728,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, } @@ -100811,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 { @@ -100823,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 { @@ -100835,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 { @@ -100847,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 { @@ -100859,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 { @@ -100871,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 { @@ -100883,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 { @@ -100895,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 { @@ -100907,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 { @@ -100919,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 { @@ -100931,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 { @@ -100943,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 { @@ -100955,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 { @@ -100967,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 { @@ -100979,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 { @@ -100991,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 { @@ -101003,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 { @@ -101015,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 { @@ -101027,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 { @@ -101039,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 { @@ -101051,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 { @@ -101063,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 { @@ -101075,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 { @@ -101087,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 { @@ -101099,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 { @@ -101111,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 { @@ -101123,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 { @@ -101135,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 { @@ -101147,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 { @@ -101159,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 { @@ -101171,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 { @@ -101183,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 { @@ -101195,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 { @@ -101207,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 { @@ -101219,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 { @@ -101231,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 { @@ -101243,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 { @@ -101255,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 { @@ -101267,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 { @@ -101279,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 { @@ -101291,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 { @@ -101303,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 { @@ -101315,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 { @@ -101327,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 { @@ -101339,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 { @@ -101351,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 { @@ -101363,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 { @@ -101375,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 { @@ -101387,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 { @@ -101399,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 { @@ -101411,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 { @@ -101423,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 { @@ -101435,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 { @@ -101447,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 { @@ -101459,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 { @@ -101471,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 { @@ -101483,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 { @@ -101495,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 { @@ -101507,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 { @@ -101519,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 { @@ -101531,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 { @@ -101543,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 { @@ -101555,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 { @@ -101567,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 { @@ -101579,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 { @@ -101591,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 { @@ -101603,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 { @@ -101615,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 { @@ -101627,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 { @@ -101639,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 { @@ -101651,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 { @@ -101663,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 { @@ -101675,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 { @@ -101687,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 { @@ -101699,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 { @@ -101711,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 { @@ -101723,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 { @@ -101735,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 { @@ -101747,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 { @@ -101759,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 { @@ -101771,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 { @@ -101783,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 { @@ -101795,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 { @@ -101807,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 { @@ -101819,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 { @@ -101831,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 { @@ -101843,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 { @@ -101855,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 { @@ -101867,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 { @@ -101879,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 { @@ -101891,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 { @@ -101903,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 { @@ -101915,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 { @@ -101927,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 { @@ -101939,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 { @@ -101951,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 { @@ -101963,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 { @@ -101975,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 { @@ -101987,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 { @@ -101999,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 { @@ -102011,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 { @@ -102023,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 { @@ -102035,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 { @@ -102047,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 { @@ -102059,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 { @@ -102071,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 { @@ -102083,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 { @@ -102095,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 { @@ -102107,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 { @@ -102119,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 { @@ -102131,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 { @@ -102143,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 { @@ -102155,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 { @@ -102167,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 { @@ -102179,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 { @@ -102191,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 { @@ -102203,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 { @@ -102215,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 { @@ -102227,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 { @@ -102239,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 { @@ -102251,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 { @@ -102263,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 { @@ -102275,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 { @@ -102287,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 { @@ -102299,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 { @@ -102311,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 { @@ -102323,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 { @@ -102335,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 { @@ -102347,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 { @@ -102359,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 { @@ -102371,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 { @@ -102383,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 { @@ -102395,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 { @@ -102407,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 { @@ -102419,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 { @@ -102431,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 { @@ -102443,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 { @@ -102455,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 { @@ -102467,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 { @@ -102479,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 { @@ -102491,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 { @@ -102503,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 { @@ -102515,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 { @@ -102527,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 { @@ -102539,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 { @@ -102551,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 { @@ -102563,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 { @@ -102575,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 { @@ -102587,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 { @@ -102599,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 { @@ -102611,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 { @@ -102623,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 { @@ -102635,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 { @@ -102647,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 { @@ -102659,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 { @@ -102671,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 { @@ -102683,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 { @@ -102695,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 { @@ -102707,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 { @@ -102719,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 { @@ -102731,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 { @@ -102743,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 { @@ -102755,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 { @@ -102767,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 { @@ -102779,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 { @@ -102791,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 { @@ -102803,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 { @@ -102815,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 { @@ -102827,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 { @@ -102839,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 { @@ -102851,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 { @@ -102863,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 { @@ -102875,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 { @@ -102887,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 { @@ -102899,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 { @@ -102911,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 { @@ -102923,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 { @@ -102935,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 { @@ -102947,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 { @@ -102959,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 { @@ -102971,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 { @@ -102983,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 { @@ -102995,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 { @@ -103007,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 { @@ -103019,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 { @@ -103031,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 { @@ -103043,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 { @@ -103055,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 { @@ -103067,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 { @@ -103079,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 { @@ -103091,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 { @@ -103103,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 { @@ -103115,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 { @@ -103127,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 { @@ -103139,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 { @@ -103151,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 { @@ -103163,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 { @@ -103175,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 { @@ -103187,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 { @@ -103199,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 { @@ -103211,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 { @@ -103223,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 { @@ -103235,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 { @@ -103247,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 { @@ -103259,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 { @@ -103271,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 { @@ -103283,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 { @@ -103295,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 { @@ -103307,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 { @@ -103319,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 { @@ -103331,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 { @@ -103343,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 { @@ -103355,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 { @@ -103367,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 { @@ -103379,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 { @@ -103391,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 { @@ -103403,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 { @@ -103415,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 { @@ -103427,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 { @@ -103439,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 { @@ -103451,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 { @@ -103463,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 { @@ -103475,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 { @@ -103487,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 { @@ -103499,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 { @@ -103511,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 { @@ -103523,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 { @@ -103535,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 { @@ -103547,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 { @@ -103559,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 { @@ -103571,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 { @@ -103583,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 { @@ -103595,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 { @@ -103607,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 { @@ -103619,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 { @@ -103631,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 { @@ -103643,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 { @@ -103655,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 { @@ -103667,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 { @@ -103679,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 { @@ -103691,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 { @@ -103703,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 { @@ -103715,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 { @@ -103727,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 { @@ -103739,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 { @@ -103751,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 { @@ -103763,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 { @@ -103775,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 { @@ -103787,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 { @@ -103799,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 { @@ -103811,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 { @@ -103823,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 { @@ -103835,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 { @@ -103847,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 { @@ -103859,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 { @@ -103871,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 { @@ -103883,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 { @@ -103895,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 { @@ -103907,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 { @@ -103919,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 { @@ -103931,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 { @@ -103943,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 { @@ -103955,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 { @@ -103967,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 { @@ -103979,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 { @@ -103991,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 { @@ -104003,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 { @@ -104015,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 { @@ -104027,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 { @@ -104039,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 { @@ -104051,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 { @@ -104063,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 { @@ -104075,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 { @@ -104087,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 { @@ -104099,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 { @@ -104111,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 { @@ -104123,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 { @@ -104135,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 { @@ -104147,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 { @@ -104159,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 { @@ -104171,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 { @@ -104183,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 { @@ -104195,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 { @@ -104207,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 { @@ -104219,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 { @@ -104231,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 { @@ -104243,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 { @@ -104255,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 { @@ -104267,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 { @@ -104279,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 { @@ -104291,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 { @@ -104303,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 { @@ -104315,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 { @@ -104327,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 { @@ -104339,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 { @@ -104351,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 { @@ -104363,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 { @@ -104375,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 { @@ -104387,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 { @@ -104399,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 { @@ -104411,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 { @@ -104423,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 { @@ -104435,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 { @@ -104447,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 { @@ -104459,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 { @@ -104471,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 { @@ -104483,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 { @@ -104495,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 { @@ -104507,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 { @@ -104519,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 { @@ -104531,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 { @@ -104543,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 { @@ -104555,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 { @@ -104567,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 { @@ -104579,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 { @@ -104591,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 { @@ -104603,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 { @@ -104615,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 { @@ -104627,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 { @@ -104639,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 { @@ -104651,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 { @@ -104663,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 { @@ -104675,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 { @@ -104687,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 { @@ -104699,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 { @@ -104711,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 { @@ -104723,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 { @@ -104735,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 { @@ -104747,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 { @@ -104759,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 { @@ -104771,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 { @@ -104783,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 { @@ -104795,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 { @@ -104807,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 { @@ -104819,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 { @@ -104831,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 { @@ -104843,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 { @@ -104855,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 { @@ -104867,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 { @@ -104879,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 { @@ -104891,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 { @@ -104903,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 { @@ -104915,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 { @@ -104927,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 { @@ -104939,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 { @@ -104951,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 { @@ -104963,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 { @@ -104975,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 { @@ -104987,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 { @@ -104999,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 { @@ -105011,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 { @@ -105023,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 { @@ -105035,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 { @@ -105047,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 { @@ -105059,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 { @@ -105071,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 { @@ -105083,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 { @@ -105095,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 { @@ -105107,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 { @@ -105119,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 { @@ -105131,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 { @@ -105143,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 { @@ -105155,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 { @@ -105167,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 { @@ -105179,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 { @@ -105191,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 { @@ -105203,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 { @@ -105215,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 { @@ -105227,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 { @@ -105239,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 { @@ -105251,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 { @@ -105263,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 { @@ -105275,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 { @@ -105287,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 { @@ -105299,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 { @@ -105311,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 { @@ -105323,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 { @@ -105335,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 { @@ -105347,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 { @@ -105359,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 { @@ -105371,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 { @@ -105383,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 { @@ -105395,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 { @@ -105407,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 { @@ -105419,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 { @@ -105431,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 { @@ -105443,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 { @@ -105455,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 { @@ -105467,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 { @@ -105479,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 { @@ -105491,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 { @@ -105503,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 { @@ -105515,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 { @@ -105527,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 { @@ -105539,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 { @@ -105551,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 { @@ -105563,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 { @@ -105575,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 { @@ -105587,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 { @@ -105599,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 { @@ -105611,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 { @@ -105623,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 { @@ -105635,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 { @@ -105647,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 { @@ -105659,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 { @@ -105671,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 { @@ -105683,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 { @@ -105695,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 { @@ -105707,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 { @@ -105719,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 { @@ -105731,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 c3a1ac2a0..1827cff81 100644 --- a/pgx-pg-sys/src/pg14.rs +++ b/pgx-pg-sys/src/pg14.rs @@ -22,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 } @@ -35,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; @@ -55,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; } } @@ -73,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); } } @@ -373,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 = 36; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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; @@ -524,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; @@ -776,420 +396,6 @@ 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 SOL_MPTCP: u32 = 284; -pub const SOL_MCTP: u32 = 285; -pub const SOL_SMC: u32 = 286; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -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_TXREHASH: u32 = 74; -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.5\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; @@ -1197,34 +403,6 @@ 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; @@ -1302,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; @@ -1757,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; @@ -1826,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; @@ -1934,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; @@ -2067,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; @@ -2081,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; @@ -2103,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; @@ -2168,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; @@ -3263,137 +2175,18 @@ 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)] @@ -3454,3041 +2247,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 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) + 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 strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f64 { +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 strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f64; + 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; } - strtod(arg___nptr, arg___endptr) + strlcat(arg_dst, arg_src, arg_siz) }) } -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 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 strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f32; + 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; } - strtof(arg___nptr, arg___endptr) + strlcpy(arg_dst, arg_src, arg_siz) }) } -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 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 strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> u128; + 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, + >, + ); } - strtold(arg___nptr, arg___endptr) + pg_qsort(arg_base, arg_nel, arg_elsize, arg_cmp) }) } -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 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 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 pg_qsort_strcmp( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } - strtol(arg___nptr, arg___endptr, arg___base) + pg_qsort_strcmp(arg_a, arg_b) }) } -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 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 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 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, + ); } - strtoul(arg___nptr, arg___endptr, arg___base) + qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) }) } -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 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 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 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, + ); } - strtoq(arg___nptr, arg___endptr, arg___base) + qsort_interruptible(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) }) } -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 bsearch_arg( + arg_key: *const ::std::os::raw::c_void, + arg_base: *const ::std::os::raw::c_void, + arg_nmemb: usize, + arg_size: usize, + arg_compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + arg_arg: *mut ::std::os::raw::c_void, +) -> *mut ::std::os::raw::c_void { 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 bsearch_arg( + arg_key: *const ::std::os::raw::c_void, + arg_base: *const ::std::os::raw::c_void, + arg_nmemb: usize, + arg_size: usize, + arg_compar: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + arg_arg: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } - strtouq(arg___nptr, arg___endptr, arg___base) + bsearch_arg(arg_key, arg_base, arg_nmemb, arg_size, arg_compar, arg_arg) }) } -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_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 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_get_encoding_from_locale( + arg_ctype: *const ::std::os::raw::c_char, + arg_write_message: bool, + ) -> ::std::os::raw::c_int; } - strtoll(arg___nptr, arg___endptr, arg___base) + pg_get_encoding_from_locale(arg_ctype, arg_write_message) }) } -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_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 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_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; } - strtoull(arg___nptr, arg___endptr, arg___base) + pg_inet_net_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) }) } -pub unsafe fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_strong_random_init() { 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_strong_random_init(); } - l64a(arg___n) + pg_strong_random_init() }) } -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 { +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 message_level_is_interesting(arg_elevel: ::std::os::raw::c_int) -> 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 message_level_is_interesting(arg_elevel: ::std::os::raw::c_int) -> bool; } - srandom_r(arg___seed, arg___buf) + message_level_is_interesting(arg_elevel) }) } -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 { +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 rand() -> ::std::os::raw::c_int; + fn errstart( + arg_elevel: ::std::os::raw::c_int, + arg_domain: *const ::std::os::raw::c_char, + ) -> bool; } - rand() + errstart(arg_elevel, arg_domain) }) } -pub unsafe fn srand(arg___seed: ::std::os::raw::c_uint) { +pub unsafe fn errstart_cold( + 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 srand(arg___seed: ::std::os::raw::c_uint); + fn errstart_cold( + arg_elevel: ::std::os::raw::c_int, + arg_domain: *const ::std::os::raw::c_char, + ) -> bool; } - srand(arg___seed) + errstart_cold(arg_elevel, arg_domain) }) } -pub unsafe fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::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 rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::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, + ); } - rand_r(arg___seed) + errfinish(arg_filename, arg_lineno, arg_funcname) }) } -pub unsafe fn drand48() -> f64 { +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 drand48() -> f64; + fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - drand48() + errcode(arg_sqlerrcode) }) } -pub unsafe fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64 { +pub unsafe fn errcode_for_file_access() -> ::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 errcode_for_file_access() -> ::std::os::raw::c_int; } - erand48(arg___xsubi) + errcode_for_file_access() }) } -pub unsafe fn lrand48() -> ::std::os::raw::c_long { +pub unsafe fn errcode_for_socket_access() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrand48() -> ::std::os::raw::c_long; + fn errcode_for_socket_access() -> ::std::os::raw::c_int; } - lrand48() + errcode_for_socket_access() }) } -pub unsafe fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::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 nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; + fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - nrand48(arg___xsubi) + errmsg(arg_fmt) }) } -pub unsafe fn mrand48() -> ::std::os::raw::c_long { +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 mrand48() -> ::std::os::raw::c_long; + fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - mrand48() + errmsg_internal(arg_fmt) }) } -pub unsafe fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::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 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 errhint_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 nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, + fn errhint_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; } - nrand48_r(arg___xsubi, arg___buffer, arg___result) + errhint_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub unsafe fn mrand48_r( - 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 mrand48_r( - 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; } - mrand48_r(arg___buffer, arg___result) + set_errcontext_domain(arg_domain) }) } -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 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 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 errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - jrand48_r(arg___xsubi, arg___buffer, arg___result) + errcontext_msg(arg_fmt) }) } -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 errhidestmt(arg_hide_stmt: 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 errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int; } - srand48_r(arg___seedval, arg___buffer) + errhidestmt(arg_hide_stmt) }) } -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 errhidecontext(arg_hide_ctx: bool) -> ::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 errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int; } - seed48_r(arg___seed16v, arg___buffer) + errhidecontext(arg_hide_ctx) }) } -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 errbacktrace() -> ::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 errbacktrace() -> ::std::os::raw::c_int; } - lcong48_r(arg___param, arg___buffer) + errbacktrace() }) } -pub unsafe fn arc4random() -> __uint32_t { +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 arc4random() -> __uint32_t; + fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - arc4random() + errposition(arg_cursorpos) }) } -pub unsafe fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize) { +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 arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize); + fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - arc4random_buf(arg___buf, arg___size) + internalerrposition(arg_cursorpos) }) } -pub unsafe fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t { +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 arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t; + fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - arc4random_uniform(arg___upper_bound) + internalerrquery(arg_query) }) } -pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *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 malloc(arg___size: ::std::os::raw::c_ulong) -> *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; } - malloc(arg___size) + err_generic_string(arg_field, arg_str_) }) } -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 geterrcode() -> ::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 geterrcode() -> ::std::os::raw::c_int; } - calloc(arg___nmemb, arg___size) + geterrcode() }) } -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 geterrposition() -> ::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 geterrposition() -> ::std::os::raw::c_int; } - realloc(arg___ptr, arg___size) + geterrposition() }) } -pub unsafe fn free(arg___ptr: *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 free(arg___ptr: *mut ::std::os::raw::c_void); + fn getinternalerrposition() -> ::std::os::raw::c_int; } - free(arg___ptr) + getinternalerrposition() }) } -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 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 reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - ) -> *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, + ); } - reallocarray(arg___ptr, arg___nmemb, arg___size) + pre_format_elog_string(arg_errnumber, arg_domain) }) } -pub unsafe fn alloca(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 alloca(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; } - alloca(arg___size) + format_elog_string(arg_fmt) }) } -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) - }) +#[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 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; +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() } - 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) - }) +extern "C" { + pub static mut error_context_stack: *mut ErrorContextCallback; } -pub unsafe fn abort() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn abort(); - } - abort() - }) +extern "C" { + pub static mut PG_exception_stack: *mut sigjmp_buf; } -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) - }) +#[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 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, } -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; +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() } - 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 { +pub unsafe fn EmitErrorReport() { 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 EmitErrorReport(); } - on_exit(arg___func, arg___arg) + EmitErrorReport() }) } -pub unsafe fn 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 exit(arg___status: ::std::os::raw::c_int); + fn CopyErrorData() -> *mut ErrorData; } - exit(arg___status) + CopyErrorData() }) } -pub unsafe fn quick_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 quick_exit(arg___status: ::std::os::raw::c_int); + fn FreeErrorData(arg_edata: *mut ErrorData); } - quick_exit(arg___status) + FreeErrorData(arg_edata) }) } -pub unsafe fn _Exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn FlushErrorState() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _Exit(arg___status: ::std::os::raw::c_int); + fn FlushErrorState(); } - _Exit(arg___status) + FlushErrorState() }) } -pub unsafe fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { 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 ReThrowError(arg_edata: *mut ErrorData); } - getenv(arg___name) + ReThrowError(arg_edata) }) } -pub unsafe fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn ThrowErrorData(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 ThrowErrorData(arg_edata: *mut ErrorData); } - putenv(arg___string) + ThrowErrorData(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 GetErrorContextStack() -> *mut ::std::os::raw::c_char { 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 GetErrorContextStack() -> *mut ::std::os::raw::c_char; } - setenv(arg___name, arg___value, arg___replace) + GetErrorContextStack() }) } -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 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 clearenv() -> ::std::os::raw::c_int { +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, - ) - }) -} -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, Default, Copy, Clone)] +pub struct varatt_external { + pub va_rawsize: int32, + pub va_extinfo: uint32, + pub va_valueid: Oid, + pub va_toastrelid: Oid, } #[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 varatt_indirect { + pub pointer: *mut varlena, } -impl Default for __locale_struct { +impl Default for varatt_indirect { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -6497,557 +4414,94 @@ 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) - }) -} -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) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct varatt_expanded { + pub eohptr: *mut ExpandedObjectHeader, } -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; +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() } - 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 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 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) - }) +#[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 __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) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct varattrib_4b__bindgen_ty_2 { + pub va_header: uint32, + pub va_tcinfo: uint32, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } -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; +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() } - 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, +#[derive(Debug, Default)] +pub struct varattrib_1b { + pub va_header: uint8, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } -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, 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 AttrNumber = int16; #[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, +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 attalign: ::std::os::raw::c_char, + pub attstorage: ::std::os::raw::c_char, + pub attcompression: ::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 lconv { +impl Default for FormData_pg_attribute { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7056,8276 +4510,9 @@ impl Default for lconv { } } } -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; - } - __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 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, - arg_nmemb: usize, - arg_size: usize, - arg_compar: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - arg_arg: *mut ::std::os::raw::c_void, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bsearch_arg( - arg_key: *const ::std::os::raw::c_void, - arg_base: *const ::std::os::raw::c_void, - arg_nmemb: usize, - arg_size: usize, - arg_compar: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - arg_arg: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; - } - bsearch_arg(arg_key, arg_base, arg_nmemb, arg_size, arg_compar, 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_init() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strong_random_init(); - } - pg_strong_random_init() - }) -} -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 message_level_is_interesting(arg_elevel: ::std::os::raw::c_int) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn message_level_is_interesting(arg_elevel: ::std::os::raw::c_int) -> bool; - } - message_level_is_interesting(arg_elevel) - }) -} -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 errstart_cold( - 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_cold( - arg_elevel: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, - ) -> bool; - } - errstart_cold(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 errhint_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 errhint_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; - } - errhint_plural(arg_fmt_singular, arg_fmt_plural, arg_n) - }) -} -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 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 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_extinfo: uint32, - 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_tcinfo: 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 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 attalign: ::std::os::raw::c_char, - pub attstorage: ::std::os::raw::c_char, - pub attcompression: ::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 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 type Form_pg_attribute = *mut FormData_pg_attribute; -extern "C" { - pub static mut no_such_variable: ::std::os::raw::c_int; +pub type Form_pg_attribute = *mut FormData_pg_attribute; +extern "C" { + pub static mut no_such_variable: ::std::os::raw::c_int; } pub const NodeTag_T_Invalid: NodeTag = 0; pub const NodeTag_T_IndexInfo: NodeTag = 1; @@ -16175,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 { @@ -17195,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; @@ -18054,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( @@ -19029,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)] @@ -19643,6 +8294,7 @@ impl Default for FmgrInfo { } } #[repr(C)] +#[derive(Debug)] pub struct FunctionCallInfoBaseData { pub flinfo: *mut FmgrInfo, pub context: fmNodePtr, @@ -19848,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( @@ -20167,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( @@ -20448,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( @@ -20911,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( @@ -21227,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" { @@ -21401,6 +10011,7 @@ pub unsafe fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pair }) } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ParamExternData { pub value: Datum, pub isnull: bool, @@ -21438,6 +10049,7 @@ 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, @@ -21459,6 +10071,7 @@ impl Default for ParamListInfoData { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ParamExecData { pub execPlan: *mut ::std::os::raw::c_void, pub value: Datum, @@ -21711,6 +10324,7 @@ impl Default for Var { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct Const { pub xpr: Expr, pub consttype: Oid, @@ -24699,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( @@ -25014,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 closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} -pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - 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 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; @@ -25271,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( @@ -25297,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 { @@ -27553,6 +15995,7 @@ pub type ExprStateEvalFunc = ::std::option::Option< ) -> Datum, >; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ExprState { pub tag: NodeTag, pub flags: uint8, @@ -27619,6 +16062,7 @@ 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, @@ -27634,6 +16078,7 @@ impl Default for ExprContext_CB { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ExprContext { pub type_: NodeTag, pub ecxt_scantuple: *mut TupleTableSlot, @@ -27692,6 +16137,7 @@ impl Default for ReturnSetInfo { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ProjectionInfo { pub type_: NodeTag, pub pi_state: ExprState, @@ -28238,6 +16684,7 @@ impl Default for SetExprState { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct SubPlanState { pub type_: NodeTag, pub subplan: *mut SubPlan, @@ -29455,6 +17902,7 @@ pub struct WindowStatePerAggData { } pub type WindowStatePerAgg = *mut WindowStatePerAggData; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct WindowAggState { pub ss: ScanState, pub funcs: *mut List, @@ -33133,413 +21581,13 @@ pub type TransactionStmtKind = ::std::os::raw::c_uint; #[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, - pub options: *mut List, -} -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() - } - } -} -#[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 params: *mut List, -} -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 objtype: 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 params: *mut List, -} -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, + 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 CreateConversionStmt { +impl Default for TransactionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33550,15 +21598,12 @@ impl Default for CreateConversionStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CreateCastStmt { +pub struct CompositeTypeStmt { pub type_: NodeTag, - pub sourcetype: *mut TypeName, - pub targettype: *mut TypeName, - pub func: *mut ObjectWithArgs, - pub context: CoercionContext, - pub inout: bool, + pub typevar: *mut RangeVar, + pub coldeflist: *mut List, } -impl Default for CreateCastStmt { +impl Default for CompositeTypeStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33569,15 +21614,12 @@ impl Default for CreateCastStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CreateTransformStmt { +pub struct CreateEnumStmt { 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 typeName: *mut List, + pub vals: *mut List, } -impl Default for CreateTransformStmt { +impl Default for CreateEnumStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33588,13 +21630,12 @@ impl Default for CreateTransformStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PrepareStmt { +pub struct CreateRangeStmt { pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub argtypes: *mut List, - pub query: *mut Node, + pub typeName: *mut List, + pub params: *mut List, } -impl Default for PrepareStmt { +impl Default for CreateRangeStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33605,12 +21646,16 @@ impl Default for PrepareStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ExecuteStmt { +pub struct AlterEnumStmt { pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub params: *mut List, + 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 ExecuteStmt { +impl Default for AlterEnumStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33619,13 +21664,22 @@ impl Default for ExecuteStmt { } } } +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 DeallocateStmt { +pub struct ViewStmt { pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, + 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 DeallocateStmt { +impl Default for ViewStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33636,12 +21690,11 @@ impl Default for DeallocateStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct DropOwnedStmt { +pub struct LoadStmt { pub type_: NodeTag, - pub roles: *mut List, - pub behavior: DropBehavior, + pub filename: *mut ::std::os::raw::c_char, } -impl Default for DropOwnedStmt { +impl Default for LoadStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33652,12 +21705,12 @@ impl Default for DropOwnedStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ReassignOwnedStmt { +pub struct CreatedbStmt { pub type_: NodeTag, - pub roles: *mut List, - pub newrole: *mut RoleSpec, + pub dbname: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for ReassignOwnedStmt { +impl Default for CreatedbStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33668,12 +21721,12 @@ impl Default for ReassignOwnedStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterTSDictionaryStmt { +pub struct AlterDatabaseStmt { pub type_: NodeTag, - pub dictname: *mut List, + pub dbname: *mut ::std::os::raw::c_char, pub options: *mut List, } -impl Default for AlterTSDictionaryStmt { +impl Default for AlterDatabaseStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33682,25 +21735,14 @@ 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; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterTSConfigurationStmt { +pub struct AlterDatabaseSetStmt { 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 dbname: *mut ::std::os::raw::c_char, + pub setstmt: *mut VariableSetStmt, } -impl Default for AlterTSConfigurationStmt { +impl Default for AlterDatabaseSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33711,14 +21753,13 @@ impl Default for AlterTSConfigurationStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CreatePublicationStmt { +pub struct DropdbStmt { pub type_: NodeTag, - pub pubname: *mut ::std::os::raw::c_char, + pub dbname: *mut ::std::os::raw::c_char, + pub missing_ok: bool, pub options: *mut List, - pub tables: *mut List, - pub for_all_tables: bool, } -impl Default for CreatePublicationStmt { +impl Default for DropdbStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33729,15 +21770,11 @@ impl Default for CreatePublicationStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterPublicationStmt { +pub struct AlterSystemStmt { 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 setstmt: *mut VariableSetStmt, } -impl Default for AlterPublicationStmt { +impl Default for AlterSystemStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33748,14 +21785,13 @@ impl Default for AlterPublicationStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CreateSubscriptionStmt { +pub struct ClusterStmt { 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 relation: *mut RangeVar, + pub indexname: *mut ::std::os::raw::c_char, + pub params: *mut List, } -impl Default for CreateSubscriptionStmt { +impl Default for ClusterStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33764,25 +21800,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_SET_PUBLICATION: AlterSubscriptionType = 2; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_ADD_PUBLICATION: AlterSubscriptionType = 3; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_DROP_PUBLICATION: AlterSubscriptionType = 4; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_REFRESH: AlterSubscriptionType = 5; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_ENABLED: AlterSubscriptionType = 6; -pub type AlterSubscriptionType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterSubscriptionStmt { +pub struct VacuumStmt { 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 rels: *mut List, + pub is_vacuumcmd: bool, } -impl Default for AlterSubscriptionStmt { +impl Default for VacuumStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33793,13 +21819,13 @@ impl Default for AlterSubscriptionStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct DropSubscriptionStmt { +pub struct VacuumRelation { pub type_: NodeTag, - pub subname: *mut ::std::os::raw::c_char, - pub missing_ok: bool, - pub behavior: DropBehavior, + pub relation: *mut RangeVar, + pub oid: Oid, + pub va_cols: *mut List, } -impl Default for DropSubscriptionStmt { +impl Default for VacuumRelation { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33809,3248 +21835,2845 @@ 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, - print_to_stderr: bool, - ), ->; -#[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, - print_to_stderr: bool, - ), - >, - pub check: ::std::option::Option, -} -#[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct MemoryContextData { +pub struct ExplainStmt { 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 query: *mut Node, + pub options: *mut List, } -impl Default for MemoryContextData { +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() - } - } -} -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, - arg_print_to_stderr: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextStatsDetail( - arg_context: MemoryContext, - arg_max_children: ::std::os::raw::c_int, - arg_print_to_stderr: bool, - ); - } - MemoryContextStatsDetail(arg_context, arg_max_children, arg_print_to_stderr) - }) -} -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 HandleLogMemoryContextInterrupt() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn HandleLogMemoryContextInterrupt(); - } - HandleLogMemoryContextInterrupt() - }) -} -pub unsafe fn ProcessLogMemoryContextInterrupt() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ProcessLogMemoryContextInterrupt(); - } - ProcessLogMemoryContextInterrupt() - }) -} -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; + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - 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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateTableAsStmt { + pub type_: NodeTag, + pub query: *mut Node, + pub into: *mut IntoClause, + pub objtype: ObjectType, + pub is_select_into: bool, + pub if_not_exists: bool, } -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; +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 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 RefreshMatViewStmt { + pub type_: NodeTag, + pub concurrent: bool, + pub skipData: bool, + pub relation: *mut RangeVar, } -pub type ExecutorEnd_hook_type = - ::std::option::Option; -extern "C" { - pub static mut ExecutorEnd_hook: ExecutorEnd_hook_type; +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 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 CheckPointStmt { + pub type_: NodeTag, } -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 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() } - 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 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 ExecRestrPos(arg_node: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecRestrPos(arg_node: *mut PlanState); +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() } - 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 LockStmt { + pub type_: NodeTag, + pub relations: *mut List, + pub mode: ::std::os::raw::c_int, + pub nowait: bool, } -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 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() } - 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; +#[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() } - 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; +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 params: *mut List, +} +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() } - 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; +#[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() } - 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, - ); +#[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() } - 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; +#[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() } - 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; +#[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() } - 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; +#[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() } - LookupTupleHashEntry(arg_hashtable, arg_slot, arg_isnew, arg_hash) - }) + } } -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; +#[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() } - 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; +#[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() } - LookupTupleHashEntryHash(arg_hashtable, arg_slot, arg_isnew, arg_hash) - }) + } } -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; +#[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() } - 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 AlterTSDictionaryStmt { + pub type_: NodeTag, + pub dictname: *mut List, + pub options: *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 ExecInitJunkFilter( - arg_targetList: *mut List, - arg_slot: *mut TupleTableSlot, - ) -> *mut JunkFilter; +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() } - ExecInitJunkFilter(arg_targetList, 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 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 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; +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() } - 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) - }) +#[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 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; +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() } - ExecFilterJunk(arg_junkfilter, arg_slot) - }) + } } -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 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 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 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() } - 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) - }) +#[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 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, - ); +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() } - 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); +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_OPTIONS: AlterSubscriptionType = 0; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_CONNECTION: AlterSubscriptionType = 1; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_SET_PUBLICATION: AlterSubscriptionType = 2; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_ADD_PUBLICATION: AlterSubscriptionType = 3; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_DROP_PUBLICATION: AlterSubscriptionType = 4; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_REFRESH: AlterSubscriptionType = 5; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_ENABLED: AlterSubscriptionType = 6; +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() } - 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); +#[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() } - 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); +#[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, + print_to_stderr: bool, + ), +>; +#[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, + print_to_stderr: bool, + ), + >, + 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() } - ExecutorEnd(arg_queryDesc) - }) + } } -pub unsafe fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc) { +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 standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc); + fn MemoryContextInit(); } - standard_ExecutorEnd(arg_queryDesc) + MemoryContextInit() }) } -pub unsafe fn ExecutorRewind(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn MemoryContextReset(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorRewind(arg_queryDesc: *mut QueryDesc); + fn MemoryContextReset(arg_context: MemoryContext); } - ExecutorRewind(arg_queryDesc) + MemoryContextReset(arg_context) }) } -pub unsafe fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool { +pub unsafe fn MemoryContextDelete(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool; + fn MemoryContextDelete(arg_context: MemoryContext); } - ExecCheckRTPerms(arg_rangeTable, arg_ereport_on_violation) + MemoryContextDelete(arg_context) }) } -pub unsafe fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { +pub unsafe fn MemoryContextResetOnly(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType); + fn MemoryContextResetOnly(arg_context: MemoryContext); } - CheckValidResultRel(arg_resultRelInfo, arg_operation) + MemoryContextResetOnly(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 MemoryContextResetChildren(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 MemoryContextResetChildren(arg_context: MemoryContext); } - InitResultRelInfo( - arg_resultRelInfo, - arg_resultRelationDesc, - arg_resultRelationIndex, - arg_partition_root_rri, - arg_instrument_options, - ) + MemoryContextResetChildren(arg_context) }) } -pub unsafe fn ExecGetTriggerResultRel( - arg_estate: *mut EState, - arg_relid: Oid, -) -> *mut ResultRelInfo { +pub unsafe fn MemoryContextDeleteChildren(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 MemoryContextDeleteChildren(arg_context: MemoryContext); } - ExecGetTriggerResultRel(arg_estate, arg_relid) + MemoryContextDeleteChildren(arg_context) }) } -pub unsafe fn ExecConstraints( - 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 ExecConstraints( - 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, ); } - ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) - }) -} -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 ExecPartitionCheck( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_emitError: bool, - ) -> bool; - } - ExecPartitionCheck(arg_resultRelInfo, arg_slot, arg_estate, arg_emitError) + MemoryContextSetIdentifier(arg_context, arg_id) }) } -pub unsafe fn ExecPartitionCheckEmitError( - 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 ExecPartitionCheckEmitError( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - ); + fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext); } - ExecPartitionCheckEmitError(arg_resultRelInfo, arg_slot, arg_estate) + MemoryContextSetParent(arg_context, arg_new_parent) }) } -pub unsafe fn ExecWithCheckOptions( - arg_kind: WCOKind, - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, -) { +pub unsafe fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size { 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 GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size; } - ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) + GetMemoryChunkSpace(arg_pointer) }) } -pub unsafe fn ExecUpdateLockMode( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, -) -> LockTupleMode { +pub unsafe fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecUpdateLockMode( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - ) -> LockTupleMode; + fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext; } - ExecUpdateLockMode(arg_estate, arg_relinfo) + MemoryContextGetParent(arg_context) }) } -pub unsafe fn ExecFindRowMark( - arg_estate: *mut EState, - arg_rti: Index, - arg_missing_ok: bool, -) -> *mut ExecRowMark { +pub unsafe fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool { 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 MemoryContextIsEmpty(arg_context: MemoryContext) -> bool; } - ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) + MemoryContextIsEmpty(arg_context) }) } -pub unsafe fn ExecBuildAuxRowMark( - arg_erm: *mut ExecRowMark, - arg_targetlist: *mut List, -) -> *mut ExecAuxRowMark { +pub unsafe fn MemoryContextMemAllocated(arg_context: MemoryContext, arg_recurse: bool) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildAuxRowMark( - arg_erm: *mut ExecRowMark, - arg_targetlist: *mut List, - ) -> *mut ExecAuxRowMark; + fn MemoryContextMemAllocated(arg_context: MemoryContext, arg_recurse: bool) -> Size; } - ExecBuildAuxRowMark(arg_erm, arg_targetlist) + MemoryContextMemAllocated(arg_context, arg_recurse) }) } -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, + arg_print_to_stderr: bool, ) { 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, + arg_print_to_stderr: bool, ); } - EvalPlanQualInit( - arg_epqstate, - arg_parentestate, - arg_subplan, - arg_auxrowmarks, - arg_epqParam, - ) + MemoryContextStatsDetail(arg_context, arg_max_children, arg_print_to_stderr) }) } -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 HandleLogMemoryContextInterrupt() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualBegin(arg_epqstate: *mut EPQState); + fn HandleLogMemoryContextInterrupt(); } - EvalPlanQualBegin(arg_epqstate) + HandleLogMemoryContextInterrupt() }) } -pub unsafe fn EvalPlanQualEnd(arg_epqstate: *mut EPQState) { +pub unsafe fn ProcessLogMemoryContextInterrupt() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualEnd(arg_epqstate: *mut EPQState); + fn ProcessLogMemoryContextInterrupt(); } - EvalPlanQualEnd(arg_epqstate) + ProcessLogMemoryContextInterrupt() }) } -pub unsafe fn ExecInitNode( - arg_node: *mut Plan, - arg_estate: *mut EState, - arg_eflags: ::std::os::raw::c_int, -) -> *mut PlanState { +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 ExecInitNode( - arg_node: *mut Plan, - arg_estate: *mut EState, - arg_eflags: ::std::os::raw::c_int, - ) -> *mut PlanState; + fn AllocSetContextCreateInternal( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_minContextSize: Size, + arg_initBlockSize: Size, + arg_maxBlockSize: Size, + ) -> MemoryContext; } - ExecInitNode(arg_node, arg_estate, arg_eflags) + AllocSetContextCreateInternal( + arg_parent, + arg_name, + arg_minContextSize, + arg_initBlockSize, + arg_maxBlockSize, + ) }) } -pub unsafe fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd) { +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 ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd); + fn SlabContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + arg_chunkSize: Size, + ) -> MemoryContext; } - ExecSetExecProcNode(arg_node, arg_function) + SlabContextCreate(arg_parent, arg_name, arg_blockSize, arg_chunkSize) }) } -pub unsafe fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node { +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 MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; + fn GenerationContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + ) -> MemoryContext; } - MultiExecProcNode(arg_node) + GenerationContextCreate(arg_parent, arg_name, arg_blockSize) }) } -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 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 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 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 ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState) { +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 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, - arg_nullcheck: 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, - arg_nullcheck: 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, - arg_nullcheck, - ) + 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 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 ExecBuildParamSetEqual( - arg_desc: TupleDesc, - arg_lops: *const TupleTableSlotOps, - arg_rops: *const TupleTableSlotOps, - arg_eqfunctions: *const Oid, - arg_collations: *const Oid, - arg_param_exprs: *const List, - arg_parent: *mut PlanState, -) -> *mut ExprState { +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) + }) +} +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; + } + 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 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 ExecBuildParamSetEqual( - arg_desc: TupleDesc, - arg_lops: *const TupleTableSlotOps, - arg_rops: *const TupleTableSlotOps, - arg_eqfunctions: *const Oid, - arg_collations: *const Oid, - arg_param_exprs: *const List, - arg_parent: *mut PlanState, - ) -> *mut ExprState; + fn ResetTupleHashTable(arg_hashtable: TupleHashTable); } - ExecBuildParamSetEqual( - arg_desc, - arg_lops, - arg_rops, - arg_eqfunctions, - arg_collations, - arg_param_exprs, - arg_parent, - ) + ResetTupleHashTable(arg_hashtable) }) } -pub unsafe fn ExecBuildProjectionInfo( +pub unsafe fn ExecInitJunkFilter( arg_targetList: *mut List, - arg_econtext: *mut ExprContext, arg_slot: *mut TupleTableSlot, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, -) -> *mut ProjectionInfo { +) -> *mut JunkFilter { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildProjectionInfo( + fn ExecInitJunkFilter( arg_targetList: *mut List, - arg_econtext: *mut ExprContext, arg_slot: *mut TupleTableSlot, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - ) -> *mut ProjectionInfo; + ) -> *mut JunkFilter; } - ExecBuildProjectionInfo( - arg_targetList, - arg_econtext, - arg_slot, - arg_parent, - arg_inputDesc, - ) + ExecInitJunkFilter(arg_targetList, arg_slot) }) } -pub unsafe fn ExecBuildUpdateProjection( +pub unsafe fn ExecInitJunkFilterConversion( arg_targetList: *mut List, - arg_evalTargetList: bool, - arg_targetColnos: *mut List, - arg_relDesc: TupleDesc, - arg_econtext: *mut ExprContext, + arg_cleanTupType: TupleDesc, arg_slot: *mut TupleTableSlot, - arg_parent: *mut PlanState, -) -> *mut ProjectionInfo { +) -> *mut JunkFilter { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildUpdateProjection( + fn ExecInitJunkFilterConversion( arg_targetList: *mut List, - arg_evalTargetList: bool, - arg_targetColnos: *mut List, - arg_relDesc: TupleDesc, - arg_econtext: *mut ExprContext, + arg_cleanTupType: TupleDesc, arg_slot: *mut TupleTableSlot, - arg_parent: *mut PlanState, - ) -> *mut ProjectionInfo; + ) -> *mut JunkFilter; } - ExecBuildUpdateProjection( - arg_targetList, - arg_evalTargetList, - arg_targetColnos, - arg_relDesc, - arg_econtext, - arg_slot, - arg_parent, - ) + ExecInitJunkFilterConversion(arg_targetList, arg_cleanTupType, arg_slot) }) } -pub unsafe fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState { +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 ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; + fn ExecFindJunkAttribute( + arg_junkfilter: *mut JunkFilter, + arg_attrName: *const ::std::os::raw::c_char, + ) -> AttrNumber; } - ExecPrepareExpr(arg_node, arg_estate) + ExecFindJunkAttribute(arg_junkfilter, arg_attrName) }) } -pub unsafe fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *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 ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; + fn ExecFindJunkAttributeInTlist( + arg_targetlist: *mut List, + arg_attrName: *const ::std::os::raw::c_char, + ) -> AttrNumber; } - ExecPrepareQual(arg_qual, arg_estate) + ExecFindJunkAttributeInTlist(arg_targetlist, arg_attrName) }) } -pub unsafe fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { +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 ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; + fn ExecFilterJunk( + arg_junkfilter: *mut JunkFilter, + arg_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - ExecPrepareCheck(arg_qual, arg_estate) + ExecFilterJunk(arg_junkfilter, arg_slot) }) } -pub unsafe fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List { +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 ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; + fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int); } - ExecPrepareExprList(arg_nodes, arg_estate) + ExecutorStart(arg_queryDesc, arg_eflags) }) } -pub unsafe fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool { +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 ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; + fn standard_ExecutorStart( + arg_queryDesc: *mut QueryDesc, + arg_eflags: ::std::os::raw::c_int, + ); } - ExecCheck(arg_state, arg_context) + standard_ExecutorStart(arg_queryDesc, arg_eflags) }) } -pub unsafe fn ExecInitTableFunctionResult( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, -) -> *mut SetExprState { +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 ExecInitTableFunctionResult( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, - ) -> *mut SetExprState; + fn ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, + ); } - ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) + ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) }) } -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_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 ExecMakeTableFunctionResult( - arg_setexpr: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_expectedDesc: TupleDesc, - arg_randomAccess: bool, - ) -> *mut Tuplestorestate; + fn standard_ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, + ); } - ExecMakeTableFunctionResult( - arg_setexpr, - arg_econtext, - arg_argContext, - arg_expectedDesc, - arg_randomAccess, - ) + standard_ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) }) } -pub unsafe fn ExecInitFunctionResultSet( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, -) -> *mut SetExprState { +pub unsafe fn ExecutorFinish(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 ExecutorFinish(arg_queryDesc: *mut QueryDesc); } - ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) + ExecutorFinish(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 standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc) { 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 standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc); } - ExecMakeFunctionResultSet( - arg_fcache, - arg_econtext, - arg_argContext, - arg_isNull, - arg_isDone, - ) + standard_ExecutorFinish(arg_queryDesc) }) } -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 ExecutorEnd(arg_queryDesc: *mut QueryDesc) { 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 ExecutorEnd(arg_queryDesc: *mut QueryDesc); } - ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) + ExecutorEnd(arg_queryDesc) }) } -pub unsafe fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState) { +pub unsafe fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); + fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc); } - ExecAssignScanProjectionInfo(arg_node) + standard_ExecutorEnd(arg_queryDesc) }) } -pub unsafe fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index) { +pub unsafe fn ExecutorRewind(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); + fn ExecutorRewind(arg_queryDesc: *mut QueryDesc); } - ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) + ExecutorRewind(arg_queryDesc) }) } -pub unsafe fn ExecScanReScan(arg_node: *mut ScanState) { +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 ExecScanReScan(arg_node: *mut ScanState); + fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool; } - ExecScanReScan(arg_node) + ExecCheckRTPerms(arg_rangeTable, arg_ereport_on_violation) }) } -pub unsafe fn ExecInitResultTypeTL(arg_planstate: *mut PlanState) { +pub unsafe fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitResultTypeTL(arg_planstate: *mut PlanState); + fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType); } - ExecInitResultTypeTL(arg_planstate) + CheckValidResultRel(arg_resultRelInfo, arg_operation) }) } -pub unsafe fn ExecInitResultSlot( - 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 ExecInitResultSlot( - 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, ); } - ExecInitResultSlot(arg_planstate, arg_tts_ops) + InitResultRelInfo( + arg_resultRelInfo, + arg_resultRelationDesc, + arg_resultRelationIndex, + arg_partition_root_rri, + arg_instrument_options, + ) }) } -pub unsafe fn ExecInitResultTupleSlotTL( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, -) { +pub unsafe fn ExecGetTriggerResultRel( + arg_estate: *mut EState, + arg_relid: Oid, +) -> *mut ResultRelInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitResultTupleSlotTL( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, - ); + fn ExecGetTriggerResultRel( + arg_estate: *mut EState, + arg_relid: Oid, + ) -> *mut ResultRelInfo; } - ExecInitResultTupleSlotTL(arg_planstate, arg_tts_ops) + ExecGetTriggerResultRel(arg_estate, arg_relid) }) } -pub unsafe fn ExecInitScanTupleSlot( +pub unsafe fn ExecConstraints( + 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 ExecConstraints( + 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) + ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecInitExtraTupleSlot( +pub unsafe fn ExecPartitionCheck( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, arg_estate: *mut EState, - arg_tupledesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupleTableSlot { + arg_emitError: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExtraTupleSlot( + fn ExecPartitionCheck( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, arg_estate: *mut EState, - arg_tupledesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupleTableSlot; + arg_emitError: bool, + ) -> bool; } - ExecInitExtraTupleSlot(arg_estate, arg_tupledesc, arg_tts_ops) + ExecPartitionCheck(arg_resultRelInfo, arg_slot, arg_estate, arg_emitError) }) } -pub unsafe fn ExecInitNullTupleSlot( +pub unsafe fn ExecPartitionCheckEmitError( + 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 ExecPartitionCheckEmitError( + 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) + ExecPartitionCheckEmitError(arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecTypeFromTL(arg_targetList: *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 ExecTypeFromTL(arg_targetList: *mut List) -> TupleDesc; + fn ExecWithCheckOptions( + arg_kind: WCOKind, + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ); } - ExecTypeFromTL(arg_targetList) + ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc { +pub unsafe fn ExecUpdateLockMode( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, +) -> LockTupleMode { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc; + fn ExecUpdateLockMode( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + ) -> LockTupleMode; } - ExecCleanTypeFromTL(arg_targetList) + ExecUpdateLockMode(arg_estate, arg_relinfo) }) } -pub unsafe fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc { +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 ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc; + fn ExecFindRowMark( + arg_estate: *mut EState, + arg_rti: Index, + arg_missing_ok: bool, + ) -> *mut ExecRowMark; } - ExecTypeFromExprList(arg_exprList) + ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) }) } -pub unsafe fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List) { +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 ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List); + fn ExecBuildAuxRowMark( + arg_erm: *mut ExecRowMark, + arg_targetlist: *mut List, + ) -> *mut ExecAuxRowMark; } - ExecTypeSetColNames(arg_typeInfo, arg_namesList) + ExecBuildAuxRowMark(arg_erm, arg_targetlist) }) } -pub unsafe fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset) { +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 UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset); + fn EvalPlanQual( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + arg_testslot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - UpdateChangedParamSet(arg_node, arg_newchg) + EvalPlanQual(arg_epqstate, arg_relation, arg_rti, arg_testslot) }) } -#[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 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 begin_tup_output_tupdesc( - arg_dest: *mut DestReceiver, - arg_tupdesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupOutputState; + 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, + ); } - begin_tup_output_tupdesc(arg_dest, arg_tupdesc, arg_tts_ops) + EvalPlanQualInit(arg_epqstate, arg_parentestate, arg_subplan, arg_auxrowmarks, arg_epqParam) }) } -pub unsafe fn do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, +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 do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, + fn EvalPlanQualSetPlan( + arg_epqstate: *mut EPQState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, ); } - do_tup_output(arg_tstate, arg_values, arg_isnull) + EvalPlanQualSetPlan(arg_epqstate, arg_subplan, arg_auxrowmarks) }) } -pub unsafe fn do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, -) { +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 do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, - ); + fn EvalPlanQualSlot( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + ) -> *mut TupleTableSlot; } - do_text_output_multiline(arg_tstate, arg_txt) + EvalPlanQualSlot(arg_epqstate, arg_relation, arg_rti) }) } -pub unsafe fn end_tup_output(arg_tstate: *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 end_tup_output(arg_tstate: *mut TupOutputState); + fn EvalPlanQualFetchRowMark( + arg_epqstate: *mut EPQState, + arg_rti: Index, + arg_slot: *mut TupleTableSlot, + ) -> bool; } - end_tup_output(arg_tstate) + EvalPlanQualFetchRowMark(arg_epqstate, arg_rti, arg_slot) }) } -pub unsafe fn CreateExecutorState() -> *mut EState { +pub unsafe fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateExecutorState() -> *mut EState; + fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot; } - CreateExecutorState() + EvalPlanQualNext(arg_epqstate) }) } -pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { +pub unsafe fn EvalPlanQualBegin(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeExecutorState(arg_estate: *mut EState); + fn EvalPlanQualBegin(arg_epqstate: *mut EPQState); } - FreeExecutorState(arg_estate) + EvalPlanQualBegin(arg_epqstate) }) } -pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { +pub unsafe fn EvalPlanQualEnd(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; + fn EvalPlanQualEnd(arg_epqstate: *mut EPQState); } - CreateExprContext(arg_estate) + EvalPlanQualEnd(arg_epqstate) }) } -pub unsafe fn CreateWorkExprContext(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 CreateWorkExprContext(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; } - CreateWorkExprContext(arg_estate) + ExecInitNode(arg_node, arg_estate, arg_eflags) }) } -pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { +pub unsafe fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateStandaloneExprContext() -> *mut ExprContext; + fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd); } - CreateStandaloneExprContext() + ExecSetExecProcNode(arg_node, arg_function) }) } -pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { +pub unsafe fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); + fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; } - FreeExprContext(arg_econtext, arg_isCommit) + MultiExecProcNode(arg_node) }) } -pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { +pub unsafe fn ExecEndNode(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReScanExprContext(arg_econtext: *mut ExprContext); + fn ExecEndNode(arg_node: *mut PlanState); } - ReScanExprContext(arg_econtext) + ExecEndNode(arg_node) }) } -pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { +pub unsafe fn ExecShutdownNode(arg_node: *mut PlanState) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; + fn ExecShutdownNode(arg_node: *mut PlanState) -> bool; } - MakePerTupleExprContext(arg_estate) + ExecShutdownNode(arg_node) }) } -pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { +pub unsafe fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); + fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState); } - ExecAssignExprContext(arg_estate, arg_planstate) + ExecSetTupleBound(arg_tuples_needed, arg_child_node) }) } -pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { +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 ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; + fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecGetResultType(arg_planstate) + ExecInitExpr(arg_node, arg_parent) }) } -pub unsafe fn ExecGetResultSlotOps( - arg_planstate: *mut PlanState, - arg_isfixed: *mut bool, -) -> *const TupleTableSlotOps { +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 ExecGetResultSlotOps( - arg_planstate: *mut PlanState, - arg_isfixed: *mut bool, - ) -> *const TupleTableSlotOps; + fn ExecInitExprWithParams( + arg_node: *mut Expr, + arg_ext_params: ParamListInfo, + ) -> *mut ExprState; } - ExecGetResultSlotOps(arg_planstate, arg_isfixed) + ExecInitExprWithParams(arg_node, arg_ext_params) }) } -pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { +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 ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); + fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) + ExecInitQual(arg_qual, arg_parent) }) } -pub unsafe fn ExecConditionalAssignProjectionInfo( - arg_planstate: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_varno: Index, -) { +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 ExecConditionalAssignProjectionInfo( - arg_planstate: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_varno: Index, - ); + fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecConditionalAssignProjectionInfo(arg_planstate, arg_inputDesc, arg_varno) + ExecInitCheck(arg_qual, arg_parent) }) } -pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { +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 ExecFreeExprContext(arg_planstate: *mut PlanState); + fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List; } - ExecFreeExprContext(arg_planstate) + ExecInitExprList(arg_nodes, arg_parent) }) } -pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: 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 ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); + fn ExecBuildAggTrans( + arg_aggstate: *mut AggState, + arg_phase: *mut AggStatePerPhaseData, + arg_doSort: bool, + arg_doHash: bool, + arg_nullcheck: bool, + ) -> *mut ExprState; } - ExecAssignScanType(arg_scanstate, arg_tupDesc) + ExecBuildAggTrans(arg_aggstate, arg_phase, arg_doSort, arg_doHash, arg_nullcheck) }) } -pub unsafe fn ExecCreateScanSlotFromOuterPlan( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tts_ops: *const TupleTableSlotOps, -) { +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 ExecCreateScanSlotFromOuterPlan( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tts_ops: *const TupleTableSlotOps, - ); + 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; } - ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate, arg_tts_ops) + ExecBuildGroupingEqual( + arg_ldesc, + arg_rdesc, + arg_lops, + arg_rops, + arg_numCols, + arg_keyColIdx, + arg_eqfunctions, + arg_collations, + arg_parent, + ) }) } -pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { +pub unsafe fn ExecBuildParamSetEqual( + arg_desc: TupleDesc, + arg_lops: *const TupleTableSlotOps, + arg_rops: *const TupleTableSlotOps, + arg_eqfunctions: *const Oid, + arg_collations: *const Oid, + arg_param_exprs: *const 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 ExecBuildParamSetEqual( + arg_desc: TupleDesc, + arg_lops: *const TupleTableSlotOps, + arg_rops: *const TupleTableSlotOps, + arg_eqfunctions: *const Oid, + arg_collations: *const Oid, + arg_param_exprs: *const List, + arg_parent: *mut PlanState, + ) -> *mut ExprState; } - ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) + ExecBuildParamSetEqual( + arg_desc, + arg_lops, + arg_rops, + arg_eqfunctions, + arg_collations, + arg_param_exprs, + arg_parent, + ) }) } -pub unsafe fn ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, -) -> Relation { +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 ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, - ) -> Relation; + fn ExecBuildProjectionInfo( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + ) -> *mut ProjectionInfo; } - ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) + ExecBuildProjectionInfo(arg_targetList, arg_econtext, arg_slot, arg_parent, arg_inputDesc) }) } -pub unsafe fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List) { +pub unsafe fn ExecBuildUpdateProjection( + arg_targetList: *mut List, + arg_evalTargetList: bool, + arg_targetColnos: *mut List, + arg_relDesc: TupleDesc, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, +) -> *mut ProjectionInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List); + fn ExecBuildUpdateProjection( + arg_targetList: *mut List, + arg_evalTargetList: bool, + arg_targetColnos: *mut List, + arg_relDesc: TupleDesc, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, + ) -> *mut ProjectionInfo; } - ExecInitRangeTable(arg_estate, arg_rangeTable) + ExecBuildUpdateProjection( + arg_targetList, + arg_evalTargetList, + arg_targetColnos, + arg_relDesc, + arg_econtext, + arg_slot, + arg_parent, + ) }) } -pub unsafe fn ExecCloseRangeTableRelations(arg_estate: *mut EState) { +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 ExecCloseRangeTableRelations(arg_estate: *mut EState); + fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; } - ExecCloseRangeTableRelations(arg_estate) + ExecPrepareExpr(arg_node, arg_estate) }) } -pub unsafe fn ExecCloseResultRelations(arg_estate: *mut EState) { +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 ExecCloseResultRelations(arg_estate: *mut EState); + fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - ExecCloseResultRelations(arg_estate) + ExecPrepareQual(arg_qual, arg_estate) }) } -pub unsafe fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> 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 ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation; + fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - ExecGetRangeTableRelation(arg_estate, arg_rti) + ExecPrepareCheck(arg_qual, arg_estate) }) } -pub unsafe fn ExecInitResultRelation( - arg_estate: *mut EState, - arg_resultRelInfo: *mut ResultRelInfo, - arg_rti: Index, -) { +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 ExecInitResultRelation( - arg_estate: *mut EState, - arg_resultRelInfo: *mut ResultRelInfo, - arg_rti: Index, - ); + fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; } - ExecInitResultRelation(arg_estate, arg_resultRelInfo, arg_rti) + ExecPrepareExprList(arg_nodes, arg_estate) }) } -pub unsafe fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, -) -> ::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 executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; } - executor_errposition(arg_estate, arg_location) + ExecCheck(arg_state, arg_context) }) } -pub unsafe fn RegisterExprContextCallback( +pub unsafe fn ExecInitTableFunctionResult( + 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 RegisterExprContextCallback( + fn ExecInitTableFunctionResult( + arg_expr: *mut Expr, arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) + ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn UnregisterExprContextCallback( +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 UnregisterExprContextCallback( + 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; } - UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) + ExecMakeTableFunctionResult( + arg_setexpr, + arg_econtext, + arg_argContext, + arg_expectedDesc, + arg_randomAccess, + ) }) } -pub unsafe fn GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, - arg_isNull: *mut bool, -) -> Datum { +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 GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, - arg_isNull: *mut bool, - ) -> Datum; + fn ExecInitFunctionResultSet( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - GetAttributeByName(arg_tuple, arg_attname, arg_isNull) + ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, +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 GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, + fn ExecMakeFunctionResultSet( + arg_fcache: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, arg_isNull: *mut bool, + arg_isDone: *mut ExprDoneCond, ) -> Datum; } - GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) + ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_argContext, arg_isNull, arg_isDone) }) } -pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { +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 ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; + fn ExecScan( + arg_node: *mut ScanState, + arg_accessMtd: ExecScanAccessMtd, + arg_recheckMtd: ExecScanRecheckMtd, + ) -> *mut TupleTableSlot; } - ExecTargetListLength(arg_targetlist) + ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) }) } -pub unsafe fn ExecCleanTargetListLength(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 ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; + fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); } - ExecCleanTargetListLength(arg_targetlist) + ExecAssignScanProjectionInfo(arg_node) }) } -pub unsafe fn ExecGetTriggerOldSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { +pub unsafe fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetTriggerOldSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; + fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); } - ExecGetTriggerOldSlot(arg_estate, arg_relInfo) + ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) }) } -pub unsafe fn ExecGetTriggerNewSlot( - 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 ExecGetTriggerNewSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; + fn ExecScanReScan(arg_node: *mut ScanState); } - ExecGetTriggerNewSlot(arg_estate, arg_relInfo) + ExecScanReScan(arg_node) }) } -pub unsafe fn ExecGetReturningSlot( - 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 ExecGetReturningSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; + fn ExecInitResultTypeTL(arg_planstate: *mut PlanState); } - ExecGetReturningSlot(arg_estate, arg_relInfo) + ExecInitResultTypeTL(arg_planstate) }) } -pub unsafe fn ExecGetChildToRootMap( - arg_resultRelInfo: *mut ResultRelInfo, -) -> *mut TupleConversionMap { +pub unsafe fn ExecInitResultSlot( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetChildToRootMap( - arg_resultRelInfo: *mut ResultRelInfo, - ) -> *mut TupleConversionMap; + fn ExecInitResultSlot( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - ExecGetChildToRootMap(arg_resultRelInfo) + 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_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 ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc { 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 ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc; } - ExecInsertIndexTuples( - arg_resultRelInfo, - arg_slot, - arg_estate, - arg_update, - arg_noDupErr, - arg_specConflict, - arg_arbiterIndexes, - ) + ExecTypeFromExprList(arg_exprList) }) } -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 ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List) { 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 ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List); } - ExecCheckIndexConstraints( - arg_resultRelInfo, - 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; +#[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() } - RelationFindReplTupleByIndex( - arg_rel, - arg_idxoid, - arg_lockmode, - arg_searchslot, - arg_outslot, - ) - }) + } } -pub unsafe fn RelationFindReplTupleSeq( - arg_rel: Relation, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, -) -> bool { +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 RelationFindReplTupleSeq( - arg_rel: Relation, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, - ) -> bool; + fn begin_tup_output_tupdesc( + arg_dest: *mut DestReceiver, + arg_tupdesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupOutputState; } - RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) + begin_tup_output_tupdesc(arg_dest, arg_tupdesc, arg_tts_ops) }) } -pub unsafe fn ExecSimpleRelationInsert( - arg_resultRelInfo: *mut ResultRelInfo, - arg_estate: *mut EState, - 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 ExecSimpleRelationInsert( - arg_resultRelInfo: *mut ResultRelInfo, - arg_estate: *mut EState, - arg_slot: *mut TupleTableSlot, + fn do_tup_output( + arg_tstate: *mut TupOutputState, + arg_values: *mut Datum, + arg_isnull: *mut bool, ); } - ExecSimpleRelationInsert(arg_resultRelInfo, arg_estate, arg_slot) + do_tup_output(arg_tstate, arg_values, arg_isnull) }) } -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 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 ExecSimpleRelationUpdate( - arg_resultRelInfo: *mut ResultRelInfo, - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - arg_slot: *mut TupleTableSlot, + fn do_text_output_multiline( + arg_tstate: *mut TupOutputState, + arg_txt: *const ::std::os::raw::c_char, ); } - ExecSimpleRelationUpdate( - arg_resultRelInfo, - arg_estate, - arg_epqstate, - arg_searchslot, - arg_slot, - ) + do_text_output_multiline(arg_tstate, arg_txt) }) } -pub unsafe fn ExecSimpleRelationDelete( - arg_resultRelInfo: *mut ResultRelInfo, - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, -) { +pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { 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 end_tup_output(arg_tstate: *mut TupOutputState); } - ExecSimpleRelationDelete(arg_resultRelInfo, arg_estate, arg_epqstate, arg_searchslot) + end_tup_output(arg_tstate) }) } -pub unsafe fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType) { +pub unsafe fn CreateExecutorState() -> *mut EState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType); + fn CreateExecutorState() -> *mut EState; } - CheckCmdReplicaIdentity(arg_rel, arg_cmd) + CreateExecutorState() }) } -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 FreeExecutorState(arg_estate: *mut EState) { 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 FreeExecutorState(arg_estate: *mut EState); } - CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) + FreeExecutorState(arg_estate) }) } -pub unsafe fn ExecGetUpdateNewTuple( - arg_relinfo: *mut ResultRelInfo, - arg_planSlot: *mut TupleTableSlot, - arg_oldSlot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { +pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { 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 CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - ExecGetUpdateNewTuple(arg_relinfo, arg_planSlot, arg_oldSlot) + CreateExprContext(arg_estate) }) } -pub unsafe fn ExecLookupResultRelByOid( - arg_node: *mut ModifyTableState, - arg_resultoid: Oid, - arg_missing_ok: bool, - arg_update_cache: bool, -) -> *mut ResultRelInfo { +pub unsafe fn CreateWorkExprContext(arg_estate: *mut EState) -> *mut ExprContext { 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 CreateWorkExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - ExecLookupResultRelByOid(arg_node, arg_resultoid, arg_missing_ok, arg_update_cache) + CreateWorkExprContext(arg_estate) }) } -#[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() +pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CreateStandaloneExprContext() -> *mut ExprContext; } - } -} -#[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, + CreateStandaloneExprContext() + }) } -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 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 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 ReScanExprContext(arg_econtext: *mut ExprContext) { 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 ReScanExprContext(arg_econtext: *mut ExprContext); } - get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) + ReScanExprContext(arg_econtext) }) } -pub unsafe fn get_expr_result_type( - arg_expr: *mut Node, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { 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 MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) + MakePerTupleExprContext(arg_estate) }) } -pub unsafe fn get_func_result_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +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_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); } - get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) + ExecAssignExprContext(arg_estate, arg_planstate) }) } -pub unsafe fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc { +pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc; + fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; } - get_expr_result_tupdesc(arg_expr, arg_noError) + ExecGetResultType(arg_planstate) }) } -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 ExecGetResultSlotOps( + arg_planstate: *mut PlanState, + arg_isfixed: *mut bool, +) -> *const TupleTableSlotOps { 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 ExecGetResultSlotOps( + arg_planstate: *mut PlanState, + arg_isfixed: *mut bool, + ) -> *const TupleTableSlotOps; } - resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) + ExecGetResultSlotOps(arg_planstate, arg_isfixed) }) } -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 ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { 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 ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); } - get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) + ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) }) } -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 ExecConditionalAssignProjectionInfo( + arg_planstate: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_varno: Index, +) { 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 ExecConditionalAssignProjectionInfo( + arg_planstate: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_varno: Index, + ); } - get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) + ExecConditionalAssignProjectionInfo(arg_planstate, arg_inputDesc, arg_varno) }) } -pub unsafe fn get_func_trftypes( - arg_procTup: HeapTuple, - arg_p_trftypes: *mut *mut Oid, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { 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 ExecFreeExprContext(arg_planstate: *mut PlanState); } - get_func_trftypes(arg_procTup, arg_p_trftypes) + ExecFreeExprContext(arg_planstate) }) } -pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { 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 ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); } - get_func_result_name(arg_functionId) + ExecAssignScanType(arg_scanstate, arg_tupDesc) }) } -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 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 build_function_result_tupdesc_d( - arg_prokind: ::std::os::raw::c_char, - arg_proallargtypes: Datum, - arg_proargmodes: Datum, - arg_proargnames: Datum, - ) -> TupleDesc; + fn ExecCreateScanSlotFromOuterPlan( + arg_estate: *mut EState, + arg_scanstate: *mut ScanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - build_function_result_tupdesc_d( - arg_prokind, - arg_proallargtypes, - arg_proargmodes, - arg_proargnames, - ) + ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate, arg_tts_ops) }) } -pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { +pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; + fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; } - build_function_result_tupdesc_t(arg_procTuple) + ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) }) } -pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> 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 RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; + fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, + ) -> Relation; } - RelationNameGetTupleDesc(arg_relname) + ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) }) } -pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { +pub unsafe fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; + fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List); } - TypeGetTupleDesc(arg_typeoid, arg_colaliases) + ExecInitRangeTable(arg_estate, arg_rangeTable) }) } -pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { +pub unsafe fn ExecCloseRangeTableRelations(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; + fn ExecCloseRangeTableRelations(arg_estate: *mut EState); } - BlessTupleDesc(arg_tupdesc) + ExecCloseRangeTableRelations(arg_estate) }) } -pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { +pub unsafe fn ExecCloseResultRelations(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; + fn ExecCloseResultRelations(arg_estate: *mut EState); } - TupleDescGetAttInMetadata(arg_tupdesc) + ExecCloseResultRelations(arg_estate) }) } -pub unsafe fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, -) -> HeapTuple { +pub unsafe fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation { 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 ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation; } - BuildTupleFromCStrings(arg_attinmeta, arg_values) + ExecGetRangeTableRelation(arg_estate, arg_rti) }) } -pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { +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 HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; + fn ExecInitResultRelation( + arg_estate: *mut EState, + arg_resultRelInfo: *mut ResultRelInfo, + arg_rti: Index, + ); } - HeapTupleHeaderGetDatum(arg_tuple) + ExecInitResultRelation(arg_estate, arg_resultRelInfo, arg_rti) }) } -pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +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 init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn executor_errposition( + arg_estate: *mut EState, + arg_location: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - init_MultiFuncCall(arg_fcinfo) + executor_errposition(arg_estate, arg_location) }) } -pub unsafe fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +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 per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn RegisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - per_MultiFuncCall(arg_fcinfo) + RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) }) } -pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { +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 end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); + fn UnregisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - end_MultiFuncCall(arg_fcinfo, arg_funcctx) + UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) }) } -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 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 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 GetAttributeByName( + arg_tuple: HeapTupleHeader, + arg_attname: *const ::std::os::raw::c_char, + arg_isNull: *mut bool, + ) -> Datum; } - extract_variadic_args( - arg_fcinfo, - arg_variadic_start, - arg_convert_unknown, - arg_values, - arg_types, - arg_nulls, - ) + GetAttributeByName(arg_tuple, arg_attname, arg_isNull) }) } -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 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__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 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; } - } -} -#[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, + ExecTargetListLength(arg_targetlist) + }) } -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 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 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 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 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 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; } - } -} -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, + ExecGetTriggerNewSlot(arg_estate, arg_relInfo) + }) } -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 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) + }) } -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 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) + }) } -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 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 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 { @@ -37059,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 { @@ -37068,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)] @@ -38579,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, @@ -40506,6 +27970,7 @@ pub unsafe fn pgstat_slru_index(arg_name: *const ::std::os::raw::c_char) -> ::st }) } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ScanKeyData { pub sk_flags: ::std::os::raw::c_int, pub sk_attno: AttrNumber, @@ -40542,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( @@ -40752,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( @@ -40872,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( @@ -41536,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; @@ -41739,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 { @@ -41829,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( @@ -42035,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( @@ -42116,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 { @@ -42986,6 +30401,7 @@ pub struct GISTPageOpaqueData { } 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, @@ -43006,6 +30422,7 @@ impl Default for GIST_SPLITVEC { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct GISTENTRY { pub key: Datum, pub rel: Relation, @@ -43028,6 +30445,7 @@ pub struct GISTDeletedPageContents { pub deleteXid: FullTransactionId, } #[repr(C)] +#[derive(Debug)] pub struct GistEntryVector { pub n: int32, pub vector: __IncompleteArrayField, @@ -44894,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( @@ -44920,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( @@ -44948,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( @@ -45096,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( @@ -45138,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( @@ -45163,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( @@ -45188,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( @@ -45246,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( @@ -45609,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( @@ -46699,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( @@ -46754,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 { @@ -47914,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 { @@ -48151,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( @@ -48476,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( @@ -48638,13 +35969,7 @@ pub unsafe fn heap_fetch_extended( arg_keep_buf: bool, ) -> bool; } - heap_fetch_extended( - arg_relation, - arg_snapshot, - arg_tuple, - arg_userbuf, - arg_keep_buf, - ) + heap_fetch_extended(arg_relation, arg_snapshot, arg_tuple, arg_userbuf, arg_keep_buf) }) } pub unsafe fn heap_hot_search_buffer( @@ -48750,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( @@ -51990,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) { @@ -52346,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) { @@ -52394,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( @@ -53269,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( @@ -54427,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( @@ -54482,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( @@ -54727,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 { @@ -56093,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) { @@ -56710,13 +43982,7 @@ pub unsafe fn EnableDisableTrigger( arg_lockmode: LOCKMODE, ); } - EnableDisableTrigger( - arg_rel, - arg_tgname, - arg_fires_when, - arg_skip_system, - arg_lockmode, - ) + EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system, arg_lockmode) }) } pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { @@ -57441,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( @@ -58273,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( @@ -58296,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) { @@ -58825,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 { @@ -58952,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( @@ -59394,6 +46638,7 @@ 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; 96usize], pub bgw_type: [::std::os::raw::c_char; 96usize], @@ -60000,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() { @@ -62255,6 +49494,7 @@ impl Default for AggInfo { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct AggTransInfo { pub args: *mut List, pub aggfilter: *mut Expr, @@ -63993,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( @@ -64025,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)] @@ -64286,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 { @@ -64715,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( @@ -65402,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( @@ -66033,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( @@ -66059,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( @@ -66349,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( @@ -67032,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( @@ -67143,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 { @@ -67212,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 { @@ -67306,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( @@ -67895,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( @@ -68008,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( @@ -68067,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( @@ -68553,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( @@ -68610,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( @@ -70331,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( @@ -70892,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( @@ -70917,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( @@ -71472,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( @@ -71511,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( @@ -71662,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( @@ -71711,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( @@ -71809,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( @@ -71838,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; @@ -71884,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( @@ -73404,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" { @@ -75754,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( @@ -75777,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( @@ -76677,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) { @@ -78202,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" { @@ -78306,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" { @@ -78666,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" { @@ -78690,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" { @@ -82274,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" { @@ -84930,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" { @@ -85090,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" { @@ -85314,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" { @@ -85722,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" { @@ -87986,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" { @@ -88690,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" { @@ -89706,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" { @@ -92850,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" { @@ -100216,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( @@ -100256,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( @@ -100282,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( @@ -100428,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( @@ -100640,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 { @@ -100983,20 +87286,21 @@ pub const jbvType_jbvBinary: jbvType = 18; pub const jbvType_jbvDatetime: jbvType = 32; pub type jbvType = ::std::os::raw::c_uint; #[repr(C)] +#[derive(Copy, Clone)] pub struct JsonbValue { pub type_: jbvType, pub val: JsonbValue__bindgen_ty_1, } #[repr(C)] -pub struct JsonbValue__bindgen_ty_1 { - pub numeric: __BindgenUnionField, - pub boolean: __BindgenUnionField, - pub string: __BindgenUnionField, - pub array: __BindgenUnionField, - pub object: __BindgenUnionField, - pub binary: __BindgenUnionField, - pub datetime: __BindgenUnionField, - pub bindgen_union_field: [u64; 3usize], +#[derive(Copy, Clone)] +pub union JsonbValue__bindgen_ty_1 { + pub numeric: Numeric, + pub boolean: bool, + pub string: JsonbValue__bindgen_ty_1__bindgen_ty_1, + pub array: JsonbValue__bindgen_ty_1__bindgen_ty_2, + pub object: JsonbValue__bindgen_ty_1__bindgen_ty_3, + pub binary: JsonbValue__bindgen_ty_1__bindgen_ty_4, + pub datetime: JsonbValue__bindgen_ty_1__bindgen_ty_5, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -101060,6 +87364,7 @@ impl Default for JsonbValue__bindgen_ty_1__bindgen_ty_4 { } } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct JsonbValue__bindgen_ty_1__bindgen_ty_5 { pub value: Datum, pub typid: Oid, @@ -101094,6 +87399,7 @@ impl Default for JsonbValue { } } #[repr(C)] +#[derive(Copy, Clone)] pub struct JsonbPair { pub key: JsonbValue, pub value: JsonbValue, @@ -101109,6 +87415,7 @@ impl Default for JsonbPair { } } #[repr(C)] +#[derive(Copy, Clone)] pub struct JsonbParseState { pub contVal: JsonbValue, pub size: Size, @@ -103071,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( @@ -103100,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( @@ -103222,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( @@ -103606,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( @@ -104022,6 +90302,7 @@ pub struct RangeType { pub rangetypid: Oid, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct RangeBound { pub val: Datum, pub infinite: bool, @@ -104461,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, } @@ -104554,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 { @@ -104566,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 { @@ -104578,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 { @@ -104590,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 { @@ -104602,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 { @@ -104614,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 { @@ -104626,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 { @@ -104638,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 { @@ -104650,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 { @@ -104662,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 { @@ -104674,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 { @@ -104686,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 { @@ -104698,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 { @@ -104710,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 { @@ -104722,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 { @@ -104734,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 { @@ -104746,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 { @@ -104758,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 { @@ -104770,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 { @@ -104782,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 { @@ -104794,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 { @@ -104806,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 { @@ -104818,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 { @@ -104830,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 { @@ -104842,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 { @@ -104854,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 { @@ -104866,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 { @@ -104878,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 { @@ -104890,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 { @@ -104902,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 { @@ -104914,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 { @@ -104926,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 { @@ -104938,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 { @@ -104950,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 { @@ -104962,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 { @@ -104974,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 { @@ -104986,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 { @@ -104998,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 { @@ -105010,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 { @@ -105022,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 { @@ -105034,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 { @@ -105046,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 { @@ -105058,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 { @@ -105070,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 { @@ -105082,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 { @@ -105094,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 { @@ -105106,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 { @@ -105118,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 { @@ -105130,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 { @@ -105142,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 { @@ -105154,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 { @@ -105166,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 { @@ -105178,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 { @@ -105190,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 { @@ -105202,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 { @@ -105214,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 { @@ -105226,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 { @@ -105238,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 { @@ -105250,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 { @@ -105262,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 { @@ -105274,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 { @@ -105286,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 { @@ -105298,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 { @@ -105310,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 { @@ -105322,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 { @@ -105334,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 { @@ -105346,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 { @@ -105358,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 { @@ -105370,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 { @@ -105382,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 { @@ -105394,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 { @@ -105406,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 { @@ -105418,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 { @@ -105430,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 { @@ -105442,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 { @@ -105454,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 { @@ -105466,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 { @@ -105478,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 { @@ -105490,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 { @@ -105502,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 { @@ -105514,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 { @@ -105526,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 { @@ -105538,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 { @@ -105550,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 { @@ -105562,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 { @@ -105574,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 { @@ -105586,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 { @@ -105598,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 { @@ -105610,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 { @@ -105622,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 { @@ -105634,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 { @@ -105646,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 { @@ -105658,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 { @@ -105670,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 { @@ -105682,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 { @@ -105694,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 { @@ -105706,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 { @@ -105718,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 { @@ -105730,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 { @@ -105742,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 { @@ -105754,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 { @@ -105766,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 { @@ -105778,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 { @@ -105790,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 { @@ -105802,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 { @@ -105814,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 { @@ -105826,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 { @@ -105838,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 { @@ -105850,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 { @@ -105862,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 { @@ -105874,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 { @@ -105886,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 { @@ -105898,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 { @@ -105910,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 { @@ -105922,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 { @@ -105934,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 { @@ -105946,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 { @@ -105958,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 { @@ -105970,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 { @@ -105982,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 { @@ -105994,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 { @@ -106006,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 { @@ -106018,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 { @@ -106030,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 { @@ -106042,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 { @@ -106054,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 { @@ -106066,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 { @@ -106078,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 { @@ -106090,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 { @@ -106102,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 { @@ -106114,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 { @@ -106126,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 { @@ -106138,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 { @@ -106150,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 { @@ -106162,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 { @@ -106174,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 { @@ -106186,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 { @@ -106198,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 { @@ -106210,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 { @@ -106222,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 { @@ -106234,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 { @@ -106246,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 { @@ -106258,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 { @@ -106270,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 { @@ -106282,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 { @@ -106294,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 { @@ -106306,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 { @@ -106318,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 { @@ -106330,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 { @@ -106342,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 { @@ -106354,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 { @@ -106366,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 { @@ -106378,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 { @@ -106390,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 { @@ -106402,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 { @@ -106414,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 { @@ -106426,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 { @@ -106438,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 { @@ -106450,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 { @@ -106462,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 { @@ -106474,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 { @@ -106486,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 { @@ -106498,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 { @@ -106510,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 { @@ -106522,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 { @@ -106534,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 { @@ -106546,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 { @@ -106558,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 { @@ -106570,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 { @@ -106582,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 { @@ -106594,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 { @@ -106606,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 { @@ -106618,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 { @@ -106630,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 { @@ -106642,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 { @@ -106654,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 { @@ -106666,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 { @@ -106678,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 { @@ -106690,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 { @@ -106702,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 { @@ -106714,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 { @@ -106726,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 { @@ -106738,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 { @@ -106750,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 { @@ -106762,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 { @@ -106774,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 { @@ -106786,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 { @@ -106798,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 { @@ -106810,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 { @@ -106822,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 { @@ -106834,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 { @@ -106846,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 { @@ -106858,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 { @@ -106870,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 { @@ -106882,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 { @@ -106894,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 { @@ -106906,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 { @@ -106918,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 { @@ -106930,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 { @@ -106942,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 { @@ -106954,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 { @@ -106966,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 { @@ -106978,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 { @@ -106990,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 { @@ -107002,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 { @@ -107014,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 { @@ -107026,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 { @@ -107038,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 { @@ -107050,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 { @@ -107062,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 { @@ -107074,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 { @@ -107086,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 { @@ -107098,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 { @@ -107110,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 { @@ -107122,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 { @@ -107134,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 { @@ -107146,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 { @@ -107158,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 { @@ -107170,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 { @@ -107182,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 { @@ -107194,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 { @@ -107206,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 { @@ -107218,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 { @@ -107230,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 { @@ -107242,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 { @@ -107254,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 { @@ -107266,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 { @@ -107278,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 { @@ -107290,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 { @@ -107302,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 { @@ -107314,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 { @@ -107326,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 { @@ -107338,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 { @@ -107350,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 { @@ -107362,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 { @@ -107374,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 { @@ -107386,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 { @@ -107398,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 { @@ -107410,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 { @@ -107422,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 { @@ -107434,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 { @@ -107446,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 { @@ -107458,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 { @@ -107470,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 { @@ -107482,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 { @@ -107494,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 { @@ -107506,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 { @@ -107518,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 { @@ -107530,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 { @@ -107542,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 { @@ -107554,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 { @@ -107566,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 { @@ -107578,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 { @@ -107590,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 { @@ -107602,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 { @@ -107614,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 { @@ -107626,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 { @@ -107638,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 { @@ -107650,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 { @@ -107662,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 { @@ -107674,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 { @@ -107686,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 { @@ -107698,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 { @@ -107710,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 { @@ -107722,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 { @@ -107734,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 { @@ -107746,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 { @@ -107758,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 { @@ -107770,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 { @@ -107782,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 { @@ -107794,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 { @@ -107806,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 { @@ -107818,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 { @@ -107830,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 { @@ -107842,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 { @@ -107854,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 { @@ -107866,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 { @@ -107878,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 { @@ -107890,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 { @@ -107902,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 { @@ -107914,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 { @@ -107926,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 { @@ -107938,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 { @@ -107950,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 { @@ -107962,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 { @@ -107974,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 { @@ -107986,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 { @@ -107998,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 { @@ -108010,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 { @@ -108022,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 { @@ -108034,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 { @@ -108046,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 { @@ -108058,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 { @@ -108070,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 { @@ -108082,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 { @@ -108094,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 { @@ -108106,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 { @@ -108118,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 { @@ -108130,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 { @@ -108142,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 { @@ -108154,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 { @@ -108166,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 { @@ -108178,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 { @@ -108190,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 { @@ -108202,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 { @@ -108214,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 { @@ -108226,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 { @@ -108238,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 { @@ -108250,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 { @@ -108262,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 { @@ -108274,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 { @@ -108286,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 { @@ -108298,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 { @@ -108310,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 { @@ -108322,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 { @@ -108334,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 { @@ -108346,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 { @@ -108358,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 { @@ -108370,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 { @@ -108382,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 { @@ -108394,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 { @@ -108406,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 { @@ -108418,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 { @@ -108430,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 { @@ -108442,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 { @@ -108454,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 { @@ -108466,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 { @@ -108478,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 { @@ -108490,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 { @@ -108502,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 { @@ -108514,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 { @@ -108526,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 { @@ -108538,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 { @@ -108550,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 { @@ -108562,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 { @@ -108574,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 { @@ -108586,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 { @@ -108598,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 { @@ -108610,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 { @@ -108622,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 { @@ -108634,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 { @@ -108646,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 { @@ -108658,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 { @@ -108670,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 { @@ -108682,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 { @@ -108694,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 { @@ -108706,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 { @@ -108718,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 { @@ -108730,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 { @@ -108742,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 { @@ -108754,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 { @@ -108766,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 { @@ -108778,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 { @@ -108790,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 { @@ -108802,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 { @@ -108814,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 { @@ -108826,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 { @@ -108838,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 { @@ -108850,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 { @@ -108862,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 { @@ -108874,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 { @@ -108886,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 { @@ -108898,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 { @@ -108910,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 { @@ -108922,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 { @@ -108934,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 { @@ -108946,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 { @@ -108958,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 { @@ -108970,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 { @@ -108982,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 { @@ -108994,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 { @@ -109006,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 { @@ -109018,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 { @@ -109030,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 { @@ -109042,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 { @@ -109054,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 { @@ -109066,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 { @@ -109078,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 { @@ -109090,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 { @@ -109102,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 { @@ -109114,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 { @@ -109126,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 { @@ -109138,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 { @@ -109150,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 { @@ -109162,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 { @@ -109174,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 { @@ -109186,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 { @@ -109198,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 { @@ -109210,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 { @@ -109222,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 { @@ -109234,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 { @@ -109246,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 { @@ -109258,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 { @@ -109270,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 { @@ -109282,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 { @@ -109294,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 { @@ -109306,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 { @@ -109318,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 { @@ -109330,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 { @@ -109342,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 { @@ -109354,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 { @@ -109366,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 { @@ -109378,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 { @@ -109390,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 { @@ -109402,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 { @@ -109414,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 { @@ -109426,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 { @@ -109438,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 { @@ -109450,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 { @@ -109462,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 { @@ -109474,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 { @@ -109486,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 { @@ -109498,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 { @@ -109510,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 { @@ -109522,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 { @@ -109534,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 { @@ -109546,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 { @@ -109558,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 { @@ -109570,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 { @@ -109582,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 { @@ -109594,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/guard.rs b/pgx-pg-sys/src/submodules/guard.rs index 81394afca..b2c3312b4 100644 --- a/pgx-pg-sys/src/submodules/guard.rs +++ b/pgx-pg-sys/src/submodules/guard.rs @@ -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,11 +58,7 @@ 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 }, }) } @@ -270,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/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 56b42a9ff..810a5653b 100644 --- a/pgx-tests/Cargo.toml +++ b/pgx-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-tests" -version = "0.5.0-beta.1" +version = "0.5.0" authors = ["ZomboDB, LLC "] license = "MIT" description = "Test framework for 'pgx'-based Postgres extensions" @@ -33,16 +33,16 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] owo-colors = "3.5.0" once_cell = "1.15.0" -libc = "0.2.133" -pgx-macros = { path = "../pgx-macros", version = "=0.5.0-beta.1" } -pgx-pg-config = { path = "../pgx-pg-config", version = "=0.5.0-beta.1" } -pgx-utils = { path = "../pgx-utils", version = "=0.5.0-beta.1" } +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.14" +time = "0.3.15" eyre = "0.6.8" thiserror = "1.0" @@ -50,4 +50,4 @@ thiserror = "1.0" path = "../pgx" default-features = false features = [ "time-crate" ] # testing purposes -version = "=0.5.0-beta.1" +version = "=0.5.0" diff --git a/pgx-tests/src/framework.rs b/pgx-tests/src/framework.rs index 3ea716486..1ac023e2a 100644 --- a/pgx-tests/src/framework.rs +++ b/pgx-tests/src/framework.rs @@ -83,10 +83,7 @@ where let code = dberror.code().code(); let severity = dberror.severity(); - let mut message = format!("{} SQLSTATE[{}]", severity, code) - .bold() - .red() - .to_string(); + 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()); @@ -191,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 @@ -207,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'); } @@ -259,10 +247,7 @@ fn get_pg_config() -> eyre::Result { 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 - ) + format!("Error getting pg_config: {} is not a valid postgres version", pg_version) }) .unwrap() .clone(); @@ -274,11 +259,7 @@ 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) @@ -296,25 +277,19 @@ pub fn client() -> eyre::Result<(postgres::Client, String)> { None => Err(eyre!("Failed to obtain a client Session ID from Postgres"))?, }; - query_wrapper( - Some("SET log_min_messages TO 'INFO';".to_string()), - None, - |query, _| client.simple_query(query.unwrap().as_str()), - ) + 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'")?; - query_wrapper( - Some("SET log_min_duration_statement TO 1000;".to_string()), - None, - |query, _| client.simple_query(query.unwrap().as_str()), - ) + 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()), - ) + 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';")?; Ok((client, session_id)) @@ -410,11 +385,8 @@ fn initdb(postgresql_conf: Vec<&'static str>) -> eyre::Result<()> { if !pgdata.is_dir() { let pg_config = get_pg_config()?; - let mut command = Command::new( - pg_config - .initdb_path() - .wrap_err("unable to determine initdb path")?, - ); + let mut command = + Command::new(pg_config.initdb_path().wrap_err("unable to determine initdb path")?); command .arg("-D") @@ -469,11 +441,7 @@ 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(()) @@ -481,30 +449,17 @@ fn modify_postgresql_conf(pgdata: PathBuf, postgresql_conf: Vec<&'static str>) - 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 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", - ]) + .args(["-c", "log_destination=stderr", "-c", "logging_collector=off"]) .stdout(Stdio::inherit()) .stderr(Stdio::piped()); @@ -517,10 +472,7 @@ 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( - format!("stopping postgres (pid={pgpid})\n") - .bold() - .blue() - .to_string(), + format!("stopping postgres (pid={pgpid})\n").bold().blue().to_string(), ) .unwrap(); libc::printf(message_string.as_ptr()); @@ -538,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; @@ -609,36 +552,24 @@ fn monitor_pg(mut command: Command, cmd_string: String, loglines: LogLines) -> ( 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(); + 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}"); @@ -675,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) } diff --git a/pgx-tests/src/tests/aggregate_tests.rs b/pgx-tests/src/tests/aggregate_tests.rs index 4464bb26e..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::{prelude::*, Aggregate, Internal, ParallelOption}; +use pgx::prelude::*; +use pgx::{Aggregate, Internal, ParallelOption}; use serde::{Deserialize, Serialize}; use std::collections::HashSet; diff --git a/pgx-tests/src/tests/anyarray_tests.rs b/pgx-tests/src/tests/anyarray_tests.rs index 0bf9c9dfa..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::{direct_function_call, prelude::*, AnyArray, IntoDatum, Json}; +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::{prelude::*, Json}; + 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 db7178091..479367417 100644 --- a/pgx-tests/src/tests/array_tests.rs +++ b/pgx-tests/src/tests/array_tests.rs @@ -8,7 +8,8 @@ Use of this source code is governed by the MIT license that can be found in the */ use pgx::array::RawArray; -use pgx::{prelude::*, Array, Json}; +use pgx::prelude::*; +use pgx::{Array, Json}; use serde_json::*; #[pg_extern(name = "sum_array")] @@ -185,7 +186,8 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{prelude::*, IntoDatum, Json}; + use pgx::prelude::*; + use pgx::{IntoDatum, Json}; use serde_json::json; #[pg_test] diff --git a/pgx-tests/src/tests/datetime_tests.rs b/pgx-tests/src/tests/datetime_tests.rs index 6cdb43b0e..be9ca5cb0 100644 --- a/pgx-tests/src/tests/datetime_tests.rs +++ b/pgx-tests/src/tests/datetime_tests.rs @@ -414,10 +414,7 @@ mod tests { let json = json!({ "time stamp with timezone test": time_stamp_with_timezone }); // but we serialize timestamps at UTC - assert_eq!( - json!({"time stamp with timezone test":"2022-02-02T14:57:11+00:00"}), - json - ); + assert_eq!(json!({"time stamp with timezone test":"2022-02-02T14:57:11+00:00"}), json); } #[pg_test] diff --git a/pgx-tests/src/tests/fcinfo_tests.rs b/pgx-tests/src/tests/fcinfo_tests.rs index 4aa55833c..1b6878140 100644 --- a/pgx-tests/src/tests/fcinfo_tests.rs +++ b/pgx-tests/src/tests/fcinfo_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::{prelude::*, InOutFuncs, StringInfo}; +use pgx::prelude::*; +use pgx::{InOutFuncs, StringInfo}; use serde::{Deserialize, Serialize}; #[pg_extern] @@ -166,10 +167,9 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use crate::tests::fcinfo_tests::same_name; - use crate::tests::fcinfo_tests::NullError; - use crate::tests::fcinfo_tests::NullStrict; - use pgx::{direct_pg_extern_function_call, prelude::*, IntoDatum}; + use crate::tests::fcinfo_tests::{same_name, NullError, NullStrict}; + use pgx::prelude::*; + use pgx::{direct_pg_extern_function_call, IntoDatum}; #[test] fn make_idea_happy() { diff --git a/pgx-tests/src/tests/guc_tests.rs b/pgx-tests/src/tests/guc_tests.rs index 1e4d5b5cc..03743a4f1 100644 --- a/pgx-tests/src/tests/guc_tests.rs +++ b/pgx-tests/src/tests/guc_tests.rs @@ -13,7 +13,8 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{guc::*, prelude::*}; + use pgx::guc::*; + use pgx::prelude::*; #[pg_test] fn test_bool_guc() { diff --git a/pgx-tests/src/tests/heap_tuple.rs b/pgx-tests/src/tests/heap_tuple.rs index f761f9b36..5b4546b57 100644 --- a/pgx-tests/src/tests/heap_tuple.rs +++ b/pgx-tests/src/tests/heap_tuple.rs @@ -1,7 +1,9 @@ // This is used by some, but not all, examples below. const DOG_COMPOSITE_TYPE: &str = "Dog"; -use pgx::{pgbox::AllocatedByRust, prelude::*, Aggregate, VariadicArray}; +use pgx::pgbox::AllocatedByRust; +use pgx::prelude::*; +use pgx::{Aggregate, VariadicArray}; extension_sql!( r#" @@ -147,11 +149,8 @@ mod arguments { let dogs = dogs.unwrap(); let mut sum_scritches = 0; for dog in dogs { - let scritches: i32 = dog - .get_by_name("scritches") - .ok() - .unwrap_or_default() - .unwrap_or_default(); + let scritches: i32 = + dog.get_by_name("scritches").ok().unwrap_or_default().unwrap_or_default(); sum_scritches += scritches; } sum_scritches @@ -159,21 +158,15 @@ mod arguments { #[pg_extern] fn sum_scritches_for_names_default( - dogs: pgx::default!( - Vec, - "ARRAY[ROW('Nami', 0)]::Dog[]" - ), + dogs: pgx::default!(Vec, "ARRAY[ROW('Nami', 0)]::Dog[]"), ) -> i32 { // Gets resolved to: let dogs: Vec> = dogs; let mut sum_scritches = 0; for dog in dogs { - let scritches: i32 = dog - .get_by_name("scritches") - .ok() - .unwrap_or_default() - .unwrap_or_default(); + let scritches: i32 = + dog.get_by_name("scritches").ok().unwrap_or_default().unwrap_or_default(); sum_scritches += scritches; } sum_scritches @@ -186,11 +179,8 @@ mod arguments { let mut sum_scritches = 0; for dog in dogs { - let scritches: i32 = dog - .get_by_name("scritches") - .ok() - .unwrap_or_default() - .unwrap_or_default(); + let scritches: i32 = + dog.get_by_name("scritches").ok().unwrap_or_default().unwrap_or_default(); sum_scritches += scritches; } sum_scritches @@ -206,11 +196,8 @@ mod arguments { let mut sum_scritches = 0; for dog in dogs { let dog = dog.unwrap(); - let scritches: i32 = dog - .get_by_name("scritches") - .ok() - .unwrap_or_default() - .unwrap_or_default(); + let scritches: i32 = + dog.get_by_name("scritches").ok().unwrap_or_default().unwrap_or_default(); sum_scritches += scritches; } sum_scritches @@ -229,11 +216,8 @@ mod arguments { let mut sum_scritches = 0; for dog in dogs { let dog = dog.unwrap(); - let scritches: i32 = dog - .get_by_name("scritches") - .ok() - .unwrap_or_default() - .unwrap_or_default(); + let scritches: i32 = + dog.get_by_name("scritches").ok().unwrap_or_default().unwrap_or_default(); sum_scritches += scritches; } sum_scritches @@ -271,11 +255,8 @@ mod arguments { let mut sum_scritches = 0; for dog in dogs { let dog = dog.unwrap(); - let scritches: i32 = dog - .get_by_name("scritches") - .ok() - .unwrap_or_default() - .unwrap_or_default(); + let scritches: i32 = + dog.get_by_name("scritches").ok().unwrap_or_default().unwrap_or_default(); sum_scritches += scritches; } sum_scritches @@ -294,11 +275,8 @@ mod arguments { let mut sum_scritches = 0; for dog in dogs { let dog = dog.unwrap(); - let scritches: i32 = dog - .get_by_name("scritches") - .ok() - .unwrap_or_default() - .unwrap_or_default(); + let scritches: i32 = + dog.get_by_name("scritches").ok().unwrap_or_default().unwrap_or_default(); sum_scritches += scritches; } sum_scritches @@ -314,11 +292,8 @@ mod arguments { let mut sum_scritches = 0; for dog in dogs { let dog = dog.unwrap(); - let scritches: i32 = dog - .get_by_name("scritches") - .ok() - .unwrap_or_default() - .unwrap_or_default(); + let scritches: i32 = + dog.get_by_name("scritches").ok().unwrap_or_default().unwrap_or_default(); sum_scritches += scritches; } sum_scritches @@ -351,8 +326,7 @@ mod returning { let maybe_dog: Option> = maybe_dog; let maybe_dog = if let Some(mut dog) = maybe_dog { - dog.set_by_name("scritches", dog.get_by_name::("scritches").unwrap()) - .unwrap(); + dog.set_by_name("scritches", dog.get_by_name::("scritches").unwrap()).unwrap(); Some(dog) } else { None @@ -366,8 +340,7 @@ mod returning { // Gets resolved to: let mut dog: PgHeapTuple = dog; - dog.set_by_name("scritches", dog.get_by_name::("scritches").unwrap()) - .unwrap(); + dog.set_by_name("scritches", dog.get_by_name::("scritches").unwrap()).unwrap(); dog } @@ -404,8 +377,7 @@ mod returning { let mut dogs: Vec> = dogs; for dog in dogs.iter_mut() { - dog.set_by_name("scritches", dog.get_by_name::("scritches").unwrap()) - .unwrap(); + dog.set_by_name("scritches", dog.get_by_name::("scritches").unwrap()).unwrap(); } dogs } @@ -461,10 +433,7 @@ mod sql_generator_tests { name!(dog, Option<::pgx::composite_type!("Dog")>), name!(cat, Option<::pgx::composite_type!("Cat")>), name!(fish, Option<::pgx::composite_type!("Fish")>), - name!( - related_edges, - Option> - ), + name!(related_edges, Option>), ), > { TableIterator::new(Vec::new().into_iter()) @@ -473,10 +442,7 @@ mod sql_generator_tests { #[pg_extern] fn iterable_named_table() -> TableIterator< 'static, - ( - name!(dog, ::pgx::composite_type!("Dog")), - name!(cat, ::pgx::composite_type!("Cat")), - ), + (name!(dog, ::pgx::composite_type!("Dog")), name!(cat, ::pgx::composite_type!("Cat"))), > { TableIterator::new(Vec::new().into_iter()) } @@ -550,10 +516,7 @@ mod sql_generator_tests { #[pg_extern] fn return_table_two() -> TableIterator< 'static, - ( - name!(dog, pgx::composite_type!("Dog")), - name!(cat, pgx::composite_type!("Cat")), - ), + (name!(dog, pgx::composite_type!("Dog")), name!(cat, pgx::composite_type!("Cat"))), > { let mut dog_tuple = PgHeapTuple::new_composite_type("Dog").unwrap(); @@ -655,9 +618,10 @@ mod sql_generator_tests { mod tests { #[cfg(test)] use crate as pgx_tests; - use pgx::{ - datum::TryFromDatumError, heap_tuple::PgHeapTupleError, prelude::*, AllocatedByRust, - }; + use pgx::datum::TryFromDatumError; + use pgx::heap_tuple::PgHeapTupleError; + use pgx::prelude::*; + use pgx::AllocatedByRust; use std::num::NonZeroUsize; #[pg_test] @@ -853,15 +817,10 @@ mod tests { assert_eq!(heap_tuple.get_by_name::("name").unwrap(), None); assert_eq!(heap_tuple.get_by_name::("age").unwrap(), None); - heap_tuple - .set_by_name("name", "Brandy".to_string()) - .unwrap(); + heap_tuple.set_by_name("name", "Brandy".to_string()).unwrap(); heap_tuple.set_by_name("age", 42).unwrap(); - assert_eq!( - heap_tuple.get_by_name("name").unwrap(), - Some("Brandy".to_string()) - ); + assert_eq!(heap_tuple.get_by_name("name").unwrap(), Some("Brandy".to_string())); assert_eq!(heap_tuple.get_by_name("age").unwrap(), Some(42i32)); } @@ -888,16 +847,12 @@ mod tests { const NON_EXISTING_ATTRIBUTE: &str = "DEFINITELY_NOT_EXISTING"; assert_eq!( heap_tuple.get_by_name::(NON_EXISTING_ATTRIBUTE), - Err(TryFromDatumError::NoSuchAttributeName( - NON_EXISTING_ATTRIBUTE.into() - )), + Err(TryFromDatumError::NoSuchAttributeName(NON_EXISTING_ATTRIBUTE.into())), ); assert_eq!( heap_tuple.set_by_name(NON_EXISTING_ATTRIBUTE, "Brandy".to_string()), - Err(TryFromDatumError::NoSuchAttributeName( - NON_EXISTING_ATTRIBUTE.into() - )), + Err(TryFromDatumError::NoSuchAttributeName(NON_EXISTING_ATTRIBUTE.into())), ); } @@ -909,16 +864,12 @@ mod tests { const NON_EXISTING_ATTRIBUTE: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(9001) }; assert_eq!( heap_tuple.get_by_index::(NON_EXISTING_ATTRIBUTE), - Err(TryFromDatumError::NoSuchAttributeNumber( - NON_EXISTING_ATTRIBUTE - )), + Err(TryFromDatumError::NoSuchAttributeNumber(NON_EXISTING_ATTRIBUTE)), ); assert_eq!( heap_tuple.set_by_index(NON_EXISTING_ATTRIBUTE, "Brandy".to_string()), - Err(TryFromDatumError::NoSuchAttributeNumber( - NON_EXISTING_ATTRIBUTE - )), + Err(TryFromDatumError::NoSuchAttributeNumber(NON_EXISTING_ATTRIBUTE)), ); } @@ -948,9 +899,7 @@ mod tests { ); // Now set them properly, to test that we get errors when they're set... - heap_tuple - .set_by_name("name", "Brandy".to_string()) - .unwrap(); + heap_tuple.set_by_name("name", "Brandy".to_string()).unwrap(); heap_tuple.set_by_name("age", 42).unwrap(); // These are **deliberately** the wrong types. diff --git a/pgx-tests/src/tests/hooks_tests.rs b/pgx-tests/src/tests/hooks_tests.rs index 7a900d703..ca9b65759 100644 --- a/pgx-tests/src/tests/hooks_tests.rs +++ b/pgx-tests/src/tests/hooks_tests.rs @@ -13,7 +13,9 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{hooks::*, prelude::*, PgList}; + use pgx::hooks::*; + use pgx::prelude::*; + use pgx::PgList; #[pg_test] unsafe fn test_callbacks() { diff --git a/pgx-tests/src/tests/inet_tests.rs b/pgx-tests/src/tests/inet_tests.rs index 230c1bbb9..5c276eb15 100644 --- a/pgx-tests/src/tests/inet_tests.rs +++ b/pgx-tests/src/tests/inet_tests.rs @@ -13,7 +13,8 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{prelude::*, Inet}; + use pgx::prelude::*; + use pgx::Inet; #[pg_test] fn test_deserialize_inet() { diff --git a/pgx-tests/src/tests/internal_tests.rs b/pgx-tests/src/tests/internal_tests.rs index 5c966b9ce..a516592f7 100644 --- a/pgx-tests/src/tests/internal_tests.rs +++ b/pgx-tests/src/tests/internal_tests.rs @@ -11,7 +11,8 @@ Use of this source code is governed by the MIT license that can be found in the mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{prelude::*, Internal}; + use pgx::prelude::*; + use pgx::Internal; #[pg_test] fn internal_insert() { diff --git a/pgx-tests/src/tests/json_tests.rs b/pgx-tests/src/tests/json_tests.rs index 7665197c5..ecd9000fe 100644 --- a/pgx-tests/src/tests/json_tests.rs +++ b/pgx-tests/src/tests/json_tests.rs @@ -13,7 +13,8 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{prelude::*, Json, JsonB}; + use pgx::prelude::*; + use pgx::{Json, JsonB}; #[pg_test] fn test_json() { diff --git a/pgx-tests/src/tests/log_tests.rs b/pgx-tests/src/tests/log_tests.rs index f680f82e6..0097b9838 100644 --- a/pgx-tests/src/tests/log_tests.rs +++ b/pgx-tests/src/tests/log_tests.rs @@ -13,12 +13,11 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; + use pgx::log::{PgLogLevel, PgSqlErrorCode}; + use pgx::prelude::*; use pgx::{ check_for_interrupts, debug1, debug2, debug3, debug4, debug5, ereport, error, info, log, - log::{PgLogLevel, PgSqlErrorCode}, - notice, - prelude::*, - warning, + notice, warning, }; #[pg_test] diff --git a/pgx-tests/src/tests/memcxt_tests.rs b/pgx-tests/src/tests/memcxt_tests.rs index 7e85eb34a..721cca22f 100644 --- a/pgx-tests/src/tests/memcxt_tests.rs +++ b/pgx-tests/src/tests/memcxt_tests.rs @@ -13,7 +13,8 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{prelude::*, PgMemoryContexts}; + use pgx::prelude::*; + use pgx::PgMemoryContexts; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; @@ -39,9 +40,7 @@ mod tests { max_block_size: 4096, } .switch_to(|context| { - let test_object = TestObject { - did_drop: did_drop.clone(), - }; + let test_object = TestObject { did_drop: did_drop.clone() }; context.leak_and_drop_on_delete(test_object); }); diff --git a/pgx-tests/src/tests/numeric_tests.rs b/pgx-tests/src/tests/numeric_tests.rs index 39045c3a2..2f2a6d42b 100644 --- a/pgx-tests/src/tests/numeric_tests.rs +++ b/pgx-tests/src/tests/numeric_tests.rs @@ -13,7 +13,8 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{prelude::*, Numeric}; + use pgx::prelude::*; + use pgx::Numeric; use serde::Deserialize; #[pg_extern] @@ -63,10 +64,7 @@ mod tests { Numeric::deserialize(&json!(18446744073709551615u64)).unwrap(); Numeric::deserialize(&json!("64.64646464")).unwrap(); - let error = Numeric::deserialize(&json!("foo")) - .err() - .unwrap() - .to_string(); + let error = Numeric::deserialize(&json!("foo")).err().unwrap().to_string(); assert_eq!("invalid Numeric value: foo", &error); } } diff --git a/pgx-tests/src/tests/pg_try_tests.rs b/pgx-tests/src/tests/pg_try_tests.rs index c9f35d9c9..7584b959b 100644 --- a/pgx-tests/src/tests/pg_try_tests.rs +++ b/pgx-tests/src/tests/pg_try_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::{prelude::*, PgList}; +use pgx::prelude::*; +use pgx::PgList; // if our Postgres ERROR and Rust panic!() handling is incorrect, this little bit of useless code // will crash postgres. If things are correct it'll simply raise an ERROR saying "panic in walker". @@ -36,7 +37,8 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{pg_try, prelude::*}; + use pgx::pg_try; + use pgx::prelude::*; #[pg_test(error = "panic in walker")] fn test_panic_in_extern_c_fn() { diff --git a/pgx-tests/src/tests/pgbox_tests.rs b/pgx-tests/src/tests/pgbox_tests.rs index ad8bcd0ef..f6e95afd7 100644 --- a/pgx-tests/src/tests/pgbox_tests.rs +++ b/pgx-tests/src/tests/pgbox_tests.rs @@ -11,7 +11,8 @@ Use of this source code is governed by the MIT license that can be found in the mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{prelude::*, AllocatedByRust, PgMemoryContexts}; + use pgx::prelude::*; + use pgx::{AllocatedByRust, PgMemoryContexts}; #[pg_test] fn pgbox_alloc() { diff --git a/pgx-tests/src/tests/postgres_type_tests.rs b/pgx-tests/src/tests/postgres_type_tests.rs index 8671566a4..7d79e6e8e 100644 --- a/pgx-tests/src/tests/postgres_type_tests.rs +++ b/pgx-tests/src/tests/postgres_type_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::cstr_core::CStr; -use pgx::{prelude::*, InOutFuncs, PgVarlena, PgVarlenaInOutFuncs, StringInfo}; +use pgx::prelude::*; +use pgx::{InOutFuncs, PgVarlena, PgVarlenaInOutFuncs, StringInfo}; use serde::{Deserialize, Serialize}; use std::str::FromStr; @@ -86,7 +87,8 @@ mod tests { use crate::tests::postgres_type_tests::{ CustomTextFormatSerializedType, JsonType, VarlenaType, }; - use pgx::{prelude::*, PgVarlena}; + use pgx::prelude::*; + use pgx::PgVarlena; #[pg_test] fn test_mytype() { diff --git a/pgx-tests/src/tests/spi_tests.rs b/pgx-tests/src/tests/spi_tests.rs index 16aa1f126..5784a9b73 100644 --- a/pgx-tests/src/tests/spi_tests.rs +++ b/pgx-tests/src/tests/spi_tests.rs @@ -38,10 +38,7 @@ mod tests { #[pg_test] fn test_spi_returns_primitive() { let rc = Spi::connect(|client| { - Ok(client - .select("SELECT 42", None, None) - .first() - .get_datum::(1)) + Ok(client.select("SELECT 42", None, None).first().get_datum::(1)) }); assert_eq!(42, rc.expect("SPI failed to return proper value")) @@ -50,40 +47,25 @@ mod tests { #[pg_test] fn test_spi_returns_str() { let rc = Spi::connect(|client| { - Ok(client - .select("SELECT 'this is a test'", None, None) - .first() - .get_datum::<&str>(1)) + Ok(client.select("SELECT 'this is a test'", None, None).first().get_datum::<&str>(1)) }); - assert_eq!( - "this is a test", - rc.expect("SPI failed to return proper value") - ) + assert_eq!("this is a test", rc.expect("SPI failed to return proper value")) } #[pg_test] fn test_spi_returns_string() { let rc = Spi::connect(|client| { - Ok(client - .select("SELECT 'this is a test'", None, None) - .first() - .get_datum::(1)) + Ok(client.select("SELECT 'this is a test'", None, None).first().get_datum::(1)) }); - assert_eq!( - "this is a test", - rc.expect("SPI failed to return proper value") - ) + assert_eq!("this is a test", rc.expect("SPI failed to return proper value")) } #[pg_test] fn test_spi_get_one() { Spi::execute(|client| { - let i = client - .select("SELECT 42::bigint", None, None) - .first() - .get_one::(); + let i = client.select("SELECT 42::bigint", None, None).first().get_one::(); assert_eq!(42, i.unwrap()); }); } @@ -91,10 +73,8 @@ mod tests { #[pg_test] fn test_spi_get_two() { Spi::execute(|client| { - let (i, s) = client - .select("SELECT 42, 'test'", None, None) - .first() - .get_two::(); + let (i, s) = + client.select("SELECT 42, 'test'", None, None).first().get_two::(); assert_eq!(42, i.unwrap()); assert_eq!("test", s.unwrap()); @@ -118,10 +98,7 @@ mod tests { #[pg_test] fn test_spi_get_two_with_failure() { Spi::execute(|client| { - let (i, s) = client - .select("SELECT 42", None, None) - .first() - .get_two::(); + let (i, s) = client.select("SELECT 42", None, None).first().get_two::(); assert_eq!(42, i.unwrap()); assert!(s.is_none()); diff --git a/pgx-tests/src/tests/srf_tests.rs b/pgx-tests/src/tests/srf_tests.rs index 9e6e70dcd..5fe574b74 100644 --- a/pgx-tests/src/tests/srf_tests.rs +++ b/pgx-tests/src/tests/srf_tests.rs @@ -22,10 +22,7 @@ fn example_generate_series( fn example_composite_set() -> TableIterator<'static, (name!(idx, i32), name!(value, &'static str))> { TableIterator::new( - vec!["a", "b", "c"] - .into_iter() - .enumerate() - .map(|(idx, value)| ((idx + 1) as i32, value)), + vec!["a", "b", "c"].into_iter().enumerate().map(|(idx, value)| ((idx + 1) as i32, value)), ) } @@ -33,10 +30,7 @@ fn example_composite_set() -> TableIterator<'static, (name!(idx, i32), name!(val fn return_some_iterator( ) -> Option> { Some(TableIterator::new( - vec!["a", "b", "c"] - .into_iter() - .enumerate() - .map(|(idx, value)| ((idx + 1) as i32, value)), + vec!["a", "b", "c"].into_iter().enumerate().map(|(idx, value)| ((idx + 1) as i32, value)), )) } diff --git a/pgx-tests/src/tests/struct_type_tests.rs b/pgx-tests/src/tests/struct_type_tests.rs index 34b788d29..72b821620 100644 --- a/pgx-tests/src/tests/struct_type_tests.rs +++ b/pgx-tests/src/tests/struct_type_tests.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::prelude::*; use pgx::stringinfo::StringInfo; use pgx::utils::sql_entity_graph::metadata::{ ArgumentError, Returns, ReturnsError, SqlMapping, SqlTranslatable, }; -use pgx::{prelude::*, AllocatedByRust}; +use pgx::AllocatedByRust; use crate::get_named_capture; diff --git a/pgx-tests/src/tests/trigger_tests.rs b/pgx-tests/src/tests/trigger_tests.rs index 59a132aca..abab07e67 100644 --- a/pgx-tests/src/tests/trigger_tests.rs +++ b/pgx-tests/src/tests/trigger_tests.rs @@ -12,14 +12,17 @@ Use of this source code is governed by the MIT license that can be found in the mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{prelude::*, AllocatedByPostgres, AllocatedByRust, WhoAllocated}; + use pgx::prelude::*; + use pgx::{AllocatedByPostgres, AllocatedByRust, WhoAllocated}; /// Test some various formats of trigger signature we expect to support /// /// These tests don't run, but they get built to SQL and compile checked. #[pgx::pg_schema] mod trigger_signature_compile_tests { - use pgx::{heap_tuple::PgHeapTupleError, prelude::*, AllocatedByPostgres, AllocatedByRust}; + use pgx::heap_tuple::PgHeapTupleError; + use pgx::prelude::*; + use pgx::{AllocatedByPostgres, AllocatedByRust}; use super::*; @@ -260,16 +263,12 @@ mod tests { current.set_by_name("trigger_relid", trigger_relid)?; let trigger_old_transition_table_name = trigger.old_transition_table_name()?; - current.set_by_name( - "trigger_old_transition_table_name", - trigger_old_transition_table_name, - )?; + current + .set_by_name("trigger_old_transition_table_name", trigger_old_transition_table_name)?; let trigger_new_transition_table_name = trigger.new_transition_table_name()?; - current.set_by_name( - "trigger_new_transition_table_name", - trigger_new_transition_table_name, - )?; + current + .set_by_name("trigger_new_transition_table_name", trigger_new_transition_table_name)?; let trigger_table_name = unsafe { trigger.table_name()? }; current.set_by_name("trigger_table_name", trigger_table_name)?; @@ -358,10 +357,7 @@ mod tests { assert_eq!(trigger_new_transition_table_name, None); assert_eq!(trigger_table_name, Some("before_insert_trigger_metadata")); assert_eq!(trigger_table_schema, Some("tests")); - assert_eq!( - trigger_extra_args, - Some(vec!["Bears".to_string(), "Dogs".to_string()]) - ); + assert_eq!(trigger_extra_args, Some(vec!["Bears".to_string(), "Dogs".to_string()])); } #[pg_trigger] @@ -392,14 +388,10 @@ mod tests { current_owned.set_by_name("trigger_level", level.to_string())?; current_owned.set_by_name("trigger_op", op.to_string())?; current_owned.set_by_name("trigger_relid", relid)?; - current_owned.set_by_name( - "trigger_old_transition_table_name", - old_transition_table_name, - )?; - current_owned.set_by_name( - "trigger_new_transition_table_name", - new_transition_table_name, - )?; + current_owned + .set_by_name("trigger_old_transition_table_name", old_transition_table_name)?; + current_owned + .set_by_name("trigger_new_transition_table_name", new_transition_table_name)?; current_owned.set_by_name("trigger_table_name", table_name)?; current_owned.set_by_name("trigger_table_schema", table_schema)?; current_owned.set_by_name("trigger_extra_args", extra_args)?; @@ -484,15 +476,9 @@ mod tests { assert!(trigger_relid.is_some()); assert_eq!(trigger_old_transition_table_name, None); assert_eq!(trigger_new_transition_table_name, None); - assert_eq!( - trigger_table_name, - Some("before_insert_trigger_metadata_safe") - ); + assert_eq!(trigger_table_name, Some("before_insert_trigger_metadata_safe")); assert_eq!(trigger_table_schema, Some("tests")); - assert_eq!( - trigger_extra_args, - Some(vec!["Bears".to_string(), "Dogs".to_string()]) - ); + assert_eq!(trigger_extra_args, Some(vec!["Bears".to_string(), "Dogs".to_string()])); } #[pg_trigger(sql = r#" diff --git a/pgx-tests/src/tests/uuid_tests.rs b/pgx-tests/src/tests/uuid_tests.rs index 5f46b6096..836fe9c2a 100644 --- a/pgx-tests/src/tests/uuid_tests.rs +++ b/pgx-tests/src/tests/uuid_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::{prelude::*, Uuid, UuidBytes}; +use pgx::prelude::*; +use pgx::{Uuid, UuidBytes}; pub const TEST_UUID_V4: UuidBytes = [ 0x12, 0x3e, 0x45, 0x67, 0xe8, 0x9b, 0x12, 0xd3, 0xa4, 0x56, 0x42, 0x66, 0x14, 0x17, 0x40, 0x00, @@ -32,7 +33,8 @@ fn display_uuid(uuid: Uuid) -> String { mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{prelude::*, Uuid}; + use pgx::prelude::*; + use pgx::Uuid; #[pg_test] fn test_display_uuid() { @@ -44,17 +46,11 @@ mod tests { assert_eq!(format!("{}", uuid), "123e4567-e89b-12d3-a456-426614174000"); // Lowercase hex formatting - assert_eq!( - format!("{:-x}", uuid), - "123e4567-e89b-12d3-a456-426614174000" - ); + assert_eq!(format!("{:-x}", uuid), "123e4567-e89b-12d3-a456-426614174000"); assert_eq!(format!("{:x}", uuid), "123e4567e89b12d3a456426614174000"); // Uppercase hex formatting - assert_eq!( - format!("{:-X}", uuid), - "123E4567-E89B-12D3-A456-426614174000" - ); + assert_eq!(format!("{:-X}", uuid), "123E4567-E89B-12D3-A456-426614174000"); assert_eq!(format!("{:X}", uuid), "123E4567E89B12D3A456426614174000"); } diff --git a/pgx-tests/src/tests/variadic_tests.rs b/pgx-tests/src/tests/variadic_tests.rs index 39d2d322c..0a239bdab 100644 --- a/pgx-tests/src/tests/variadic_tests.rs +++ b/pgx-tests/src/tests/variadic_tests.rs @@ -9,7 +9,8 @@ Use of this source code is governed by the MIT license that can be found in the #[pgx::pg_schema] mod test { - use pgx::{prelude::*, VariadicArray}; + use pgx::prelude::*; + use pgx::VariadicArray; #[pg_extern] fn func_with_variadic_array_args<'a>( diff --git a/pgx-tests/src/tests/xact_callback_tests.rs b/pgx-tests/src/tests/xact_callback_tests.rs index 99c312a97..f7bd97f57 100644 --- a/pgx-tests/src/tests/xact_callback_tests.rs +++ b/pgx-tests/src/tests/xact_callback_tests.rs @@ -13,15 +13,14 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{info, prelude::*, register_xact_callback, PgXactCallbackEvent}; + use pgx::prelude::*; + use pgx::{info, register_xact_callback, PgXactCallbackEvent}; #[test] fn make_idea_happy() {} #[pg_test] fn test_xact_callback() { - register_xact_callback(PgXactCallbackEvent::Abort, || { - info!("TESTMSG: Called on abort") - }); + register_xact_callback(PgXactCallbackEvent::Abort, || info!("TESTMSG: Called on abort")); } } diff --git a/pgx-tests/src/tests/xid64_tests.rs b/pgx-tests/src/tests/xid64_tests.rs index 28ebed207..474ef6d95 100644 --- a/pgx-tests/src/tests/xid64_tests.rs +++ b/pgx-tests/src/tests/xid64_tests.rs @@ -13,7 +13,8 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::{prelude::*, xid_to_64bit}; + use pgx::prelude::*; + use pgx::xid_to_64bit; #[test] fn make_idea_happy() {} diff --git a/pgx-utils/Cargo.toml b/pgx-utils/Cargo.toml index c3a14834b..961befe07 100644 --- a/pgx-utils/Cargo.toml +++ b/pgx-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-utils" -version = "0.5.0-beta.1" +version = "0.5.0" authors = ["ZomboDB, LLC "] license = "MIT" description = "Utility functions for 'pgx'" @@ -18,15 +18,15 @@ convert_case = "0.5.0" eyre = "0.6.8" owo-colors = "3.5.0" petgraph = "0.6.2" -proc-macro2 = { version = "1.0.44", features = [ "span-locations" ] } +proc-macro2 = { version = "1.0.46", features = [ "span-locations" ] } quote = "1.0.21" regex = "1.6.0" serde = { version = "1.0.145", features = [ "derive" ] } serde_derive = "1.0.145" serde_json = "1.0.85" -syn = { version = "1.0.101", features = [ "extra-traits", "full", "fold", "parsing" ] } +syn = { version = "1.0.102", features = [ "extra-traits", "full", "fold", "parsing" ] } syntect = { version = "5.0.0", default-features = false, features = ["default-fancy"] } unescape = "0.1.0" -tracing = "0.1.36" +tracing = "0.1.37" tracing-error = "0.2.0" -tracing-subscriber = { version = "0.3.15", features = [ "env-filter" ] } +tracing-subscriber = { version = "0.3.16", features = [ "env-filter" ] } diff --git a/pgx-utils/src/lib.rs b/pgx-utils/src/lib.rs index 33247c214..8d90520af 100644 --- a/pgx-utils/src/lib.rs +++ b/pgx-utils/src/lib.rs @@ -520,8 +520,6 @@ mod tests { let ts = proc_macro2::TokenStream::from_str(s).unwrap(); let args = parse_extern_attributes(ts); - assert!(args.contains(&ExternArgs::Error( - "syntax error at or near \"THIS\"".to_string() - ))); + assert!(args.contains(&ExternArgs::Error("syntax error at or near \"THIS\"".to_string()))); } } diff --git a/pgx-utils/src/rewriter.rs b/pgx-utils/src/rewriter.rs index 8df8ca18a..68bcff40c 100644 --- a/pgx-utils/src/rewriter.rs +++ b/pgx-utils/src/rewriter.rs @@ -50,10 +50,8 @@ impl PgGuardRewriter { // nor do we need a visibility beyond "private" func.vis = Visibility::Inherited; - func.sig.ident = Ident::new( - &format!("{}_inner", func.sig.ident.to_string()), - func.sig.ident.span(), - ); + func.sig.ident = + Ident::new(&format!("{}_inner", func.sig.ident.to_string()), func.sig.ident.span()); let arg_list = PgGuardRewriter::build_arg_list(&sig, false); let func_name = PgGuardRewriter::build_func_name(&func.sig); diff --git a/pgx-utils/src/sql_entity_graph/aggregate/aggregate_type.rs b/pgx-utils/src/sql_entity_graph/aggregate/aggregate_type.rs index cd112419e..8a572769d 100644 --- a/pgx-utils/src/sql_entity_graph/aggregate/aggregate_type.rs +++ b/pgx-utils/src/sql_entity_graph/aggregate/aggregate_type.rs @@ -15,14 +15,13 @@ to the `pgx` framework and very subject to change between versions. While you ma */ use super::get_pgx_attr_macro; -use crate::sql_entity_graph::{pg_extern::NameMacro, UsedType}; +use crate::sql_entity_graph::pg_extern::NameMacro; +use crate::sql_entity_graph::UsedType; use proc_macro2::TokenStream as TokenStream2; use quote::ToTokens; -use syn::{ - parse::{Parse, ParseStream}, - parse_quote, Expr, Type, -}; +use syn::parse::{Parse, ParseStream}; +use syn::{parse_quote, Expr, Type}; #[derive(Debug, Clone)] pub struct AggregateTypeList { @@ -39,15 +38,11 @@ impl AggregateTypeList { let parsed_elem = AggregateType::new(elem.clone())?; coll.push(parsed_elem); } - Ok(Self { - found: coll, - original: maybe_type_list, - }) + Ok(Self { found: coll, original: maybe_type_list }) + } + ty => { + Ok(Self { found: vec![AggregateType::new(ty.clone())?], original: maybe_type_list }) } - ty => Ok(Self { - found: vec![AggregateType::new(ty.clone())?], - original: maybe_type_list, - }), } } diff --git a/pgx-utils/src/sql_entity_graph/aggregate/entity.rs b/pgx-utils/src/sql_entity_graph/aggregate/entity.rs index b9dd6bd5a..b630765bc 100644 --- a/pgx-utils/src/sql_entity_graph/aggregate/entity.rs +++ b/pgx-utils/src/sql_entity_graph/aggregate/entity.rs @@ -15,14 +15,14 @@ to the `pgx` framework and very subject to change between versions. While you ma */ -use crate::sql_entity_graph::{ - aggregate::options::{FinalizeModify, ParallelOption}, - metadata::SqlMapping, - pgx_sql::PgxSql, - to_sql::{entity::ToSqlConfigEntity, ToSql}, - SqlGraphEntity, SqlGraphIdentifier, UsedTypeEntity, -}; -use core::{any::TypeId, cmp::Ordering}; +use crate::sql_entity_graph::aggregate::options::{FinalizeModify, ParallelOption}; +use crate::sql_entity_graph::metadata::SqlMapping; +use crate::sql_entity_graph::pgx_sql::PgxSql; +use crate::sql_entity_graph::to_sql::entity::ToSqlConfigEntity; +use crate::sql_entity_graph::to_sql::ToSql; +use crate::sql_entity_graph::{SqlGraphEntity, SqlGraphIdentifier, UsedTypeEntity}; +use core::any::TypeId; +use core::cmp::Ordering; use eyre::{eyre, WrapErr}; #[derive(Debug, Clone, Hash, PartialEq, Eq)] @@ -149,9 +149,7 @@ pub struct PgAggregateEntity { impl Ord for PgAggregateEntity { fn cmp(&self, other: &Self) -> Ordering { - self.file - .cmp(other.full_path) - .then_with(|| self.file.cmp(other.full_path)) + self.file.cmp(other.full_path).then_with(|| self.file.cmp(other.full_path)) } } @@ -279,34 +277,22 @@ impl ToSql for PgAggregateEntity { Ok(SqlMapping::As(ref argument_sql)) => Ok(argument_sql.to_string()), Ok(SqlMapping::Composite { array_brackets }) => used_ty .composite_type - .map(|v| { - if array_brackets { - format!("{v}[]") - } else { - format!("{v}") - } - }) + .map(|v| if array_brackets { format!("{v}[]") } else { format!("{v}") }) .ok_or_else(|| { eyre!("Macro expansion time suggested a composite_type!() in return") }), Ok(SqlMapping::Source { array_brackets }) => { let sql = context .source_only_to_sql_type(used_ty.ty_source) - .map(|v| { - if array_brackets { - format!("{v}[]") - } else { - format!("{v}") - } - }) + .map(|v| if array_brackets { format!("{v}[]") } else { format!("{v}") }) .ok_or_else(|| { eyre!("Macro expansion time suggested a source only mapping in return") })?; Ok(sql) } - Ok(SqlMapping::Skip) => Err(eyre!( - "Cannot use skipped SQL translatable type as aggregate const type" - )), + Ok(SqlMapping::Skip) => { + Err(eyre!("Cannot use skipped SQL translatable type as aggregate const type")) + } Err(err) => match context.source_only_to_sql_type(used_ty.ty_source) { Some(source_only_mapping) => Ok(source_only_mapping.to_string()), None => return Err(err).wrap_err("While mapping argument"), @@ -320,10 +306,7 @@ impl ToSql for PgAggregateEntity { let mstype_sql = map_ty(&value).wrap_err("Mapping moving state type")?; optional_attributes.push(( format!("\tMSTYPE = {}", mstype_sql), - format!( - "/* {}::MovingState = {} */", - self.full_path, value.full_path - ), + format!("/* {}::MovingState = {} */", self.full_path, value.full_path), )); } @@ -332,17 +315,9 @@ impl ToSql for PgAggregateEntity { let optional_attribute_string = format!( "{optional_attribute}{maybe_comma} {comment}{maybe_newline}", optional_attribute = optional_attribute, - maybe_comma = if index == optional_attributes.len() - 1 { - "" - } else { - "," - }, + maybe_comma = if index == optional_attributes.len() - 1 { "" } else { "," }, comment = comment, - maybe_newline = if index == optional_attributes.len() - 1 { - "" - } else { - "\n" - } + maybe_newline = if index == optional_attributes.len() - 1 { "" } else { "\n" } ); optional_attributes_string += &optional_attribute_string; } @@ -366,11 +341,7 @@ impl ToSql for PgAggregateEntity { sfunc = self.sfunc, stype = stype_sql, stype_full_path = self.stype.used_ty.full_path, - maybe_comma_after_stype = if optional_attributes.len() == 0 { - "" - } else { - "," - }, + maybe_comma_after_stype = if optional_attributes.len() == 0 { "" } else { "," }, args = { let mut args = Vec::new(); for (idx, arg) in self.args.iter().enumerate() { @@ -499,11 +470,7 @@ impl ToSql for PgAggregateEntity { } else { String::from("\n") } + &optional_attributes_string - + if optional_attributes.len() == 0 { - "" - } else { - "\n" - }, + + if optional_attributes.len() == 0 { "" } else { "\n" }, ); tracing::trace!(%sql); Ok(sql) diff --git a/pgx-utils/src/sql_entity_graph/aggregate/mod.rs b/pgx-utils/src/sql_entity_graph/aggregate/mod.rs index 350c41c5a..caee9844e 100644 --- a/pgx-utils/src/sql_entity_graph/aggregate/mod.rs +++ b/pgx-utils/src/sql_entity_graph/aggregate/mod.rs @@ -25,11 +25,10 @@ pub use options::{FinalizeModify, ParallelOption}; use convert_case::{Case, Casing}; use proc_macro2::{Ident, Span, TokenStream as TokenStream2}; use quote::{quote, ToTokens, TokenStreamExt}; +use syn::parse::{Parse, ParseStream}; +use syn::spanned::Spanned; use syn::{ - parse::{Parse, ParseStream}, - parse_quote, - spanned::Spanned, - Expr, ImplItemConst, ImplItemMethod, ImplItemType, ItemFn, ItemImpl, Path, Type, + parse_quote, Expr, ImplItemConst, ImplItemMethod, ImplItemType, ItemFn, ItemImpl, Path, Type, }; use crate::sql_entity_graph::ToSqlConfig; @@ -110,10 +109,8 @@ impl PgAggregate { let target_path = get_target_path(&item_impl)?; let target_ident = get_target_ident(&target_path)?; - let snake_case_target_ident = Ident::new( - &target_ident.to_string().to_case(Case::Snake), - target_ident.span(), - ); + let snake_case_target_ident = + Ident::new(&target_ident.to_string().to_case(Case::Snake), target_ident.span()); crate::ident_is_acceptable_to_postgres(&snake_case_target_ident)?; let mut pg_externs = Vec::default(); @@ -191,53 +188,47 @@ impl PgAggregate { // `OrderBy` is an optional value, we default to nothing. let type_ordered_set_args = get_impl_type_by_name(&item_impl_snapshot, "OrderedSetArgs"); - let type_ordered_set_args_value = type_ordered_set_args - .map(|v| AggregateTypeList::new(v.ty.clone())) - .transpose()?; + let type_ordered_set_args_value = + type_ordered_set_args.map(|v| AggregateTypeList::new(v.ty.clone())).transpose()?; if type_ordered_set_args.is_none() { item_impl.items.push(parse_quote! { type OrderedSetArgs = (); }) } - let (direct_args_with_names, direct_arg_names) = - if let Some(ref order_by_direct_args) = type_ordered_set_args_value { - let direct_args = order_by_direct_args - .found - .iter() - .map(|x| { - ( - x.name.clone(), - x.used_ty.resolved_ty.clone(), - x.used_ty.original_ty.clone(), - ) - }) - .collect::>(); - let direct_arg_names = ARG_NAMES[0..direct_args.len()] - .iter() - .zip(direct_args.iter()) - .map(|(default_name, (custom_name, _ty, _orig))| { - Ident::new( - &custom_name - .clone() - .unwrap_or_else(|| default_name.to_string()), - Span::mixed_site(), - ) - }) - .collect::>(); - let direct_args_with_names = direct_args - .iter() - .zip(direct_arg_names.iter()) - .map(|(arg, name)| { - let arg_ty = &arg.2; // original_type - parse_quote! { - #name: #arg_ty - } - }) - .collect::>(); - (direct_args_with_names, direct_arg_names) - } else { - (Vec::default(), Vec::default()) - }; + let (direct_args_with_names, direct_arg_names) = if let Some(ref order_by_direct_args) = + type_ordered_set_args_value + { + let direct_args = order_by_direct_args + .found + .iter() + .map(|x| { + (x.name.clone(), x.used_ty.resolved_ty.clone(), x.used_ty.original_ty.clone()) + }) + .collect::>(); + let direct_arg_names = ARG_NAMES[0..direct_args.len()] + .iter() + .zip(direct_args.iter()) + .map(|(default_name, (custom_name, _ty, _orig))| { + Ident::new( + &custom_name.clone().unwrap_or_else(|| default_name.to_string()), + Span::mixed_site(), + ) + }) + .collect::>(); + let direct_args_with_names = direct_args + .iter() + .zip(direct_arg_names.iter()) + .map(|(arg, name)| { + let arg_ty = &arg.2; // original_type + parse_quote! { + #name: #arg_ty + } + }) + .collect::>(); + (direct_args_with_names, direct_arg_names) + } else { + (Vec::default(), Vec::default()) + }; // `Args` is an optional value, we default to nothing. let type_args = get_impl_type_by_name(&item_impl_snapshot, "Args").ok_or_else(|| { @@ -257,9 +248,7 @@ impl PgAggregate { .zip(args.iter()) .map(|(default_name, (custom_name, ty))| { Ident::new( - &custom_name - .clone() - .unwrap_or_else(|| default_name.to_string()), + &custom_name.clone().unwrap_or_else(|| default_name.to_string()), ty.span(), ) }) @@ -289,10 +278,8 @@ impl PgAggregate { let fn_state = get_impl_func_by_name(&item_impl_snapshot, "state"); let fn_state_name = if let Some(found) = fn_state { - let fn_name = Ident::new( - &format!("{}_state", snake_case_target_ident), - found.sig.ident.span(), - ); + let fn_name = + Ident::new(&format!("{}_state", snake_case_target_ident), found.sig.ident.span()); let pg_extern_attr = pg_extern_attr(found); pg_externs.push(parse_quote! { @@ -315,10 +302,8 @@ impl PgAggregate { let fn_combine = get_impl_func_by_name(&item_impl_snapshot, "combine"); let fn_combine_name = if let Some(found) = fn_combine { - let fn_name = Ident::new( - &format!("{}_combine", snake_case_target_ident), - found.sig.ident.span(), - ); + let fn_name = + Ident::new(&format!("{}_combine", snake_case_target_ident), found.sig.ident.span()); let pg_extern_attr = pg_extern_attr(found); pg_externs.push(parse_quote! { #[allow(non_snake_case, clippy::too_many_arguments)] @@ -383,10 +368,8 @@ impl PgAggregate { let fn_serial = get_impl_func_by_name(&item_impl_snapshot, "serial"); let fn_serial_name = if let Some(found) = fn_serial { - let fn_name = Ident::new( - &format!("{}_serial", snake_case_target_ident), - found.sig.ident.span(), - ); + let fn_name = + Ident::new(&format!("{}_serial", snake_case_target_ident), found.sig.ident.span()); let pg_extern_attr = pg_extern_attr(found); pg_externs.push(parse_quote! { #[allow(non_snake_case, clippy::too_many_arguments)] @@ -514,11 +497,8 @@ impl PgAggregate { found.sig.ident.span(), ); let pg_extern_attr = pg_extern_attr(found); - let maybe_comma: Option = if direct_args_with_names.len() > 0 { - Some(parse_quote! {,}) - } else { - None - }; + let maybe_comma: Option = + if direct_args_with_names.len() > 0 { Some(parse_quote! {,}) } else { None }; pg_externs.push(parse_quote! { #[allow(non_snake_case, clippy::too_many_arguments)] @@ -602,10 +582,8 @@ impl PgAggregate { .expect("Expected constructed PgAggregate to have target path."); let target_ident = get_target_ident(&target_path) .expect("Expected constructed PgAggregate to have target ident."); - let snake_case_target_ident = Ident::new( - &target_ident.to_string().to_case(Case::Snake), - target_ident.span(), - ); + let snake_case_target_ident = + Ident::new(&target_ident.to_string().to_case(Case::Snake), target_ident.span()); let sql_graph_entity_fn_name = syn::Ident::new( &format!("__pgx_internals_aggregate_{}", snake_case_target_ident), target_ident.span(), diff --git a/pgx-utils/src/sql_entity_graph/control_file.rs b/pgx-utils/src/sql_entity_graph/control_file.rs index 88b5751c0..4d5131486 100644 --- a/pgx-utils/src/sql_entity_graph/control_file.rs +++ b/pgx-utils/src/sql_entity_graph/control_file.rs @@ -84,20 +84,14 @@ impl ControlFile { })? .to_string(), module_pathname: temp.get("module_pathname").map(|v| v.to_string()), - relocatable: temp - .get("relocatable") - .ok_or(ControlFileError::MissingField { - field: "relocatable", - context: SpanTrace::capture(), - })? - == &"true", - superuser: temp - .get("superuser") - .ok_or(ControlFileError::MissingField { - field: "superuser", - context: SpanTrace::capture(), - })? - == &"true", + relocatable: temp.get("relocatable").ok_or(ControlFileError::MissingField { + field: "relocatable", + context: SpanTrace::capture(), + })? == &"true", + superuser: temp.get("superuser").ok_or(ControlFileError::MissingField { + field: "superuser", + context: SpanTrace::capture(), + })? == &"true", schema: temp.get("schema").map(|v| v.to_string()), }) } @@ -112,10 +106,7 @@ impl From for SqlGraphEntity { /// An error met while parsing a `.control` file. #[derive(Debug, Clone)] pub enum ControlFileError { - MissingField { - field: &'static str, - context: SpanTrace, - }, + MissingField { field: &'static str, context: SpanTrace }, } impl std::fmt::Display for ControlFileError { diff --git a/pgx-utils/src/sql_entity_graph/extension_sql/entity.rs b/pgx-utils/src/sql_entity_graph/extension_sql/entity.rs index a3a2f0541..f8044e917 100644 --- a/pgx-utils/src/sql_entity_graph/extension_sql/entity.rs +++ b/pgx-utils/src/sql_entity_graph/extension_sql/entity.rs @@ -15,10 +15,11 @@ to the `pgx` framework and very subject to change between versions. While you ma */ -use crate::sql_entity_graph::{ - extension_sql::SqlDeclared, pgx_sql::PgxSql, positioning_ref::PositioningRef, to_sql::ToSql, - SqlGraphEntity, SqlGraphIdentifier, -}; +use crate::sql_entity_graph::extension_sql::SqlDeclared; +use crate::sql_entity_graph::pgx_sql::PgxSql; +use crate::sql_entity_graph::positioning_ref::PositioningRef; +use crate::sql_entity_graph::to_sql::ToSql; +use crate::sql_entity_graph::{SqlGraphEntity, SqlGraphIdentifier}; use std::fmt::Display; @@ -39,9 +40,7 @@ pub struct ExtensionSqlEntity { impl ExtensionSqlEntity { pub fn has_sql_declared_entity(&self, identifier: &SqlDeclared) -> Option<&SqlDeclaredEntity> { - self.creates - .iter() - .find(|created| created.has_sql_declared_entity(identifier)) + self.creates.iter().find(|created| created.has_sql_declared_entity(identifier)) } } @@ -179,10 +178,7 @@ impl SqlDeclaredEntity { pg_box: vec![ format!("pgx::pgbox::PgBox<{}>", name), format!("pgx::pgbox::PgBox<{}, pgx::pgbox::AllocatedByRust>", name), - format!( - "pgx::pgbox::PgBox<{}, pgx::pgbox::AllocatedByPostgres>", - name - ), + format!("pgx::pgbox::PgBox<{}, pgx::pgbox::AllocatedByPostgres>", name), ], }; let retval = match variant.as_ref() { diff --git a/pgx-utils/src/sql_entity_graph/extension_sql/mod.rs b/pgx-utils/src/sql_entity_graph/extension_sql/mod.rs index a5e272f03..f7e6e1a99 100644 --- a/pgx-utils/src/sql_entity_graph/extension_sql/mod.rs +++ b/pgx-utils/src/sql_entity_graph/extension_sql/mod.rs @@ -21,11 +21,9 @@ use crate::sql_entity_graph::positioning_ref::PositioningRef; use proc_macro2::{Ident, Span, TokenStream as TokenStream2}; use quote::{quote, ToTokens, TokenStreamExt}; -use syn::{ - parse::{Parse, ParseStream}, - punctuated::Punctuated, - LitStr, Token, -}; +use syn::parse::{Parse, ParseStream}; +use syn::punctuated::Punctuated; +use syn::{LitStr, Token}; /// A parsed `extension_sql_file!()` item. /// @@ -102,10 +100,8 @@ impl ToTokens for ExtensionSqlFile { ); let requires_iter = requires.iter(); let creates_iter = creates.iter(); - let sql_graph_entity_fn_name = syn::Ident::new( - &format!("__pgx_internals_sql_{}", name.clone()), - Span::call_site(), - ); + let sql_graph_entity_fn_name = + syn::Ident::new(&format!("__pgx_internals_sql_{}", name.clone()), Span::call_site()); let inv = quote! { #[no_mangle] #[doc(hidden)] @@ -210,10 +206,8 @@ impl ToTokens for ExtensionSql { let creates_iter = creates.iter(); let name = &self.name; - let sql_graph_entity_fn_name = syn::Ident::new( - &format!("__pgx_internals_sql_{}", name.value()), - Span::call_site(), - ); + let sql_graph_entity_fn_name = + syn::Ident::new(&format!("__pgx_internals_sql_{}", name.value()), Span::call_site()); let inv = quote! { #[no_mangle] pub extern "Rust" fn #sql_graph_entity_fn_name() -> ::pgx::utils::sql_entity_graph::SqlGraphEntity { @@ -323,10 +317,8 @@ impl ToTokens for SqlDeclared { }; let identifier_split = identifier.split("::").collect::>(); let identifier = if identifier_split.len() == 1 { - let identifier_infer = Ident::new( - identifier_split.last().unwrap(), - proc_macro2::Span::call_site(), - ); + let identifier_infer = + Ident::new(identifier_split.last().unwrap(), proc_macro2::Span::call_site()); quote! { concat!(module_path!(), "::", stringify!(#identifier_infer)) } } else { quote! { stringify!(#identifier) } diff --git a/pgx-utils/src/sql_entity_graph/mapping.rs b/pgx-utils/src/sql_entity_graph/mapping.rs index 95f8515ef..eb8cdb5cb 100644 --- a/pgx-utils/src/sql_entity_graph/mapping.rs +++ b/pgx-utils/src/sql_entity_graph/mapping.rs @@ -68,9 +68,6 @@ pub struct RustSourceOnlySqlMapping { impl RustSourceOnlySqlMapping { pub fn new(rust: String, sql: String) -> Self { - Self { - rust: rust.to_string(), - sql: sql.to_string(), - } + Self { rust: rust.to_string(), sql: sql.to_string() } } } diff --git a/pgx-utils/src/sql_entity_graph/metadata/function_metadata.rs b/pgx-utils/src/sql_entity_graph/metadata/function_metadata.rs index 051ccbfef..aaee19df3 100644 --- a/pgx-utils/src/sql_entity_graph/metadata/function_metadata.rs +++ b/pgx-utils/src/sql_entity_graph/metadata/function_metadata.rs @@ -67,21 +67,13 @@ where impl FunctionMetadata<(), ()> for fn() { fn entity(&self) -> FunctionMetadataEntity { - FunctionMetadataEntity { - arguments: vec![], - retval: None, - path: self.path(), - } + FunctionMetadataEntity { arguments: vec![], retval: None, path: self.path() } } } impl FunctionMetadata<(), ()> for unsafe fn() { fn entity(&self) -> FunctionMetadataEntity { - FunctionMetadataEntity { - arguments: vec![], - retval: None, - path: self.path(), - } + FunctionMetadataEntity { arguments: vec![], retval: None, path: self.path() } } } seq_macro::seq!(I in 0..=32 { diff --git a/pgx-utils/src/sql_entity_graph/metadata/phantomdata_ext.rs b/pgx-utils/src/sql_entity_graph/metadata/phantomdata_ext.rs index 0a1301316..9c2d53961 100644 --- a/pgx-utils/src/sql_entity_graph/metadata/phantomdata_ext.rs +++ b/pgx-utils/src/sql_entity_graph/metadata/phantomdata_ext.rs @@ -8,10 +8,8 @@ to the `pgx` framework and very subject to change between versions. While you ma */ use core::marker::PhantomData; -use super::{ - return_variant::ReturnsError, ArgumentError, FunctionMetadataTypeEntity, Returns, SqlMapping, - SqlTranslatable, -}; +use super::return_variant::ReturnsError; +use super::{ArgumentError, FunctionMetadataTypeEntity, Returns, SqlMapping, SqlTranslatable}; /** An extension trait for [`PhantomData`][core::marker::PhantomData] offering SQL generation related info diff --git a/pgx-utils/src/sql_entity_graph/metadata/sql_translatable.rs b/pgx-utils/src/sql_entity_graph/metadata/sql_translatable.rs index 4786e0c30..92b7f85d9 100644 --- a/pgx-utils/src/sql_entity_graph/metadata/sql_translatable.rs +++ b/pgx-utils/src/sql_entity_graph/metadata/sql_translatable.rs @@ -8,7 +8,8 @@ to the `pgx` framework and very subject to change between versions. While you ma */ use std::error::Error; -use super::{return_variant::ReturnsError, FunctionMetadataTypeEntity, Returns}; +use super::return_variant::ReturnsError; +use super::{FunctionMetadataTypeEntity, Returns}; #[derive(Clone, Copy, Debug, Hash, Ord, PartialOrd, PartialEq, Eq)] pub enum ArgumentError { @@ -156,12 +157,12 @@ where id if id == u8::type_name() => Ok(SqlMapping::As(format!("bytea"))), _ => match T::argument_sql() { Ok(SqlMapping::As(val)) => Ok(SqlMapping::As(format!("{val}[]"))), - Ok(SqlMapping::Composite { array_brackets: _ }) => Ok(SqlMapping::Composite { - array_brackets: true, - }), - Ok(SqlMapping::Source { array_brackets: _ }) => Ok(SqlMapping::Source { - array_brackets: true, - }), + Ok(SqlMapping::Composite { array_brackets: _ }) => { + Ok(SqlMapping::Composite { array_brackets: true }) + } + Ok(SqlMapping::Source { array_brackets: _ }) => { + Ok(SqlMapping::Source { array_brackets: true }) + } Ok(SqlMapping::Skip) => Ok(SqlMapping::Skip), err @ Err(_) => err, }, @@ -175,14 +176,10 @@ where Ok(Returns::One(SqlMapping::As(format!("{val}[]")))) } Ok(Returns::One(SqlMapping::Composite { array_brackets: _ })) => { - Ok(Returns::One(SqlMapping::Composite { - array_brackets: true, - })) + Ok(Returns::One(SqlMapping::Composite { array_brackets: true })) } Ok(Returns::One(SqlMapping::Source { array_brackets: _ })) => { - Ok(Returns::One(SqlMapping::Source { - array_brackets: true, - })) + Ok(Returns::One(SqlMapping::Source { array_brackets: true })) } Ok(Returns::One(SqlMapping::Skip)) => Ok(Returns::One(SqlMapping::Skip)), Ok(Returns::SetOf(_)) => Err(ReturnsError::SetOfInArray), @@ -216,14 +213,10 @@ unsafe impl SqlTranslatable for i32 { unsafe impl SqlTranslatable for u32 { fn argument_sql() -> Result { - Ok(SqlMapping::Source { - array_brackets: false, - }) + Ok(SqlMapping::Source { array_brackets: false }) } fn return_sql() -> Result { - Ok(Returns::One(SqlMapping::Source { - array_brackets: false, - })) + Ok(Returns::One(SqlMapping::Source { array_brackets: false })) } } diff --git a/pgx-utils/src/sql_entity_graph/mod.rs b/pgx-utils/src/sql_entity_graph/mod.rs index 58904935e..8e3fad10a 100644 --- a/pgx-utils/src/sql_entity_graph/mod.rs +++ b/pgx-utils/src/sql_entity_graph/mod.rs @@ -32,32 +32,36 @@ pub(crate) mod schema; pub(crate) mod to_sql; pub(crate) mod used_type; +pub use aggregate::entity::{AggregateTypeEntity, PgAggregateEntity}; pub use aggregate::{ - entity::{AggregateTypeEntity, PgAggregateEntity}, AggregateType, AggregateTypeList, FinalizeModify, ParallelOption, PgAggregate, }; pub use control_file::ControlFile; -pub use extension_sql::{ - entity::{ExtensionSqlEntity, SqlDeclaredEntity}, - ExtensionSql, ExtensionSqlFile, SqlDeclared, -}; +pub use extension_sql::entity::{ExtensionSqlEntity, SqlDeclaredEntity}; +pub use extension_sql::{ExtensionSql, ExtensionSqlFile, SqlDeclared}; pub use mapping::{RustSourceOnlySqlMapping, RustSqlMapping}; -pub use pg_extern::{ - entity::{ - PgExternArgumentEntity, PgExternEntity, PgExternReturnEntity, - PgExternReturnEntityIteratedItem, PgOperatorEntity, - }, - NameMacro, PgExtern, PgExternArgument, PgOperator, +pub use pg_extern::entity::{ + PgExternArgumentEntity, PgExternEntity, PgExternReturnEntity, PgExternReturnEntityIteratedItem, + PgOperatorEntity, }; -pub use pg_trigger::{attribute::PgTriggerAttribute, entity::PgTriggerEntity, PgTrigger}; +pub use pg_extern::{NameMacro, PgExtern, PgExternArgument, PgOperator}; +pub use pg_trigger::attribute::PgTriggerAttribute; +pub use pg_trigger::entity::PgTriggerEntity; +pub use pg_trigger::PgTrigger; pub use pgx_sql::{PgxSql, RustToSqlMapping}; pub use positioning_ref::PositioningRef; -pub use postgres_enum::{entity::PostgresEnumEntity, PostgresEnum}; -pub use postgres_hash::{entity::PostgresHashEntity, PostgresHash}; -pub use postgres_ord::{entity::PostgresOrdEntity, PostgresOrd}; -pub use postgres_type::{entity::PostgresTypeEntity, PostgresType}; -pub use schema::{entity::SchemaEntity, Schema}; -pub use to_sql::{entity::ToSqlConfigEntity, ToSql, ToSqlConfig}; +pub use postgres_enum::entity::PostgresEnumEntity; +pub use postgres_enum::PostgresEnum; +pub use postgres_hash::entity::PostgresHashEntity; +pub use postgres_hash::PostgresHash; +pub use postgres_ord::entity::PostgresOrdEntity; +pub use postgres_ord::PostgresOrd; +pub use postgres_type::entity::PostgresTypeEntity; +pub use postgres_type::PostgresType; +pub use schema::entity::SchemaEntity; +pub use schema::Schema; +pub use to_sql::entity::ToSqlConfigEntity; +pub use to_sql::{ToSql, ToSqlConfig}; pub use used_type::{UsedType, UsedTypeEntity}; pub use crate::ExternArgs; @@ -220,31 +224,25 @@ impl ToSql for SqlGraphEntity { item.to_sql(context) } } - SqlGraphEntity::Type(item) => item - .to_sql_config - .to_sql(self, context) - .unwrap_or_else(|| item.to_sql(context)), + SqlGraphEntity::Type(item) => { + item.to_sql_config.to_sql(self, context).unwrap_or_else(|| item.to_sql(context)) + } SqlGraphEntity::BuiltinType(_) => Ok(String::default()), - SqlGraphEntity::Enum(item) => item - .to_sql_config - .to_sql(self, context) - .unwrap_or_else(|| item.to_sql(context)), - SqlGraphEntity::Ord(item) => item - .to_sql_config - .to_sql(self, context) - .unwrap_or_else(|| item.to_sql(context)), - SqlGraphEntity::Hash(item) => item - .to_sql_config - .to_sql(self, context) - .unwrap_or_else(|| item.to_sql(context)), - SqlGraphEntity::Aggregate(item) => item - .to_sql_config - .to_sql(self, context) - .unwrap_or_else(|| item.to_sql(context)), - SqlGraphEntity::Trigger(item) => item - .to_sql_config - .to_sql(self, context) - .unwrap_or_else(|| item.to_sql(context)), + SqlGraphEntity::Enum(item) => { + item.to_sql_config.to_sql(self, context).unwrap_or_else(|| item.to_sql(context)) + } + SqlGraphEntity::Ord(item) => { + item.to_sql_config.to_sql(self, context).unwrap_or_else(|| item.to_sql(context)) + } + SqlGraphEntity::Hash(item) => { + item.to_sql_config.to_sql(self, context).unwrap_or_else(|| item.to_sql(context)) + } + SqlGraphEntity::Aggregate(item) => { + item.to_sql_config.to_sql(self, context).unwrap_or_else(|| item.to_sql(context)) + } + SqlGraphEntity::Trigger(item) => { + item.to_sql_config.to_sql(self, context).unwrap_or_else(|| item.to_sql(context)) + } SqlGraphEntity::ExtensionRoot(item) => item.to_sql(context), } } diff --git a/pgx-utils/src/sql_entity_graph/pg_extern/argument.rs b/pgx-utils/src/sql_entity_graph/pg_extern/argument.rs index 85d4ee68a..aaa4d8172 100644 --- a/pgx-utils/src/sql_entity_graph/pg_extern/argument.rs +++ b/pgx-utils/src/sql_entity_graph/pg_extern/argument.rs @@ -33,10 +33,9 @@ impl PgExternArgument { pub fn build(fn_arg: FnArg) -> Result { match &fn_arg { syn::FnArg::Typed(pat) => Self::build_from_pat_type(fn_arg.clone(), pat.clone()), - syn::FnArg::Receiver(_) => Err(syn::Error::new( - Span::call_site(), - "Unable to parse FnArg that is Self", - )), + syn::FnArg::Receiver(_) => { + Err(syn::Error::new(Span::call_site(), "Unable to parse FnArg that is Self")) + } } } @@ -55,11 +54,7 @@ impl PgExternArgument { let used_ty = UsedType::new(*value.ty)?; - Ok(PgExternArgument { - fn_arg, - pat: identifier, - used_ty, - }) + Ok(PgExternArgument { fn_arg, pat: identifier, used_ty }) } pub fn entity_tokens(&self) -> TokenStream2 { diff --git a/pgx-utils/src/sql_entity_graph/pg_extern/attribute.rs b/pgx-utils/src/sql_entity_graph/pg_extern/attribute.rs index a26182a27..c3a0882d3 100644 --- a/pgx-utils/src/sql_entity_graph/pg_extern/attribute.rs +++ b/pgx-utils/src/sql_entity_graph/pg_extern/attribute.rs @@ -14,14 +14,13 @@ Use of this source code is governed by the MIT license that can be found in the to the `pgx` framework and very subject to change between versions. While you may use this, please do it with caution. */ -use crate::sql_entity_graph::{positioning_ref::PositioningRef, to_sql::ToSqlConfig}; +use crate::sql_entity_graph::positioning_ref::PositioningRef; +use crate::sql_entity_graph::to_sql::ToSqlConfig; use proc_macro2::{Span, TokenStream as TokenStream2}; use quote::{quote, ToTokens, TokenStreamExt}; -use syn::{ - parse::{Parse, ParseStream}, - punctuated::Punctuated, - Token, -}; +use syn::parse::{Parse, ParseStream}; +use syn::punctuated::Punctuated; +use syn::Token; #[derive(Debug, Clone, Hash, Eq, PartialEq)] pub enum Attribute { @@ -75,10 +74,7 @@ impl Attribute { quote! { ::pgx::utils::ExternArgs::Cost(format!("{}", #s)) } } Attribute::Requires(items) => { - let items_iter = items - .iter() - .map(|x| x.to_token_stream()) - .collect::>(); + let items_iter = items.iter().map(|x| x.to_token_stream()).collect::>(); quote! { ::pgx::utils::ExternArgs::Requires(vec![#(#items_iter),*],) } } // This attribute is handled separately @@ -121,10 +117,7 @@ impl ToTokens for Attribute { quote! { cost = #s } } Attribute::Requires(items) => { - let items_iter = items - .iter() - .map(|x| x.to_token_stream()) - .collect::>(); + let items_iter = items.iter().map(|x| x.to_token_stream()).collect::>(); quote! { requires = [#(#items_iter),*] } } // This attribute is handled separately diff --git a/pgx-utils/src/sql_entity_graph/pg_extern/entity/mod.rs b/pgx-utils/src/sql_entity_graph/pg_extern/entity/mod.rs index a2ddbcb5f..26b347ae0 100644 --- a/pgx-utils/src/sql_entity_graph/pg_extern/entity/mod.rs +++ b/pgx-utils/src/sql_entity_graph/pg_extern/entity/mod.rs @@ -22,15 +22,12 @@ pub use argument::PgExternArgumentEntity; pub use operator::PgOperatorEntity; pub use returning::{PgExternReturnEntity, PgExternReturnEntityIteratedItem}; -use crate::{ - sql_entity_graph::{ - metadata::{Returns, SqlMapping}, - pgx_sql::PgxSql, - to_sql::{entity::ToSqlConfigEntity, ToSql}, - SqlGraphEntity, SqlGraphIdentifier, - }, - ExternArgs, -}; +use crate::sql_entity_graph::metadata::{Returns, SqlMapping}; +use crate::sql_entity_graph::pgx_sql::PgxSql; +use crate::sql_entity_graph::to_sql::entity::ToSqlConfigEntity; +use crate::sql_entity_graph::to_sql::ToSql; +use crate::sql_entity_graph::{SqlGraphEntity, SqlGraphIdentifier}; +use crate::ExternArgs; use eyre::{eyre, WrapErr}; use std::cmp::Ordering; @@ -581,10 +578,7 @@ impl ToSql for PgExternEntity { _ => false, }) .ok_or_else(|| { - eyre!( - "Could not find right arg type in graph. Got: {:?}", - right_arg - ) + eyre!("Could not find right arg type in graph. Got: {:?}", right_arg) })?; let right_arg_sql = match right_arg.argument_sql { Ok(SqlMapping::As(ref sql)) => sql.clone(), diff --git a/pgx-utils/src/sql_entity_graph/pg_extern/mod.rs b/pgx-utils/src/sql_entity_graph/pg_extern/mod.rs index a8fc8f919..234ebe0b9 100644 --- a/pgx-utils/src/sql_entity_graph/pg_extern/mod.rs +++ b/pgx-utils/src/sql_entity_graph/pg_extern/mod.rs @@ -26,7 +26,8 @@ pub use argument::PgExternArgument; pub use operator::PgOperator; pub use returning::NameMacro; -use crate::{sql_entity_graph::ToSqlConfig, staticize_lifetimes}; +use crate::sql_entity_graph::ToSqlConfig; +use crate::staticize_lifetimes; use attribute::Attribute; use operator::{PgxOperatorAttributeWithIdent, PgxOperatorOpName}; use search_path::SearchPathList; @@ -34,12 +35,10 @@ use search_path::SearchPathList; use eyre::WrapErr; use proc_macro2::{Ident, Span, TokenStream as TokenStream2}; use quote::{quote, quote_spanned, ToTokens, TokenStreamExt}; -use syn::{ - parse::{Parse, ParseStream, Parser}, - punctuated::Punctuated, - spanned::Spanned, - Meta, Token, -}; +use syn::parse::{Parse, ParseStream, Parser}; +use syn::punctuated::Punctuated; +use syn::spanned::Spanned; +use syn::{Meta, Token}; use self::returning::Returning; @@ -97,10 +96,9 @@ impl PgExtern { if let Some(ref mut content) = to_sql_config.content { let value = content.value(); - let updated_value = value.replace( - "@FUNCTION_NAME@", - &*(func.sig.ident.to_string() + "_wrapper"), - ) + "\n"; + let updated_value = value + .replace("@FUNCTION_NAME@", &*(func.sig.ident.to_string() + "_wrapper")) + + "\n"; *content = syn::LitStr::new(&updated_value, Span::call_site()); } @@ -108,11 +106,7 @@ impl PgExtern { crate::ident_is_acceptable_to_postgres(&func.sig.ident)?; } - Ok(Self { - attrs, - func, - to_sql_config, - }) + Ok(Self { attrs, func, to_sql_config }) } fn name(&self) -> String { @@ -177,37 +171,27 @@ impl PgExtern { "opname" => { let attr: PgxOperatorOpName = syn::parse2(attr.tokens.clone()) .expect(&format!("Unable to parse {:?}", &attr.tokens)); - skel.get_or_insert_with(Default::default) - .opname - .get_or_insert(attr); + skel.get_or_insert_with(Default::default).opname.get_or_insert(attr); } "commutator" => { let attr: PgxOperatorAttributeWithIdent = syn::parse2(attr.tokens.clone()) .expect(&format!("Unable to parse {:?}", &attr.tokens)); - skel.get_or_insert_with(Default::default) - .commutator - .get_or_insert(attr); + skel.get_or_insert_with(Default::default).commutator.get_or_insert(attr); } "negator" => { let attr: PgxOperatorAttributeWithIdent = syn::parse2(attr.tokens.clone()) .expect(&format!("Unable to parse {:?}", &attr.tokens)); - skel.get_or_insert_with(Default::default) - .negator - .get_or_insert(attr); + skel.get_or_insert_with(Default::default).negator.get_or_insert(attr); } "join" => { let attr: PgxOperatorAttributeWithIdent = syn::parse2(attr.tokens.clone()) .expect(&format!("Unable to parse {:?}", &attr.tokens)); - skel.get_or_insert_with(Default::default) - .join - .get_or_insert(attr); + skel.get_or_insert_with(Default::default).join.get_or_insert(attr); } "restrict" => { let attr: PgxOperatorAttributeWithIdent = syn::parse2(attr.tokens.clone()) .expect(&format!("Unable to parse {:?}", &attr.tokens)); - skel.get_or_insert_with(Default::default) - .restrict - .get_or_insert(attr); + skel.get_or_insert_with(Default::default).restrict.get_or_insert(attr); } "hashes" => { skel.get_or_insert_with(Default::default).hashes = true; @@ -715,10 +699,6 @@ impl Parse for PgExtern { crate::ident_is_acceptable_to_postgres(&func.sig.ident)?; } - Ok(Self { - attrs, - func, - to_sql_config, - }) + Ok(Self { attrs, func, to_sql_config }) } } diff --git a/pgx-utils/src/sql_entity_graph/pg_extern/operator.rs b/pgx-utils/src/sql_entity_graph/pg_extern/operator.rs index e6284912f..3a7b58838 100644 --- a/pgx-utils/src/sql_entity_graph/pg_extern/operator.rs +++ b/pgx-utils/src/sql_entity_graph/pg_extern/operator.rs @@ -16,8 +16,9 @@ to the `pgx` framework and very subject to change between versions. While you ma */ use proc_macro2::TokenStream as TokenStream2; use quote::{quote, ToTokens, TokenStreamExt}; +use syn::parenthesized; use syn::parse::{Parse, ParseBuffer}; -use syn::{parenthesized, token::Paren}; +use syn::token::Paren; /// A parsed `#[pg_operator]` operator. /// diff --git a/pgx-utils/src/sql_entity_graph/pg_extern/returning.rs b/pgx-utils/src/sql_entity_graph/pg_extern/returning.rs index 73de5f138..68bc1120c 100644 --- a/pgx-utils/src/sql_entity_graph/pg_extern/returning.rs +++ b/pgx-utils/src/sql_entity_graph/pg_extern/returning.rs @@ -18,11 +18,9 @@ use crate::sql_entity_graph::UsedType; use proc_macro2::TokenStream as TokenStream2; use quote::{quote, ToTokens, TokenStreamExt}; use std::convert::TryFrom; -use syn::{ - parse::{Parse, ParseStream}, - spanned::Spanned, - Token, -}; +use syn::parse::{Parse, ParseStream}; +use syn::spanned::Spanned; +use syn::Token; #[derive(Debug, Clone)] pub struct ReturningIteratedItem { @@ -34,14 +32,8 @@ pub struct ReturningIteratedItem { pub enum Returning { None, Type(UsedType), - SetOf { - ty: UsedType, - optional: bool, - }, - Iterated { - tys: Vec, - optional: bool, - }, + SetOf { ty: UsedType, optional: bool }, + Iterated { tys: Vec, optional: bool }, // /// Technically we don't ever create this, singe triggers have their own macro. // Trigger, } @@ -51,9 +43,9 @@ impl Returning { let mac = &type_macro.mac; let archetype = mac.path.segments.last().unwrap(); match archetype.ident.to_string().as_str() { - "composite_type" => Ok(Returning::Type(UsedType::new(syn::Type::Macro( - type_macro.clone(), - ))?)), + "composite_type" => { + Ok(Returning::Type(UsedType::new(syn::Type::Macro(type_macro.clone()))?)) + } _ => unimplemented!("Don't support anything other than `composite_type!()`"), } } @@ -165,10 +157,7 @@ impl TryFrom<&syn::ReturnType> for Returning { )) } }; - Ok(Returning::SetOf { - ty: used_ty, - optional, - }) + Ok(Returning::SetOf { ty: used_ty, optional }) } else if saw_table_iterator { let iterator_path = if saw_option_ident { let inner_path = @@ -403,36 +392,12 @@ impl Parse for NameMacro { .parse::() .map(|v| v.to_string()) // Avoid making folks unable to use rust keywords. - .or_else(|_| { - input - .parse::() - .map(|_| String::from("type")) - }) - .or_else(|_| { - input - .parse::() - .map(|_| String::from("mod")) - }) - .or_else(|_| { - input - .parse::() - .map(|_| String::from("extern")) - }) - .or_else(|_| { - input - .parse::() - .map(|_| String::from("async")) - }) - .or_else(|_| { - input - .parse::() - .map(|_| String::from("crate")) - }) - .or_else(|_| { - input - .parse::() - .map(|_| String::from("use")) - })?; + .or_else(|_| input.parse::().map(|_| String::from("type"))) + .or_else(|_| input.parse::().map(|_| String::from("mod"))) + .or_else(|_| input.parse::().map(|_| String::from("extern"))) + .or_else(|_| input.parse::().map(|_| String::from("async"))) + .or_else(|_| input.parse::().map(|_| String::from("crate"))) + .or_else(|_| input.parse::().map(|_| String::from("use")))?; let _comma: Token![,] = input.parse()?; let ty: syn::Type = input.parse()?; diff --git a/pgx-utils/src/sql_entity_graph/pg_extern/search_path.rs b/pgx-utils/src/sql_entity_graph/pg_extern/search_path.rs index 6cfa25fe7..0a62aef17 100644 --- a/pgx-utils/src/sql_entity_graph/pg_extern/search_path.rs +++ b/pgx-utils/src/sql_entity_graph/pg_extern/search_path.rs @@ -16,11 +16,9 @@ to the `pgx` framework and very subject to change between versions. While you ma */ use proc_macro2::TokenStream as TokenStream2; use quote::{quote, ToTokens}; -use syn::{ - parse::{Parse, ParseStream}, - punctuated::Punctuated, - Token, -}; +use syn::parse::{Parse, ParseStream}; +use syn::punctuated::Punctuated; +use syn::Token; #[derive(Debug, Clone)] pub struct SearchPath { @@ -64,9 +62,7 @@ pub struct SearchPathList { impl Parse for SearchPathList { fn parse(input: ParseStream) -> Result { Ok(Self { - fields: input - .parse_terminated(SearchPath::parse) - .expect(&format!("Got {}", input)), + fields: input.parse_terminated(SearchPath::parse).expect(&format!("Got {}", input)), }) } } diff --git a/pgx-utils/src/sql_entity_graph/pg_trigger/attribute.rs b/pgx-utils/src/sql_entity_graph/pg_trigger/attribute.rs index a99f3642c..77c8c9012 100644 --- a/pgx-utils/src/sql_entity_graph/pg_trigger/attribute.rs +++ b/pgx-utils/src/sql_entity_graph/pg_trigger/attribute.rs @@ -8,10 +8,8 @@ to the `pgx` framework and very subject to change between versions. While you ma */ use crate::sql_entity_graph::ToSqlConfig; use proc_macro2::Span; -use syn::{ - parse::{Parse, ParseStream}, - Token, -}; +use syn::parse::{Parse, ParseStream}; +use syn::Token; #[derive(Debug, Clone, Hash, Eq, PartialEq)] pub enum PgTriggerAttribute { diff --git a/pgx-utils/src/sql_entity_graph/pg_trigger/entity.rs b/pgx-utils/src/sql_entity_graph/pg_trigger/entity.rs index 2cc2f5613..709f4e3a7 100644 --- a/pgx-utils/src/sql_entity_graph/pg_trigger/entity.rs +++ b/pgx-utils/src/sql_entity_graph/pg_trigger/entity.rs @@ -9,11 +9,9 @@ to the `pgx` framework and very subject to change between versions. While you ma use crate::sql_entity_graph::{ PgxSql, SqlGraphEntity, SqlGraphIdentifier, ToSql, ToSqlConfigEntity, }; -use core::{ - cmp::{Eq, Ord, Ordering, PartialEq, PartialOrd}, - fmt::Debug, - hash::Hash, -}; +use core::cmp::{Eq, Ord, Ordering, PartialEq, PartialOrd}; +use core::fmt::Debug; +use core::hash::Hash; #[derive(Debug, Clone, Hash, PartialEq, Eq)] pub struct PgTriggerEntity { diff --git a/pgx-utils/src/sql_entity_graph/pg_trigger/mod.rs b/pgx-utils/src/sql_entity_graph/pg_trigger/mod.rs index d865d781a..90a3b9b3c 100644 --- a/pgx-utils/src/sql_entity_graph/pg_trigger/mod.rs +++ b/pgx-utils/src/sql_entity_graph/pg_trigger/mod.rs @@ -12,8 +12,7 @@ pub mod entity; use crate::sql_entity_graph::ToSqlConfig; use attribute::PgTriggerAttribute; use proc_macro2::{Span, TokenStream as TokenStream2}; -use quote::ToTokens; -use quote::{quote, TokenStreamExt}; +use quote::{quote, ToTokens, TokenStreamExt}; use syn::{ItemFn, Token}; #[derive(Debug, Clone)] @@ -39,10 +38,9 @@ impl PgTrigger { .map(|PgTriggerAttribute::Sql(mut config)| { if let Some(ref mut content) = config.content { let value = content.value(); - let updated_value = value.replace( - "@FUNCTION_NAME@", - &*(func.sig.ident.to_string() + "_wrapper"), - ) + "\n"; + let updated_value = value + .replace("@FUNCTION_NAME@", &*(func.sig.ident.to_string() + "_wrapper")) + + "\n"; *content = syn::LitStr::new(&updated_value, Span::call_site()); }; config @@ -53,18 +51,12 @@ impl PgTrigger { crate::ident_is_acceptable_to_postgres(&func.sig.ident)?; } - Ok(Self { - func, - to_sql_config, - }) + Ok(Self { func, to_sql_config }) } pub fn entity_tokens(&self) -> Result { let sql_graph_entity_fn_name = syn::Ident::new( - &format!( - "__pgx_internals_trigger_{}", - self.func.sig.ident.to_string() - ), + &format!("__pgx_internals_trigger_{}", self.func.sig.ident.to_string()), self.func.sig.ident.span(), ); let func_sig_ident = &self.func.sig.ident; @@ -140,15 +132,9 @@ impl PgTrigger { impl ToTokens for PgTrigger { fn to_tokens(&self, tokens: &mut TokenStream2) { - let entity_func = self - .entity_tokens() - .expect("Generating entity function for trigger"); - let wrapper_func = self - .wrapper_tokens() - .expect("Generating wrappper function for trigger"); - let finfo_func = self - .finfo_tokens() - .expect("Generating finfo function for trigger"); + let entity_func = self.entity_tokens().expect("Generating entity function for trigger"); + let wrapper_func = self.wrapper_tokens().expect("Generating wrappper function for trigger"); + let finfo_func = self.finfo_tokens().expect("Generating finfo function for trigger"); let func = &self.func; let items = quote! { diff --git a/pgx-utils/src/sql_entity_graph/pgx_attribute.rs b/pgx-utils/src/sql_entity_graph/pgx_attribute.rs index 05486fc7a..0f488f5b5 100644 --- a/pgx-utils/src/sql_entity_graph/pgx_attribute.rs +++ b/pgx-utils/src/sql_entity_graph/pgx_attribute.rs @@ -15,8 +15,8 @@ to the `pgx` framework and very subject to change between versions. While you ma */ use syn::parse::{Parse, ParseStream}; -use syn::{parenthesized, punctuated::Punctuated}; -use syn::{token, Token}; +use syn::punctuated::Punctuated; +use syn::{parenthesized, token, Token}; /// This struct is intented to represent the contents of the `#[pgx]` attribute when parsed. /// @@ -34,10 +34,7 @@ impl Parse for PgxAttribute { fn parse(input: ParseStream<'_>) -> syn::Result { let parser = Punctuated::::parse_terminated; let punctuated = input.call(parser)?; - let args = punctuated - .into_pairs() - .map(|p| p.into_value()) - .collect::>(); + let args = punctuated.into_pairs().map(|p| p.into_value()).collect::>(); Ok(Self { args }) } } diff --git a/pgx-utils/src/sql_entity_graph/pgx_sql.rs b/pgx-utils/src/sql_entity_graph/pgx_sql.rs index 0c3e4e887..84d9a6cb0 100644 --- a/pgx-utils/src/sql_entity_graph/pgx_sql.rs +++ b/pgx-utils/src/sql_entity_graph/pgx_sql.rs @@ -17,29 +17,30 @@ to the `pgx` framework and very subject to change between versions. While you ma use eyre::{eyre, WrapErr}; use owo_colors::{OwoColorize, XtermColors}; -use petgraph::{dot::Dot, graph::NodeIndex, stable_graph::StableGraph}; -use std::{any::TypeId, collections::HashMap, fmt::Debug, path::Path}; +use petgraph::dot::Dot; +use petgraph::graph::NodeIndex; +use petgraph::stable_graph::StableGraph; +use std::any::TypeId; +use std::collections::HashMap; +use std::fmt::Debug; +use std::path::Path; use tracing::instrument; -use crate::sql_entity_graph::{ - aggregate::entity::PgAggregateEntity, - control_file::ControlFile, - extension_sql::{ - entity::{ExtensionSqlEntity, SqlDeclaredEntity}, - SqlDeclared, - }, - mapping::RustSourceOnlySqlMapping, - pg_extern::entity::PgExternEntity, - pg_trigger::entity::PgTriggerEntity, - positioning_ref::PositioningRef, - postgres_enum::entity::PostgresEnumEntity, - postgres_hash::entity::PostgresHashEntity, - postgres_ord::entity::PostgresOrdEntity, - postgres_type::entity::PostgresTypeEntity, - schema::entity::SchemaEntity, - to_sql::ToSql, - SqlGraphEntity, SqlGraphIdentifier, -}; +use crate::sql_entity_graph::aggregate::entity::PgAggregateEntity; +use crate::sql_entity_graph::control_file::ControlFile; +use crate::sql_entity_graph::extension_sql::entity::{ExtensionSqlEntity, SqlDeclaredEntity}; +use crate::sql_entity_graph::extension_sql::SqlDeclared; +use crate::sql_entity_graph::mapping::RustSourceOnlySqlMapping; +use crate::sql_entity_graph::pg_extern::entity::PgExternEntity; +use crate::sql_entity_graph::pg_trigger::entity::PgTriggerEntity; +use crate::sql_entity_graph::positioning_ref::PositioningRef; +use crate::sql_entity_graph::postgres_enum::entity::PostgresEnumEntity; +use crate::sql_entity_graph::postgres_hash::entity::PostgresHashEntity; +use crate::sql_entity_graph::postgres_ord::entity::PostgresOrdEntity; +use crate::sql_entity_graph::postgres_type::entity::PostgresTypeEntity; +use crate::sql_entity_graph::schema::entity::SchemaEntity; +use crate::sql_entity_graph::to_sql::ToSql; +use crate::sql_entity_graph::{SqlGraphEntity, SqlGraphIdentifier}; use super::{PgExternReturnEntity, PgExternReturnEntityIteratedItem}; @@ -96,9 +97,7 @@ impl PgxSql { extension_name: String, versioned_so: bool, ) -> eyre::Result { - let RustToSqlMapping { - rust_source_to_sql: source_mappings, - } = sql_mappings; + let RustToSqlMapping { rust_source_to_sql: source_mappings } = sql_mappings; let mut graph = StableGraph::new(); @@ -242,10 +241,7 @@ impl PgxSql { connect_triggers(&mut graph, &mapped_triggers, &mapped_schemas); let this = Self { - source_mappings: source_mappings - .into_iter() - .map(|x| (x.rust.clone(), x)) - .collect(), + source_mappings: source_mappings.into_iter().map(|x| (x.rust.clone(), x)).collect(), control: control, schemas: mapped_schemas, extension_sqls: mapped_extension_sqls, @@ -269,11 +265,9 @@ impl PgxSql { #[instrument(level = "error", skip(self))] pub fn to_file(&self, file: impl AsRef + Debug) -> eyre::Result<()> { - use std::{ - fs::{create_dir_all, File}, - io::Write, - path::Path, - }; + use std::fs::{create_dir_all, File}; + use std::io::Write; + use std::path::Path; let generated = self.to_sql()?; let path = Path::new(file.as_ref()); @@ -291,12 +285,10 @@ impl PgxSql { let generated = self.to_sql()?; if atty::is(atty::Stream::Stdout) { - use syntect::{ - easy::HighlightLines, - highlighting::{Style, ThemeSet}, - parsing::SyntaxSet, - util::LinesWithEndings, - }; + use syntect::easy::HighlightLines; + use syntect::highlighting::{Style, ThemeSet}; + use syntect::parsing::SyntaxSet; + use syntect::util::LinesWithEndings; let ps = SyntaxSet::load_defaults_newlines(); let theme_bytes = include_str!("../../assets/ansi.tmTheme").as_bytes(); let mut theme_reader = std::io::Cursor::new(theme_bytes); @@ -333,17 +325,12 @@ impl PgxSql { #[instrument(level = "error", err, skip(self))] pub fn to_dot(&self, file: impl AsRef + Debug) -> eyre::Result<()> { - use std::{ - fs::{create_dir_all, File}, - io::Write, - path::Path, - }; + use std::fs::{create_dir_all, File}; + use std::io::Write; + use std::path::Path; let generated = Dot::with_attr_getters( &self.graph, - &[ - petgraph::dot::Config::EdgeNoLabel, - petgraph::dot::Config::NodeNoLabel, - ], + &[petgraph::dot::Config::EdgeNoLabel, petgraph::dot::Config::NodeNoLabel], &|_graph, edge| match edge.weight() { SqlGraphRelationship::RequiredBy => format!(r#"color = "gray""#), SqlGraphRelationship::RequiredByArg => format!(r#"color = "black""#), @@ -439,10 +426,7 @@ impl PgxSql { pub fn to_sql(&self) -> eyre::Result { let mut full_sql = String::new(); for step_id in petgraph::algo::toposort(&self.graph, None).map_err(|e| { - eyre!( - "Failed to toposort SQL entities, node with cycle: {:?}", - self.graph[e.node_id()] - ) + eyre!("Failed to toposort SQL entities, node with cycle: {:?}", self.graph[e.node_id()]) })? { let step = &self.graph[step_id]; @@ -507,11 +491,7 @@ fn initialize_extension_sqls<'a>( graph: &'a mut StableGraph, root: NodeIndex, extension_sqls: Vec, -) -> eyre::Result<( - HashMap, - Option, - Option, -)> { +) -> eyre::Result<(HashMap, Option, Option)> { let mut bootstrap = None; let mut finalize = None; let mut mapped_extension_sqls = HashMap::default(); @@ -785,10 +765,7 @@ fn initialize_externs( externs: Vec, mapped_types: &HashMap, mapped_enums: &HashMap, -) -> eyre::Result<( - HashMap, - HashMap, -)> { +) -> eyre::Result<(HashMap, HashMap)> { let mut mapped_externs = HashMap::default(); let mut mapped_builtin_types = HashMap::default(); for item in externs { @@ -812,13 +789,13 @@ fn initialize_externs( } } if !found { - mapped_builtin_types - .entry(arg.used_ty.full_path.to_string()) - .or_insert_with(|| { + mapped_builtin_types.entry(arg.used_ty.full_path.to_string()).or_insert_with( + || { graph.add_node(SqlGraphEntity::BuiltinType( arg.used_ty.full_path.to_string(), )) - }); + }, + ); } } @@ -839,21 +816,14 @@ fn initialize_externs( } } if !found { - mapped_builtin_types - .entry(ty.full_path.to_string()) - .or_insert_with(|| { - graph.add_node(SqlGraphEntity::BuiltinType(ty.full_path.to_string())) - }); + mapped_builtin_types.entry(ty.full_path.to_string()).or_insert_with(|| { + graph.add_node(SqlGraphEntity::BuiltinType(ty.full_path.to_string())) + }); } } - PgExternReturnEntity::Iterated { - tys: iterated_returns, - optional: _, - } => { - for PgExternReturnEntityIteratedItem { - ty: return_ty_entity, - .. - } in iterated_returns + PgExternReturnEntity::Iterated { tys: iterated_returns, optional: _ } => { + for PgExternReturnEntityIteratedItem { ty: return_ty_entity, .. } in + iterated_returns { let mut found = false; for (ty_item, &_ty_index) in mapped_types { @@ -977,10 +947,9 @@ fn connect_externs( } } if !found { - let builtin_index = builtin_types.get(arg.used_ty.full_path).expect(&format!( - "Could not fetch Builtin Type {}.", - arg.used_ty.full_path - )); + let builtin_index = builtin_types + .get(arg.used_ty.full_path) + .expect(&format!("Could not fetch Builtin Type {}.", arg.used_ty.full_path)); tracing::debug!(from = %item.rust_identifier(), to = %arg.rust_identifier(), "Adding Extern(arg) after BuiltIn Type (due to argument) edge"); graph.add_edge(*builtin_index, index, SqlGraphRelationship::RequiredByArg); } @@ -1027,11 +996,7 @@ fn connect_externs( .get(&ty.full_path.to_string()) .expect(&format!("Could not fetch Builtin Type {}.", ty.full_path)); tracing::debug!(from = ?item.full_path, to = %ty.full_path, "Adding Extern(return) after BuiltIn Type (due to return) edge"); - graph.add_edge( - *builtin_index, - index, - SqlGraphRelationship::RequiredByReturn, - ); + graph.add_edge(*builtin_index, index, SqlGraphRelationship::RequiredByReturn); } if !found { for (ext_item, ext_index) in extension_sqls { @@ -1049,14 +1014,8 @@ fn connect_externs( } } } - PgExternReturnEntity::Iterated { - tys: iterated_returns, - optional: _, - } => { - for PgExternReturnEntityIteratedItem { - ty: type_entity, .. - } in iterated_returns - { + PgExternReturnEntity::Iterated { tys: iterated_returns, optional: _ } => { + for PgExternReturnEntityIteratedItem { ty: type_entity, .. } in iterated_returns { let mut found = false; for (ty_item, &ty_index) in types { if ty_item.id_matches(&type_entity.ty_id) { @@ -1081,9 +1040,8 @@ fn connect_externs( } } if !found { - let builtin_index = builtin_types - .get(&type_entity.ty_source.to_string()) - .expect(&format!( + let builtin_index = + builtin_types.get(&type_entity.ty_source.to_string()).expect(&format!( "Could not fetch Builtin Type {}.", type_entity.ty_source, )); @@ -1293,13 +1251,13 @@ fn initialize_aggregates( } } if !found { - mapped_builtin_types - .entry(arg.used_ty.full_path.to_string()) - .or_insert_with(|| { + mapped_builtin_types.entry(arg.used_ty.full_path.to_string()).or_insert_with( + || { graph.add_node(SqlGraphEntity::BuiltinType( arg.used_ty.full_path.to_string(), )) - }); + }, + ); } } @@ -1350,10 +1308,9 @@ fn connect_aggregate( enums, ); if !found { - let builtin_index = builtin_types.get(arg.used_ty.full_path).expect(&format!( - "Could not fetch Builtin Type {}.", - arg.used_ty.full_path - )); + let builtin_index = builtin_types + .get(arg.used_ty.full_path) + .expect(&format!("Could not fetch Builtin Type {}.", arg.used_ty.full_path)); tracing::debug!(from = %item.rust_identifier(), to = %arg.used_ty.full_path, "Adding Aggregate after BuiltIn Type edge"); graph.add_edge(*builtin_index, index, SqlGraphRelationship::RequiredByArg); } @@ -1370,10 +1327,9 @@ fn connect_aggregate( enums, ); if !found { - let builtin_index = builtin_types.get(arg.used_ty.full_path).expect(&format!( - "Could not fetch Builtin Type {}.", - arg.used_ty.full_path - )); + let builtin_index = builtin_types + .get(arg.used_ty.full_path) + .expect(&format!("Could not fetch Builtin Type {}.", arg.used_ty.full_path)); tracing::debug!(from = %item.rust_identifier(), to = %arg.used_ty.full_path, "Adding Aggregate after BuiltIn Type edge"); graph.add_edge(*builtin_index, index, SqlGraphRelationship::RequiredByArg); } @@ -1501,16 +1457,7 @@ fn connect_aggregates( externs: &HashMap, ) -> eyre::Result<()> { for (item, &index) in aggregates { - connect_aggregate( - graph, - item, - index, - schemas, - types, - enums, - builtin_types, - externs, - )? + connect_aggregate(graph, item, index, schemas, types, enums, builtin_types, externs)? } Ok(()) } diff --git a/pgx-utils/src/sql_entity_graph/postgres_enum/entity.rs b/pgx-utils/src/sql_entity_graph/postgres_enum/entity.rs index ada1386cf..ddd7c5d78 100644 --- a/pgx-utils/src/sql_entity_graph/postgres_enum/entity.rs +++ b/pgx-utils/src/sql_entity_graph/postgres_enum/entity.rs @@ -14,17 +14,14 @@ Use of this source code is governed by the MIT license that can be found in the to the `pgx` framework and very subject to change between versions. While you may use this, please do it with caution. */ -use crate::sql_entity_graph::{ - mapping::RustSqlMapping, - pgx_sql::PgxSql, - to_sql::{entity::ToSqlConfigEntity, ToSql}, - SqlGraphEntity, SqlGraphIdentifier, -}; - -use std::{ - cmp::Ordering, - hash::{Hash, Hasher}, -}; +use crate::sql_entity_graph::mapping::RustSqlMapping; +use crate::sql_entity_graph::pgx_sql::PgxSql; +use crate::sql_entity_graph::to_sql::entity::ToSqlConfigEntity; +use crate::sql_entity_graph::to_sql::ToSql; +use crate::sql_entity_graph::{SqlGraphEntity, SqlGraphIdentifier}; + +use std::cmp::Ordering; +use std::hash::{Hash, Hasher}; /// The output of a [`PostgresEnum`](crate::sql_entity_graph::postgres_enum::PostgresEnum) from `quote::ToTokens::to_tokens`. #[derive(Debug, Clone, PartialEq, Eq)] @@ -47,9 +44,7 @@ impl Hash for PostgresEnumEntity { impl Ord for PostgresEnumEntity { fn cmp(&self, other: &Self) -> Ordering { - self.file - .cmp(other.file) - .then_with(|| self.file.cmp(other.file)) + self.file.cmp(other.file).then_with(|| self.file.cmp(other.file)) } } diff --git a/pgx-utils/src/sql_entity_graph/postgres_enum/mod.rs b/pgx-utils/src/sql_entity_graph/postgres_enum/mod.rs index b7ceba224..5183e9f0d 100644 --- a/pgx-utils/src/sql_entity_graph/postgres_enum/mod.rs +++ b/pgx-utils/src/sql_entity_graph/postgres_enum/mod.rs @@ -19,11 +19,9 @@ pub mod entity; use crate::sql_entity_graph::ToSqlConfig; use proc_macro2::{Span, TokenStream as TokenStream2}; use quote::{quote, ToTokens, TokenStreamExt}; -use syn::{ - parse::{Parse, ParseStream}, - DeriveInput, Generics, ItemEnum, -}; -use syn::{punctuated::Punctuated, Ident, Token}; +use syn::parse::{Parse, ParseStream}; +use syn::punctuated::Punctuated; +use syn::{DeriveInput, Generics, Ident, ItemEnum, Token}; /// A parsed `#[derive(PostgresEnum)]` item. /// @@ -66,12 +64,7 @@ impl PostgresEnum { crate::ident_is_acceptable_to_postgres(&name)?; } - Ok(Self { - name, - generics, - variants, - to_sql_config, - }) + Ok(Self { name, generics, variants, to_sql_config }) } pub fn from_derive_input(derive_input: DeriveInput) -> Result { @@ -83,12 +76,7 @@ impl PostgresEnum { return Err(syn::Error::new(derive_input.ident.span(), "expected enum")) } }; - Self::new( - derive_input.ident, - derive_input.generics, - data_enum.variants, - to_sql_config, - ) + Self::new(derive_input.ident, derive_input.generics, data_enum.variants, to_sql_config) } } @@ -97,12 +85,7 @@ impl Parse for PostgresEnum { let parsed: ItemEnum = input.parse()?; let to_sql_config = ToSqlConfig::from_attributes(parsed.attrs.as_slice())?.unwrap_or_default(); - Self::new( - parsed.ident, - parsed.generics, - parsed.variants, - to_sql_config, - ) + Self::new(parsed.ident, parsed.generics, parsed.variants, to_sql_config) } } diff --git a/pgx-utils/src/sql_entity_graph/postgres_hash/entity.rs b/pgx-utils/src/sql_entity_graph/postgres_hash/entity.rs index 17abd601a..fcd1fabd3 100644 --- a/pgx-utils/src/sql_entity_graph/postgres_hash/entity.rs +++ b/pgx-utils/src/sql_entity_graph/postgres_hash/entity.rs @@ -14,11 +14,10 @@ Use of this source code is governed by the MIT license that can be found in the to the `pgx` framework and very subject to change between versions. While you may use this, please do it with caution. */ -use crate::sql_entity_graph::{ - pgx_sql::PgxSql, - to_sql::{entity::ToSqlConfigEntity, ToSql}, - SqlGraphEntity, SqlGraphIdentifier, -}; +use crate::sql_entity_graph::pgx_sql::PgxSql; +use crate::sql_entity_graph::to_sql::entity::ToSqlConfigEntity; +use crate::sql_entity_graph::to_sql::ToSql; +use crate::sql_entity_graph::{SqlGraphEntity, SqlGraphIdentifier}; use std::cmp::Ordering; /// The output of a [`PostgresHash`](crate::sql_entity_graph::postgres_hash::PostgresHash) from `quote::ToTokens::to_tokens`. @@ -41,9 +40,7 @@ impl PostgresHashEntity { impl Ord for PostgresHashEntity { fn cmp(&self, other: &Self) -> Ordering { - self.file - .cmp(other.file) - .then_with(|| self.file.cmp(other.file)) + self.file.cmp(other.file).then_with(|| self.file.cmp(other.file)) } } diff --git a/pgx-utils/src/sql_entity_graph/postgres_hash/mod.rs b/pgx-utils/src/sql_entity_graph/postgres_hash/mod.rs index 81913b3f6..2e9928575 100644 --- a/pgx-utils/src/sql_entity_graph/postgres_hash/mod.rs +++ b/pgx-utils/src/sql_entity_graph/postgres_hash/mod.rs @@ -18,10 +18,8 @@ pub mod entity; use proc_macro2::{Span, TokenStream as TokenStream2}; use quote::{quote, ToTokens, TokenStreamExt}; -use syn::{ - parse::{Parse, ParseStream}, - DeriveInput, Ident, -}; +use syn::parse::{Parse, ParseStream}; +use syn::{DeriveInput, Ident}; use crate::sql_entity_graph::ToSqlConfig; @@ -79,10 +77,7 @@ impl PostgresHash { if !to_sql_config.overrides_default() { crate::ident_is_acceptable_to_postgres(&name)?; } - Ok(Self { - name, - to_sql_config, - }) + Ok(Self { name, to_sql_config }) } pub fn from_derive_input(derive_input: DeriveInput) -> Result { @@ -111,10 +106,8 @@ impl Parse for PostgresHash { impl ToTokens for PostgresHash { fn to_tokens(&self, tokens: &mut TokenStream2) { let name = &self.name; - let sql_graph_entity_fn_name = syn::Ident::new( - &format!("__pgx_internals_hash_{}", self.name), - Span::call_site(), - ); + let sql_graph_entity_fn_name = + syn::Ident::new(&format!("__pgx_internals_hash_{}", self.name), Span::call_site()); let to_sql_config = &self.to_sql_config; let inv = quote! { #[no_mangle] diff --git a/pgx-utils/src/sql_entity_graph/postgres_ord/entity.rs b/pgx-utils/src/sql_entity_graph/postgres_ord/entity.rs index 40096c822..ee9febd52 100644 --- a/pgx-utils/src/sql_entity_graph/postgres_ord/entity.rs +++ b/pgx-utils/src/sql_entity_graph/postgres_ord/entity.rs @@ -14,11 +14,10 @@ Use of this source code is governed by the MIT license that can be found in the to the `pgx` framework and very subject to change between versions. While you may use this, please do it with caution. */ -use crate::sql_entity_graph::{ - pgx_sql::PgxSql, - to_sql::{entity::ToSqlConfigEntity, ToSql}, - SqlGraphEntity, SqlGraphIdentifier, -}; +use crate::sql_entity_graph::pgx_sql::PgxSql; +use crate::sql_entity_graph::to_sql::entity::ToSqlConfigEntity; +use crate::sql_entity_graph::to_sql::ToSql; +use crate::sql_entity_graph::{SqlGraphEntity, SqlGraphIdentifier}; use std::cmp::Ordering; /// The output of a [`PostgresOrd`](crate::sql_entity_graph::postgres_ord::PostgresOrd) from `quote::ToTokens::to_tokens`. @@ -61,9 +60,7 @@ impl PostgresOrdEntity { impl Ord for PostgresOrdEntity { fn cmp(&self, other: &Self) -> Ordering { - self.file - .cmp(other.file) - .then_with(|| self.file.cmp(other.file)) + self.file.cmp(other.file).then_with(|| self.file.cmp(other.file)) } } diff --git a/pgx-utils/src/sql_entity_graph/postgres_ord/mod.rs b/pgx-utils/src/sql_entity_graph/postgres_ord/mod.rs index 0bf70fd81..2b15481e6 100644 --- a/pgx-utils/src/sql_entity_graph/postgres_ord/mod.rs +++ b/pgx-utils/src/sql_entity_graph/postgres_ord/mod.rs @@ -18,10 +18,8 @@ pub mod entity; use proc_macro2::{Span, TokenStream as TokenStream2}; use quote::{quote, ToTokens, TokenStreamExt}; -use syn::{ - parse::{Parse, ParseStream}, - DeriveInput, Ident, -}; +use syn::parse::{Parse, ParseStream}; +use syn::{DeriveInput, Ident}; use crate::sql_entity_graph::ToSqlConfig; @@ -80,10 +78,7 @@ impl PostgresOrd { crate::ident_is_acceptable_to_postgres(&name)?; } - Ok(Self { - name, - to_sql_config, - }) + Ok(Self { name, to_sql_config }) } pub fn from_derive_input(derive_input: DeriveInput) -> Result { @@ -111,10 +106,8 @@ impl Parse for PostgresOrd { impl ToTokens for PostgresOrd { fn to_tokens(&self, tokens: &mut TokenStream2) { let name = &self.name; - let sql_graph_entity_fn_name = syn::Ident::new( - &format!("__pgx_internals_ord_{}", self.name), - Span::call_site(), - ); + let sql_graph_entity_fn_name = + syn::Ident::new(&format!("__pgx_internals_ord_{}", self.name), Span::call_site()); let to_sql_config = &self.to_sql_config; let inv = quote! { #[no_mangle] diff --git a/pgx-utils/src/sql_entity_graph/postgres_type/entity.rs b/pgx-utils/src/sql_entity_graph/postgres_type/entity.rs index 33f479210..2c761c5c2 100644 --- a/pgx-utils/src/sql_entity_graph/postgres_type/entity.rs +++ b/pgx-utils/src/sql_entity_graph/postgres_type/entity.rs @@ -14,18 +14,15 @@ Use of this source code is governed by the MIT license that can be found in the to the `pgx` framework and very subject to change between versions. While you may use this, please do it with caution. */ -use crate::sql_entity_graph::{ - mapping::RustSqlMapping, - pgx_sql::PgxSql, - to_sql::{entity::ToSqlConfigEntity, ToSql}, - SqlGraphEntity, SqlGraphIdentifier, -}; +use crate::sql_entity_graph::mapping::RustSqlMapping; +use crate::sql_entity_graph::pgx_sql::PgxSql; +use crate::sql_entity_graph::to_sql::entity::ToSqlConfigEntity; +use crate::sql_entity_graph::to_sql::ToSql; +use crate::sql_entity_graph::{SqlGraphEntity, SqlGraphIdentifier}; use eyre::eyre; -use std::{ - cmp::Ordering, - hash::{Hash, Hasher}, -}; +use std::cmp::Ordering; +use std::hash::{Hash, Hasher}; /// The output of a [`PostgresType`](crate::sql_entity_graph::postgres_type::PostgresType) from `quote::ToTokens::to_tokens`. #[derive(Debug, Clone, PartialEq, Eq)] @@ -51,9 +48,7 @@ impl Hash for PostgresTypeEntity { impl Ord for PostgresTypeEntity { fn cmp(&self, other: &Self) -> Ordering { - self.file - .cmp(other.file) - .then_with(|| self.file.cmp(other.file)) + self.file.cmp(other.file).then_with(|| self.file.cmp(other.file)) } } @@ -116,11 +111,7 @@ impl ToSql for PostgresTypeEntity { let in_fn_path = format!( "{module_path}{maybe_colons}{in_fn}", module_path = in_fn_module_path, - maybe_colons = if !in_fn_module_path.is_empty() { - "::" - } else { - "" - }, + maybe_colons = if !in_fn_module_path.is_empty() { "::" } else { "" }, in_fn = item.in_fn, ); let (_, _index) = context @@ -150,11 +141,7 @@ impl ToSql for PostgresTypeEntity { let out_fn_path = format!( "{module_path}{maybe_colons}{out_fn}", module_path = out_fn_module_path, - maybe_colons = if !out_fn_module_path.is_empty() { - "::" - } else { - "" - }, + maybe_colons = if !out_fn_module_path.is_empty() { "::" } else { "" }, out_fn = item.out_fn, ); let (_, _index) = context diff --git a/pgx-utils/src/sql_entity_graph/postgres_type/mod.rs b/pgx-utils/src/sql_entity_graph/postgres_type/mod.rs index 02ece0e44..555ee6857 100644 --- a/pgx-utils/src/sql_entity_graph/postgres_type/mod.rs +++ b/pgx-utils/src/sql_entity_graph/postgres_type/mod.rs @@ -18,10 +18,8 @@ pub mod entity; use proc_macro2::{Ident, Span, TokenStream as TokenStream2}; use quote::{quote, ToTokens, TokenStreamExt}; -use syn::{ - parse::{Parse, ParseStream}, - DeriveInput, Generics, ItemStruct, -}; +use syn::parse::{Parse, ParseStream}; +use syn::{DeriveInput, Generics, ItemStruct}; use crate::sql_entity_graph::ToSqlConfig; @@ -67,23 +65,14 @@ impl PostgresType { if !to_sql_config.overrides_default() { crate::ident_is_acceptable_to_postgres(&name)?; } - Ok(Self { - generics, - name, - in_fn, - out_fn, - to_sql_config, - }) + Ok(Self { generics, name, in_fn, out_fn, to_sql_config }) } pub fn from_derive_input(derive_input: DeriveInput) -> Result { let _data_struct = match derive_input.data { syn::Data::Struct(data_struct) => data_struct, syn::Data::Union(_) | syn::Data::Enum(_) => { - return Err(syn::Error::new( - derive_input.ident.span(), - "expected struct", - )) + return Err(syn::Error::new(derive_input.ident.span(), "expected struct")) } }; let to_sql_config = @@ -111,21 +100,11 @@ impl Parse for PostgresType { let parsed: ItemStruct = input.parse()?; let to_sql_config = ToSqlConfig::from_attributes(parsed.attrs.as_slice())?.unwrap_or_default(); - let funcname_in = Ident::new( - &format!("{}_in", parsed.ident).to_lowercase(), - parsed.ident.span(), - ); - let funcname_out = Ident::new( - &format!("{}_out", parsed.ident).to_lowercase(), - parsed.ident.span(), - ); - Self::new( - parsed.ident, - parsed.generics, - funcname_in, - funcname_out, - to_sql_config, - ) + let funcname_in = + Ident::new(&format!("{}_in", parsed.ident).to_lowercase(), parsed.ident.span()); + let funcname_out = + Ident::new(&format!("{}_out", parsed.ident).to_lowercase(), parsed.ident.span()); + Self::new(parsed.ident, parsed.generics, funcname_in, funcname_out, to_sql_config) } } @@ -167,10 +146,8 @@ impl ToTokens for PostgresType { let in_fn = &self.in_fn; let out_fn = &self.out_fn; - let sql_graph_entity_fn_name = syn::Ident::new( - &format!("__pgx_internals_type_{}", self.name), - Span::call_site(), - ); + let sql_graph_entity_fn_name = + syn::Ident::new(&format!("__pgx_internals_type_{}", self.name), Span::call_site()); let to_sql_config = &self.to_sql_config; diff --git a/pgx-utils/src/sql_entity_graph/schema/entity.rs b/pgx-utils/src/sql_entity_graph/schema/entity.rs index 1d84eee91..5b80ef7f7 100644 --- a/pgx-utils/src/sql_entity_graph/schema/entity.rs +++ b/pgx-utils/src/sql_entity_graph/schema/entity.rs @@ -14,7 +14,9 @@ Use of this source code is governed by the MIT license that can be found in the to the `pgx` framework and very subject to change between versions. While you may use this, please do it with caution. */ -use crate::sql_entity_graph::{pgx_sql::PgxSql, to_sql::ToSql, SqlGraphEntity, SqlGraphIdentifier}; +use crate::sql_entity_graph::pgx_sql::PgxSql; +use crate::sql_entity_graph::to_sql::ToSql; +use crate::sql_entity_graph::{SqlGraphEntity, SqlGraphIdentifier}; use std::cmp::Ordering; @@ -29,9 +31,7 @@ pub struct SchemaEntity { impl Ord for SchemaEntity { fn cmp(&self, other: &Self) -> Ordering { - self.file - .cmp(other.file) - .then_with(|| self.file.cmp(other.file)) + self.file.cmp(other.file).then_with(|| self.file.cmp(other.file)) } } diff --git a/pgx-utils/src/sql_entity_graph/schema/mod.rs b/pgx-utils/src/sql_entity_graph/schema/mod.rs index 6835f6080..3620348ae 100644 --- a/pgx-utils/src/sql_entity_graph/schema/mod.rs +++ b/pgx-utils/src/sql_entity_graph/schema/mod.rs @@ -19,10 +19,8 @@ pub mod entity; use proc_macro2::{Span, TokenStream as TokenStream2}; use quote::{quote, ToTokens, TokenStreamExt}; use std::hash::{Hash, Hasher}; -use syn::{ - parse::{Parse, ParseStream}, - ItemMod, -}; +use syn::parse::{Parse, ParseStream}; +use syn::ItemMod; /// A parsed `#[pg_schema] mod example {}` item. /// @@ -63,11 +61,8 @@ impl ToTokens for Schema { let mod_token = &self.module.mod_token; let ident = &self.module.ident; - let (_content_brace, content_items) = &self - .module - .content - .as_ref() - .expect("Can only support `mod {}` right now."); + let (_content_brace, content_items) = + &self.module.content.as_ref().expect("Can only support `mod {}` right now."); // A hack until https://github.com/rust-lang/rust/issues/54725 is fixed. let mut hasher = std::collections::hash_map::DefaultHasher::new(); diff --git a/pgx-utils/src/sql_entity_graph/to_sql/entity.rs b/pgx-utils/src/sql_entity_graph/to_sql/entity.rs index 61c9f54c0..661a4ee62 100644 --- a/pgx-utils/src/sql_entity_graph/to_sql/entity.rs +++ b/pgx-utils/src/sql_entity_graph/to_sql/entity.rs @@ -14,7 +14,9 @@ Use of this source code is governed by the MIT license that can be found in the to the `pgx` framework and very subject to change between versions. While you may use this, please do it with caution. */ -use crate::sql_entity_graph::{pgx_sql::PgxSql, to_sql::ToSqlFn, SqlGraphEntity}; +use crate::sql_entity_graph::pgx_sql::PgxSql; +use crate::sql_entity_graph::to_sql::ToSqlFn; +use crate::sql_entity_graph::SqlGraphEntity; /// Represents configuration options for tuning the SQL generator. /// diff --git a/pgx-utils/src/sql_entity_graph/to_sql/mod.rs b/pgx-utils/src/sql_entity_graph/to_sql/mod.rs index 763041a51..5e9dfe7ca 100644 --- a/pgx-utils/src/sql_entity_graph/to_sql/mod.rs +++ b/pgx-utils/src/sql_entity_graph/to_sql/mod.rs @@ -23,11 +23,9 @@ use quote::{quote, ToTokens, TokenStreamExt}; use syn::spanned::Spanned; use syn::{AttrStyle, Attribute, Lit}; -use crate::sql_entity_graph::{ - pgx_attribute::{ArgValue, PgxArg, PgxAttribute}, - pgx_sql::PgxSql, - SqlGraphEntity, -}; +use crate::sql_entity_graph::pgx_attribute::{ArgValue, PgxArg, PgxAttribute}; +use crate::sql_entity_graph::pgx_sql::PgxSql; +use crate::sql_entity_graph::SqlGraphEntity; /// Able to be transformed into to SQL. pub trait ToSql { @@ -61,38 +59,22 @@ pub struct ToSqlConfig { } impl From for ToSqlConfig { fn from(enabled: bool) -> Self { - Self { - enabled, - callback: None, - content: None, - } + Self { enabled, callback: None, content: None } } } impl From for ToSqlConfig { fn from(path: syn::Path) -> Self { - Self { - enabled: true, - callback: Some(path), - content: None, - } + Self { enabled: true, callback: Some(path), content: None } } } impl From for ToSqlConfig { fn from(content: syn::LitStr) -> Self { - Self { - enabled: true, - callback: None, - content: Some(content), - } + Self { enabled: true, callback: None, content: Some(content) } } } impl Default for ToSqlConfig { fn default() -> Self { - Self { - enabled: true, - callback: None, - content: None, - } + Self { enabled: true, callback: None, content: None } } } @@ -125,11 +107,7 @@ impl ToSqlConfig { })); } ArgValue::Lit(Lit::Bool(ref b)) => { - return Ok(Some(Self { - enabled: b.value, - callback: None, - content: None, - })); + return Ok(Some(Self { enabled: b.value, callback: None, content: None })); } ArgValue::Lit(Lit::Str(ref s)) => { return Ok(Some(Self { diff --git a/pgx-utils/src/sql_entity_graph/used_type.rs b/pgx-utils/src/sql_entity_graph/used_type.rs index 7d0b224e9..9ce0ebcde 100644 --- a/pgx-utils/src/sql_entity_graph/used_type.rs +++ b/pgx-utils/src/sql_entity_graph/used_type.rs @@ -11,11 +11,9 @@ use std::ops::Deref; use crate::staticize_lifetimes; use proc_macro2::Span; use quote::ToTokens; -use syn::{ - parse::{Parse, ParseStream}, - spanned::Spanned, - Token, -}; +use syn::parse::{Parse, ParseStream}; +use syn::spanned::Spanned; +use syn::Token; use super::metadata::FunctionMetadataTypeEntity; @@ -106,10 +104,10 @@ impl UsedType { } syn::Type::Path(path) => { let segments = &path.path; - let last = segments.segments.last().ok_or(syn::Error::new( - path.span(), - "Could not read last segment of path", - ))?; + let last = segments + .segments + .last() + .ok_or(syn::Error::new(path.span(), "Could not read last segment of path"))?; match last.ident.to_string().as_str() { // Option @@ -209,14 +207,7 @@ impl UsedType { original => (original, false, None), }; - Ok(Self { - original_ty, - resolved_ty, - optional, - variadic, - default, - composite_type, - }) + Ok(Self { original_ty, resolved_ty, optional, variadic, default, composite_type }) } pub fn entity_tokens(&self) -> syn::Expr { @@ -273,10 +264,10 @@ fn resolve_vec_inner( original: syn::TypePath, ) -> syn::Result<(syn::Type, Option)> { let segments = &original.path; - let last = segments.segments.last().ok_or(syn::Error::new( - original.span(), - "Could not read last segment of path", - ))?; + let last = segments + .segments + .last() + .ok_or(syn::Error::new(original.span(), "Could not read last segment of path"))?; match &last.arguments { syn::PathArguments::AngleBracketed(path_arg) => match path_arg.args.last() { @@ -326,10 +317,11 @@ fn resolve_variadic_array_inner( mut original: syn::TypePath, ) -> syn::Result<(syn::Type, Option)> { let original_span = original.span().clone(); - let last = original.path.segments.last_mut().ok_or(syn::Error::new( - original_span, - "Could not read last segment of path", - ))?; + let last = original + .path + .segments + .last_mut() + .ok_or(syn::Error::new(original_span, "Could not read last segment of path"))?; match last.arguments { syn::PathArguments::AngleBracketed(ref mut path_arg) => { @@ -388,10 +380,11 @@ fn resolve_array_inner( mut original: syn::TypePath, ) -> syn::Result<(syn::Type, Option)> { let original_span = original.span().clone(); - let last = original.path.segments.last_mut().ok_or(syn::Error::new( - original_span, - "Could not read last segment of path", - ))?; + let last = original + .path + .segments + .last_mut() + .ok_or(syn::Error::new(original_span, "Could not read last segment of path"))?; match last.arguments { syn::PathArguments::AngleBracketed(ref mut path_arg) => { @@ -449,10 +442,10 @@ fn resolve_option_inner( original: syn::TypePath, ) -> syn::Result<(syn::Type, Option)> { let segments = &original.path; - let last = segments.segments.last().ok_or(syn::Error::new( - original.span(), - "Could not read last segment of path", - ))?; + let last = segments + .segments + .last() + .ok_or(syn::Error::new(original.span(), "Could not read last segment of path"))?; match &last.arguments { syn::PathArguments::AngleBracketed(path_arg) => match path_arg.args.first() { @@ -530,61 +523,36 @@ fn handle_default_macro(mac: &syn::Macro) -> syn::Result<(syn::Type, Option { + syn::Expr::Lit(syn::ExprLit { lit: syn::Lit::Str(def), .. }) => { let value = def.value(); Ok((true_ty, Some(value))) } - syn::Expr::Lit(syn::ExprLit { - lit: syn::Lit::Float(def), - .. - }) => { + syn::Expr::Lit(syn::ExprLit { lit: syn::Lit::Float(def), .. }) => { let value = def.base10_digits(); Ok((true_ty, Some(value.to_string()))) } - syn::Expr::Lit(syn::ExprLit { - lit: syn::Lit::Int(def), - .. - }) => { + syn::Expr::Lit(syn::ExprLit { lit: syn::Lit::Int(def), .. }) => { let value = def.base10_digits(); Ok((true_ty, Some(value.to_string()))) } - syn::Expr::Lit(syn::ExprLit { - lit: syn::Lit::Bool(def), - .. - }) => { + syn::Expr::Lit(syn::ExprLit { lit: syn::Lit::Bool(def), .. }) => { let value = def.value(); Ok((true_ty, Some(value.to_string()))) } - syn::Expr::Unary(syn::ExprUnary { - op: syn::UnOp::Neg(_), - ref expr, - .. - }) => match &**expr { - syn::Expr::Lit(syn::ExprLit { - lit: syn::Lit::Int(def), - .. - }) => { + syn::Expr::Unary(syn::ExprUnary { op: syn::UnOp::Neg(_), ref expr, .. }) => match &**expr { + syn::Expr::Lit(syn::ExprLit { lit: syn::Lit::Int(def), .. }) => { let value = def.base10_digits(); Ok((true_ty, Some("-".to_owned() + value))) } _ => { return Err(syn::Error::new( Span::call_site(), - format!( - "Unrecognized UnaryExpr in `default!()` macro, got: {:?}", - out.expr - ), + format!("Unrecognized UnaryExpr in `default!()` macro, got: {:?}", out.expr), )) } }, syn::Expr::Type(syn::ExprType { ref ty, .. }) => match ty.deref() { - syn::Type::Path(syn::TypePath { - path: syn::Path { segments, .. }, - .. - }) => { + syn::Type::Path(syn::TypePath { path: syn::Path { segments, .. }, .. }) => { let last = segments.last().expect("No last segment"); let last_string = last.ident.to_string(); if last_string.as_str() == "NULL" { @@ -609,10 +577,7 @@ fn handle_default_macro(mac: &syn::Macro) -> syn::Result<(syn::Type, Option { + syn::Expr::Path(syn::ExprPath { path: syn::Path { ref segments, .. }, .. }) => { let last = segments.last().expect("No last segment"); let last_string = last.ident.to_string(); if last_string.as_str() == "NULL" { @@ -630,10 +595,7 @@ fn handle_default_macro(mac: &syn::Macro) -> syn::Result<(syn::Type, Option { return Err(syn::Error::new( Span::call_site(), - format!( - "Unable to parse default value of `default!()` macro, got: {:?}", - out.expr - ), + format!("Unable to parse default value of `default!()` macro, got: {:?}", out.expr), )) } } diff --git a/pgx/Cargo.toml b/pgx/Cargo.toml index f3b387104..8e61abd97 100644 --- a/pgx/Cargo.toml +++ b/pgx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx" -version = "0.5.0-beta.1" +version = "0.5.0" authors = ["ZomboDB, LLC "] license = "MIT" description = "pgx: A Rust framework for creating Postgres extensions" @@ -33,9 +33,9 @@ no-default-features = true rustc-args = ["--cfg", "docsrs"] [dependencies] -pgx-macros = { path = "../pgx-macros/", version = "=0.5.0-beta.1" } -pgx-pg-sys = { path = "../pgx-pg-sys", version = "=0.5.0-beta.1" } -pgx-utils = { path = "../pgx-utils/", version = "=0.5.0-beta.1" } +pgx-macros = { path = "../pgx-macros/", version = "=0.5.0" } +pgx-pg-sys = { path = "../pgx-pg-sys", version = "=0.5.0" } +pgx-utils = { path = "../pgx-utils/", version = "=0.5.0" } # used to internally impl things once_cell = "1.15.0" # polyfill until std::lazy::OnceCell stabilizes @@ -46,7 +46,7 @@ uuid = { version = "1.1.2", features = [ "v4" ] } # PgLwLock and shmem # error handling and logging eyre = "0.6.8" thiserror = "1.0" -tracing = "0.1.36" +tracing = "0.1.37" tracing-error = "0.2.0" # exposed in public API @@ -55,9 +55,9 @@ bitflags = "1.3.2" # BackgroundWorker bitvec = "1.0" # processing array nullbitmaps cstr_core = "0.2.6" # no std compat heapless = "0.7.16" # shmem and PgLwLock -libc = "0.2.133" # FFI type compat +libc = "0.2.134" # FFI type compat seahash = "4.1.0" # derive(PostgresHash) serde = { version = "1.0.145", features = [ "derive" ] } # impls on pub types serde_cbor = "0.11.2" # derive(PostgresType) serde_json = "1.0.85" # everything JSON -time = { version = "0.3.14", features = ["formatting", "parsing", "alloc", "macros"] } # TODO(0.6.0): add `optional = true` +time = { version = "0.3.15", features = ["formatting", "parsing", "alloc", "macros"] } # TODO(0.6.0): add `optional = true` diff --git a/pgx/src/aggregate.rs b/pgx/src/aggregate.rs index cb1f23d86..f29c8bf12 100644 --- a/pgx/src/aggregate.rs +++ b/pgx/src/aggregate.rs @@ -268,12 +268,10 @@ CREATE AGGREGATE DemoSum ( */ -use crate::{ - error, - memcxt::PgMemoryContexts, - pg_sys::{AggCheckCallContext, CurrentMemoryContext, FunctionCallInfo, MemoryContext}, - pgbox::PgBox, -}; +use crate::error; +use crate::memcxt::PgMemoryContexts; +use crate::pg_sys::{AggCheckCallContext, CurrentMemoryContext, FunctionCallInfo, MemoryContext}; +use crate::pgbox::PgBox; pub use pgx_utils::sql_entity_graph::{FinalizeModify, ParallelOption}; diff --git a/pgx/src/array.rs b/pgx/src/array.rs index a30f5f0cd..24926f2fd 100644 --- a/pgx/src/array.rs +++ b/pgx/src/array.rs @@ -1,9 +1,7 @@ use crate::datum::{Array, FromDatum}; use crate::pg_sys::{self, bits8, ArrayType}; -use bitvec::{ - prelude::*, - ptr::{bitslice_from_raw_parts_mut, BitPtr, BitPtrError, Mut}, -}; +use bitvec::prelude::*; +use bitvec::ptr::{bitslice_from_raw_parts_mut, BitPtr, BitPtrError, Mut}; use core::ptr::{slice_from_raw_parts_mut, NonNull}; use core::slice; @@ -95,10 +93,7 @@ impl RawArray { let array_type = arr.into_array_type() as *mut _; // SAFETY: Validity asserted by the caller. let len = unsafe { pgx_ARR_NELEMS(array_type) } as usize; - Some(RawArray { - ptr: NonNull::new(array_type)?, - len, - }) + Some(RawArray { ptr: NonNull::new(array_type)?, len }) } /// Returns the inner raw pointer to the ArrayType. diff --git a/pgx/src/atomics.rs b/pgx/src/atomics.rs index d2cc0c0b9..a7b66d16f 100644 --- a/pgx/src/atomics.rs +++ b/pgx/src/atomics.rs @@ -14,9 +14,7 @@ pub struct PgAtomic { impl PgAtomic { pub const fn new() -> Self { - Self { - inner: OnceCell::new(), - } + Self { inner: OnceCell::new() } } } @@ -25,18 +23,12 @@ where T: atomic_traits::Atomic + Default, { pub fn attach(&self, value: *mut T) { - self.inner - .set(value) - .expect("This PgAtomic is not empty, can't re-attach"); + self.inner.set(value).expect("This PgAtomic is not empty, can't re-attach"); } pub fn get(&self) -> &T { unsafe { - self.inner - .get() - .expect("This PgAtomic as not been initialized") - .as_ref() - .unwrap() + self.inner.get().expect("This PgAtomic as not been initialized").as_ref().unwrap() } } } diff --git a/pgx/src/bgworkers.rs b/pgx/src/bgworkers.rs index bb98b57d2..8ec7ad548 100644 --- a/pgx/src/bgworkers.rs +++ b/pgx/src/bgworkers.rs @@ -12,8 +12,7 @@ Use of this source code is governed by the MIT license that can be found in the //! See: [https://www.postgresql.org/docs/12/bgworker.html](https://www.postgresql.org/docs/12/bgworker.html) use crate::pg_sys; use std::convert::TryInto; -use std::ffi::CStr; -use std::ffi::CString; +use std::ffi::{CStr, CString}; use std::os::raw::c_char; use std::sync::atomic::{AtomicBool, Ordering}; use std::time::Duration; diff --git a/pgx/src/callbacks.rs b/pgx/src/callbacks.rs index 64866ff53..3b4bf1cd4 100644 --- a/pgx/src/callbacks.rs +++ b/pgx/src/callbacks.rs @@ -178,10 +178,7 @@ where .remove(&which_event), // not in a transaction-end event, so just borrow our map - _ => XACT_HOOKS - .as_mut() - .expect("XACT_HOOKS was None") - .remove(&which_event), + _ => XACT_HOOKS.as_mut().expect("XACT_HOOKS was None").remove(&which_event), }; // if we have a vec of hooks for this event they're consumed here and executed @@ -212,9 +209,8 @@ where pg_sys::RegisterXactCallback(Some(callback), std::ptr::null_mut()); } - XACT_HOOKS - .as_mut() - .expect("XACT_HOOKS was None during maybe_initialize") // this should never happen + XACT_HOOKS.as_mut().expect("XACT_HOOKS was None during maybe_initialize") + // this should never happen } } @@ -363,9 +359,8 @@ where }); } - SUB_HOOKS - .as_mut() - .expect("SUB_HOOKS was None during maybe_initialize()") // this should never happen + SUB_HOOKS.as_mut().expect("SUB_HOOKS was None during maybe_initialize()") + // this should never happen } } diff --git a/pgx/src/datum/array.rs b/pgx/src/datum/array.rs index 163c49274..544d6c2e2 100644 --- a/pgx/src/datum/array.rs +++ b/pgx/src/datum/array.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 crate::{array::RawArray, layout::*, pg_sys, FromDatum, IntoDatum, PgMemoryContexts}; +use crate::array::RawArray; +use crate::layout::*; +use crate::{pg_sys, FromDatum, IntoDatum, PgMemoryContexts}; use bitvec::slice::BitSlice; use core::ptr::NonNull; use pgx_utils::sql_entity_graph::metadata::{ @@ -73,14 +75,7 @@ impl<'a, T: FromDatum + serde::Serialize> serde::Serialize for Array<'a, T> { impl<'a, T: FromDatum> Drop for Array<'a, T> { fn drop(&mut self) { - if let Array { - ptr, - raw, - datum_palloc: Some(data), - elem_slice, - .. - } = self - { + if let Array { ptr, raw, datum_palloc: Some(data), elem_slice, .. } = self { // If Drop has arrived here, it means that this Array is backed by an allocation or two // If so, the first one is guaranteed, and was created by calling pg_sys::deconstruct_array // This is just a slice, dropping it doesn't "do" anything, but out of an abundance of caution: @@ -241,10 +236,7 @@ impl<'a, T: FromDatum> Array<'a, T> { if you are sure your usage is sound, consider RawArray" )] pub fn as_slice(&self) -> &[T] { - if let Some(Layout { - size, passbyval, .. - }) = &self.elem_layout - { + if let Some(Layout { size, passbyval, .. }) = &self.elem_layout { if self.null_slice.any() { panic!("null detected: can't expose potentially uninit data as a slice!") } @@ -276,10 +268,7 @@ impl<'a, T: FromDatum> Array<'a, T> { /// Return an Iterator of Option over the contained Datums. pub fn iter(&self) -> ArrayIterator<'_, T> { - ArrayIterator { - array: self, - curr: 0, - } + ArrayIterator { array: self, curr: 0 } } /// Return an Iterator of the contained Datums (converted to Rust types). @@ -295,10 +284,7 @@ impl<'a, T: FromDatum> Array<'a, T> { panic!("array is NULL"); }; - ArrayTypedIterator { - array: self, - curr: 0, - } + ArrayTypedIterator { array: self, curr: 0 } } #[inline] @@ -451,10 +437,7 @@ impl<'a, T: FromDatum> IntoIterator for Array<'a, T> { type IntoIter = ArrayIntoIterator<'a, T>; fn into_iter(self) -> Self::IntoIter { - ArrayIntoIterator { - array: self, - curr: 0, - } + ArrayIntoIterator { array: self, curr: 0 } } } @@ -463,10 +446,7 @@ impl<'a, T: FromDatum> IntoIterator for VariadicArray<'a, T> { type IntoIter = ArrayIntoIterator<'a, T>; fn into_iter(self) -> Self::IntoIter { - ArrayIntoIterator { - array: self.0, - curr: 0, - } + ArrayIntoIterator { array: self.0, curr: 0 } } } @@ -678,12 +658,8 @@ where match T::argument_sql()? { SqlMapping::As(sql) => Ok(SqlMapping::As(format!("{sql}[]"))), SqlMapping::Skip => Err(ArgumentError::SkipInArray), - SqlMapping::Composite { .. } => Ok(SqlMapping::Composite { - array_brackets: true, - }), - SqlMapping::Source { .. } => Ok(SqlMapping::Source { - array_brackets: true, - }), + SqlMapping::Composite { .. } => Ok(SqlMapping::Composite { array_brackets: true }), + SqlMapping::Source { .. } => Ok(SqlMapping::Source { array_brackets: true }), } } @@ -693,14 +669,10 @@ where Ok(Returns::One(SqlMapping::As(format!("{sql}[]")))) } Returns::One(SqlMapping::Composite { array_brackets: _ }) => { - Ok(Returns::One(SqlMapping::Composite { - array_brackets: true, - })) + Ok(Returns::One(SqlMapping::Composite { array_brackets: true })) } Returns::One(SqlMapping::Source { array_brackets: _ }) => { - Ok(Returns::One(SqlMapping::Source { - array_brackets: true, - })) + Ok(Returns::One(SqlMapping::Source { array_brackets: true })) } Returns::One(SqlMapping::Skip) => Err(ReturnsError::SkipInArray), Returns::SetOf(_) => Err(ReturnsError::SetOfInArray), @@ -717,12 +689,8 @@ where match T::argument_sql()? { SqlMapping::As(sql) => Ok(SqlMapping::As(format!("{sql}[]"))), SqlMapping::Skip => Err(ArgumentError::SkipInArray), - SqlMapping::Composite { .. } => Ok(SqlMapping::Composite { - array_brackets: true, - }), - SqlMapping::Source { .. } => Ok(SqlMapping::Source { - array_brackets: true, - }), + SqlMapping::Composite { .. } => Ok(SqlMapping::Composite { array_brackets: true }), + SqlMapping::Source { .. } => Ok(SqlMapping::Source { array_brackets: true }), } } @@ -732,14 +700,10 @@ where Ok(Returns::One(SqlMapping::As(format!("{sql}[]")))) } Returns::One(SqlMapping::Composite { array_brackets: _ }) => { - Ok(Returns::One(SqlMapping::Composite { - array_brackets: true, - })) + Ok(Returns::One(SqlMapping::Composite { array_brackets: true })) } Returns::One(SqlMapping::Source { array_brackets: _ }) => { - Ok(Returns::One(SqlMapping::Source { - array_brackets: true, - })) + Ok(Returns::One(SqlMapping::Source { array_brackets: true })) } Returns::One(SqlMapping::Skip) => Err(ReturnsError::SkipInArray), Returns::SetOf(_) => Err(ReturnsError::SetOfInArray), diff --git a/pgx/src/datum/inet.rs b/pgx/src/datum/inet.rs index 28535cd27..939655df7 100644 --- a/pgx/src/datum/inet.rs +++ b/pgx/src/datum/inet.rs @@ -96,10 +96,7 @@ impl FromDatum for Inet { } else { let cstr = direct_function_call::<&CStr>(pg_sys::inet_out, vec![Some(datum)]); Some(Inet( - cstr.unwrap() - .to_str() - .expect("unable to convert &cstr inet into &str") - .to_owned(), + cstr.unwrap().to_str().expect("unable to convert &cstr inet into &str").to_owned(), )) } } diff --git a/pgx/src/datum/internal.rs b/pgx/src/datum/internal.rs index 8445e27a7..01ce2d0f8 100644 --- a/pgx/src/datum/internal.rs +++ b/pgx/src/datum/internal.rs @@ -59,8 +59,7 @@ impl Internal { /// your responsibility. #[inline(always)] pub unsafe fn get(&self) -> Option<&T> { - self.0 - .and_then(|datum| (datum.cast_mut_ptr::() as *const T).as_ref()) + self.0.and_then(|datum| (datum.cast_mut_ptr::() as *const T).as_ref()) } /// Initializes the internal with `value`, then returns a mutable reference to it. @@ -91,8 +90,7 @@ impl Internal { /// your responsibility. #[inline(always)] pub unsafe fn get_mut(&self) -> Option<&mut T> { - self.0 - .and_then(|datum| (datum.cast_mut_ptr::()).as_mut()) + self.0.and_then(|datum| (datum.cast_mut_ptr::()).as_mut()) } /// Initializes the internal with `value` if it is not initialized, then returns a mutable reference to @@ -140,9 +138,8 @@ impl Internal { { let ptr = self.0.get_or_insert_with(|| { let result = f(); - let datum = PgMemoryContexts::CurrentMemoryContext - .leak_and_drop_on_delete(result) - .into(); + let datum = + PgMemoryContexts::CurrentMemoryContext.leak_and_drop_on_delete(result).into(); datum }); &mut *(ptr.cast_mut_ptr::()) diff --git a/pgx/src/datum/json.rs b/pgx/src/datum/json.rs index 829a81e0b..016d9997c 100644 --- a/pgx/src/datum/json.rs +++ b/pgx/src/datum/json.rs @@ -67,8 +67,7 @@ impl FromDatum for JsonB { .expect("failed to convert jsonb to a cstring"); let value = serde_json::from_str( - cstr.to_str() - .expect("text version of jsonb is not valid UTF8"), + cstr.to_str().expect("text version of jsonb is not valid UTF8"), ) .expect("failed to parse JsonB value"); diff --git a/pgx/src/datum/mod.rs b/pgx/src/datum/mod.rs index 32284fd18..8cdfd9180 100644 --- a/pgx/src/datum/mod.rs +++ b/pgx/src/datum/mod.rs @@ -275,11 +275,7 @@ impl WithSizedTypeIds { if let Some(id) = *WithSizedTypeIds::::PG_BOX_VEC_ID { let rust = core::any::type_name::>>().to_string(); assert_eq!( - map.insert(RustSqlMapping { - sql: set_sql.clone(), - rust: rust.to_string(), - id: id, - }), + map.insert(RustSqlMapping { sql: set_sql.clone(), rust: rust.to_string(), id: id }), true, "Cannot map `{}` twice.", rust, @@ -303,11 +299,7 @@ impl WithSizedTypeIds { if let Some(id) = *WithSizedTypeIds::::VEC_ID { let rust = core::any::type_name::().to_string(); assert_eq!( - map.insert(RustSqlMapping { - sql: set_sql.clone(), - rust: rust.to_string(), - id: id, - }), + map.insert(RustSqlMapping { sql: set_sql.clone(), rust: rust.to_string(), id: id }), true, "Cannot map `{}` twice.", rust, @@ -316,11 +308,7 @@ impl WithSizedTypeIds { if let Some(id) = *WithSizedTypeIds::::VEC_OPTION_ID { let rust = core::any::type_name::>>(); assert_eq!( - map.insert(RustSqlMapping { - sql: set_sql.clone(), - rust: rust.to_string(), - id: id, - }), + map.insert(RustSqlMapping { sql: set_sql.clone(), rust: rust.to_string(), id: id }), true, "Cannot map `{}` twice.", rust, @@ -329,11 +317,7 @@ impl WithSizedTypeIds { if let Some(id) = *WithSizedTypeIds::::OPTION_VEC_ID { let rust = core::any::type_name::>>(); assert_eq!( - map.insert(RustSqlMapping { - sql: set_sql.clone(), - rust: rust.to_string(), - id: id, - }), + map.insert(RustSqlMapping { sql: set_sql.clone(), rust: rust.to_string(), id: id }), true, "Cannot map `{}` twice.", rust, @@ -342,11 +326,7 @@ impl WithSizedTypeIds { if let Some(id) = *WithSizedTypeIds::::OPTION_VEC_OPTION_ID { let rust = core::any::type_name::>>>(); assert_eq!( - map.insert(RustSqlMapping { - sql: set_sql.clone(), - rust: rust.to_string(), - id: id, - }), + map.insert(RustSqlMapping { sql: set_sql.clone(), rust: rust.to_string(), id: id }), true, "Cannot map `{}` twice.", rust, @@ -410,11 +390,7 @@ impl WithArrayTypeIds { if let Some(id) = *WithArrayTypeIds::::ARRAY_ID { let rust = core::any::type_name::>().to_string(); assert_eq!( - map.insert(RustSqlMapping { - sql: set_sql.clone(), - rust: rust.to_string(), - id: id, - }), + map.insert(RustSqlMapping { sql: set_sql.clone(), rust: rust.to_string(), id: id }), true, "Cannot map `{}` twice.", rust, @@ -423,11 +399,7 @@ impl WithArrayTypeIds { if let Some(id) = *WithArrayTypeIds::::OPTION_ARRAY_ID { let rust = core::any::type_name::>>().to_string(); assert_eq!( - map.insert(RustSqlMapping { - sql: set_sql.clone(), - rust: rust.to_string(), - id: id, - }), + map.insert(RustSqlMapping { sql: set_sql.clone(), rust: rust.to_string(), id: id }), true, "Cannot map `{}` twice.", rust, @@ -437,11 +409,7 @@ impl WithArrayTypeIds { if let Some(id) = *WithArrayTypeIds::::VARIADICARRAY_ID { let rust = core::any::type_name::>().to_string(); assert_eq!( - map.insert(RustSqlMapping { - sql: set_sql.clone(), - rust: rust.to_string(), - id: id, - }), + map.insert(RustSqlMapping { sql: set_sql.clone(), rust: rust.to_string(), id: id }), true, "Cannot map `{}` twice.", rust, @@ -450,11 +418,7 @@ impl WithArrayTypeIds { if let Some(id) = *WithArrayTypeIds::::OPTION_VARIADICARRAY_ID { let rust = core::any::type_name::>>().to_string(); assert_eq!( - map.insert(RustSqlMapping { - sql: set_sql.clone(), - rust: rust.to_string(), - id: id, - }), + map.insert(RustSqlMapping { sql: set_sql.clone(), rust: rust.to_string(), id: id }), true, "Cannot map `{}` twice.", rust, diff --git a/pgx/src/datum/numeric.rs b/pgx/src/datum/numeric.rs index f23361de7..1bdd72426 100644 --- a/pgx/src/datum/numeric.rs +++ b/pgx/src/datum/numeric.rs @@ -187,11 +187,7 @@ impl IntoDatum for Numeric { unsafe { direct_function_call_as_datum( pg_sys::numeric_in, - vec![ - cstr.into_datum(), - pg_sys::InvalidOid.into_datum(), - 0i32.into_datum(), - ], + vec![cstr.into_datum(), pg_sys::InvalidOid.into_datum(), 0i32.into_datum()], ) } } diff --git a/pgx/src/datum/time.rs b/pgx/src/datum/time.rs index 9c6089d1f..7a6152c8c 100644 --- a/pgx/src/datum/time.rs +++ b/pgx/src/datum/time.rs @@ -7,8 +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 crate::FromTimeError; -use crate::{pg_sys, FromDatum, IntoDatum}; +use crate::{pg_sys, FromDatum, FromTimeError, IntoDatum}; use pgx_utils::sql_entity_graph::metadata::{ ArgumentError, Returns, ReturnsError, SqlMapping, SqlTranslatable, }; diff --git a/pgx/src/datum/time_stamp.rs b/pgx/src/datum/time_stamp.rs index 84ca870b5..4b089f9e4 100644 --- a/pgx/src/datum/time_stamp.rs +++ b/pgx/src/datum/time_stamp.rs @@ -53,8 +53,7 @@ impl From for Timestamp { impl From for TimestampWithTimeZone { fn from(ts: Timestamp) -> Self { - ts.0.try_into() - .expect("error converting Timestamp to TimestampWithTimeZone") + ts.0.try_into().expect("error converting Timestamp to TimestampWithTimeZone") } } @@ -134,11 +133,7 @@ impl FromDatum for Timestamp { if is_null { None } else { - Some( - datum - .try_into() - .expect("Error converting timestamp with time zone datum"), - ) + Some(datum.try_into().expect("Error converting timestamp with time zone datum")) } } } @@ -164,10 +159,8 @@ impl serde::Serialize for Timestamp { pg_sys::EncodeSpecialTimestamp(self.0, buf); } _ => { - let mut pg_tm: pg_sys::pg_tm = pg_sys::pg_tm { - tm_zone: std::ptr::null_mut(), - ..Default::default() - }; + let mut pg_tm: pg_sys::pg_tm = + pg_sys::pg_tm { tm_zone: std::ptr::null_mut(), ..Default::default() }; let mut tz = 0i32; let mut fsec = 0 as pg_sys::fsec_t; let mut tzn = std::ptr::null::(); diff --git a/pgx/src/datum/time_stamp_with_timezone.rs b/pgx/src/datum/time_stamp_with_timezone.rs index 68ac2a388..3cf766c61 100644 --- a/pgx/src/datum/time_stamp_with_timezone.rs +++ b/pgx/src/datum/time_stamp_with_timezone.rs @@ -15,7 +15,8 @@ use serde::Deserialize; use std::convert::TryFrom; use std::ffi::CStr; use std::ops::Sub; -use time::{macros::date, UtcOffset}; +use time::macros::date; +use time::UtcOffset; pub(crate) const USECS_PER_SEC: i64 = 1_000_000; @@ -154,11 +155,7 @@ impl FromDatum for TimestampWithTimeZone { if is_null { None } else { - Some( - datum - .try_into() - .expect("Error converting timestamp with time zone datum"), - ) + Some(datum.try_into().expect("Error converting timestamp with time zone datum")) } } } @@ -202,10 +199,8 @@ impl serde::Serialize for TimestampWithTimeZone { pg_sys::EncodeSpecialTimestamp(self.0, buf); } _ => { - let mut pg_tm: pg_sys::pg_tm = pg_sys::pg_tm { - tm_zone: std::ptr::null_mut(), - ..Default::default() - }; + let mut pg_tm: pg_sys::pg_tm = + pg_sys::pg_tm { tm_zone: std::ptr::null_mut(), ..Default::default() }; let mut tz = 0i32; let mut fsec = 0 as pg_sys::fsec_t; let mut tzn = std::ptr::null::(); @@ -246,8 +241,6 @@ unsafe impl SqlTranslatable for TimestampWithTimeZone { Ok(SqlMapping::literal("timestamp with time zone")) } fn return_sql() -> Result { - Ok(Returns::One(SqlMapping::literal( - "timestamp with time zone", - ))) + Ok(Returns::One(SqlMapping::literal("timestamp with time zone"))) } } diff --git a/pgx/src/datum/time_with_timezone.rs b/pgx/src/datum/time_with_timezone.rs index bce7fcc45..6c633cb08 100644 --- a/pgx/src/datum/time_with_timezone.rs +++ b/pgx/src/datum/time_with_timezone.rs @@ -124,14 +124,12 @@ impl serde::Serialize for TimeWithTimeZone { ) } else { serializer.serialize_str( - &time - .format(&DEFAULT_TIMESTAMP_WITH_TIMEZONE_FORMAT) - .map_err(|e| { - serde::ser::Error::custom(format!( - "TimeWithTimeZone formatting problem: {:?}", - e - )) - })?, + &time.format(&DEFAULT_TIMESTAMP_WITH_TIMEZONE_FORMAT).map_err(|e| { + serde::ser::Error::custom(format!( + "TimeWithTimeZone formatting problem: {:?}", + e + )) + })?, ) } } diff --git a/pgx/src/datum/tuples.rs b/pgx/src/datum/tuples.rs index 47c5f8392..5abcc1eef 100644 --- a/pgx/src/datum/tuples.rs +++ b/pgx/src/datum/tuples.rs @@ -31,11 +31,7 @@ where C: IntoDatum, { fn into_datum(self) -> Option { - let vec = vec![ - self.0.into_datum(), - self.1.into_datum(), - self.2.into_datum(), - ]; + let vec = vec![self.0.into_datum(), self.1.into_datum(), self.2.into_datum()]; vec.into_datum() } diff --git a/pgx/src/datum/uuid.rs b/pgx/src/datum/uuid.rs index 5ef0412ba..b5d4a91b0 100644 --- a/pgx/src/datum/uuid.rs +++ b/pgx/src/datum/uuid.rs @@ -75,10 +75,7 @@ impl Uuid { let len = b.len(); if len != UUID_BYTES_LEN { - Err(format!( - "Expected UUID to be {} bytes, got {}", - UUID_BYTES_LEN, len - ))?; + Err(format!("Expected UUID to be {} bytes, got {}", UUID_BYTES_LEN, len))?; } let mut bytes = [0; UUID_BYTES_LEN]; diff --git a/pgx/src/datum/varlena.rs b/pgx/src/datum/varlena.rs index 736b2b1b9..ecca831bc 100644 --- a/pgx/src/datum/varlena.rs +++ b/pgx/src/datum/varlena.rs @@ -142,10 +142,7 @@ where PgVarlena { leaked: None, - varlena: Cow::Owned(PallocdVarlena { - ptr, - len: unsafe { varsize_any(ptr) }, - }), + varlena: Cow::Owned(PallocdVarlena { ptr, len: unsafe { varsize_any(ptr) } }), need_free: true, __marker: PhantomData, } diff --git a/pgx/src/enum_helper.rs b/pgx/src/enum_helper.rs index b1dfd8bbc..e3d2d86af 100644 --- a/pgx/src/enum_helper.rs +++ b/pgx/src/enum_helper.rs @@ -73,10 +73,7 @@ pub fn lookup_enum_by_label(typname: &str, label: &str) -> pg_sys::Datum { }; if tup.is_null() { - panic!( - "could not find heap tuple for enum: {}.{}, typoid={}", - typname, label, enumtypoid - ); + panic!("could not find heap tuple for enum: {}.{}, typoid={}", typname, label, enumtypoid); } // SAFETY: we know that `tup` is valid because we just got it from Postgres above diff --git a/pgx/src/fcinfo.rs b/pgx/src/fcinfo.rs index 02ad0fe94..5c366c140 100644 --- a/pgx/src/fcinfo.rs +++ b/pgx/src/fcinfo.rs @@ -434,10 +434,7 @@ fn make_function_call_info( let slice = unsafe { fcinfo.args.as_mut_slice(nargs) }; for i in 0..nargs { - slice[i] = pg_sys::NullableDatum { - value: arg_array[i], - isnull: null_array[i], - } + slice[i] = pg_sys::NullableDatum { value: arg_array[i], isnull: null_array[i] } } fcinfo_boxed diff --git a/pgx/src/heap_tuple.rs b/pgx/src/heap_tuple.rs index 386d0de51..7265adb56 100644 --- a/pgx/src/heap_tuple.rs +++ b/pgx/src/heap_tuple.rs @@ -1,11 +1,10 @@ //! Provides a safe interface to Postgres `HeapTuple` objects. //! //! [`PgHeapTuple`]s also describe composite types as defined by [`pgx::composite_type!()`][crate::composite_type]. +use crate::pg_sys::{Datum, Oid}; use crate::{ - heap_getattr_raw, pg_sys, - pg_sys::{Datum, Oid}, - AllocatedByPostgres, AllocatedByRust, FromDatum, IntoDatum, PgBox, PgMemoryContexts, - PgTupleDesc, TriggerTuple, TryFromDatumError, WhoAllocated, + heap_getattr_raw, pg_sys, AllocatedByPostgres, AllocatedByRust, FromDatum, IntoDatum, PgBox, + PgMemoryContexts, PgTupleDesc, TriggerTuple, TryFromDatumError, WhoAllocated, }; use pgx_utils::sql_entity_graph::metadata::{ ArgumentError, Returns, ReturnsError, SqlMapping, SqlTranslatable, @@ -85,10 +84,7 @@ impl<'a> PgHeapTuple<'a, AllocatedByPostgres> { /// nor can we guaratee that the provided [PgTupleDesc] properly describes the structure of /// the heap tuple. pub unsafe fn from_heap_tuple(tupdesc: PgTupleDesc<'a>, heap_tuple: pg_sys::HeapTuple) -> Self { - Self { - tuple: PgBox::from_pg(heap_tuple), - tupdesc, - } + Self { tuple: PgBox::from_pg(heap_tuple), tupdesc } } /// Creates a new [PgHeapTuple] from one of the two (`Current` or `New`) trigger tuples. The returned @@ -191,10 +187,7 @@ impl<'a> PgHeapTuple<'a, AllocatedByRust> { datums.push(datum.unwrap_or(0.into())); }); if datums.len() != tupdesc.len() { - return Err(PgHeapTupleError::IncorrectAttributeCount( - datums.len(), - tupdesc.len(), - )); + return Err(PgHeapTupleError::IncorrectAttributeCount(datums.len(), tupdesc.len())); } unsafe { @@ -233,10 +226,7 @@ impl<'a> PgHeapTuple<'a, AllocatedByRust> { data.t_len = crate::heap_tuple_header_get_datum_length(htup_header) as u32; data.t_data = htup_header; - Self { - tuple: data, - tupdesc: PgTupleDesc::from_pg(tupdesc), - } + Self { tuple: data, tupdesc: PgTupleDesc::from_pg(tupdesc) } } /// Given the name for an attribute in this [PgHeapTuple], change its value. @@ -286,9 +276,8 @@ impl<'a> PgHeapTuple<'a, AllocatedByRust> { } } - let mut datums = (0..self.tupdesc.len()) - .map(|i| pg_sys::Datum::from(i)) - .collect::>(); + let mut datums = + (0..self.tupdesc.len()).map(|i| pg_sys::Datum::from(i)).collect::>(); let mut nulls = (0..self.tupdesc.len()).map(|_| false).collect::>(); let mut do_replace = (0..self.tupdesc.len()).map(|_| false).collect::>(); @@ -338,10 +327,7 @@ impl<'a, AllocatedBy: WhoAllocated> PgHeapTuple<'a, Alloc /// data and the corresponding tuple descriptor information. pub fn into_composite_datum(self) -> Option { unsafe { - Some(pg_sys::heap_copy_tuple_as_datum( - self.tuple.as_ptr(), - self.tupdesc.as_ptr(), - )) + Some(pg_sys::heap_copy_tuple_as_datum(self.tuple.as_ptr(), self.tupdesc.as_ptr())) } } @@ -363,10 +349,7 @@ impl<'a, AllocatedBy: WhoAllocated> PgHeapTuple<'a, Alloc pub fn attributes( &'a self, ) -> impl std::iter::Iterator { - self.tupdesc - .iter() - .enumerate() - .map(|(i, att)| (NonZeroUsize::new(i + 1).unwrap(), att)) + self.tupdesc.iter().enumerate().map(|(i, att)| (NonZeroUsize::new(i + 1).unwrap(), att)) } /// Get the attribute information for the specified attribute number. @@ -591,26 +574,18 @@ macro_rules! composite_type { unsafe impl SqlTranslatable for crate::heap_tuple::PgHeapTuple<'static, AllocatedByPostgres> { fn argument_sql() -> Result { - Ok(SqlMapping::Composite { - array_brackets: false, - }) + Ok(SqlMapping::Composite { array_brackets: false }) } fn return_sql() -> Result { - Ok(Returns::One(SqlMapping::Composite { - array_brackets: false, - })) + Ok(Returns::One(SqlMapping::Composite { array_brackets: false })) } } unsafe impl SqlTranslatable for crate::heap_tuple::PgHeapTuple<'static, AllocatedByRust> { fn argument_sql() -> Result { - Ok(SqlMapping::Composite { - array_brackets: false, - }) + Ok(SqlMapping::Composite { array_brackets: false }) } fn return_sql() -> Result { - Ok(Returns::One(SqlMapping::Composite { - array_brackets: false, - })) + Ok(Returns::One(SqlMapping::Composite { array_brackets: false })) } } diff --git a/pgx/src/hooks.rs b/pgx/src/hooks.rs index 3e58c420e..e3b2ae4b7 100644 --- a/pgx/src/hooks.rs +++ b/pgx/src/hooks.rs @@ -209,12 +209,10 @@ pub unsafe fn register_hook(hook: &'static mut (dyn PgHooks)) { unsafe extern "C" fn pgx_executor_start(query_desc: *mut pg_sys::QueryDesc, eflags: i32) { fn prev(query_desc: PgBox, eflags: i32) -> HookResult<()> { unsafe { - (HOOKS - .as_mut() - .unwrap() - .prev_executor_start_hook - .as_ref() - .unwrap())(query_desc.into_pg(), eflags) + (HOOKS.as_mut().unwrap().prev_executor_start_hook.as_ref().unwrap())( + query_desc.into_pg(), + eflags, + ) } HookResult::new(()) } @@ -236,35 +234,26 @@ unsafe extern "C" fn pgx_executor_run( execute_once: bool, ) -> HookResult<()> { unsafe { - (HOOKS - .as_mut() - .unwrap() - .prev_executor_run_hook - .as_ref() - .unwrap())(query_desc.into_pg(), direction, count, execute_once) + (HOOKS.as_mut().unwrap().prev_executor_run_hook.as_ref().unwrap())( + query_desc.into_pg(), + direction, + count, + execute_once, + ) } HookResult::new(()) } let hook = &mut HOOKS.as_mut().unwrap().current_hook; - hook.executor_run( - PgBox::from_pg(query_desc), - direction, - count, - execute_once, - prev, - ); + hook.executor_run(PgBox::from_pg(query_desc), direction, count, execute_once, prev); } #[pg_guard] unsafe extern "C" fn pgx_executor_finish(query_desc: *mut pg_sys::QueryDesc) { fn prev(query_desc: PgBox) -> HookResult<()> { unsafe { - (HOOKS - .as_mut() - .unwrap() - .prev_executor_finish_hook - .as_ref() - .unwrap())(query_desc.into_pg()) + (HOOKS.as_mut().unwrap().prev_executor_finish_hook.as_ref().unwrap())( + query_desc.into_pg(), + ) } HookResult::new(()) } @@ -276,12 +265,7 @@ unsafe extern "C" fn pgx_executor_finish(query_desc: *mut pg_sys::QueryDesc) { unsafe extern "C" fn pgx_executor_end(query_desc: *mut pg_sys::QueryDesc) { fn prev(query_desc: PgBox) -> HookResult<()> { unsafe { - (HOOKS - .as_mut() - .unwrap() - .prev_executor_end_hook - .as_ref() - .unwrap())(query_desc.into_pg()) + (HOOKS.as_mut().unwrap().prev_executor_end_hook.as_ref().unwrap())(query_desc.into_pg()) } HookResult::new(()) } @@ -299,17 +283,14 @@ unsafe extern "C" fn pgx_executor_check_perms( ereport_on_violation: bool, ) -> HookResult { HookResult::new(unsafe { - (HOOKS - .as_mut() - .unwrap() - .prev_executor_check_perms_hook - .as_ref() - .unwrap())(range_table.into_pg(), ereport_on_violation) + (HOOKS.as_mut().unwrap().prev_executor_check_perms_hook.as_ref().unwrap())( + range_table.into_pg(), + ereport_on_violation, + ) }) } let hook = &mut HOOKS.as_mut().unwrap().current_hook; - hook.executor_check_perms(PgList::from_pg(range_table), ereport_on_violation, prev) - .inner + hook.executor_check_perms(PgList::from_pg(range_table), ereport_on_violation, prev).inner } #[cfg(any(feature = "pg10", feature = "pg11", feature = "pg12", feature = "pg13"))] @@ -334,12 +315,7 @@ unsafe extern "C" fn pgx_process_utility( completion_tag: *mut pg_sys::QueryCompletion, ) -> HookResult<()> { HookResult::new(unsafe { - (HOOKS - .as_mut() - .unwrap() - .prev_process_utility_hook - .as_ref() - .unwrap())( + (HOOKS.as_mut().unwrap().prev_process_utility_hook.as_ref().unwrap())( pstmt.into_pg(), query_string.as_ptr(), context, @@ -388,12 +364,7 @@ unsafe extern "C" fn pgx_process_utility( completion_tag: *mut pg_sys::QueryCompletion, ) -> HookResult<()> { HookResult::new(unsafe { - (HOOKS - .as_mut() - .unwrap() - .prev_process_utility_hook - .as_ref() - .unwrap())( + (HOOKS.as_mut().unwrap().prev_process_utility_hook.as_ref().unwrap())( pstmt.into_pg(), query_string.as_ptr(), read_only_tree.unwrap(), diff --git a/pgx/src/htup.rs b/pgx/src/htup.rs index 86545a710..f3aab9c27 100644 --- a/pgx/src/htup.rs +++ b/pgx/src/htup.rs @@ -104,17 +104,9 @@ pub fn heap_getattr< ) -> Option { let mut is_null = false; let datum = unsafe { - pgx_heap_getattr( - tuple.as_ptr(), - attno.get() as u32, - tupdesc.as_ptr(), - &mut is_null, - ) + pgx_heap_getattr(tuple.as_ptr(), attno.get() as u32, tupdesc.as_ptr(), &mut is_null) }; - let typoid = tupdesc - .get(attno.get() - 1) - .expect("no attribute") - .type_oid(); + let typoid = tupdesc.get(attno.get() - 1).expect("no attribute").type_oid(); if is_null { None @@ -191,11 +183,5 @@ pub fn heap_getattr_datum_ex( pg_sys::get_typlenbyvalalign(typoid.value(), &mut typlen, &mut typbyval, &mut typalign); } - DatumWithTypeInfo { - datum, - is_null, - typoid, - typlen, - typbyval, - } + DatumWithTypeInfo { datum, is_null, typoid, typlen, typbyval } } diff --git a/pgx/src/iter.rs b/pgx/src/iter.rs index 2ac86abd8..6c38e2b3e 100644 --- a/pgx/src/iter.rs +++ b/pgx/src/iter.rs @@ -14,9 +14,7 @@ impl<'a, T> SetOfIterator<'a, T> { where I: IntoIterator + 'a, { - Self { - iter: Box::new(iter.into_iter()), - } + Self { iter: Box::new(iter.into_iter()) } } } @@ -54,18 +52,14 @@ impl<'a, T> TableIterator<'a, T> { where I: Iterator + 'a, { - Self { - iter: Box::new(iter), - } + Self { iter: Box::new(iter) } } pub fn once(value: T) -> TableIterator<'a, T> where T: 'a, { - Self { - iter: Box::new(once(value)), - } + Self { iter: Box::new(once(value)) } } } diff --git a/pgx/src/lib.rs b/pgx/src/lib.rs index bfc992793..d6ec898aa 100644 --- a/pgx/src/lib.rs +++ b/pgx/src/lib.rs @@ -104,8 +104,7 @@ pub use pgx_pg_sys as pg_sys; // the module only, not its contents pub use pgx_pg_sys::submodules::*; pub use pgx_pg_sys::PgBuiltInOids; // reexport this so it looks like it comes from here -pub use cstr_core; -pub use pgx_utils as utils; +pub use {cstr_core, pgx_utils as utils}; use once_cell::sync::Lazy; use std::collections::HashSet; @@ -132,10 +131,7 @@ macro_rules! map_source_only { let ty = stringify!(Vec<$rust>).to_string().replace(" ", ""); assert_eq!( - $map.insert(RustSourceOnlySqlMapping::new( - ty.clone(), - format!("{}[]", $sql), - )), + $map.insert(RustSourceOnlySqlMapping::new(ty.clone(), format!("{}[]", $sql),)), true, "Cannot map {} twice", ty @@ -143,10 +139,7 @@ macro_rules! map_source_only { let ty = stringify!(Array<$rust>).to_string().replace(" ", ""); assert_eq!( - $map.insert(RustSourceOnlySqlMapping::new( - ty.clone(), - format!("{}[]", $sql), - )), + $map.insert(RustSourceOnlySqlMapping::new(ty.clone(), format!("{}[]", $sql),)), true, "Cannot map {} twice", ty diff --git a/pgx/src/list.rs b/pgx/src/list.rs index 973c8405c..d67d3a4b0 100644 --- a/pgx/src/list.rs +++ b/pgx/src/list.rs @@ -36,11 +36,7 @@ impl PgList { } pub unsafe fn from_pg(list: *mut pg_sys::List) -> Self { - PgList { - list, - allocated_by_pg: true, - _marker: PhantomData, - } + PgList { list, allocated_by_pg: true, _marker: PhantomData } } pub fn as_ptr(&self) -> *mut pg_sys::List { @@ -180,26 +176,17 @@ impl PgList { #[inline] pub fn iter_ptr(&self) -> impl Iterator + '_ { - PgListIteratorPtr { - list: &self, - pos: 0, - } + PgListIteratorPtr { list: &self, pos: 0 } } #[inline] pub fn iter_oid(&self) -> impl Iterator + '_ { - PgListIteratorOid { - list: &self, - pos: 0, - } + PgListIteratorOid { list: &self, pos: 0 } } #[inline] pub fn iter_int(&self) -> impl Iterator + '_ { - PgListIteratorInt { - list: &self, - pos: 0, - } + PgListIteratorInt { list: &self, pos: 0 } } /// Add a pointer value to the end of this list diff --git a/pgx/src/log.rs b/pgx/src/log.rs index 45d6578ea..1e83389ee 100644 --- a/pgx/src/log.rs +++ b/pgx/src/log.rs @@ -499,8 +499,7 @@ pub fn ereport( lineno: u32, colno: u32, ) { - use std::ffi::CStr; - use std::ffi::CString; + use std::ffi::{CStr, CString}; use std::os::raw::c_char; #[cfg(feature = "plrust")] diff --git a/pgx/src/lwlock.rs b/pgx/src/lwlock.rs index 8fe622967..78cb9570a 100644 --- a/pgx/src/lwlock.rs +++ b/pgx/src/lwlock.rs @@ -41,19 +41,14 @@ impl PgLwLock { /// Create an empty lock which can be created as a global with None as a /// sentinel value pub const fn new() -> Self { - PgLwLock { - inner: OnceCell::new(), - name: OnceCell::new(), - } + PgLwLock { inner: OnceCell::new(), name: OnceCell::new() } } /// Create a new lock for T by attaching a LWLock, which is looked up by name pub fn from_named(input_name: &'static str, value: *mut T) -> Self { let inner = OnceCell::new(); let name = OnceCell::new(); - inner - .set(PgLwLockInner::::new(input_name, value)) - .unwrap(); + inner.set(PgLwLockInner::::new(input_name, value)).unwrap(); name.set(input_name).unwrap(); PgLwLock { inner, name } } @@ -72,18 +67,12 @@ impl PgLwLock { /// Obtain a shared lock (which comes with `&T` access) pub fn share(&self) -> PgLwLockShareGuard { - self.inner - .get() - .expect("Can't give out share, lock is in an empty state") - .share() + self.inner.get().expect("Can't give out share, lock is in an empty state").share() } /// Obtain an exclusive lock (which comes with `&mut T` access) pub fn exclusive(&self) -> PgLwLockExclusiveGuard { - self.inner - .get() - .expect("Can't give out exclusive, lock is in an empty state") - .exclusive() + self.inner.get().expect("Can't give out exclusive, lock is in an empty state").exclusive() } /// Attach an empty PgLwLock lock to a LWLock, and wrap T @@ -120,10 +109,7 @@ impl<'a, T> PgLwLockInner { unsafe { pg_sys::LWLockAcquire(self.lock_ptr, pg_sys::LWLockMode_LW_SHARED); - PgLwLockShareGuard { - data: self.data.as_ref().unwrap(), - lock: self.lock_ptr, - } + PgLwLockShareGuard { data: self.data.as_ref().unwrap(), lock: self.lock_ptr } } } @@ -131,10 +117,7 @@ impl<'a, T> PgLwLockInner { unsafe { pg_sys::LWLockAcquire(self.lock_ptr, pg_sys::LWLockMode_LW_EXCLUSIVE); - PgLwLockExclusiveGuard { - data: self.data.as_mut().unwrap(), - lock: self.lock_ptr, - } + PgLwLockExclusiveGuard { data: self.data.as_mut().unwrap(), lock: self.lock_ptr } } } } diff --git a/pgx/src/namespace.rs b/pgx/src/namespace.rs index 70e07d2e5..df4c972d5 100644 --- a/pgx/src/namespace.rs +++ b/pgx/src/namespace.rs @@ -26,9 +26,7 @@ impl Default for PgQualifiedNameBuilder { impl PgQualifiedNameBuilder { pub fn new() -> PgQualifiedNameBuilder { - PgQualifiedNameBuilder { - list: PgList::::new(), - } + PgQualifiedNameBuilder { list: PgList::::new() } } pub fn push(mut self, value: &str) -> PgQualifiedNameBuilder { diff --git a/pgx/src/pgbox.rs b/pgx/src/pgbox.rs index e6a3f0d21..3fb401b63 100644 --- a/pgx/src/pgbox.rs +++ b/pgx/src/pgbox.rs @@ -130,10 +130,7 @@ impl PgBox { /// allocated it, Postgres is responsible for freeing it. #[inline] pub unsafe fn from_pg(ptr: *mut T) -> PgBox { - PgBox:: { - ptr: NonNull::new(ptr), - __marker: PhantomData, - } + PgBox:: { ptr: NonNull::new(ptr), __marker: PhantomData } } } @@ -205,10 +202,7 @@ impl> PgBox { /// If you need to give the boxed pointer to Postgres, call [`.into_pg()`][PgBox::into_pg] #[inline] pub unsafe fn from_rust(ptr: *mut T) -> PgBox { - PgBox:: { - ptr: NonNull::new(ptr), - __marker: PhantomData, - } + PgBox:: { ptr: NonNull::new(ptr), __marker: PhantomData } } /// Allocate enough memory for the type'd struct, within Postgres' `CurrentMemoryContext` The @@ -329,10 +323,7 @@ impl> PgBox { /// Box nothing #[inline] pub fn null() -> PgBox { - PgBox:: { - ptr: None, - __marker: PhantomData, - } + PgBox:: { ptr: None, __marker: PhantomData } } /// Are we boxing a NULL? diff --git a/pgx/src/rel.rs b/pgx/src/rel.rs index cb2202041..cff1fe146 100644 --- a/pgx/src/rel.rs +++ b/pgx/src/rel.rs @@ -34,22 +34,14 @@ impl PgRelation { /// /// This method is unsafe as we cannot ensure that this relation will later be closed by Postgres pub unsafe fn from_pg(ptr: pg_sys::Relation) -> Self { - PgRelation { - boxed: PgBox::from_pg(ptr), - need_close: false, - lockmode: None, - } + PgRelation { boxed: PgBox::from_pg(ptr), need_close: false, lockmode: None } } /// Wrap a Postgres-provided `pg_sys::Relation`. /// /// The provided `Relation` will be closed via `pg_sys::RelationClose` when this instance is dropped pub unsafe fn from_pg_owned(ptr: pg_sys::Relation) -> Self { - PgRelation { - boxed: PgBox::from_pg(ptr), - need_close: true, - lockmode: None, - } + PgRelation { boxed: PgBox::from_pg(ptr), need_close: true, lockmode: None } } /// Given a relation oid, use `pg_sys::RelationIdGetRelation()` to open the relation @@ -72,11 +64,7 @@ impl PgRelation { panic!("Cannot open relation with oid={}", oid); } - PgRelation { - boxed: PgBox::from_pg(rel), - need_close: true, - lockmode: None, - } + PgRelation { boxed: PgBox::from_pg(rel), need_close: true, lockmode: None } } /// relation_open - open any relation by relation OID @@ -141,10 +129,9 @@ impl PgRelation { pg_sys::to_regclass, vec![relname.into_datum()], ) { - Some(oid) => Ok(PgRelation::with_lock( - oid, - pg_sys::AccessShareLock as pg_sys::LOCKMODE, - )), + Some(oid) => { + Ok(PgRelation::with_lock(oid, pg_sys::AccessShareLock as pg_sys::LOCKMODE)) + } None => Err("no such relation"), } } @@ -231,9 +218,7 @@ impl PgRelation { /// Number of tuples in this relation (not always up-to-date) pub fn reltuples(&self) -> Option { - let reltuples = unsafe { self.boxed.rd_rel.as_ref() } - .expect("rd_rel is NULL") - .reltuples; + let reltuples = unsafe { self.boxed.rd_rel.as_ref() }.expect("rd_rel is NULL").reltuples; if reltuples == 0f32 { None diff --git a/pgx/src/spi.rs b/pgx/src/spi.rs index ab2bf4f8d..89674d2f3 100644 --- a/pgx/src/spi.rs +++ b/pgx/src/spi.rs @@ -138,10 +138,7 @@ impl Spi { query: &str, ) -> (Option, Option) { Spi::connect(|client| { - let (a, b) = client - .select(query, Some(1), None) - .first() - .get_two::(); + let (a, b) = client.select(query, Some(1), None).first().get_two::(); Ok(Some((a, b))) }) .unwrap() @@ -155,10 +152,7 @@ impl Spi { query: &str, ) -> (Option, Option, Option) { Spi::connect(|client| { - let (a, b, c) = client - .select(query, Some(1), None) - .first() - .get_three::(); + let (a, b, c) = client.select(query, Some(1), None).first().get_three::(); Ok(Some((a, b, c))) }) .unwrap() @@ -176,10 +170,7 @@ impl Spi { args: Vec<(PgOid, Option)>, ) -> (Option, Option) { Spi::connect(|client| { - let (a, b) = client - .select(query, Some(1), Some(args)) - .first() - .get_two::(); + let (a, b) = client.select(query, Some(1), Some(args)).first().get_two::(); Ok(Some((a, b))) }) .unwrap() @@ -194,10 +185,8 @@ impl Spi { args: Vec<(PgOid, Option)>, ) -> (Option, Option, Option) { Spi::connect(|client| { - let (a, b, c) = client - .select(query, Some(1), Some(args)) - .first() - .get_three::(); + let (a, b, c) = + client.select(query, Some(1), Some(args)).first().get_three::(); Ok(Some((a, b, c))) }) .unwrap() @@ -217,14 +206,9 @@ impl Spi { /// explain a query, returning its result in json form pub fn explain(query: &str) -> Json { Spi::connect(|mut client| { - let table = client - .update(&format!("EXPLAIN (format json) {}", query), None, None) - .first(); - Ok(Some( - table - .get_one::() - .expect("failed to get json EXPLAIN result"), - )) + let table = + client.update(&format!("EXPLAIN (format json) {}", query), None, None).first(); + Ok(Some(table.get_one::().expect("failed to get json EXPLAIN result"))) }) .unwrap() } @@ -508,21 +492,16 @@ impl SpiTupleTable { impl SpiHeapTupleData { /// Create a new `SpiHeapTupleData` from its constituent parts pub unsafe fn new(tupdesc: pg_sys::TupleDesc, htup: *mut pg_sys::HeapTupleData) -> Self { - let mut data = SpiHeapTupleData { - tupdesc, - entries: HashMap::default(), - }; + let mut data = SpiHeapTupleData { tupdesc, entries: HashMap::default() }; for i in 1..=tupdesc.as_ref().unwrap().natts { let mut is_null = false; let datum = pg_sys::SPI_getbinval(htup, tupdesc, i, &mut is_null); - data.entries - .entry(i as usize) - .or_insert_with(|| SpiHeapTupleDataEntry { - datum: if is_null { None } else { Some(datum) }, - type_oid: pg_sys::SPI_gettypeid(tupdesc, i), - }); + data.entries.entry(i as usize).or_insert_with(|| SpiHeapTupleDataEntry { + datum: if is_null { None } else { Some(datum) }, + type_oid: pg_sys::SPI_gettypeid(tupdesc, i), + }); } data @@ -616,10 +595,7 @@ impl SpiHeapTupleData { } else { self.entries.insert( ordinal, - SpiHeapTupleDataEntry { - datum: datum.into_datum(), - type_oid: T::type_oid(), - }, + SpiHeapTupleDataEntry { datum: datum.into_datum(), type_oid: T::type_oid() }, ); Ok(()) } @@ -648,10 +624,7 @@ impl SpiHeapTupleData { impl From for SpiHeapTupleDataEntry { fn from(datum: Datum) -> Self { - SpiHeapTupleDataEntry { - datum: datum.into_datum(), - type_oid: Datum::type_oid(), - } + SpiHeapTupleDataEntry { datum: datum.into_datum(), type_oid: Datum::type_oid() } } } diff --git a/pgx/src/stringinfo.rs b/pgx/src/stringinfo.rs index 046d2f7a1..d4f54c905 100644 --- a/pgx/src/stringinfo.rs +++ b/pgx/src/stringinfo.rs @@ -77,10 +77,7 @@ impl StringInfo { /// Unless `.into_pg()` or `.into_char_ptr()` are called, memory management of /// this `StringInfo` follow Rust's drop semantics. pub fn new() -> Self { - StringInfo { - sid: unsafe { pg_sys::makeStringInfo() }, - needs_pfree: true, - } + StringInfo { sid: unsafe { pg_sys::makeStringInfo() }, needs_pfree: true } } /// Construct a new `StringInfo`, allocated by Postgres in `CurrentMemoryContext`, ensuring it @@ -104,10 +101,7 @@ impl StringInfo { if sid.is_null() { None } else { - Some(StringInfo { - sid, - needs_pfree: false, - }) + Some(StringInfo { sid, needs_pfree: false }) } } diff --git a/pgx/src/trigger_support/pg_trigger.rs b/pgx/src/trigger_support/pg_trigger.rs index 4f820c856..2ccb7449a 100644 --- a/pgx/src/trigger_support/pg_trigger.rs +++ b/pgx/src/trigger_support/pg_trigger.rs @@ -1,12 +1,10 @@ -use crate::{ - heap_tuple::PgHeapTuple, - pg_sys, - pgbox::{AllocatedByPostgres, PgBox}, - rel::PgRelation, - trigger_support::{ - called_as_trigger, PgTriggerError, PgTriggerLevel, PgTriggerOperation, PgTriggerSafe, - PgTriggerWhen, TriggerEvent, TriggerTuple, - }, +use crate::heap_tuple::PgHeapTuple; +use crate::pg_sys; +use crate::pgbox::{AllocatedByPostgres, PgBox}; +use crate::rel::PgRelation; +use crate::trigger_support::{ + called_as_trigger, PgTriggerError, PgTriggerLevel, PgTriggerOperation, PgTriggerSafe, + PgTriggerWhen, TriggerEvent, TriggerTuple, }; use cstr_core::c_char; use std::borrow::Borrow; @@ -70,12 +68,7 @@ impl PgTrigger { } let relation_data = *relation_data_ptr; - Ok(Self { - relation_data, - trigger, - trigger_data, - fcinfo, - }) + Ok(Self { relation_data, trigger, trigger_data, fcinfo }) } /// The new HeapTuple @@ -229,9 +222,7 @@ impl PgTrigger { // containing a known good `TriggerData` which also contains a known good `Trigger`... and the user aggreed to // our `unsafe` constructor safety rules, we choose to trust this is indeed a valid pointer offered to us by // PostgreSQL, and that it trusts it. - unsafe { cstr_core::CStr::from_ptr(*v) } - .to_str() - .map(ToString::to_string) + unsafe { cstr_core::CStr::from_ptr(*v) }.to_str().map(ToString::to_string) }) .collect::>()?; Ok(args) diff --git a/pgx/src/trigger_support/pg_trigger_level.rs b/pgx/src/trigger_support/pg_trigger_level.rs index 64f02f9a2..0ffbfd7a9 100644 --- a/pgx/src/trigger_support/pg_trigger_level.rs +++ b/pgx/src/trigger_support/pg_trigger_level.rs @@ -1,4 +1,5 @@ -use crate::{pg_sys, trigger_support::TriggerEvent}; +use crate::pg_sys; +use crate::trigger_support::TriggerEvent; /// The level of a trigger /// diff --git a/pgx/src/trigger_support/pg_trigger_option.rs b/pgx/src/trigger_support/pg_trigger_option.rs index 50d648942..7d2e9ce91 100644 --- a/pgx/src/trigger_support/pg_trigger_option.rs +++ b/pgx/src/trigger_support/pg_trigger_option.rs @@ -1,7 +1,5 @@ -use crate::{ - pg_sys, - trigger_support::{PgTriggerError, TriggerEvent}, -}; +use crate::pg_sys; +use crate::trigger_support::{PgTriggerError, TriggerEvent}; /// The operation for which the trigger was fired /// diff --git a/pgx/src/trigger_support/pg_trigger_safe.rs b/pgx/src/trigger_support/pg_trigger_safe.rs index e71d4af91..08e027b62 100644 --- a/pgx/src/trigger_support/pg_trigger_safe.rs +++ b/pgx/src/trigger_support/pg_trigger_safe.rs @@ -1,9 +1,7 @@ -use crate::{ - heap_tuple::PgHeapTuple, - pg_sys, - pgbox::AllocatedByPostgres, - trigger_support::{PgTriggerLevel, PgTriggerOperation, PgTriggerWhen, TriggerEvent}, -}; +use crate::heap_tuple::PgHeapTuple; +use crate::pg_sys; +use crate::pgbox::AllocatedByPostgres; +use crate::trigger_support::{PgTriggerLevel, PgTriggerOperation, PgTriggerWhen, TriggerEvent}; pub struct PgTriggerSafe<'a> { pub name: &'a str, diff --git a/pgx/src/trigger_support/pg_trigger_when.rs b/pgx/src/trigger_support/pg_trigger_when.rs index 7487ecb9c..3b9eef9ae 100644 --- a/pgx/src/trigger_support/pg_trigger_when.rs +++ b/pgx/src/trigger_support/pg_trigger_when.rs @@ -1,7 +1,5 @@ -use crate::{ - pg_sys, - trigger_support::{PgTriggerError, TriggerEvent}, -}; +use crate::pg_sys; +use crate::trigger_support::{PgTriggerError, TriggerEvent}; /// When a trigger happened /// diff --git a/pgx/src/tupdesc.rs b/pgx/src/tupdesc.rs index 05ff8e122..bfa6e950a 100644 --- a/pgx/src/tupdesc.rs +++ b/pgx/src/tupdesc.rs @@ -225,10 +225,7 @@ impl<'a> PgTupleDesc<'a> { /// Iterate over our attributes pub fn iter(&self) -> TupleDescIterator { - TupleDescIterator { - tupdesc: self, - curr: 0, - } + TupleDescIterator { tupdesc: self, curr: 0 } } /// Convert this [PgTupleDesc] into a pointer for passing into Postgres. You are responsible @@ -312,10 +309,7 @@ impl<'a> IntoIterator for PgTupleDesc<'a> { type IntoIter = TupleDescDataIntoIterator<'a>; fn into_iter(self) -> Self::IntoIter { - TupleDescDataIntoIterator { - tupdesc: self, - curr: 0, - } + TupleDescDataIntoIterator { tupdesc: self, curr: 0 } } } diff --git a/pgx/src/varlena.rs b/pgx/src/varlena.rs index 56aae6543..063405afb 100644 --- a/pgx/src/varlena.rs +++ b/pgx/src/varlena.rs @@ -216,10 +216,8 @@ pub unsafe fn varsize_any_exhdr(ptr: *const pg_sys::varlena) -> usize { #[inline] pub unsafe fn vardata_1b(ptr: *const pg_sys::varlena) -> *const std::os::raw::c_char { let va1b = ptr as *const pg_sys::varattrib_1b; - (*va1b) - .va_data - .as_slice(varsize_1b(ptr as *const pg_sys::varlena) as usize) - .as_ptr() as *const std::os::raw::c_char + (*va1b).va_data.as_slice(varsize_1b(ptr as *const pg_sys::varlena) as usize).as_ptr() + as *const std::os::raw::c_char } /// ```c @@ -229,10 +227,8 @@ pub unsafe fn vardata_1b(ptr: *const pg_sys::varlena) -> *const std::os::raw::c_ #[inline] pub unsafe fn vardata_4b(ptr: *const pg_sys::varlena) -> *const std::os::raw::c_char { let va1b = ptr as *const pg_sys::varattrib_4b__bindgen_ty_1; // 4byte - (*va1b) - .va_data - .as_slice(varsize_1b(ptr as *const pg_sys::varlena) as usize) - .as_ptr() as *const std::os::raw::c_char + (*va1b).va_data.as_slice(varsize_1b(ptr as *const pg_sys::varlena) as usize).as_ptr() + as *const std::os::raw::c_char } /// ```c @@ -242,10 +238,8 @@ pub unsafe fn vardata_4b(ptr: *const pg_sys::varlena) -> *const std::os::raw::c_ #[inline] pub unsafe fn vardata_4b_c(ptr: *const pg_sys::varlena) -> *const std::os::raw::c_char { let va1b = ptr as *const pg_sys::varattrib_4b__bindgen_ty_2; // compressed - (*va1b) - .va_data - .as_slice(varsize_1b(ptr as *const pg_sys::varlena) as usize) - .as_ptr() as *const std::os::raw::c_char + (*va1b).va_data.as_slice(varsize_1b(ptr as *const pg_sys::varlena) as usize).as_ptr() + as *const std::os::raw::c_char } /// ```c @@ -255,10 +249,8 @@ pub unsafe fn vardata_4b_c(ptr: *const pg_sys::varlena) -> *const std::os::raw:: #[inline] pub unsafe fn vardata_1b_e(ptr: *const pg_sys::varlena) -> *const std::os::raw::c_char { let va1b = ptr as *const pg_sys::varattrib_1b_e; - (*va1b) - .va_data - .as_slice(varsize_1b(ptr as *const pg_sys::varlena) as usize) - .as_ptr() as *const std::os::raw::c_char + (*va1b).va_data.as_slice(varsize_1b(ptr as *const pg_sys::varlena) as usize).as_ptr() + as *const std::os::raw::c_char } /// ```c diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 000000000..a74428d00 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,7 @@ +# Run rustfmt with this config (it should be picked up automatically). +use_small_heuristics = "Max" +merge_derives = false + +# run `cargo +nightly fmt` with these uncommented occasionally until it stabilizes +# unstable_features = true +# imports_granularity = "Module" diff --git a/upgrade-deps.sh b/upgrade-deps.sh index b80e298f2..5f5c0dc6b 100755 --- a/upgrade-deps.sh +++ b/upgrade-deps.sh @@ -22,4 +22,4 @@ for folder in pgx-examples/*; do cargo generate-lockfile cd - fi -done \ No newline at end of file +done