Re: Idea for improving buildfarm robustness

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Idea for improving buildfarm robustness
Дата
Msg-id 20150929201554.GH2573@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Idea for improving buildfarm robustness  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:

> Testing accessibility of "global/pg_control" would be enough to catch this
> case, but only if we do it before you create a new one.  So that seems
> like an argument for making the test relatively often.  The once-a-minute
> option is sounding better and better.

If we weren't afraid of portability issues or checks that only work on
certain platforms, we could use inotify on linux and get it to signal
postmaster when pg_control is deleted.  There are various
implementations of similar things in different platforms (kqueues on
BSD, surely there's gotta be something in Linux) -- though admittedly
that code may quickly become worse that the select/poll loops (which are
ugly enough).  Maybe it'd be okay if we just use a descriptor that sets
the process latch when signalled.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Shulgin, Oleksandr"
Дата:
Сообщение: Re: On-demand running query plans using auto_explain and signals
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: No Issue Tracker - Say it Ain't So!