Thread: Re: New win32 signals patch (3)

Re: New win32 signals patch (3)

From
"Magnus Hagander"
Date:
> > The limit for select on win32 is actually 64, which is
> horribly low in
> > many cases.
>
> Wow, that small and they don't have poll()?  Whatta bunch of bozos.

Well, they have other methods. Such as their "I/O Completion Ports",
which I've seen easily handle 30-40,000 sockets (IIRC that's the number
- it was at least very large)... But they do like to do things their own
way...


> > But as it is right now, select() is only used in the
> postmaster and in
> > the pgstat process, neither of which use any large number of fds.
> > Since we only select() on sockets, and not the files.
>
> Okay.  I thought I had seen something about using select() in
> the context of catching signals, in which case it'd be
> necessary to use it in all backends.  But if not then we can
> probably live with the small fd_set size.

If you're talking win32 port specific, I think it was the other way
around. Using select() *prevents* catching signals with the current
implementation. This is why we need the "select replacement", see my
latest patch.


//Magnus