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 1oIJH9-0002VA-Cl for pgsql-general@arkaria.postgresql.org; Mon, 01 Aug 2022 00:27: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 1oIJH7-0002uf-OQ for pgsql-general@arkaria.postgresql.org; Mon, 01 Aug 2022 00:27:13 +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 1oIJH7-0002uW-Dm for pgsql-general@lists.postgresql.org; Mon, 01 Aug 2022 00:27:13 +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 1oIJH5-0005Q1-IN for pgsql-general@lists.postgresql.org; Mon, 01 Aug 2022 00:27:13 +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=Nh28wremuDYCLGLpNAQzAqQHeoGQTxkT3F7gWVETd7Q=; b=N82e9tHCffJ2zE1EY+pRp9x2in Be+rHJRH4+0aLm0Lfpztu8+/n3D3tRIJxfU8qW8hych0fkQJ3dcg5tD6s8oVoq4jc39NvPg+4c43c n1viU7cPbExEB/2pz2ps1DxQayONBW+42NyScfrFKCLSvcABWJ6eeRU8uPwTa9h5OArxNdK+o0Mv/ RZRvNbGl0Zrl3+JIf8mvytYL8DfckAzh+fO+Kv1hmqNOlUJoA/mBG5oIU0BOeK+jyqskEGJumzoJU YGBOQsiJWuBeq2gdrybCDFiiPwhp3tLCSREIMZGb9mRkMcGbCONj/tphHBNADlquXn5p+OGs8oSQY m8Nfs/3g==; Received: from [::1] (port=35076 helo=falcon.ukwebsolutionsdirect.com) by falcon.ukwebsolutionsdirect.com with esmtpa (Exim 4.95) (envelope-from ) id 1oIJH4-0054fX-76; Mon, 01 Aug 2022 01:27:10 +0100 MIME-Version: 1.0 Date: Mon, 01 Aug 2022 01:27:09 +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: <8ba4268bb21ba789acbef323b0928f9c@selestial.com> 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? > >> >> Here is the error I get in the application. 2022-08-01T00:20:18.530Z Connection-1 finer] Created socket [2022-08-01T00:20:18.532Z Connection-1 fine] Opening connection to port 5432 on host localhost 2022-08-01 01:20:18.534308+0100 TestPostgres[10654:120173] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:13 Err:-1 Errno:1 Operation not permitted 2022-08-01 01:20:18.535617+0100 TestPostgres[10654:120173] [si_destination_compare] socket(PF_SYSTEM, SOCK_DGRAM, SYSPROTO_CONTROL) failed: Operation not permitted 2022-08-01 01:20:18.535694+0100 TestPostgres[10654:120173] [si_destination_compare] socket(PF_SYSTEM, SOCK_DGRAM, SYSPROTO_CONTROL) failed: Operation not permitted [2022-08-01T00:20:18.537Z Connection-1 severe] Unable to connect socket: Error code: -9989(0x-2705), Operation not permitted [2022-08-01T00:20:18.537Z Connection-1 finer] Closing socket