Fail BRIN control functions during recovery explicitly
authorAlvaro Herrera
Thu, 14 Jun 2018 16:51:32 +0000 (12:51 -0400)
committerAlvaro Herrera
Thu, 14 Jun 2018 16:51:32 +0000 (12:51 -0400)
commite951f66deadbe78da83b2d1919d39883d098fdff
tree8e9e3dc07e07115e787897b1721e6dc6ee0c0bde
parentc7699d9acf0416670f7babd4999a913085aa08e7
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