From 43b64f506beb89a4cfc4590c594e2e2f46463e9e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 12 Aug 2010 12:28:30 +0200 Subject: [PATCH] Tweak another try at detecting batch insert on SLES for postgres --- bacula/autoconf/configure.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index a79d9013fa..7db5167456 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1755,6 +1755,7 @@ LIBS="${saved_LIBS} ${SQL_LFLAGS}" dnl Check if postgresql can support batch mode if test x$DB_TYPE = xpostgresql; then + support_batch_insert=yes AC_CHECK_LIB(pq, PQisthreadsafe, AC_DEFINE(HAVE_PQISTHREADSAFE, 1, [Set if have PQisthreadsafe])) AC_CHECK_LIB(pq, PQputCopyData, AC_DEFINE(HAVE_PQ_COPY, 1, [Set if have PQputCopyData])) test "x$ac_cv_lib_pq_PQputCopyData" = "xyes" @@ -1765,11 +1766,11 @@ if test x$DB_TYPE = xpostgresql; then [ if test x$enableval = xno; then support_batch_insert=no - else - support_batch_insert=yes fi ] ) + else + support_batch_insert=no fi fi -- 2.39.5