]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #1623 about indexes that are already created or deleted in postgresql upgrade...
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 20 Sep 2010 14:42:29 +0000 (16:42 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 21 Sep 2010 07:51:49 +0000 (09:51 +0200)
bacula/src/cats/update_postgresql_tables.in

index f99fd083ff605a284aa90da979f83fadef6ae46d..b6a8e4d7984af8213c07e5ca15b6badfa5aae631 100644 (file)
@@ -61,6 +61,9 @@ COMMIT;
 
 CREATE INDEX basefiles_jobid_idx ON BaseFiles ( JobId );
 
+-- suppress output for index modification
+SET client_min_messages TO 'fatal';
+
 -- Remove bad PostgreSQL index
 DROP INDEX file_fp_idx;
 
@@ -71,6 +74,9 @@ DROP INDEX file_fp_idx;
 
 CREATE INDEX file_jpfid_idx on File (JobId, PathId, FilenameId);
 
+-- restore output
+SET client_min_messages TO DEFAULT;
+
 ANALYSE;
 
 END-OF-DATA