Re: Streaming replication status - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Streaming replication status
Date
Msg-id 2716.1263304741@sss.pgh.pa.us
Whole thread Raw
In response to Re: Streaming replication status  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Streaming replication status  (Andrew Dunstan <andrew@dunslane.net>)
Re: Streaming replication status  (Marko Kreen <markokr@gmail.com>)
Re: Streaming replication status  (Fujii Masao <masao.fujii@gmail.com>)
List 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


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Typed tables
Next
From: Andrew Dunstan
Date:
Subject: Re: Typed tables