From d812363c481d65ea8ca00f61f55dff068c7c00a7 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 3 Sep 2007 21:43:53 +0000 Subject: [PATCH] ebl check if postgreql lib have PQputCopyData to enable batch mode or not git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5446 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/autoconf/configure.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index c1a29bfd99..e5f4363b2a 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -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 -- 2.39.5