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

When failing to reindex a table or an index, 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