From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>, David Rowley <dgrowleyml(at)gmail(dot)com>, "Jawarilal, Manish" <Manish(dot)Jawarilal(at)dell(dot)com> |
Subject: | Re: pgbench bug / limitation |
Date: | 2020-06-06 14:57:13 |
Message-ID: | 1673150.1591455433@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> writes:
>> Agreed. Seems like the best answer is to get in bed with the Windows
>> representation of fd_set, since we cannot avoid knowing that it is
>> different from other platforms' versions. I suggest that we might as
>> well get all the way in and dodge the FD_SETSIZE limitation altogether,
>> as per the attached utterly-untested draft patch.
> ISTM that the patch your propose, a full reimplementation of the abstract
> poll/select fd set interface for windows, is overkill because it adds
> about 80 lines of code. ISTM that just redefining some macros is enough to
> get the same performance benefit without adding much to the code base, but
> maybe I'm missing something. At least, I do not think that getting rid of
> the FD_SETSIZE redefinition for windows is worth all that trouble.
I think it's worth doing because it puts the Windows implementation at
full feature parity with Unixen, ie, there's no hard-wired limit on the
number of connections. I'm also not that thrilled with trying to make
one code path work with two fundamentally different implementations.
We've found out that just because Microsoft claims their implementation
is compatible with POSIX doesn't make it so, and I'd rather not have
warts in our source code from trying to paper over that.
Lastly, I think it's entirely likely that someone will come up with a
Windows-native implementation at some point, so that we'd have the extra
code lines anyway.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Fabien COELHO | 2020-06-06 17:12:33 | Re: pgbench bug / limitation |
Previous Message | Kyle Kingsbury | 2020-06-06 12:49:56 | Re: Potential G2-item cycles under serializable isolation |