Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gnq9u-0007ZW-28 for pgsql-general@arkaria.postgresql.org; Sun, 27 Jan 2019 19:31:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gnq9s-0000EW-MF for pgsql-general@arkaria.postgresql.org; Sun, 27 Jan 2019 19:31:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gnq9s-0000EP-BN for pgsql-general@lists.postgresql.org; Sun, 27 Jan 2019 19:31:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gnq9l-0005H1-Gc for pgsql-general@postgresql.org; Sun, 27 Jan 2019 19:31:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x0RJVfKg016253; Sun, 27 Jan 2019 14:31:42 -0500 From: Tom Lane To: "David Kremer" cc: pgsql-general@postgresql.org Subject: Re: Does creating readOnly connections, when possible, free up resources in Postgres? In-reply-to: References: Comments: In-reply-to "David Kremer" message dated "Sun, 27 Jan 2019 19:11:09 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <16251.1548617501.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 27 Jan 2019 14:31:41 -0500 Message-ID: <16252.1548617501@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David Kremer" writes: > I saw that when you create a JDBC connection, you can specify=C2=A0readO= nly=3Dtrue. Would doing so somehow help Postgres manage its other connecti= ons? Perhaps Postgres, knowing that a connection is=C2=A0readOnly=C2=A0and= will never even attempt to do an update, will free up some internal resou= rces for other connections. Is this accurate? No. regards, tom lane