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 1jpSlT-0000m8-3b for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Jun 2020 08:34:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jpSlS-0000tz-1r for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Jun 2020 08:34:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpSlR-0000ts-RA for pgsql-hackers@lists.postgresql.org; Sun, 28 Jun 2020 08:34:13 +0000 Received: from [64.147.123.31] (helo=wforward2-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpSlK-0002bL-PG for pgsql-hackers@lists.postgresql.org; Sun, 28 Jun 2020 08:34:12 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id 41940736; Sun, 28 Jun 2020 04:33:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 28 Jun 2020 04:33:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=qgPkgJkKgoS5MIDPdUWWQlL3ApcFCwBLy2mNpzd2z 6g=; b=qOfhBiaV+RVRBwNi5nNS/6nvdMvR7XBQQKMLlrG9FqRCELqP/OkbiIYhN 1WEpBA9MLLT98+QezXXFZdEXLb3l7pW2DvhxJW4FmMaQe7sDyyh/sfYMpxQW9rNB Lx+9J6Ps/5nl0eTc5PBTbNRC+g7B36QgnwrczdZK2IkN62BU4ZU2G6LnjYNQXq0E 24krkwfdn64vtQSrm0vR5VW5P2JT+GjJan4DbAmVJyKxxOTKYmDo8wEc4j3laTCx 6WpeuBAPwOPWeIE83BtlXvkUWe2yTDF44n/7+5C5l/TG6v9huJIu2OGo3ko2cxPU 0Q8Vh8T2BbxUgCNLVK6PI+FNdHXbQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeliedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnheptdevgeehtdejvdevvdel jeeuveejjedtleelgfekleefieekjeelgfektdduuedvnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeelfedrvdegfedrudeluddrvdefkeenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvih hsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df3bfee.dip0.t-ipconnect.de [93.243.191.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 0F2803067B48; Sun, 28 Jun 2020 04:33:53 -0400 (EDT) Subject: Re: pgsql: Enable Unix-domain sockets support on Windows To: Amit Kapila References: <88ae9594-6177-fa3c-0061-5bf8f8044b21@2ndquadrant.com> Cc: PostgreSQL Hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Sun, 28 Jun 2020 10:33:53 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.31 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services