]> granicus.if.org Git - postgresql/commit
Fail BRIN control functions during recovery explicitly
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 14 Jun 2018 16:51:32 +0000 (12:51 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 14 Jun 2018 16:51:32 +0000 (12:51 -0400)
commit3b5f4f1f40b241d08ed36df1716e07a6b0560e5c
tree3bc02198ef67e880a5c729018b999886864e0ebc
parent476ba1ec98a70a67bad8af7d178fb56e3df5aa9b
Fail BRIN control functions during recovery explicitly

They already fail anyway, but prior to this patch they raise an ugly
error message about a lock that cannot be acquired.  This just improves
the message.

Author: Masahiko Sawada
Reported-by: Masahiko Sawada
Discussion: https://postgr.es/m/CAD21AoBZau4g4_NUf3BKNd=CdYK+xaPdtJCzvOC1TxGdTiJx_Q@mail.gmail.com
Reviewed-by: Kuntal Ghosh, Alexander Korotkov, Simon Riggs, Michaël Paquier, Álvaro Herrera
src/backend/access/brin/brin.c