1 Description: Fix file_jpfid_idx handling on upgrade
2 Bug-Debian: 591293
3 Bug: http://bugs.bacula.org/view.php?id=1623#c5605
4 Origin: Debian, commit:fc7990abb396b0f0bd488e948cf97f1444d63415
5 Author: John Goerzen <jgoerzen@complete.org>
6 Reviewed-by: Luca Capello <luca@pca.it>
7 Last-Update: 2012-04-01
9 ---
10 src/cats/update_postgresql_tables.in | 8 ++++++++
11 1 files changed, 8 insertions(+), 0 deletions(-)
13 --- a/src/cats/update_postgresql_tables.in
14 +++ b/src/cats/update_postgresql_tables.in
15 @@ -61,6 +61,9 @@
17 CREATE INDEX basefiles_jobid_idx ON BaseFiles ( JobId );
19 +-- suppress output for index modification
20 +SET client_min_messages TO 'fatal';
21 +
22 -- Remove bad PostgreSQL index
23 DROP INDEX file_fp_idx;
25 @@ -71,6 +74,9 @@
27 CREATE INDEX file_jpfid_idx on File (JobId, PathId, FilenameId);
29 +-- restore output
30 +SET client_min_messages TO DEFAULT;
31 +
32 ANALYSE;
34 END-OF-DATA
