From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Peter Eisentraut <peter(at)eisentraut(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Cc: | pgsql-committers <pgsql-committers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: pgsql: Enable Unix-domain sockets support on Windows |
Date: | 2020-06-26 12:21:29 |
Message-ID: | CAA4eK1KARhb46yDoSuDW6kM0U6efKqRwyMrnr1SMes=_+1jcWA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On Sat, Mar 28, 2020 at 7:37 PM Peter Eisentraut <peter(at)eisentraut(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2020-06-26 17:54:10 | pgsql: Doc: explain that "timestamp - timestamp" applies justify_hours( |
Previous Message | Bruce Momjian | 2020-06-25 22:33:44 | pgsql: doc: mention trigger helper functions in CREATE TRIGGER docs |
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2020-06-26 12:26:50 | Re: Ought to use heap_multi_insert() for pg_attribute/depend insertions? |
Previous Message | Robert Haas | 2020-06-26 12:12:30 | Re: Online checksums patch - once again |