]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl check if postgreql lib have PQputCopyData to enable batch mode or not
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 3 Sep 2007 21:43:53 +0000 (21:43 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 3 Sep 2007 21:43:53 +0000 (21:43 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5446 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/autoconf/configure.in

index c1a29bfd99c0ec434dc57782bbfb0740916baf1e..e5f4363b2a0e79a99a3e8ab52bd525271a630bbe 100644 (file)
@@ -1332,7 +1332,16 @@ if test $pkg = 0; then
        support_batch_insert=yes
      fi])
 fi
-                                                         
+       
+# Check if postgresql support batch mode       
+if test x$DB_TYPE = xpostgresql; then
+   A=`nm $SQL_LIB | grep PQputCopyData`
+   pkg=$?
+   if test $pkg != 0; then
+      support_batch_insert=no
+   fi
+fi
+
 if test $support_batch_insert = yes ; then
    AC_DEFINE(HAVE_BATCH_FILE_INSERT, 1, [Set if DB batch insert code enabled])
 fi