pgsql: Fail BRIN control functions during recovery explicitly - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Fail BRIN control functions during recovery explicitly
Date
Msg-id E1fTVup-0001Ms-A8@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e951f66deadbe78da83b2d1919d39883d098fdff

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


pgsql-committers by date:

Previous
From: Simon Riggs
Date:
Subject: pgsql: Remove spurious code comments in standby related code
Next
From: Peter Eisentraut
Date:
Subject: Re: pgsql: Convert debug message from ereport to elog