]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak another try at detecting batch insert on SLES for postgres
authorKern Sibbald <kern@sibbald.com>
Thu, 12 Aug 2010 10:28:30 +0000 (12:28 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 29 Aug 2010 13:39:48 +0000 (15:39 +0200)
bacula/autoconf/configure.in

index 6ad27f23f46f30b0ec859c2c1d3acac3e08d4a79..7341ec1890617325d63f6191fe88a37ef4bb54dc 100644 (file)
@@ -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