Re: Synchronous replication: sleeping
| От | Martijn van Oosterhout |
|---|---|
| Тема | Re: Synchronous replication: sleeping |
| Дата | |
| Msg-id | 20081208114207.GE31566@svana.org обсуждение исходный текст |
| Ответ на | Synchronous replication: sleeping (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>) |
| Ответы |
Re: Synchronous replication: sleeping
|
| Список | pgsql-hackers |
On Mon, Dec 08, 2008 at 01:12:39PM +0200, Heikki Linnakangas wrote: > If a signal is received just before pq_wait call, after checking > replication_requested, pq_wait won't be interrupted and will wait up to > a second before responding to it. > > BTW, on what platforms signal doesn't interrupt sleep? In theory, none. SIGALRM is not set as SA_RESTART so any system call should be interrupted. This applies to POSIX systems though, not sure about Windows. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > Please line up in a tree and maintain the heap invariant while > boarding. Thank you for flying nlogn airlines.
В списке pgsql-hackers по дате отправления: