If set, use LD_LIBRARY_PATH when starting postgres (#698)

Fixes #697
This commit is contained in:
Chris Fraser
2018-06-12 14:00:48 +02:00
committed by Alexander Kukushkin
parent e405e4e03c
commit aa18f70466
+1 -1
View File
@@ -137,7 +137,7 @@ class PostmasterProcess(psutil.Process):
# of init process to take care about postmaster.
# In order to make everything portable we can't use fork&exec approach here, so we will call
# ourselves and pass list of arguments which must be used to start postgres.
env = {p: os.environ[p] for p in ('PATH', 'LC_ALL', 'LANG') if p in os.environ}
env = {p: os.environ[p] for p in ('PATH', 'LD_LIBRARY_PATH', 'LC_ALL', 'LANG') if p in os.environ}
try:
proc = PostmasterProcess._from_pidfile(data_dir)
if proc and not proc._is_postmaster_process():