]> granicus.if.org Git - postgresql/commit
Fix error reporting in reindexdb
authorMichael Paquier <michael@paquier.xyz>
Sat, 11 May 2019 04:01:19 +0000 (13:01 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 11 May 2019 04:01:19 +0000 (13:01 +0900)
commit0c132d4581c2fc55a96445630eed82458d80d817
treef668bba6bc56d97ac7c52baec644200843239f3d
parenta73c8caea46c703fcd90e17e28b6a9223ea24bd0
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