From 5325f1e9d03958f94f352f0c11b5bd3332ade5b2 Mon Sep 17 00:00:00 2001 From: Stas Kelvich Date: Fri, 20 Dec 2024 13:49:21 +0200 Subject: [PATCH] Set libpq path for pg_dump in fast_import --- compute_tools/src/bin/fast_import.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compute_tools/src/bin/fast_import.rs b/compute_tools/src/bin/fast_import.rs index 793ec4cf1094..f97f4aeadf9d 100644 --- a/compute_tools/src/bin/fast_import.rs +++ b/compute_tools/src/bin/fast_import.rs @@ -172,6 +172,7 @@ pub(crate) async fn main() -> anyhow::Result<()> { .args(["-c", &format!("max_worker_processes={nproc}")]) .args(["-c", "effective_io_concurrency=100"]) .env_clear() + .env("LD_LIBRARY_PATH", "/usr/local/lib/") .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::piped()) .spawn() @@ -256,6 +257,7 @@ pub(crate) async fn main() -> anyhow::Result<()> { .arg(&source_connection_string) // how we run it .env_clear() + .env("LD_LIBRARY_PATH", "/usr/local/lib/") .kill_on_drop(true) .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::piped()) @@ -289,6 +291,7 @@ pub(crate) async fn main() -> anyhow::Result<()> { .arg(&dumpdir) // how we run it .env_clear() + .env("LD_LIBRARY_PATH", "/usr/local/lib/") .kill_on_drop(true) .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::piped())