]> 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)
commit2dbcf515ae1e8845d4903169ff81c91806c34d32
treebd7cbff62885e15d09d4afa450256ef565dfca97
parent14b3ec6f3047f672783654135bad78e7f4d17575
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