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 1jPL1G-0002yZ-Dw for pgsql-general@arkaria.postgresql.org; Fri, 17 Apr 2020 07:02:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPL1F-0008Bk-At for pgsql-general@arkaria.postgresql.org; Fri, 17 Apr 2020 07:02:33 +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 1jPL1F-0008Bd-1A for pgsql-general@lists.postgresql.org; Fri, 17 Apr 2020 07:02:33 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jPL1A-0007AO-Jr for pgsql-general@postgresql.org; Fri, 17 Apr 2020 07:02:32 +0000 Received: by mail-wr1-x42e.google.com with SMTP id b11so1772956wrs.6 for ; Fri, 17 Apr 2020 00:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=o37by0xEulgXZsdWPwVAOyBhHqo5cQLas/+WGqS9CD8=; b=qlsO2jq1uyMrYdTqqySiMZ/Hu0lyLW0um33+TMXe4Jc0L/DWUea6oGteodlzv0bVPv JWK8WqmqhVI9grf44bzwKejvTA9lRs7wo+52byKdr3pvNfmNBbsvG+vHUoLX5BwK+QE6 f7o0JoZ5qkgpHJsC05shprQEp+huTZwZYINF7R/28Hqas9WOQbCrlWeTr7ScITo/gzBN /5XHRkpruk+YYsFzth6tJrxW5kTesN0B8gvNvVM/gWFCzYqUV+rCbZNayfXySXZqIpoT 03msGdO7nItX2FGr8XylcncftS6aHzV3CxKt6tjcEkeLacMJOsI+V05s5lUV0ganX+xF pgcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=o37by0xEulgXZsdWPwVAOyBhHqo5cQLas/+WGqS9CD8=; b=mvmG1PgJwRRC7JFGSepo9fyktCnBDThDwb731+ppzrHnmbKHtKG/M/XjBmWmvFLr5p El2vEty1LVJ31pASvJwOAuqc3V7HInPJlZyAP3pdlVal1nqzhthmk+ykP8kqYdTvTkom hXFZ3HduONS1mqGSXFx/pL3XKDFg83fj4ghM7zazL9jpCaI0TQWVpcLuVuy4uW8HWxxc UAjFjT1Iedu8eMb1xCjagMrwxdO9/WpYH0I0lIfvp/zPh1dxFR+lWDbXmbwx8ONS6QkP Ht/jKHPZYGn9LieF7kN16+j5yHW7bt2gRudxh0l14lqScidUGqyNf23rfS9l1s0Cm4bs JCtA== X-Gm-Message-State: AGi0Pub5HBYzf8sZ9IQrq5hB1vJHPkXjtXiaSudCDuME1N8yLxNM/rPW 0pzhb7cLY3Qintwd4Vh9hFM= X-Google-Smtp-Source: APiQypKpd3UTYGVAerFt6pHbUGMX2g1DCiL3qkCy5Ed9bU0AysTmIaU4G6Hsn5hpLvDlWwS0cYyNSQ== X-Received: by 2002:a05:6000:128d:: with SMTP id f13mr2375560wrx.241.1587106947322; Fri, 17 Apr 2020 00:02:27 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id v7sm5528918wmg.3.2020.04.17.00.02.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2020 00:02:26 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Could not resolve host name error in psycopg2 From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: Date: Fri, 17 Apr 2020 09:02:26 +0200 Cc: derwin theduck , pgsql-general@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Adrian Klaver X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Adrian, > On 17. Apr, 2020, at 03:00, Adrian Klaver = wrote: >=20 > Huh? Leaving open connections is not considered a good thing. In other = words a connection should last for as long as it takes to get it's task = done and then it should close. I basically agree on this, but there are two big "but"s: - recurring monitoring connections flood the logs unless they connect = and never disconnect again. - applications with hundreds or thousands of users may flood the logs, = even though a pool may be used. If said pool doesn't keep its = connections open most of the time you will notice that the database = cluster is very busy logging connections. Do you really want that? Cheers, Paul=