]> git.ipfire.org Git - thirdparty/postgresql.git/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)
commit74da7cda31c07122257c527d9fd068dc28493fc8
tree9d8ae0956a8295ae968f81b67cb257db2ab60ff9
parentdc878ffedf2aa461b11b617094101e3c4cf48daa
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