1
0
mirror of https://github.com/tensorchord/pgvecto.rs.git synced 2025-04-18 21:44:00 +03:00

chore: update pgrx to v0.12.1 (#567)

Signed-off-by: usamoi <usamoi@outlook.com>
This commit is contained in:
usamoi 2024-08-22 12:54:33 +08:00 committed by GitHub
parent ab1edc9777
commit 86bbed2bff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
50 changed files with 119641 additions and 67956 deletions

View File

@ -84,24 +84,10 @@ jobs:
sudo apt-get update
sudo apt-get install -y clang-16
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 128
- name: Set up PostgreSQL
run: |
mkdir -p ~/.pg14/pg_binding && touch ~/.pg14/pg_config && chmod 777 ~/.pg14/pg_config
mkdir -p ~/.pg15/pg_binding && touch ~/.pg15/pg_config && chmod 777 ~/.pg15/pg_config
mkdir -p ~/.pg16/pg_binding && touch ~/.pg16/pg_config && chmod 777 ~/.pg16/pg_config
cp ./vendor/pgrx_binding/pg14_${ARCH}-unknown-linux-gnu.rs ~/.pg14/pg_binding/pg14_raw_bindings.rs
cp ./vendor/pgrx_binding/pg15_${ARCH}-unknown-linux-gnu.rs ~/.pg15/pg_binding/pg15_raw_bindings.rs
cp ./vendor/pgrx_binding/pg16_${ARCH}-unknown-linux-gnu.rs ~/.pg16/pg_binding/pg16_raw_bindings.rs
echo "#!/usr/bin/env bash" >> ~/.pg14/pg_config
echo "$(pwd)/tools/pg_config.sh \"\$@\" < $(pwd)/vendor/pg_config/pg14_${ARCH}-unknown-linux-gnu.txt" >> ~/.pg14/pg_config
echo "#!/usr/bin/env bash" >> ~/.pg15/pg_config
echo "$(pwd)/tools/pg_config.sh \"\$@\" < $(pwd)/vendor/pg_config/pg15_${ARCH}-unknown-linux-gnu.txt" >> ~/.pg15/pg_config
echo "#!/usr/bin/env bash" >> ~/.pg16/pg_config
echo "$(pwd)/tools/pg_config.sh \"\$@\" < $(pwd)/vendor/pg_config/pg16_${ARCH}-unknown-linux-gnu.txt" >> ~/.pg16/pg_config
- name: Build
run: |
export PGRX_PG_CONFIG_PATH=$HOME/.pg$VERSION/pg_config
export PGRX_TARGET_INFO_PATH_PG$VERSION=$HOME/.pg$VERSION/pg_binding
export PGRX_PG_CONFIG_PATH=$(pwd)/vendor/pg${VERSION}_${ARCH}_debian/pg_config/pg_config
export PGRX_TARGET_INFO_PATH_PG$VERSION=$(pwd)/vendor/pg${VERSION}_${ARCH}_debian/pgrx_binding
cargo build --package pgvectors --lib --features pg$VERSION --target $ARCH-unknown-linux-gnu --profile opt
./tools/schema.sh --features pg$VERSION --target $ARCH-unknown-linux-gnu --profile opt | expand -t 4 > ./target/schema.sql
- name: Install

View File

@ -78,24 +78,10 @@ jobs:
sudo apt-get update
sudo apt-get install -y clang-16
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 128
- name: Set up PostgreSQL
run: |
mkdir -p ~/.pg14/pg_binding && touch ~/.pg14/pg_config && chmod 777 ~/.pg14/pg_config
mkdir -p ~/.pg15/pg_binding && touch ~/.pg15/pg_config && chmod 777 ~/.pg15/pg_config
mkdir -p ~/.pg16/pg_binding && touch ~/.pg16/pg_config && chmod 777 ~/.pg16/pg_config
cp ./vendor/pgrx_binding/pg14_${ARCH}-unknown-linux-gnu.rs ~/.pg14/pg_binding/pg14_raw_bindings.rs
cp ./vendor/pgrx_binding/pg15_${ARCH}-unknown-linux-gnu.rs ~/.pg15/pg_binding/pg15_raw_bindings.rs
cp ./vendor/pgrx_binding/pg16_${ARCH}-unknown-linux-gnu.rs ~/.pg16/pg_binding/pg16_raw_bindings.rs
echo "#!/usr/bin/env bash" >> ~/.pg14/pg_config
echo "$(pwd)/tools/pg_config.sh \"\$@\" < $(pwd)/vendor/pg_config/pg14_${ARCH}-unknown-linux-gnu.txt" >> ~/.pg14/pg_config
echo "#!/usr/bin/env bash" >> ~/.pg15/pg_config
echo "$(pwd)/tools/pg_config.sh \"\$@\" < $(pwd)/vendor/pg_config/pg15_${ARCH}-unknown-linux-gnu.txt" >> ~/.pg15/pg_config
echo "#!/usr/bin/env bash" >> ~/.pg16/pg_config
echo "$(pwd)/tools/pg_config.sh \"\$@\" < $(pwd)/vendor/pg_config/pg16_${ARCH}-unknown-linux-gnu.txt" >> ~/.pg16/pg_config
- name: Build
run: |
export PGRX_PG_CONFIG_PATH=$HOME/.pg$VERSION/pg_config
export PGRX_TARGET_INFO_PATH_PG$VERSION=$HOME/.pg$VERSION/pg_binding
export PGRX_PG_CONFIG_PATH=$(pwd)/vendor/pg${VERSION}_${ARCH}_debian/pg_config/pg_config
export PGRX_TARGET_INFO_PATH_PG$VERSION=$(pwd)/vendor/pg${VERSION}_${ARCH}_debian/pgrx_binding
cargo build --package pgvectors --lib --features pg$VERSION --target $ARCH-unknown-linux-gnu --release
./tools/schema.sh --features pg$VERSION --target $ARCH-unknown-linux-gnu --release | expand -t 4 > ./target/schema.sql
- name: Package

View File

@ -83,43 +83,29 @@ jobs:
sudo apt-get update
sudo apt-get install -y clang-16
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 128
- name: Set up PostgreSQL
run: |
mkdir -p ~/.pg14/pg_binding && touch ~/.pg14/pg_config && chmod 777 ~/.pg14/pg_config
mkdir -p ~/.pg15/pg_binding && touch ~/.pg15/pg_config && chmod 777 ~/.pg15/pg_config
mkdir -p ~/.pg16/pg_binding && touch ~/.pg16/pg_config && chmod 777 ~/.pg16/pg_config
cp ./vendor/pgrx_binding/pg14_${ARCH}-unknown-linux-gnu.rs ~/.pg14/pg_binding/pg14_raw_bindings.rs
cp ./vendor/pgrx_binding/pg15_${ARCH}-unknown-linux-gnu.rs ~/.pg15/pg_binding/pg15_raw_bindings.rs
cp ./vendor/pgrx_binding/pg16_${ARCH}-unknown-linux-gnu.rs ~/.pg16/pg_binding/pg16_raw_bindings.rs
echo "#!/usr/bin/env bash" >> ~/.pg14/pg_config
echo "$(pwd)/tools/pg_config.sh \"\$@\" < $(pwd)/vendor/pg_config/pg14_${ARCH}-unknown-linux-gnu.txt" >> ~/.pg14/pg_config
echo "#!/usr/bin/env bash" >> ~/.pg15/pg_config
echo "$(pwd)/tools/pg_config.sh \"\$@\" < $(pwd)/vendor/pg_config/pg15_${ARCH}-unknown-linux-gnu.txt" >> ~/.pg15/pg_config
echo "#!/usr/bin/env bash" >> ~/.pg16/pg_config
echo "$(pwd)/tools/pg_config.sh \"\$@\" < $(pwd)/vendor/pg_config/pg16_${ARCH}-unknown-linux-gnu.txt" >> ~/.pg16/pg_config
- name: Clippy
run: |
cargo clippy --workspace --exclude pgvectors --exclude pyvectors --target $ARCH-unknown-linux-gnu
export PGRX_PG_CONFIG_PATH=$HOME/.pg14/pg_config
export PGRX_TARGET_INFO_PATH_PG14=$HOME/.pg14/pg_binding
export PGRX_PG_CONFIG_PATH=$(pwd)/vendor/pg14_${ARCH}_debian/pg_config/pg_config
export PGRX_TARGET_INFO_PATH_PG14=$(pwd)/vendor/pg14_${ARCH}_debian/pgrx_binding
cargo clippy --package pgvectors --features pg14 --no-deps --target $ARCH-unknown-linux-gnu
export PGRX_PG_CONFIG_PATH=$HOME/.pg15/pg_config
export PGRX_TARGET_INFO_PATH_PG15=$HOME/.pg15/pg_binding
export PGRX_PG_CONFIG_PATH=$(pwd)/vendor/pg15_${ARCH}_debian/pg_config/pg_config
export PGRX_TARGET_INFO_PATH_PG15=$(pwd)/vendor/pg15_${ARCH}_debian/pgrx_binding
cargo clippy --package pgvectors --features pg15 --no-deps --target $ARCH-unknown-linux-gnu
export PGRX_PG_CONFIG_PATH=$HOME/.pg16/pg_config
export PGRX_TARGET_INFO_PATH_PG16=$HOME/.pg16/pg_binding
export PGRX_PG_CONFIG_PATH=$(pwd)/vendor/pg16_${ARCH}_debian/pg_config/pg_config
export PGRX_TARGET_INFO_PATH_PG16=$(pwd)/vendor/pg16_${ARCH}_debian/pgrx_binding
cargo clippy --package pgvectors --features pg16 --no-deps --target $ARCH-unknown-linux-gnu
- name: Build
run: |
cargo build --workspace --exclude pgvectors --exclude pyvectors --target $ARCH-unknown-linux-gnu
export PGRX_PG_CONFIG_PATH=$HOME/.pg14/pg_config
export PGRX_TARGET_INFO_PATH_PG14=$HOME/.pg14/pg_binding
export PGRX_PG_CONFIG_PATH=$(pwd)/vendor/pg14_${ARCH}_debian/pg_config/pg_config
export PGRX_TARGET_INFO_PATH_PG14=$(pwd)/vendor/pg14_${ARCH}_debian/pgrx_binding
cargo build --package pgvectors --lib --features pg14 --target $ARCH-unknown-linux-gnu
export PGRX_PG_CONFIG_PATH=$HOME/.pg15/pg_config
export PGRX_TARGET_INFO_PATH_PG15=$HOME/.pg15/pg_binding
export PGRX_PG_CONFIG_PATH=$(pwd)/vendor/pg15_${ARCH}_debian/pg_config/pg_config
export PGRX_TARGET_INFO_PATH_PG15=$(pwd)/vendor/pg15_${ARCH}_debian/pgrx_binding
cargo build --package pgvectors --lib --features pg15 --target $ARCH-unknown-linux-gnu
export PGRX_PG_CONFIG_PATH=$HOME/.pg16/pg_config
export PGRX_TARGET_INFO_PATH_PG16=$HOME/.pg16/pg_binding
export PGRX_PG_CONFIG_PATH=$(pwd)/vendor/pg16_${ARCH}_debian/pg_config/pg_config
export PGRX_TARGET_INFO_PATH_PG16=$(pwd)/vendor/pg16_${ARCH}_debian/pgrx_binding
cargo build --package pgvectors --lib --features pg16 --target $ARCH-unknown-linux-gnu
- name: Test
run: |

View File

@ -11,4 +11,4 @@ extend-ignore-re = [
]
[files]
extend-exclude = ["vendor/pg_config/*.txt", "vendor/pgrx_binding/*.rs"]
extend-exclude = ["vendor"]

87
Cargo.lock generated
View File

@ -393,17 +393,6 @@ version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
[[package]]
name = "atty"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
dependencies = [
"hermit-abi 0.1.19",
"libc",
"winapi",
]
[[package]]
name = "autocfg"
version = "1.3.0"
@ -1249,15 +1238,6 @@ version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
[[package]]
name = "hermit-abi"
version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
[[package]]
name = "hermit-abi"
version = "0.3.9"
@ -1618,6 +1598,17 @@ version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3"
[[package]]
name = "is-terminal"
version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "261f68e344040fbd0edea105bef17c66edf46f984ddb1115b775ce31be948f4b"
dependencies = [
"hermit-abi 0.4.0",
"libc",
"windows-sys 0.52.0",
]
[[package]]
name = "is_ci"
version = "1.2.0"
@ -2025,9 +2016,9 @@ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
[[package]]
name = "owo-colors"
version = "3.5.0"
version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f"
checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f"
dependencies = [
"supports-color",
]
@ -2106,8 +2097,8 @@ dependencies = [
[[package]]
name = "pgrx"
version = "0.12.0-alpha.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.0-alpha.1-patch3#6a89f963209e9d4ed18d2fb868b8d2e967421785"
version = "0.12.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.1-patch#5aadeb126b7e7c5c4aa04cf38528de81a21982a0"
dependencies = [
"atomic-traits",
"bitflags 2.6.0",
@ -2128,10 +2119,26 @@ dependencies = [
"uuid",
]
[[package]]
name = "pgrx-bindgen"
version = "0.12.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.1-patch#5aadeb126b7e7c5c4aa04cf38528de81a21982a0"
dependencies = [
"bindgen",
"clang-sys",
"eyre",
"pgrx-pg-config",
"proc-macro2",
"quote",
"shlex",
"syn 2.0.72",
"walkdir",
]
[[package]]
name = "pgrx-macros"
version = "0.12.0-alpha.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.0-alpha.1-patch3#6a89f963209e9d4ed18d2fb868b8d2e967421785"
version = "0.12.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.1-patch#5aadeb126b7e7c5c4aa04cf38528de81a21982a0"
dependencies = [
"pgrx-sql-entity-graph",
"proc-macro2",
@ -2141,8 +2148,8 @@ dependencies = [
[[package]]
name = "pgrx-pg-config"
version = "0.12.0-alpha.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.0-alpha.1-patch3#6a89f963209e9d4ed18d2fb868b8d2e967421785"
version = "0.12.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.1-patch#5aadeb126b7e7c5c4aa04cf38528de81a21982a0"
dependencies = [
"cargo_toml",
"eyre",
@ -2158,30 +2165,22 @@ dependencies = [
[[package]]
name = "pgrx-pg-sys"
version = "0.12.0-alpha.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.0-alpha.1-patch3#6a89f963209e9d4ed18d2fb868b8d2e967421785"
version = "0.12.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.1-patch#5aadeb126b7e7c5c4aa04cf38528de81a21982a0"
dependencies = [
"bindgen",
"cee-scape",
"clang-sys",
"eyre",
"libc",
"pgrx-bindgen",
"pgrx-macros",
"pgrx-pg-config",
"pgrx-sql-entity-graph",
"proc-macro2",
"quote",
"serde",
"shlex",
"sptr",
"syn 2.0.72",
"walkdir",
]
[[package]]
name = "pgrx-sql-entity-graph"
version = "0.12.0-alpha.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.0-alpha.1-patch3#6a89f963209e9d4ed18d2fb868b8d2e967421785"
version = "0.12.1"
source = "git+https://github.com/tensorchord/pgrx.git?branch=v0.12.1-patch#5aadeb126b7e7c5c4aa04cf38528de81a21982a0"
dependencies = [
"convert_case",
"eyre",
@ -3125,11 +3124,11 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
[[package]]
name = "supports-color"
version = "1.3.1"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ba6faf2ca7ee42fdd458f4347ae0a9bd6bcc445ad7cb57ad82b383f18870d6f"
checksum = "d6398cde53adc3c4557306a96ce67b302968513830a77a95b2b17305d9719a89"
dependencies = [
"atty",
"is-terminal",
"is_ci",
]

View File

@ -16,6 +16,7 @@ default = []
pg14 = ["pgrx/pg14"]
pg15 = ["pgrx/pg15"]
pg16 = ["pgrx/pg16"]
pg17 = ["pgrx/pg17"]
[dependencies]
arrayvec.workspace = true
@ -27,7 +28,7 @@ log.workspace = true
memmap2.workspace = true
num-traits.workspace = true
paste.workspace = true
pgrx = { version = "=0.12.0-alpha.1", default-features = false, features = [] }
pgrx = { version = "=0.12.1", default-features = false, features = [] }
rand.workspace = true
rustix.workspace = true
serde.workspace = true
@ -87,7 +88,7 @@ rust.unused_lifetimes = "warn"
rust.unused_qualifications = "warn"
[patch.crates-io]
pgrx = { git = "https://github.com/tensorchord/pgrx.git", branch = "v0.12.0-alpha.1-patch3" }
pgrx = { git = "https://github.com/tensorchord/pgrx.git", branch = "v0.12.1-patch" }
[profile.opt]
inherits = "dev"

View File

@ -19,8 +19,17 @@ cd $(mktemp -d)
cargo init --lib --name vectors
cargo add pgrx-pg-sys --git https://github.com/tensorchord/pgrx.git --branch $BRANCH --no-default-features --features pg$VERSION
PGRX_PG_CONFIG_PATH=$(which pg_config) PGRX_PG_SYS_EXTRA_OUTPUT_PATH=$(pwd)/pgrx-binding.rs cargo build
rustfmt ./pgrx-binding.rs
PGRX_PG_CONFIG_PATH=$(which pg_config) PGRX_PG_SYS_EXTRA_OUTPUT_PATH=$(pwd)/pgrx_binding.rs cargo build
rustfmt ./pgrx_binding.rs
cp ./pgrx-binding.rs /mnt/build/vendor/pgrx_binding/pg${VERSION}_$(uname --machine)-unknown-linux-gnu.rs
pg_config > /mnt/build/vendor/pg_config/pg${VERSION}_$(uname --machine)-unknown-linux-gnu.txt
mkdir -p /mnt/build/vendor/pg${VERSION}_$(uname --machine)_debian
mkdir -p /mnt/build/vendor/pg${VERSION}_$(uname --machine)_debian/pg_config
mkdir -p /mnt/build/vendor/pg${VERSION}_$(uname --machine)_debian/pgrx_binding
touch /mnt/build/vendor/pg${VERSION}_$(uname --machine)_debian/pg_config/pg_config
echo "#!/usr/bin/env bash" > /mnt/build/vendor/pg${VERSION}_$(uname --machine)_debian/pg_config/pg_config
echo '$(dirname "$0")/../../../tools/pg_config.sh "$@" < $(dirname "$0")/pg_config.txt' >> /mnt/build/vendor/pg${VERSION}_$(uname --machine)_debian/pg_config/pg_config
chmod 777 /mnt/build/vendor/pg${VERSION}_$(uname --machine)_debian/pg_config/pg_config
pg_config > /mnt/build/vendor/pg${VERSION}_$(uname --machine)_debian/pg_config/pg_config.txt
cp ./pgrx_binding.rs /mnt/build/vendor/pg${VERSION}_$(uname --machine)_debian/pgrx_binding/pg${VERSION}_raw_bindings.rs

View File

@ -3,7 +3,7 @@ use crate::error::*;
use base::scalar::*;
use base::vector::*;
use num_traits::Zero;
use pgrx::Internal;
use pgrx::datum::Internal;
pub struct SVecf32AggregateAvgSumStype {
dims: u32,

View File

@ -2,7 +2,7 @@ use crate::datatype::memory_vecf32::{Vecf32Input, Vecf32Output};
use crate::error::*;
use base::scalar::*;
use base::vector::*;
use pgrx::Internal;
use pgrx::datum::Internal;
#[repr(C, align(8))]
pub struct Vecf32AggregateAvgSumStype {

View File

@ -36,8 +36,10 @@ unsafe impl SqlTranslatable for Bytea {
}
unsafe impl pgrx::callconv::BoxRet for Bytea {
unsafe fn box_in_fcinfo(self, fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Datum {
self.into_datum()
.unwrap_or_else(|| unsafe { pgrx::fcinfo::pg_return_null(fcinfo) })
unsafe fn box_into<'fcx>(
self,
fcinfo: &mut pgrx::callconv::FcInfo<'fcx>,
) -> pgrx::datum::Datum<'fcx> {
unsafe { fcinfo.return_raw_datum(Datum::from(self.0 as *mut ())) }
}
}

View File

@ -9,7 +9,7 @@ use num_traits::Zero;
#[pgrx::pg_extern(immutable, strict, parallel_safe)]
fn _vectors_cast_array_to_vecf32(
array: pgrx::Array<f32>,
array: pgrx::datum::Array<f32>,
typmod: i32,
_explicit: bool,
) -> Vecf32Output {

View File

@ -21,8 +21,8 @@ fn _vectors_svecf32_normalize(vector: SVecf32Input<'_>) -> SVecf32Output {
#[pgrx::pg_extern(immutable, strict, parallel_safe)]
fn _vectors_to_svector(
dims: i32,
index: pgrx::Array<i32>,
value: pgrx::Array<f32>,
index: pgrx::datum::Array<i32>,
value: pgrx::datum::Array<f32>,
) -> SVecf32Output {
let dims = dims as u32;
check_value_dims_1048575(dims);

View File

@ -1,4 +1,6 @@
use base::vector::*;
use pgrx::datum::FromDatum;
use pgrx::datum::IntoDatum;
use pgrx::pg_sys::Datum;
use pgrx::pg_sys::Oid;
use pgrx::pgrx_sql_entity_graph::metadata::ArgumentError;
@ -6,9 +8,6 @@ use pgrx::pgrx_sql_entity_graph::metadata::Returns;
use pgrx::pgrx_sql_entity_graph::metadata::ReturnsError;
use pgrx::pgrx_sql_entity_graph::metadata::SqlMapping;
use pgrx::pgrx_sql_entity_graph::metadata::SqlTranslatable;
use pgrx::FromDatum;
use pgrx::IntoDatum;
use pgrx::UnboxDatum;
use std::alloc::Layout;
use std::ops::Deref;
use std::ops::DerefMut;
@ -175,10 +174,10 @@ impl FromDatum for BVectorOutput {
}
}
unsafe impl UnboxDatum for BVectorOutput {
unsafe impl pgrx::datum::UnboxDatum for BVectorOutput {
type As<'src> = BVectorOutput;
#[inline]
unsafe fn unbox<'src>(d: pgrx::Datum<'src>) -> Self::As<'src>
unsafe fn unbox<'src>(d: pgrx::datum::Datum<'src>) -> Self::As<'src>
where
Self: 'src,
{
@ -214,9 +213,17 @@ unsafe impl SqlTranslatable for BVectorOutput {
}
}
unsafe impl pgrx::callconv::BoxRet for BVectorOutput {
unsafe fn box_in_fcinfo(self, fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Datum {
self.into_datum()
.unwrap_or_else(|| unsafe { pgrx::fcinfo::pg_return_null(fcinfo) })
unsafe impl<'fcx> pgrx::callconv::ArgAbi<'fcx> for BVectorInput<'fcx> {
unsafe fn unbox_arg_unchecked(arg: pgrx::callconv::Arg<'_, 'fcx>) -> Self {
unsafe { arg.unbox_arg_using_from_datum().unwrap() }
}
}
unsafe impl pgrx::callconv::BoxRet for BVectorOutput {
unsafe fn box_into<'fcx>(
self,
fcinfo: &mut pgrx::callconv::FcInfo<'fcx>,
) -> pgrx::datum::Datum<'fcx> {
unsafe { fcinfo.return_raw_datum(Datum::from(self.into_raw() as *mut ())) }
}
}

View File

@ -1,5 +1,7 @@
use base::scalar::*;
use base::vector::*;
use pgrx::datum::FromDatum;
use pgrx::datum::IntoDatum;
use pgrx::pg_sys::Datum;
use pgrx::pg_sys::Oid;
use pgrx::pgrx_sql_entity_graph::metadata::ArgumentError;
@ -7,9 +9,6 @@ use pgrx::pgrx_sql_entity_graph::metadata::Returns;
use pgrx::pgrx_sql_entity_graph::metadata::ReturnsError;
use pgrx::pgrx_sql_entity_graph::metadata::SqlMapping;
use pgrx::pgrx_sql_entity_graph::metadata::SqlTranslatable;
use pgrx::FromDatum;
use pgrx::IntoDatum;
use pgrx::UnboxDatum;
use std::alloc::Layout;
use std::ops::Deref;
use std::ptr::NonNull;
@ -190,10 +189,10 @@ impl FromDatum for SVecf32Output {
}
}
unsafe impl UnboxDatum for SVecf32Output {
unsafe impl pgrx::datum::UnboxDatum for SVecf32Output {
type As<'src> = SVecf32Output;
#[inline]
unsafe fn unbox<'src>(d: pgrx::Datum<'src>) -> Self::As<'src>
unsafe fn unbox<'src>(d: pgrx::datum::Datum<'src>) -> Self::As<'src>
where
Self: 'src,
{
@ -229,9 +228,17 @@ unsafe impl SqlTranslatable for SVecf32Output {
}
}
unsafe impl pgrx::callconv::BoxRet for SVecf32Output {
unsafe fn box_in_fcinfo(self, fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Datum {
self.into_datum()
.unwrap_or_else(|| unsafe { pgrx::fcinfo::pg_return_null(fcinfo) })
unsafe impl<'fcx> pgrx::callconv::ArgAbi<'fcx> for SVecf32Input<'fcx> {
unsafe fn unbox_arg_unchecked(arg: pgrx::callconv::Arg<'_, 'fcx>) -> Self {
unsafe { arg.unbox_arg_using_from_datum().unwrap() }
}
}
unsafe impl pgrx::callconv::BoxRet for SVecf32Output {
unsafe fn box_into<'fcx>(
self,
fcinfo: &mut pgrx::callconv::FcInfo<'fcx>,
) -> pgrx::datum::Datum<'fcx> {
unsafe { fcinfo.return_raw_datum(Datum::from(self.into_raw() as *mut ())) }
}
}

View File

@ -1,5 +1,7 @@
use base::scalar::*;
use base::vector::*;
use pgrx::datum::FromDatum;
use pgrx::datum::IntoDatum;
use pgrx::pg_sys::Datum;
use pgrx::pg_sys::Oid;
use pgrx::pgrx_sql_entity_graph::metadata::ArgumentError;
@ -7,9 +9,6 @@ use pgrx::pgrx_sql_entity_graph::metadata::Returns;
use pgrx::pgrx_sql_entity_graph::metadata::ReturnsError;
use pgrx::pgrx_sql_entity_graph::metadata::SqlMapping;
use pgrx::pgrx_sql_entity_graph::metadata::SqlTranslatable;
use pgrx::FromDatum;
use pgrx::IntoDatum;
use pgrx::UnboxDatum;
use std::alloc::Layout;
use std::ops::Deref;
use std::ptr::NonNull;
@ -169,10 +168,10 @@ impl FromDatum for Vecf16Output {
}
}
unsafe impl UnboxDatum for Vecf16Output {
unsafe impl pgrx::datum::UnboxDatum for Vecf16Output {
type As<'src> = Vecf16Output;
#[inline]
unsafe fn unbox<'src>(d: pgrx::Datum<'src>) -> Self::As<'src>
unsafe fn unbox<'src>(d: pgrx::datum::Datum<'src>) -> Self::As<'src>
where
Self: 'src,
{
@ -208,9 +207,17 @@ unsafe impl SqlTranslatable for Vecf16Output {
}
}
unsafe impl pgrx::callconv::BoxRet for Vecf16Output {
unsafe fn box_in_fcinfo(self, fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Datum {
self.into_datum()
.unwrap_or_else(|| unsafe { pgrx::fcinfo::pg_return_null(fcinfo) })
unsafe impl<'fcx> pgrx::callconv::ArgAbi<'fcx> for Vecf16Input<'fcx> {
unsafe fn unbox_arg_unchecked(arg: pgrx::callconv::Arg<'_, 'fcx>) -> Self {
unsafe { arg.unbox_arg_using_from_datum().unwrap() }
}
}
unsafe impl pgrx::callconv::BoxRet for Vecf16Output {
unsafe fn box_into<'fcx>(
self,
fcinfo: &mut pgrx::callconv::FcInfo<'fcx>,
) -> pgrx::datum::Datum<'fcx> {
unsafe { fcinfo.return_raw_datum(Datum::from(self.into_raw() as *mut ())) }
}
}

View File

@ -1,5 +1,7 @@
use base::scalar::*;
use base::vector::*;
use pgrx::datum::FromDatum;
use pgrx::datum::IntoDatum;
use pgrx::pg_sys::Datum;
use pgrx::pg_sys::Oid;
use pgrx::pgrx_sql_entity_graph::metadata::ArgumentError;
@ -7,9 +9,6 @@ use pgrx::pgrx_sql_entity_graph::metadata::Returns;
use pgrx::pgrx_sql_entity_graph::metadata::ReturnsError;
use pgrx::pgrx_sql_entity_graph::metadata::SqlMapping;
use pgrx::pgrx_sql_entity_graph::metadata::SqlTranslatable;
use pgrx::FromDatum;
use pgrx::IntoDatum;
use pgrx::UnboxDatum;
use std::alloc::Layout;
use std::ops::Deref;
use std::ptr::NonNull;
@ -169,10 +168,10 @@ impl FromDatum for Vecf32Output {
}
}
unsafe impl UnboxDatum for Vecf32Output {
unsafe impl pgrx::datum::UnboxDatum for Vecf32Output {
type As<'src> = Vecf32Output;
#[inline]
unsafe fn unbox<'src>(d: pgrx::Datum<'src>) -> Self::As<'src>
unsafe fn unbox<'src>(d: pgrx::datum::Datum<'src>) -> Self::As<'src>
where
Self: 'src,
{
@ -208,9 +207,17 @@ unsafe impl SqlTranslatable for Vecf32Output {
}
}
unsafe impl pgrx::callconv::BoxRet for Vecf32Output {
unsafe fn box_in_fcinfo(self, fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Datum {
self.into_datum()
.unwrap_or_else(|| unsafe { pgrx::fcinfo::pg_return_null(fcinfo) })
unsafe impl<'fcx> pgrx::callconv::ArgAbi<'fcx> for Vecf32Input<'fcx> {
unsafe fn unbox_arg_unchecked(arg: pgrx::callconv::Arg<'_, 'fcx>) -> Self {
unsafe { arg.unbox_arg_using_from_datum().unwrap() }
}
}
unsafe impl pgrx::callconv::BoxRet for Vecf32Output {
unsafe fn box_into<'fcx>(
self,
fcinfo: &mut pgrx::callconv::FcInfo<'fcx>,
) -> pgrx::datum::Datum<'fcx> {
unsafe { fcinfo.return_raw_datum(Datum::from(self.into_raw() as *mut ())) }
}
}

View File

@ -42,8 +42,8 @@ fn _vectors_bvector_subscript(_fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Intern
pgrx::pg_sys::exprType(subexpr),
pgrx::pg_sys::INT4OID,
-1,
pgrx::pg_sys::CoercionContext_COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm_COERCE_IMPLICIT_CAST,
pgrx::pg_sys::CoercionContext::COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm::COERCE_IMPLICIT_CAST,
-1,
);
if subexpr.is_null() {
@ -65,8 +65,8 @@ fn _vectors_bvector_subscript(_fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Intern
pgrx::pg_sys::exprType(subexpr),
pgrx::pg_sys::INT4OID,
-1,
pgrx::pg_sys::CoercionContext_COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm_COERCE_IMPLICIT_CAST,
pgrx::pg_sys::CoercionContext::COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm::COERCE_IMPLICIT_CAST,
-1,
);
if subexpr.is_null() {

View File

@ -42,8 +42,8 @@ fn _vectors_svecf32_subscript(_fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Intern
pgrx::pg_sys::exprType(subexpr),
pgrx::pg_sys::INT4OID,
-1,
pgrx::pg_sys::CoercionContext_COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm_COERCE_IMPLICIT_CAST,
pgrx::pg_sys::CoercionContext::COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm::COERCE_IMPLICIT_CAST,
-1,
);
if subexpr.is_null() {
@ -65,8 +65,8 @@ fn _vectors_svecf32_subscript(_fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Intern
pgrx::pg_sys::exprType(subexpr),
pgrx::pg_sys::INT4OID,
-1,
pgrx::pg_sys::CoercionContext_COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm_COERCE_IMPLICIT_CAST,
pgrx::pg_sys::CoercionContext::COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm::COERCE_IMPLICIT_CAST,
-1,
);
if subexpr.is_null() {

View File

@ -42,8 +42,8 @@ fn _vectors_vecf16_subscript(_fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Interna
pgrx::pg_sys::exprType(subexpr),
pgrx::pg_sys::INT4OID,
-1,
pgrx::pg_sys::CoercionContext_COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm_COERCE_IMPLICIT_CAST,
pgrx::pg_sys::CoercionContext::COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm::COERCE_IMPLICIT_CAST,
-1,
);
if subexpr.is_null() {
@ -65,8 +65,8 @@ fn _vectors_vecf16_subscript(_fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Interna
pgrx::pg_sys::exprType(subexpr),
pgrx::pg_sys::INT4OID,
-1,
pgrx::pg_sys::CoercionContext_COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm_COERCE_IMPLICIT_CAST,
pgrx::pg_sys::CoercionContext::COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm::COERCE_IMPLICIT_CAST,
-1,
);
if subexpr.is_null() {

View File

@ -42,8 +42,8 @@ fn _vectors_vecf32_subscript(_fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Interna
pgrx::pg_sys::exprType(subexpr),
pgrx::pg_sys::INT4OID,
-1,
pgrx::pg_sys::CoercionContext_COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm_COERCE_IMPLICIT_CAST,
pgrx::pg_sys::CoercionContext::COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm::COERCE_IMPLICIT_CAST,
-1,
);
if subexpr.is_null() {
@ -65,8 +65,8 @@ fn _vectors_vecf32_subscript(_fcinfo: pgrx::pg_sys::FunctionCallInfo) -> Interna
pgrx::pg_sys::exprType(subexpr),
pgrx::pg_sys::INT4OID,
-1,
pgrx::pg_sys::CoercionContext_COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm_COERCE_IMPLICIT_CAST,
pgrx::pg_sys::CoercionContext::COERCION_ASSIGNMENT,
pgrx::pg_sys::CoercionForm::COERCE_IMPLICIT_CAST,
-1,
);
if subexpr.is_null() {

View File

@ -1,5 +1,4 @@
use crate::error::*;
use pgrx::Array;
use serde::{Deserialize, Serialize};
use std::ffi::{CStr, CString};
use std::num::NonZeroU32;
@ -45,7 +44,7 @@ impl Typmod {
}
#[pgrx::pg_extern(immutable, strict, parallel_safe)]
fn _vectors_typmod_in_65535(list: Array<&CStr>) -> i32 {
fn _vectors_typmod_in_65535(list: pgrx::datum::Array<&CStr>) -> i32 {
if list.is_empty() {
-1
} else if list.len() == 1 {
@ -63,7 +62,7 @@ ADVICE: Check if modifier of the type is an integer among 1 and 65535."
}
#[pgrx::pg_extern(immutable, strict, parallel_safe)]
fn _vectors_typmod_in_1048575(list: Array<&CStr>) -> i32 {
fn _vectors_typmod_in_1048575(list: pgrx::datum::Array<&CStr>) -> i32 {
if list.is_empty() {
-1
} else if list.len() == 1 {

View File

@ -1,6 +1,6 @@
use super::guc_string_parse;
use embedding::OpenAIOptions;
use pgrx::{GucContext, GucFlags, GucRegistry, GucSetting};
use pgrx::guc::{GucContext, GucFlags, GucRegistry, GucSetting};
use std::ffi::CStr;
pub fn openai_options() -> OpenAIOptions {

View File

@ -1,6 +1,7 @@
use pgrx::{GucContext, GucFlags, GucRegistry, GucSetting};
use pgrx::guc::{GucContext, GucFlags, GucRegistry, GucSetting};
use pgrx::PostgresGucEnum;
#[derive(Debug, Clone, Copy, pgrx::PostgresGucEnum)]
#[derive(Debug, Clone, Copy, PostgresGucEnum)]
#[allow(non_camel_case_types)]
pub enum Transport {
unix,

View File

@ -1,5 +1,5 @@
use crate::error::*;
use pgrx::GucSetting;
use pgrx::guc::GucSetting;
use std::ffi::CStr;
pub mod embedding;

View File

@ -1,6 +1,7 @@
use pgrx::{GucContext, GucFlags, GucRegistry, GucSetting};
use pgrx::guc::{GucContext, GucFlags, GucRegistry, GucSetting};
use pgrx::PostgresGucEnum;
#[derive(Debug, Clone, Copy, pgrx::PostgresGucEnum)]
#[derive(Debug, Clone, Copy, PostgresGucEnum)]
#[allow(non_camel_case_types)]
pub enum Mode {
basic,

View File

@ -14,7 +14,7 @@ use base::index::*;
use pgrx::datum::Internal;
use pgrx::pg_sys::Datum;
static RELOPT_KIND_VECTORS: PgCell<pgrx::pg_sys::relopt_kind> = unsafe { PgCell::new(0) };
static RELOPT_KIND_VECTORS: PgCell<pgrx::pg_sys::relopt_kind::Type> = unsafe { PgCell::new(0) };
pub unsafe fn init() {
unsafe {
@ -159,7 +159,7 @@ pub unsafe extern "C" fn ambuild(
Ok(()) => (),
Err(StopError::NotExist) => pgrx::error!("internal error"),
}
let result = unsafe { pgrx::PgBox::<pgrx::pg_sys::IndexBuildResult>::alloc0() };
let result = unsafe { pgrx::pgbox::PgBox::<pgrx::pg_sys::IndexBuildResult>::alloc0() };
let mut builder = Builder {
opfamily,
rpc,
@ -235,7 +235,7 @@ pub unsafe extern "C" fn ambuild(
| pgrx::pg_sys::WL_TIMEOUT
| pgrx::pg_sys::WL_EXIT_ON_PM_DEATH) as _,
1000,
pgrx::pg_sys::WaitEventTimeout_WAIT_EVENT_PG_SLEEP,
pgrx::pg_sys::WaitEventTimeout::WAIT_EVENT_PG_SLEEP,
);
pgrx::pg_sys::ResetLatch(pgrx::pg_sys::MyLatch);
}
@ -255,7 +255,7 @@ pub unsafe extern "C" fn aminsert(
is_null: *mut bool,
heap_tid: pgrx::pg_sys::ItemPointer,
_heap: pgrx::pg_sys::Relation,
_check_unique: pgrx::pg_sys::IndexUniqueCheck,
_check_unique: pgrx::pg_sys::IndexUniqueCheck::Type,
_index_unchanged: bool,
_index_info: *mut pgrx::pg_sys::IndexInfo,
) -> bool {
@ -285,7 +285,7 @@ pub unsafe extern "C" fn ambeginscan(
n_keys: std::os::raw::c_int,
n_orderbys: std::os::raw::c_int,
) -> pgrx::pg_sys::IndexScanDesc {
use pgrx::PgMemoryContexts::CurrentMemoryContext;
use pgrx::memcxt::PgMemoryContexts::CurrentMemoryContext;
let scan = unsafe { pgrx::pg_sys::RelationGetIndexScan(index, n_keys, n_orderbys) };
unsafe {
@ -349,16 +349,17 @@ pub unsafe extern "C" fn amrescan(
#[pgrx::pg_guard]
pub unsafe extern "C" fn amgettuple(
scan: pgrx::pg_sys::IndexScanDesc,
direction: pgrx::pg_sys::ScanDirection,
direction: pgrx::pg_sys::ScanDirection::Type,
) -> bool {
if direction != pgrx::pg_sys::ScanDirection_ForwardScanDirection {
if direction != pgrx::pg_sys::ScanDirection::ForwardScanDirection {
pgrx::error!("vector search without a forward scan direction is not supported");
}
// https://www.postgresql.org/docs/current/index-locking.html
// If heap entries referenced physical pointers are deleted before
// they are consumed by PostgreSQL, PostgreSQL will received wrong
// physical pointers: no rows or irreverent rows are referenced.
if unsafe { (*(*scan).xs_snapshot).snapshot_type } != pgrx::pg_sys::SnapshotType_SNAPSHOT_MVCC {
if unsafe { (*(*scan).xs_snapshot).snapshot_type } != pgrx::pg_sys::SnapshotType::SNAPSHOT_MVCC
{
pgrx::error!("scanning with a non-MVCC-compliant snapshot is not supported");
}
let scanner = unsafe { (*scan).opaque.cast::<Scanner>().as_mut().unwrap_unchecked() };

View File

@ -12,8 +12,8 @@ use base::distance::*;
use base::index::*;
use base::scalar::F32;
use base::vector::*;
use pgrx::datum::FromDatum;
use pgrx::heap_tuple::PgHeapTuple;
use pgrx::FromDatum;
use serde::Deserialize;
use std::ffi::CStr;
use std::num::NonZero;
@ -28,7 +28,7 @@ pub struct Reloption {
impl Reloption {
pub const TAB: &'static [pgrx::pg_sys::relopt_parse_elt] = &[pgrx::pg_sys::relopt_parse_elt {
optname: c"options".as_ptr(),
opttype: pgrx::pg_sys::relopt_type_RELOPT_TYPE_STRING,
opttype: pgrx::pg_sys::relopt_type::RELOPT_TYPE_STRING,
offset: std::mem::offset_of!(Reloption, options) as i32,
}];
unsafe fn options(&self) -> &CStr {

View File

@ -61,7 +61,7 @@ pub fn on_index_write(handle: Handle) {
}
pub unsafe fn on_object_access(
access: pgrx::pg_sys::ObjectAccessType,
access: pgrx::pg_sys::ObjectAccessType::Type,
class_id: Oid,
object_id: Oid,
sub_id: i32,
@ -76,7 +76,7 @@ pub unsafe fn on_object_access(
if sub_id != 0 {
return;
}
if access == pgrx::pg_sys::ObjectAccessType_OAT_DROP {
if access == pgrx::pg_sys::ObjectAccessType::OAT_DROP {
let search = pgrx::pg_catalog::PgClass::search_reloid(object_id).unwrap();
if let Some(pg_class) = search.get() {
if let Some(()) = check_vector_index(pg_class) {

View File

@ -136,7 +136,7 @@ unsafe fn rewrite_opclass(istmt: *mut pgrx::pg_sys::IndexStmt) {
}
#[cfg(feature = "pg14")]
let opclass_ptr = (*(opclass_name as *mut pgrx::pg_sys::Value)).val.str_;
#[cfg(any(feature = "pg15", feature = "pg16"))]
#[cfg(any(feature = "pg15", feature = "pg16", feature = "pg17"))]
let opclass_ptr = (*(opclass_name as *mut pgrx::pg_sys::String)).sval;
let opclass = match CStr::from_ptr(opclass_ptr).to_str() {
Ok("vector_l2_ops") => "vector_l2_ops",

View File

@ -33,7 +33,7 @@ fn _vectors_fence_vector_index(oid: Oid) {
| pgrx::pg_sys::WL_TIMEOUT
| pgrx::pg_sys::WL_EXIT_ON_PM_DEATH) as _,
1000,
pgrx::pg_sys::WaitEventTimeout_WAIT_EVENT_PG_SLEEP,
pgrx::pg_sys::WaitEventTimeout::WAIT_EVENT_PG_SLEEP,
);
pgrx::pg_sys::ResetLatch(pgrx::pg_sys::MyLatch);
}

View File

@ -21,7 +21,7 @@ unsafe extern "C" fn vectors_process_utility(
pstmt: *mut pgrx::pg_sys::PlannedStmt,
query_string: *const ::std::os::raw::c_char,
read_only_tree: bool,
context: pgrx::pg_sys::ProcessUtilityContext,
context: pgrx::pg_sys::ProcessUtilityContext::Type,
params: pgrx::pg_sys::ParamListInfo,
query_env: *mut pgrx::pg_sys::QueryEnvironment,
dest: *mut pgrx::pg_sys::DestReceiver,
@ -59,7 +59,7 @@ unsafe extern "C" fn vectors_process_utility(
#[pgrx::pg_guard]
unsafe extern "C" fn vectors_object_access(
access: pgrx::pg_sys::ObjectAccessType,
access: pgrx::pg_sys::ObjectAccessType::Type,
class_id: pgrx::pg_sys::Oid,
object_id: pgrx::pg_sys::Oid,
sub_id: i32,
@ -74,14 +74,17 @@ unsafe extern "C" fn vectors_object_access(
}
#[pgrx::pg_guard]
unsafe extern "C" fn xact_callback(event: pgrx::pg_sys::XactEvent, _data: pgrx::void_mut_ptr) {
unsafe extern "C" fn xact_callback(
event: pgrx::pg_sys::XactEvent::Type,
_data: pgrx::void_mut_ptr,
) {
match event {
pgrx::pg_sys::XactEvent_XACT_EVENT_PRE_COMMIT
| pgrx::pg_sys::XactEvent_XACT_EVENT_PARALLEL_PRE_COMMIT => unsafe {
pgrx::pg_sys::XactEvent::XACT_EVENT_PRE_COMMIT
| pgrx::pg_sys::XactEvent::XACT_EVENT_PARALLEL_PRE_COMMIT => unsafe {
super::catalog::on_commit();
},
pgrx::pg_sys::XactEvent_XACT_EVENT_ABORT
| pgrx::pg_sys::XactEvent_XACT_EVENT_PARALLEL_ABORT => unsafe {
pgrx::pg_sys::XactEvent::XACT_EVENT_ABORT
| pgrx::pg_sys::XactEvent::XACT_EVENT_PARALLEL_ABORT => unsafe {
super::catalog::on_abort();
},
_ => {}

View File

@ -12,7 +12,7 @@ pub fn send_message_to_server_log(record: &Record) {
if log_destination as u32 & pgrx::pg_sys::LOG_DESTINATION_CSVLOG != 0 {
write_csvlog(record);
}
#[cfg(any(feature = "pg15", feature = "pg16"))]
#[cfg(any(feature = "pg15", feature = "pg16", feature = "pg17"))]
if log_destination as u32 & pgrx::pg_sys::LOG_DESTINATION_JSONLOG != 0 {
write_jsonlog(record);
}
@ -22,7 +22,7 @@ pub fn send_message_to_server_log(record: &Record) {
pub enum LogDestination {
Stderr,
Csvlog,
#[cfg(any(feature = "pg15", feature = "pg16"))]
#[cfg(any(feature = "pg15", feature = "pg16", feature = "pg17"))]
Jsonlog,
}
@ -75,7 +75,7 @@ fn write_csvlog(record: &Record) {
write_pipe_chunks(pid, msg.as_bytes(), LogDestination::Csvlog);
}
#[cfg(any(feature = "pg15", feature = "pg16"))]
#[cfg(any(feature = "pg15", feature = "pg16", feature = "pg17"))]
fn write_jsonlog(record: &Record) {
use std::fmt::Write;
let timestamp = chrono::Local::now().format("%Y-%m-%d %H:%M:%S%.3f");
@ -107,7 +107,7 @@ fn write_pipe_chunks(pid: u32, mut msg: &[u8], dest: LogDestination) {
(LogDestination::Csvlog, true) => b'T',
(LogDestination::Csvlog, false) => b'F',
};
#[cfg(any(feature = "pg15", feature = "pg16"))]
#[cfg(any(feature = "pg15", feature = "pg16", feature = "pg17"))]
let flags = match dest {
LogDestination::Stderr => pgrx::pg_sys::PIPE_PROTO_DEST_STDERR,
LogDestination::Csvlog => pgrx::pg_sys::PIPE_PROTO_DEST_CSVLOG,
@ -123,7 +123,7 @@ fn write_pipe_chunks(pid: u32, mut msg: &[u8], dest: LogDestination) {
chunk.extend((pid as i32).to_le_bytes());
#[cfg(feature = "pg14")]
chunk.extend((is_last as u8).to_le_bytes());
#[cfg(any(feature = "pg15", feature = "pg16"))]
#[cfg(any(feature = "pg15", feature = "pg16", feature = "pg17"))]
chunk.extend((flags as u8).to_le_bytes());
chunk.extend_from_slice(&msg[..len]);
msg = &msg[len..];

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
$(dirname "$0")/../../../tools/pg_config.sh "$@" < $(dirname "$0")/pg_config.txt

View File

@ -11,7 +11,7 @@ MANDIR = /usr/share/postgresql/14/man
SHAREDIR = /usr/share/postgresql/14
SYSCONFDIR = /etc/postgresql-common
PGXS = /usr/lib/postgresql/14/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--build=aarch64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/aarch64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/14/man' '--docdir=/usr/share/doc/postgresql-doc-14' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/14' '--bindir=/usr/lib/postgresql/14/bin' '--libdir=/usr/lib/aarch64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 14.12-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--enable-dtrace' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' 'build_alias=aarch64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CONFIGURE = '--build=aarch64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/aarch64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/14/man' '--docdir=/usr/share/doc/postgresql-doc-14' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/14' '--bindir=/usr/lib/postgresql/14/bin' '--libdir=/usr/lib/aarch64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 14.13-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' '--enable-dtrace' 'build_alias=aarch64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CC = gcc
CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
@ -20,4 +20,4 @@ LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/llvm-13/lib -Wl,--as-needed
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lselinux -llz4 -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm
VERSION = PostgreSQL 14.12 (Debian 14.12-1.pgdg100+1)
VERSION = PostgreSQL 14.13 (Debian 14.13-1.pgdg100+1)

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
$(dirname "$0")/../../../tools/pg_config.sh "$@" < $(dirname "$0")/pg_config.txt

View File

@ -11,7 +11,7 @@ MANDIR = /usr/share/postgresql/14/man
SHAREDIR = /usr/share/postgresql/14
SYSCONFDIR = /etc/postgresql-common
PGXS = /usr/lib/postgresql/14/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/14/man' '--docdir=/usr/share/doc/postgresql-doc-14' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/14' '--bindir=/usr/lib/postgresql/14/bin' '--libdir=/usr/lib/x86_64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 14.12-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--enable-dtrace' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' 'build_alias=x86_64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CONFIGURE = '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/14/man' '--docdir=/usr/share/doc/postgresql-doc-14' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/14' '--bindir=/usr/lib/postgresql/14/bin' '--libdir=/usr/lib/x86_64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 14.13-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' '--enable-dtrace' 'build_alias=x86_64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CC = gcc
CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer
@ -20,4 +20,4 @@ LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/llvm-13/lib -Wl,--as-needed
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lselinux -llz4 -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm
VERSION = PostgreSQL 14.12 (Debian 14.12-1.pgdg100+1)
VERSION = PostgreSQL 14.13 (Debian 14.13-1.pgdg100+1)

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
$(dirname "$0")/../../../tools/pg_config.sh "$@" < $(dirname "$0")/pg_config.txt

View File

@ -11,7 +11,7 @@ MANDIR = /usr/share/postgresql/15/man
SHAREDIR = /usr/share/postgresql/15
SYSCONFDIR = /etc/postgresql-common
PGXS = /usr/lib/postgresql/15/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--build=aarch64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/aarch64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/15/man' '--docdir=/usr/share/doc/postgresql-doc-15' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/15' '--bindir=/usr/lib/postgresql/15/bin' '--libdir=/usr/lib/aarch64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 15.7-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--enable-dtrace' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' 'build_alias=aarch64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CONFIGURE = '--build=aarch64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/aarch64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/15/man' '--docdir=/usr/share/doc/postgresql-doc-15' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/15' '--bindir=/usr/lib/postgresql/15/bin' '--libdir=/usr/lib/aarch64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 15.8-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' '--enable-dtrace' 'build_alias=aarch64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CC = gcc
CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
@ -20,4 +20,4 @@ LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/llvm-13/lib -Wl,--as-needed
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lselinux -llz4 -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm
VERSION = PostgreSQL 15.7 (Debian 15.7-1.pgdg100+1)
VERSION = PostgreSQL 15.8 (Debian 15.8-1.pgdg100+1)

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
$(dirname "$0")/../../../tools/pg_config.sh "$@" < $(dirname "$0")/pg_config.txt

View File

@ -11,7 +11,7 @@ MANDIR = /usr/share/postgresql/15/man
SHAREDIR = /usr/share/postgresql/15
SYSCONFDIR = /etc/postgresql-common
PGXS = /usr/lib/postgresql/15/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/15/man' '--docdir=/usr/share/doc/postgresql-doc-15' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/15' '--bindir=/usr/lib/postgresql/15/bin' '--libdir=/usr/lib/x86_64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 15.7-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--enable-dtrace' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' 'build_alias=x86_64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CONFIGURE = '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/15/man' '--docdir=/usr/share/doc/postgresql-doc-15' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/15' '--bindir=/usr/lib/postgresql/15/bin' '--libdir=/usr/lib/x86_64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 15.8-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' '--enable-dtrace' 'build_alias=x86_64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CC = gcc
CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer
@ -20,4 +20,4 @@ LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/llvm-13/lib -Wl,--as-needed
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lselinux -llz4 -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm
VERSION = PostgreSQL 15.7 (Debian 15.7-1.pgdg100+1)
VERSION = PostgreSQL 15.8 (Debian 15.8-1.pgdg100+1)

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
$(dirname "$0")/../../../tools/pg_config.sh "$@" < $(dirname "$0")/pg_config.txt

View File

@ -11,7 +11,7 @@ MANDIR = /usr/share/postgresql/16/man
SHAREDIR = /usr/share/postgresql/16
SYSCONFDIR = /etc/postgresql-common
PGXS = /usr/lib/postgresql/16/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--build=aarch64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/aarch64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/16/man' '--docdir=/usr/share/doc/postgresql-doc-16' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/16' '--bindir=/usr/lib/postgresql/16/bin' '--libdir=/usr/lib/aarch64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 16.3-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--enable-dtrace' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' 'build_alias=aarch64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CONFIGURE = '--build=aarch64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/aarch64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/16/man' '--docdir=/usr/share/doc/postgresql-doc-16' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/16' '--bindir=/usr/lib/postgresql/16/bin' '--libdir=/usr/lib/aarch64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 16.4-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' '--enable-dtrace' 'build_alias=aarch64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CC = gcc
CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
@ -20,4 +20,4 @@ LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/llvm-13/lib -Wl,--as-needed
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lselinux -llz4 -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm
VERSION = PostgreSQL 16.3 (Debian 16.3-1.pgdg100+1)
VERSION = PostgreSQL 16.4 (Debian 16.4-1.pgdg100+1)

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
$(dirname "$0")/../../../tools/pg_config.sh "$@" < $(dirname "$0")/pg_config.txt

View File

@ -11,7 +11,7 @@ MANDIR = /usr/share/postgresql/16/man
SHAREDIR = /usr/share/postgresql/16
SYSCONFDIR = /etc/postgresql-common
PGXS = /usr/lib/postgresql/16/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/16/man' '--docdir=/usr/share/doc/postgresql-doc-16' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/16' '--bindir=/usr/lib/postgresql/16/bin' '--libdir=/usr/lib/x86_64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 16.3-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--enable-dtrace' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' 'build_alias=x86_64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CONFIGURE = '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/16/man' '--docdir=/usr/share/doc/postgresql-doc-16' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/16' '--bindir=/usr/lib/postgresql/16/bin' '--libdir=/usr/lib/x86_64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 16.4-1.pgdg100+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-13' 'CLANG=/usr/bin/clang-13' '--with-lz4' '--with-systemd' '--with-selinux' '--enable-dtrace' 'build_alias=x86_64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CC = gcc
CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer
@ -20,4 +20,4 @@ LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/llvm-13/lib -Wl,--as-needed
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lselinux -llz4 -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm
VERSION = PostgreSQL 16.3 (Debian 16.3-1.pgdg100+1)
VERSION = PostgreSQL 16.4 (Debian 16.4-1.pgdg100+1)