Noah Misch <noah(at)leadboat(dot)com> writes:
> Would you verify that the attached patch fixes your builds?
The aspect of this patch that leaves ImmediateInterruptOK set over a
much larger code range in PGSemaphoreLock --- and in particular doesn't
bother to reset it before entering ereport() --- is a horrid idea.
Keep in mind that setting ImmediateInterruptOK means you can lose control
*anywhere*, and so have no ability to safely manipulate anything except
local variables.
regards, tom lane