From ea251b25e73a136f9c01ce0918f19678b4a63d93 Mon Sep 17 00:00:00 2001 From: usamoi Date: Sun, 3 Nov 2024 02:23:10 +0800 Subject: [PATCH] workaround strange linker errors for PostgreSQL 14 on Windows --- pgrx-bindgen/src/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pgrx-bindgen/src/build.rs b/pgrx-bindgen/src/build.rs index 0069029b3..bcfd826ec 100644 --- a/pgrx-bindgen/src/build.rs +++ b/pgrx-bindgen/src/build.rs @@ -897,6 +897,8 @@ fn add_blocklists(bind: bindgen::Builder) -> bindgen::Builder { .blocklist_function("varsize_any") // it's defined twice on Windows, so use PGERROR instead .blocklist_item("ERROR") + // it causes strange linker errors for PostgreSQL 14 on Windows + .blocklist_function("IsQueryIdEnabled") } fn add_allowlists<'a>(