| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Teach unix_latch.c to use poll() where available. |
| Date: | 2011-08-11 16:50:46 |
| Message-ID: | E1QrYT0-0007eg-IO@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Teach unix_latch.c to use poll() where available.
poll() is preferred over select() on platforms where both are available,
because it tends to be a bit faster and it doesn't have an arbitrary limit
on the range of FD numbers that can be accessed. The FD range limit does
not appear to be a risk factor for any 9.1 usages, so this doesn't need to
be back-patched, but we need to have it in place if we keep on expanding
the uses of WaitLatch.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/a180776f7a1c4554f214bd9e67bd63bfaf33e339
Modified Files
--------------
src/backend/port/unix_latch.c | 106 +++++++++++++++++++++++++++++++++++++---
1 files changed, 98 insertions(+), 8 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2011-08-11 20:37:29 | pgsql: Add major features list and introductory text for 9.1 release no |
| Previous Message | Robert Haas | 2011-08-11 15:47:19 | pgsql: Display both per-table and per-column FDW options in psql's \d o |