From 524638db1de6ee94cd9519b31dd3013394894109 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 7 Sep 2007 12:57:05 +0000 Subject: [PATCH] kes Apply Martin Simmons patch that should turn off the new API usage when batch insert is turned off allowing building on older PostgreSQLs. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5491 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/postgresql.c | 4 ++++ bacula/technotes-2.1 | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bacula/src/cats/postgresql.c b/bacula/src/cats/postgresql.c index 45d71b0167..ff73a9f9c5 100644 --- a/bacula/src/cats/postgresql.c +++ b/bacula/src/cats/postgresql.c @@ -596,6 +596,8 @@ bail_out: return id; } +#ifdef HAVE_BATCH_FILE_INSERT + int my_postgresql_batch_start(JCR *jcr, B_DB *mdb) { char *query = "COPY batch FROM STDIN"; @@ -734,6 +736,8 @@ int my_postgresql_batch_insert(JCR *jcr, B_DB *mdb, ATTR_DBR *ar) return mdb->status; } +#endif /* HAVE_BATCH_FILE_INSERT */ + /* * Escape strings so that PostgreSQL is happy on COPY * diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index c46ce6c195..7fde314fee 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -3,6 +3,10 @@ General: 07Sep07 kes Add ./configure search in qwt-qt4 for qwt package +kes Apply Martin Simmons patch that should turn off the new API usage + when batch insert is turned off allowing building on older + PostgreSQLs. + Release Version 2.2.2 04Sep07 ebl Detect if new PosgreSQL batch insert API is present. -- 2.39.2