diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2021-04-20 10:14:16 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2021-04-20 10:36:10 -0400 |
commit | 95c3a1956ec9eac686c1b69b033dd79211b72343 (patch) | |
tree | 54de4ec307d6a02dcda3abb6ff99d221065a438c /src/backend/executor/execMain.c | |
parent | 8b4b5669cde2b17bd6b5d68f584d97078f3296ac (diff) | |
download | postgresql-95c3a1956ec9eac686c1b69b033dd79211b72343.tar.gz postgresql-95c3a1956ec9eac686c1b69b033dd79211b72343.zip |
Avoid unfortunate IPC::Run path caching in PostgresNode
Commit b34ca595ab provided for installation-aware instances of
PostgresNode. However, it turns out that IPC::Run works against this by
caching the path to a binary and not consulting the path again, even if
it has changed. We work around this by calling Postgres binaries with
the installed path rather than just a bare name to be looked up in the
environment path, if there is an installed path. For the common case
where there is no installed path we continue to use the bare command
name.
Diagnosis and solution from Mark Dilger
Discussion: https://postgr.es/m/E8F512F8-B4D6-4514-BA8D-2E671439DA92@enterprisedb.com
Diffstat (limited to 'src/backend/executor/execMain.c')
0 files changed, 0 insertions, 0 deletions