Re: Synch Rep: communication between backends and walsender
От | Fujii Masao |
---|---|
Тема | Re: Synch Rep: communication between backends and walsender |
Дата | |
Msg-id | 3f0b79eb0906220016t67f42c3ew2ba17165768328c3@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Synch Rep: communication between backends and walsender (Markus Wanner <markus@bluegap.ch>) |
Ответы |
Re: Synch Rep: communication between backends and walsender
|
Список | pgsql-hackers |
Hi, On Sat, Jun 20, 2009 at 6:05 PM, Markus Wanner<markus@bluegap.ch> wrote: > Reading the past messages on this topic, I realized that this problem so > far only affects HPUX. I fear the proposed UDP/semaphores approach might > have a similar gotcha on at least one of the supported platforms, too. > Limits of open file descriptors come to mind, for example. Or kernel > packet filtering rules, as mentioned in pgstat.c. You're right. The UDP approach at least would cause another dissatisfaction, as you illustrated. > If I understand correctly, even Postgres itself suffers from that > problem on HPUX (even though the consequences aren't dramatic, as > pointed out by Tom). Plus we are not completely save from syscalls > returning EINTR due to SA_RESTART not being set for SIGALRM. > > So, does it really make sense to take care of this issue as part of the > sync rep patch? The perfect solution seems to be to remove SA_RESTART and handle EINTR in an appropriate way after every syscalls. But, this is very tough job and has much influence on whole source code, so I don't think that this should be done as part of synch rep. On the other hand, I think that a semaphore should be used instead of a signal at least for backends to wait for walsender. This would turn around the situation on HPUX in some degree. In this case, the remaining problem is that walsender cannot immediately wake up. But, since walsender wakes up periodically and that period can be tweaked (by new GUC wal_sender_delay), the overhead on HPUX might not be actually so big. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center
В списке pgsql-hackers по дате отправления: