From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Kremer <jkorders@gmx.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Does creating readOnly connections, when possible, free up resources in Postgres?
Date: Sun, 27 Jan 2019 14:31:41 -0500
Message-ID: <16252.1548617501@sss.pgh.pa.us> (raw)
In-Reply-To: <trinity-98ed82ed-5c4a-46ae-8f15-fcb75b13b3d7-1548612669012@3c-app-mailcom-bs03>
References: <trinity-98ed82ed-5c4a-46ae-8f15-fcb75b13b3d7-1548612669012@3c-app-mailcom-bs03>
"David Kremer" <jkorders@gmx.com> writes:
> I saw that when you create a JDBC connection, you can specify readOnly=true. Would doing so somehow help Postgres manage its other connections? Perhaps Postgres, knowing that a connection is readOnly and will never even attempt to do an update, will free up some internal resources for other connections. Is this accurate?
No.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, jkorders@gmx.com
Subject: Re: Does creating readOnly connections, when possible, free up resources in Postgres?
In-Reply-To: <16252.1548617501@sss.pgh.pa.us>
References: <trinity-98ed82ed-5c4a-46ae-8f15-fcb75b13b3d7-1548612669012@3c-app-mailcom-bs03> <16252.1548617501@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox