| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
|---|---|
| To: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
| Cc: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Synchronous replication: sleeping |
| Date: | 2008-12-08 11:42:07 |
| Message-ID: | 20081208114207.GE31566@svana.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)svana(dot)org> http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2008-12-08 12:31:38 | new vacuum is slower for small tables |
| Previous Message | Heikki Linnakangas | 2008-12-08 11:12:39 | Synchronous replication: sleeping |