Re: Streaming replication status

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-01-12T13:59:01Z
Lists: pgsql-hackers
Fujii Masao <masao.fujii@gmail.com> writes:
> I'm not sure whether poll(2) should be called for this purpose. But
> poll(2) and select(2) seem to often come together in the existing code.
> We should follow such custom?

Yes.  poll() is usually more efficient, so it's preferred, but not all
platforms have it.  (On the other side, I think Windows might have
only poll and not select.)

			regards, tom lane