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 1oILKi-0000sZ-1I for pgsql-general@arkaria.postgresql.org; Mon, 01 Aug 2022 02:39:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oILKg-00035z-4x for pgsql-general@arkaria.postgresql.org; Mon, 01 Aug 2022 02:39:02 +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 1oILKf-00035e-P0 for pgsql-general@lists.postgresql.org; Mon, 01 Aug 2022 02:39:01 +0000 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oILKZ-0001oF-GQ for pgsql-general@lists.postgresql.org; Mon, 01 Aug 2022 02:39:00 +0000 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-10ee900cce0so265965fac.5 for ; Sun, 31 Jul 2022 19:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=CwyA6AIEVexwyAp/RwJ5lXML1o2hw/VQitSSWgOR9mw=; b=IR5shsiPH/UcoVXh4+SCOd9QBT1YN/Q5Gr+HG63Cb0P3f2Sn2k/KP6fg1z6Hd0NsW0 UP7FbQrhkRbGra7uNmnjZqIh1V5CIKmyHU97+/m8SconxPwuJa6Y83oJamW5SDEhVfz6 E/RoeJZ8laCO29oxz4y8cUm+8IgDr9pr9EQhm7yQneje1PrCrrEjp1EQ32axSrO0VkY2 x3m2p3D5+3g6nBZ5ZYAazKs5Jca8eeZhTrC9tEIiwjx7JUntOBmQb7D4aMq1yA0sNPgb QuIWLWulnMytRQQPBLrCBM1fnY5b/A/RhiWi6wEufoTqtgcap2Ir/Vd7XI21GB8fyIf+ 0/WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=CwyA6AIEVexwyAp/RwJ5lXML1o2hw/VQitSSWgOR9mw=; b=EJwrP51/+OYlxgAwA+AK3VgtS8cJRKX4/ZZJlZCcu++f2/TWYI16SxWMdNarq3hzuI mC4clz/LoMf4YKonuBTO86HK0cBubB+BIzGXXc3qNo8dp1nG5KepoP2BZFC1qQrPQf4g QCHNLAbs2oj6IfmUKfVk4Ng+2CvSnPsHMHBqc/x7n6kbAVISXt+ddkVS44Rq2+eiIfEd A7cb+i+YcgdcyzM2cmQWq85rE+Dwp9y/A+FRd8HNFXp9JU3Q2P7woXemCLyE23BdN01E 2aIVVAssp2P3gWZFy67ah/NRbDWiVpPkAVD9A4XUHQXUIb78eqCHn3j8Q8zd9mQzP4py SlOQ== X-Gm-Message-State: AJIora/TthJj4f34of3HR9vwCCr2Its/YsLlcnAf+FWEx6vr8VmO0eSO tR7KxtiVVTnTUjF4TVxsnC8fWcCa2Bw= X-Google-Smtp-Source: AGRyM1v4E29+vZSvmChqK9OM1eSX+FOpDWVZzR8afXhlGD9MtGTAlWhI5Lpm3UIexy6ss5H7Sme8Uw== X-Received: by 2002:a05:6870:600e:b0:101:652e:fadc with SMTP id t14-20020a056870600e00b00101652efadcmr6570215oaa.206.1659321534144; Sun, 31 Jul 2022 19:38:54 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id q22-20020a056870e61600b000f2455e26acsm2939423oag.48.2022.07.31.19.38.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Jul 2022 19:38:53 -0700 (PDT) Message-ID: <2f3c37e1-05b0-9fc9-bd30-190c557248f8@gmail.com> Date: Sun, 31 Jul 2022 21:38:52 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Connecting to postgres on OSX from Swift using PostgresClientKit Content-Language: en-US To: pgsql-general@lists.postgresql.org References: <8b3c9c27-3a13-1a45-b3de-a995a4cbbf19@gmail.com> <55172d40109beb0daee6ad81a97352fe@selestial.com> <74020545-e16c-8880-bacd-f1c98557d937@aklaver.com> From: Ron In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/31/22 19:30, howardnews@selestial.com wrote: > 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 This really looks like an error somewhere in the Mac OS networking stack. What happens when you "telnet localhost 5432"? -- Angular momentum makes the world go 'round.