Re: pgsql: Enable Unix-domain sockets support on Windows - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: pgsql: Enable Unix-domain sockets support on Windows
Date
Msg-id CAA4eK1KARhb46yDoSuDW6kM0U6efKqRwyMrnr1SMes=_+1jcWA@mail.gmail.com
Whole thread Raw
Responses Re: pgsql: Enable Unix-domain sockets support on Windows
List pgsql-hackers
On Sat, Mar 28, 2020 at 7:37 PM Peter Eisentraut <peter@eisentraut.org> wrote:
>
> Enable Unix-domain sockets support on Windows
>

+
+/*
+ * Windows headers don't define this structure, but you can define it yourself
+ * to use the functionality.
+ */
+struct sockaddr_un
+{
+   unsigned short sun_family;
+   char sun_path[108];
+};

I was going through this feature and reading about Windows support for
it.  I came across a few links which suggest that this structure is
defined in <afunix.h>.  Is there a reason for not using this via
afunix.h?

[1] - https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/
[2] - https://gist.github.com/NZSmartie/079d8f894ee94f3035306cb23d49addc

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Online checksums patch - once again
Next
From: Daniel Gustafsson
Date:
Subject: Re: Ought to use heap_multi_insert() for pg_attribute/dependinsertions?