]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Apply 2.2.5-postgresql-errors.patch
authorKern Sibbald <kern@sibbald.com>
Mon, 22 Oct 2007 10:31:08 +0000 (10:31 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 22 Oct 2007 10:31:08 +0000 (10:31 +0000)
kes  Remove unneeded File table index on JobId, which is already
     present as the first index of another multi-index.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5778 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/cats.h
bacula/src/cats/make_mysql_tables.in
bacula/technotes-2.1

index f774612a2302d80925011c9720f4e18e4cf0c077..e39962430790794c89a1825576a32e2347a1bf28 100644 (file)
@@ -498,7 +498,7 @@ extern const char* my_pg_batch_fill_path_query;
 #define sql_fetch_row(x)      my_postgresql_fetch_row(x)
 #define sql_query(x, y)       my_postgresql_query((x), (y))
 #define sql_close(x)          PQfinish((x)->db)
-#define sql_strerror(x)       PQresultErrorMessage((x)->result)
+#define sql_strerror(x)       PQerrorMessage((x)->db)
 #define sql_num_rows(x)       ((unsigned) PQntuples((x)->result))
 #define sql_data_seek(x, i)   my_postgresql_data_seek((x), (i))
 #define sql_affected_rows(x)  ((unsigned) atoi(PQcmdTuples((x)->result)))
index 513e5da2c472afc95dbf90ed2f9cea1f53ffcc0b..7a075dd5d755555e12d795c0d7f716ed930fbb11 100644 (file)
@@ -38,7 +38,6 @@ CREATE TABLE File (
    LStat TINYBLOB NOT NULL,
    MD5 TINYBLOB,
    PRIMARY KEY(FileId),
-   INDEX (JobId),
    INDEX (JobId, PathId, FilenameId)
    );
 
@@ -50,7 +49,6 @@ CREATE TABLE File (
 #  INDEX (PathId),
 #  INDEX (FilenameId),
 #  INDEX (FilenameId, PathId)
-#  INDEX (JobId),
 #
 
 CREATE TABLE MediaType (
index 2a5656b891f373b58d57a0c6e04cfac1814c5b94..bde12ccc321e9c9d16c0a4c7d2c56832d42fcc49 100644 (file)
@@ -1,6 +1,10 @@
               Technical notes on version 2.2
 
 General:
+22Oct07
+kes  Apply 2.2.5-postgresql-errors.patch
+kes  Remove unneeded File table index on JobId, which is already
+     present as the first index of another multi-index.
 19Oct07
 kes  Set default debug_level to zero. This corrects bugs #991 and #993. 
 kes  Fix a crash in bat when it cannot connect to the Director for example