From: Eric Bollengier Date: Mon, 20 Sep 2010 14:41:07 +0000 (+0200) Subject: Fix bug #1623 about indexes that are already created or deleted in postgresql upgrade... X-Git-Tag: Release-5.2.1~1107 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ba34f0c20ba20d406f76c72aafcbdf5cf0490995;p=bacula%2Fbacula Fix bug #1623 about indexes that are already created or deleted in postgresql upgrade process. --- diff --git a/bacula/updatedb/update_postgresql_tables_11_to_12.in b/bacula/updatedb/update_postgresql_tables_11_to_12.in index 51e9f7bcd6..35f294ed9e 100644 --- a/bacula/updatedb/update_postgresql_tables_11_to_12.in +++ b/bacula/updatedb/update_postgresql_tables_11_to_12.in @@ -70,6 +70,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; @@ -80,9 +83,10 @@ DROP INDEX file_fp_idx; CREATE INDEX file_jpfid_idx on File (JobId, PathId, FilenameId); -ANALYSE; +-- restore output +SET client_min_messages TO DEFAULT; -UPDATE Version SET VersionId=12; +ANALYSE; END-OF-DATA then