Fix error reporting in reindexdb

Michael Paquier <michael@paquier.xyz>

Commit: c6354e94304ca64815683042c5c6aa524f27c9f3
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-05-11T04:01:12Z
Releases: 10.9
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

Files

PathChange+/−
src/bin/scripts/reindexdb.c modified +2 −2

Discussion