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+xapdtjczvoc1txgdtij...@mail.gmail.com
Reviewed-by: Kuntal Ghosh, Alexander Korotkov, Simon Riggs, Michaël Paquier, 
Álvaro Herrera

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/74da7cda31c07122257c527d9fd068dc28493fc8

Modified Files
--------------
src/backend/access/brin/brin.c | 12 ++++++++++++
1 file changed, 12 insertions(+)

Reply via email to