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 1oIJKS-0002fg-EH for pgsql-general@arkaria.postgresql.org; Mon, 01 Aug 2022 00:30:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oIJKQ-0007LE-ES for pgsql-general@arkaria.postgresql.org; Mon, 01 Aug 2022 00:30:38 +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 1oIJKQ-0007JI-3O for pgsql-general@lists.postgresql.org; Mon, 01 Aug 2022 00:30:38 +0000 Received: from mail-falcon.ukwebsolutionsdirect.com ([193.189.75.23]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIJKO-0005SB-3U for pgsql-general@lists.postgresql.org; Mon, 01 Aug 2022 00:30:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selestial.com; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gyl0k2onc4Ux32JwfB+t5CIycIqWxst3DqFOXxVrJ18=; b=owzfyLhbCU3PBtl05gW/gNXy5j J3aiCukqPaDd+jzPMGkTdzVErNb8HwLokklETqvOIjV+ixrA261RA8oKyzjL+PuZZDLrrXLxSHkbS 7JInwPwMtTvrkcseoXj/lDyIPajCxjb00CCkBC2pxT1S8i9hQkO/m351MyVLGJEV8mMWdDY3KwSfD lNTyFANIp41lk5nYIHiRr4RyK06yMFP9bCtD0z0S942CzyRQaFYp6Q/Bv8P9tPQ9nocz3x7JSoHSD v5M3QUeAfKNKGuMJP0Myzuqms+8+jyQOLLNKhjwLnM9SdtY8B/vWfmOvyaI5XAWrXLbSpf6OijMmB e+jyxIGg==; Received: from [::1] (port=35596 helo=falcon.ukwebsolutionsdirect.com) by falcon.ukwebsolutionsdirect.com with esmtpa (Exim 4.95) (envelope-from ) id 1oIJKN-0055A0-Fi; Mon, 01 Aug 2022 01:30:35 +0100 MIME-Version: 1.0 Date: Mon, 01 Aug 2022 01:30:35 +0100 From: howardnews@selestial.com To: Adrian Klaver Cc: Rob Sargent , pgsql-general@lists.postgresql.org Subject: Re: Connecting to postgres on OSX from Swift using PostgresClientKit In-Reply-To: <74020545-e16c-8880-bacd-f1c98557d937@aklaver.com> References: <8b3c9c27-3a13-1a45-b3de-a995a4cbbf19@gmail.com> <55172d40109beb0daee6ad81a97352fe@selestial.com> <74020545-e16c-8880-bacd-f1c98557d937@aklaver.com> User-Agent: Roundcube Webmail/1.5.2 Message-ID: X-Sender: howardnews@selestial.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - falcon.ukwebsolutionsdirect.com X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - selestial.com X-Get-Message-Sender-Via: falcon.ukwebsolutionsdirect.com: authenticated_id: howardnews@selestial.com X-Authenticated-Sender: falcon.ukwebsolutionsdirect.com: howardnews@selestial.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-08-01 01:04, Adrian Klaver wrote: > On 7/31/22 16:53, howardnews@selestial.com wrote: >> On 2022-07-31 23:42, Rob Sargent wrote: >>> On 7/31/22 16:40, howardnews@selestial.com wrote: >>> >>>> Hi, >>>> >>>> Wondered if anyone had experience connection to pg14.1 running on >>>> OSX using the swift library PostgresClientKit. >>>> >>>> I am having difficulties connecting and hopefully someone can put me >>>> on the right track. > >>>> >>>> Thanks >>>> >>>> Howard Cole >>>> Selestial.com >>>  Maybe add config.host = "localhost"? >> Thanks, tried localhost, 127.0.0.1 and ::128. No joy > > What error do you get in the above cases? > >> >> When using 127.0.0.1... 2022-08-01T00:29:19.319Z Connection-1 finer] Created socket [2022-08-01T00:29:19.322Z Connection-1 fine] Opening connection to port 5432 on host 127.0.0.1 [2022-08-01T00:29:19.324Z Connection-1 severe] Unable to connect socket: Error code: -9989(0x-2705), Operation not permitted [2022-08-01T00:29:19.324Z Connection-1 finer] Closing socket