From e7959571d8975414e05a19acdcefdd20683c1014 Mon Sep 17 00:00:00 2001 From: Steve Singer Date: Wed, 8 Sep 2010 14:36:36 -0400 Subject: [PATCH] Add a runtime check to ensure that libpq is thread enabled. --- src/slon/slon.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/slon/slon.c b/src/slon/slon.c index fd78a17..747fa4e 100644 --- a/src/slon/slon.c +++ b/src/slon/slon.c @@ -352,6 +352,12 @@ main(int argc, char *const argv[]) slon_exit(-1); } + if (!PQisthreadsafe()) + { + slon_log(SLON_FATAL,"slon: libpq was not compiled with --enable-thread-safety. Slony-I requires a thread enabled libpq\n"); + slon_exit(-1); + } + /* * There is no watchdog process on win32. We delegate restarting and other * such tasks to the Service Control Manager. And win32 doesn't support -- 1.6.3.3