Re: pgsql: Enable Unix-domain sockets support on Windows

2020-06-30 Thread Andrew Dunstan
On 6/30/20 12:13 AM, Amit Kapila wrote: > On Mon, Jun 29, 2020 at 8:48 PM Andrew Dunstan > wrote: >> >> >> >> It needs to be a path from the Windows POV, not an Msys virtualized >> path. So c:/tmp or just /tmp should work, but /c/tmp or similar probably >> will not. The directory needs to exist.

Re: pgsql: Enable Unix-domain sockets support on Windows

2020-06-29 Thread Amit Kapila
On Mon, Jun 29, 2020 at 8:48 PM Andrew Dunstan wrote: > > > On 6/28/20 4:33 AM, Peter Eisentraut wrote: > > On 2020-06-27 13:57, Amit Kapila wrote: > >> Fair enough, but what should be the behavior in the Windows versions > >> (<10) where Unix-domain sockets are not supported? > > > > You get an e

Re: pgsql: Enable Unix-domain sockets support on Windows

2020-06-29 Thread Andrew Dunstan
On 6/28/20 4:33 AM, Peter Eisentraut wrote: > On 2020-06-27 13:57, Amit Kapila wrote: >> Fair enough, but what should be the behavior in the Windows versions >> (<10) where Unix-domain sockets are not supported? > > You get an error about an unsupported address family, similar to > trying to use

Re: pgsql: Enable Unix-domain sockets support on Windows

2020-06-28 Thread Amit Kapila
On Sun, Jun 28, 2020 at 2:03 PM Peter Eisentraut wrote: > > On 2020-06-27 13:57, Amit Kapila wrote: > > BTW, in which > > format the path needs to be specified for unix_socket_directories? I > > tried with '/c/tmp', 'c:/tmp', 'tmp' but nothing seems to be working, > > it gives me errors like: "co

Re: pgsql: Enable Unix-domain sockets support on Windows

2020-06-28 Thread Peter Eisentraut
On 2020-06-27 13:57, Amit Kapila wrote: Fair enough, but what should be the behavior in the Windows versions (<10) where Unix-domain sockets are not supported? You get an error about an unsupported address family, similar to trying to use IPv6 on a system that doesn't support it. BTW, in wh

Re: pgsql: Enable Unix-domain sockets support on Windows

2020-06-27 Thread Amit Kapila
On Sat, Jun 27, 2020 at 3:06 PM Peter Eisentraut wrote: > > On 2020-06-26 14:21, Amit Kapila wrote: > > On Sat, Mar 28, 2020 at 7:37 PM Peter Eisentraut > > wrote: > >> > >> Enable Unix-domain sockets support on Windows > >> > > > > + > > +/* > > + * Windows headers don't define this structure,

Re: pgsql: Enable Unix-domain sockets support on Windows

2020-06-27 Thread Peter Eisentraut
On 2020-06-26 14:21, Amit Kapila wrote: On Sat, Mar 28, 2020 at 7:37 PM Peter Eisentraut 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 +{ + u

Re: pgsql: Enable Unix-domain sockets support on Windows

2020-06-26 Thread Amit Kapila
On Sat, Mar 28, 2020 at 7:37 PM Peter Eisentraut 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_p