]> granicus.if.org Git - postgresql/commit
Fix error reporting in reindexdb
authorMichael Paquier <michael@paquier.xyz>
Sat, 11 May 2019 04:01:29 +0000 (13:01 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 11 May 2019 04:01:29 +0000 (13:01 +0900)
commit82ed20e15e52c67cea1e3b3b1b8795cdbd249c05
treeeb2297e2f2dc68daa62d5fdcb5b5b1644241b77e
parentb1cde67a4f94ada93eb314c7751e998377a0fa6a
Fix error reporting in reindexdb

When failing to reindex a table, reindexdb would generate an extra error
message related to a database failure, which is misleading.

Backpatch all the way down, as this has been introduced by 85e9a5a0.

Discussion: https://postgr.es/m/CAOBaU_Yo61RwNO3cW6WVYWwH7EYMPuexhKqufb2nFGOdunbcHw@mail.gmail.com
Author: Julien Rouhaud
Reviewed-by: Daniel Gustafsson, Álvaro Herrera, Tom Lane, Michael
Paquier
Backpatch-through: 9.4
src/bin/scripts/reindexdb.c