]> 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:27 +0000 (15:39 +0200)
bacula/autoconf/configure.in

index a79d9013fa989cc9e6746588c8c368349f90272e..7db5167456dd20eb01e38e0a99a95acdb18fb679 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