Re: test_shm_mq failing on anole (was: Sending out a request for more buildfarm animals?) - Mailing list pgsql-hackers

From Andres Freund
Subject Re: test_shm_mq failing on anole (was: Sending out a request for more buildfarm animals?)
Date
Msg-id 20140929214940.GH2084@awork2.anarazel.de
Whole thread Raw
In response to Re: test_shm_mq failing on anole (was: Sending out a request for more buildfarm animals?)  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: test_shm_mq failing on anole (was: Sending out a request for more buildfarm animals?)
List pgsql-hackers
On 2014-09-29 18:44:34 -0300, Alvaro Herrera wrote:
> Andres Freund wrote:
> 
> > I'm generally baffled at all the stuff postmaster does in signal
> > handlers... ProcessConfigFile(), load_hba() et al. It's all done with
> > signals disabled, but still.
> 
> As far as I recall, the rationale for why this is acceptable is that the
> whole of postmaster is run with signals blocked; they are only unblocked
> during the sleeping select().

Yea, I wrote that above :). Still seems remarkably fragile and
unnecessarily complex. The whole thing would be much simpler and
importantly easier to understand if everything would be done inside the
mainloop and the handlers just would set a latch...
But I guess that'd be a bit of large change to something as central as
postmaster's code..

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: test_shm_mq failing on anole (was: Sending out a request for more buildfarm animals?)
Next
From: Kevin Grittner
Date:
Subject: Re: INSERT ... ON CONFLICT {UPDATE | IGNORE}