Re: Using AF_UNIX sockets always for tests on Windows - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Using AF_UNIX sockets always for tests on Windows
Date
Msg-id 1747596.1669946178@sss.pgh.pa.us
Whole thread Raw
In response to Re: Using AF_UNIX sockets always for tests on Windows  (Andres Freund <andres@anarazel.de>)
Responses Re: Using AF_UNIX sockets always for tests on Windows  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2022-12-01 20:30:36 -0500, Tom Lane wrote:
>> If we remove that, won't we have a whole lot of code that's not
>> tested at all on any platform, ie all the TCP-socket code?

> There's some coverage via the auth and ssl tests. But I agree it's an
> issue. But to me the fix for that seems to be to add a dedicated test for
> that, rather than relying on windows to test our socket code - that's quite a
> few separate code paths from the tcp support of other platforms.

IMO that's not the best way forward, because you'll always have
nagging questions about whether a single-purpose test covers
everything that needs coverage.  I think the best place to be in
would be to be able to run the whole test suite using either TCP or
UNIX sockets, on any platform (with stuff like the SSL test
overriding the choice as needed).  I doubt ripping out the existing
Windows-only support for TCP-based testing is a good step in that
direction.

            regards, tom lane



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Prefetch the next tuple's memory during seqscans
Next
From: Michael Paquier
Date:
Subject: Re: Add LZ4 compression in pg_dump