Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpvXr-0006WD-El for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jun 2020 15:18:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jpvXq-0005S5-D2 for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jun 2020 15:18:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpvXq-0005Ry-66 for pgsql-hackers@lists.postgresql.org; Mon, 29 Jun 2020 15:18:06 +0000 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jpvXm-0005la-C7 for pgsql-hackers@lists.postgresql.org; Mon, 29 Jun 2020 15:18:05 +0000 Received: by mail-ot1-x344.google.com with SMTP id n5so15884247otj.1 for ; Mon, 29 Jun 2020 08:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=eDGTEThLeZXXnCS3ldzdb/6iwkAMIjR3Rb/zWVVPcqk=; b=n+YEa7CahGQ0bwklSnGR5UdYf5Ey2iJhPjNISeEn+9qNCV5crVrP3B+L7W0qqT90Ui dibMvsCELXBd9dIwbnU256dkAC6AKmrF/XNNUd77i4AHfghcBa145NBgluO7+F4mKeR6 sjD5iqFBSY/qA+hPwA6ItiiO3ABdhCA6NaCuo1NnQF7m7s86GI4c9t0dxdVd5E8tbJ4C MBwY5icilVU7CftoQ1Hj7z+k/34/gPL835f7yt4fz3gjSNOLZUK9Hsni1kAcDURxRIxg CEO8uN3BndFBfSQWBoFwCUXh5YibMa3Z6UlVyjpqgyZAaYQyIEQb4AmFK5Is4tDLklPf Ekyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=eDGTEThLeZXXnCS3ldzdb/6iwkAMIjR3Rb/zWVVPcqk=; b=MNVDXTum++Sz4Fijze5DS/TkpecPr3hyGAY36LazvK8hwp4Ruk7WSUVuNZxwbosHpt h72hsOr6AVz/n2EfMod2oN8kB4017HtfYERyvlPdhsHitdmre4NxXH85NK+RRk0GeY2E 63JFBjZ1wKFFhNaTTPmmWy+yAbq6XTjeWE/xQncdld6Y7TNbH3PNLLh57IGDI+vKnQjp K66rPOaILLRrOAgODXetnqhSrocjjQCj+HnJSBvic/Fu69QNlPjcm09GXWwjmVoHFQks ACjBOUtgaifHrtpJdfIUiYZfTnJc+AbjEOcZM8Tr66v5HPKuZfoNhFpF7AKXYHzWOWBr alBw== X-Gm-Message-State: AOAM531Rx7rwZBJ9VPxjtkq1kNmnhABqJne++EsWOcwiaCBNBt7vcgE+ 5F5rK7x2QAOH3rLtjJAX3k6SgRBOOsu7Nwl3UVkRkWHkWxpe+jU1oA/JidtEfk4h6uyrLUSBN+u 5atFl6MaDQg7JMOaTQjuGRfDe9oFwGpYctHie48bZDexkXt9IuwzGOrRKUVLKaUVpH4dfgJih78 863dlr4xLyGeMFNpNTCWVp X-Google-Smtp-Source: ABdhPJzSfN3cfm+r+ECWCycQevjG1vlClAS60cuJvA+eICsReIRQ/mY4qkGUYDN/23CCopPSTrfuhQ== X-Received: by 2002:a4a:e58a:: with SMTP id o10mr14039739oov.21.1593443880226; Mon, 29 Jun 2020 08:18:00 -0700 (PDT) Received: from ?IPv6:2600:1700:722:4630::43? ([2600:1700:722:4630::43]) by smtp.gmail.com with ESMTPSA id w10sm40500oon.40.2020.06.29.08.17.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Jun 2020 08:17:59 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pgsql: Enable Unix-domain sockets support on Windows To: Peter Eisentraut , Amit Kapila Cc: PostgreSQL Hackers References: <88ae9594-6177-fa3c-0061-5bf8f8044b21@2ndquadrant.com> Autocrypt: addr=andrew.dunstan@2ndQuadrant.com; prefer-encrypt=mutual; keydata= mQENBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAG0L0FuZHJldyBEdW5zdGFuIDxhbmRyZXcuZHVuc3RhbkAybmRRdWFkcmFudC5jb20+iQFY BBMBAgBCAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgBYhBOQ+WEYd/Hy/RGkVpZn6f8tZ /DuBAhkBBQJd1pSYBQkSzqMsAAoJEJn6f8tZ/DuBJmEIAIVFBIC3qGqh+YTPVTkfowwxpHz0 tZSPjZ6GS/5y62kgoZrZOVXw+Rg2ceuMM3a+In/RRjTx4bembgYqRKgzXlDfiNBJeq5ioVuN H1faDKE2lm5a6QkRQ2JU6DKf60fqSJGP5LisCUr1V0wz6EnlO31ArrKtXCNB+yk0KDAS6o6I Ql4pkXpr+vq4iilwJmiJOqTBam0LmQE7ulYCCYU8Z6MkpiSl+dO7QSramcGyxauQRI3a7gcq dpo8Vrv3gFTQDeMYxk7cqZp08pIVH5XR0+LgBz4X84f59rA/VAKlC/r6CyEQk59rvDLxCMyP 2buoj51Z25N3MVghRDGcsU6mT7e5AQ0ETspYWQEIANGc4zQULOxhbqO2dyD51YhqCNRmm9oK Waqf+wmW4tpDe/VVcxAnNizd4LWCHfzpb5cHAtGkOPePMfzWVf6nvdF7d3eglbtf59+zG7O7 llV0xSSoFiieQBsrGvqDInXYX/4mRRXMtyhM353/tixC9RWLs1oofyYmCPPXXY7h9R7en3B8 BoVrRFcdzlIY/NFNhFGW/9dkEiGjgna2Rk6e15kln4ZvFBWUg23p93w/pqXcxY6+k/8TEk+C 4R+M6w7o2PLGOjdZ+kPiUcw5H85zf/yZJwQXzisXaNduwWB6Vads9YC9dj6kPR1c4VGRqAaY L++LAEOqrlvm2TvqQqZRtnEAEQEAAYkBJQQYAQIADwIbDAUCXdaUtAUJEs6jVQAKCRCZ+n/L Wfw7gQi5B/9sHbmRloZNCWWwZGm+O9iG/JGQxS0WWa4GaZqzqSTWOft2/gO0Bgag89r1djq4 PFgSZtzHvKQpqYz/7HkPrWh1jpcS83i/uYY1uyHXUUtpdEmn4buNObEtD0YNaJkGdhASsECq 6akw+u7WJYmAHs/SpR6ok6HqLw7JHDVc2h5dViLfTk0qrgDa7sq/LVMoJje5Ct/Ku3YaWAV6 YSmzoPP5BmPVFqP11OMQkCqurIu9vTLXKFWX623vCmqRDHJ6e5GCDHbH8USU+4wJBfPymZkd cA7NGm/mmWeJiWBFIDyjzYxrjku8ty9TZJVsaRXnS+OFQzXz9Eu2wTpKdHij46uY Message-ID: Date: Mon, 29 Jun 2020 11:17:58 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 IPv6 on a system that doesn't support it. > >> 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: "could not create lock file >> "/c/tmp/.s.PGSQL.5432.lock": No such file or directory" on server >> start.  I am trying this on Win7 just to check what is the behavior of >> this feature on it. > > Hmm, the only thing I remember about this now is that you need to use > native Windows paths, meaning you can't just use /tmp under MSYS, but > it needs to be something like C:\something.  But the error you have > there is not even about the socket file but about the lock file, which > is a normal file, so if that goes wrong, it might be an unrelated > problem. > 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. I just checked that this is working, both in postgresql.conf and on the psql command line. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services