Hi, On 2020-06-10 13:37:59 -0400, Robert Haas wrote: > On Tue, Jun 9, 2020 at 6:54 PM Andres Freund <and...@anarazel.de> wrote: > > What do you think about my idea of having a BEGIN/END_SIGNAL_HANDLER? > > That'd make it much easier to write assertions forbidding palloc, 64bit > > atomics, ... > > I must have missed the previous place where you suggested this, but I > think it's a good idea.
https://www.postgresql.org/message-id/20200606023103.avzrctgv7476xj7i%40alap3.anarazel.de It'd be neat if we could do that entirely within pqsignal(). But that'd require some additional state (I think an array of handlers, indexed by signum). Greetings, Andres Freund