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 1oIHbj-0006SA-Rn for pgsql-general@arkaria.postgresql.org; Sun, 31 Jul 2022 22:40:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oIHbi-0000mO-5p for pgsql-general@arkaria.postgresql.org; Sun, 31 Jul 2022 22:40:22 +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 1oIHbh-0000mF-Mc for pgsql-general@lists.postgresql.org; Sun, 31 Jul 2022 22:40:21 +0000 Received: from mail-falcon.ukwebsolutionsdirect.com ([193.189.75.23]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIHbd-0008KM-IV for pgsql-general@lists.postgresql.org; Sun, 31 Jul 2022 22:40:20 +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:Subject:To:From:Date:MIME-Version:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8yPzkVw+OiUT7tTbPC3QwQV0ZcbyJ/GaMAILITaVT3k=; b=GWAwVKYXksBRjxUi6OBBVepmeF AKCQTFYHPk9ltfITRzUWquK6zZEU0qz6R1ODGrbfGZdds5K9fWV0yiRzkBFcV4SiHaIFrHXyefcvA VWqQvQ6aiscC3gQZsgoKkqeLsrOq9h5lsYviHjVz6YsbLxtSfB4LamguaPGVkol5ilmAxOgbcHuoi 6e3s0jqmORlVLB2/yDoDMpwpQUgXtsXJUArfypaHcVPJLT9c3hfPD7h7MeD0ItrOEhdMEJJg2Tw1V F7JmND+K+IiEktm6ShwqOKWH0uKguKmi6lVy60elWqDKlm2RJtvTpEbBb+Ad6VlHwPdHuIuj3NMyO cT9w0nHg==; Received: from [::1] (port=47926 helo=falcon.ukwebsolutionsdirect.com) by falcon.ukwebsolutionsdirect.com with esmtpa (Exim 4.95) (envelope-from ) id 1oIHba-004gOy-Qi for pgsql-general@lists.postgresql.org; Sun, 31 Jul 2022 23:40:14 +0100 MIME-Version: 1.0 Date: Sun, 31 Jul 2022 23:40:14 +0100 From: howardnews@selestial.com To: pgsql-general@lists.postgresql.org Subject: Connecting to postgres on OSX from Swift using PostgresClientKit User-Agent: Roundcube Webmail/1.5.2 Message-ID: X-Sender: howardnews@selestial.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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 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. The following is the swift code I am using [Code] var config = ConnectionConfiguration() config.database = "mydb" config.user = "postgres" config.credential = .scramSHA256(password: "mypassword") config.port = "5432" config.ssl = true let connection = try PostgresClientKit.Connection(configuration: config) defer { connection.close() } [/Code] I have the following in my pg_hba.conf file: [Code] local all all scram-sha-256 [/Code] I can successfully connect using psql and/pgadmin, but when I try and connect in code I get the following error: [Code] [Connection-1 Severe] Unable to connect socket: Error Code: -9989(0x2705), Operation not permitted [/Code] Any suggestions? Thanks Howard Cole Selestial.com