Re: pgsql: Enable Unix-domain sockets support on Windows
| От | Amit Kapila |
|---|---|
| Тема | Re: pgsql: Enable Unix-domain sockets support on Windows |
| Дата | |
| Msg-id | CAA4eK1KARhb46yDoSuDW6kM0U6efKqRwyMrnr1SMes=_+1jcWA@mail.gmail.com обсуждение исходный текст |
| Ответы |
Re: pgsql: Enable Unix-domain sockets support on Windows
|
| Список | 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 по дате отправления: