From: Eric Bollengier Date: Mon, 3 Sep 2007 21:43:53 +0000 (+0000) Subject: ebl check if postgreql lib have PQputCopyData to enable batch mode or not X-Git-Tag: Release-7.0.0~5749 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d812363c481d65ea8ca00f61f55dff068c7c00a7;p=bacula%2Fbacula 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 --- 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