From: Tom Lane <tgl@sss.pgh.pa.us>
To: Craig Ringer <ringerc@ringerc.id.au>
Cc: Johann 'Myrkraverk' Oskarsson <johann@2ndquadrant.com>
Cc: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: get/setReadOnly broken if default_transaction_read_only on
Date: Fri, 08 Jun 2012 09:47:19 -0400
Message-ID: <11465.1339163239@sss.pgh.pa.us> (raw)
In-Reply-To: <4FD1FA7F.4050400@ringerc.id.au>
References: <4FCFB988.2080408@math.purdue.edu>
<4FD08767.6000302@ringerc.id.au>
<p32k49.x5p32k49.boku.md0y.gnus@asuka.myrkraverk.com>
<4FD1FA7F.4050400@ringerc.id.au>
Craig Ringer <ringerc@ringerc.id.au> writes:
> On 06/08/2012 04:19 PM, Johann 'Myrkraverk' Oskarsson wrote:
>> Craig Ringer<ringerc@ringerc.id.au> writes:
>>> The JDBC driver really needs a way to grab everything it needs to know
>>> efficiently during initial connection setup, with some extensibility
>>> so connection parameters can specify other things to request and cache
>>> when the connection is first established.
> I was thinking more of running something like:
> ... preferably combined with a mechanism for the server to notify (or
> NOTIFY) the JDBC client when a pg_ctl reload or a SET causes settings to
> change.
Running pg_settings() seems like a dead end to me, precisely because you
won't know about any subsequent changes; and most of the parameters that
JDBC might care about are changeable. LISTEN/NOTIFY is not the answer
either, for the reasons you mention as well as some others.
There already is a mechanism to notify clients of changes in selected
GUC settings, but currently the set of parameters so reported is
hard-wired. Possibly pgsql-hackers would consider a proposal to let
the GUC_REPORT flag get set on client-selected parameters.
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-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, ringerc@ringerc.id.au, johann@2ndquadrant.com
Subject: Re: get/setReadOnly broken if default_transaction_read_only on
In-Reply-To: <11465.1339163239@sss.pgh.pa.us>
References: <4FCFB988.2080408@math.purdue.edu> <4FD08767.6000302@ringerc.id.au> <p32k49.x5p32k49.boku.md0y.gnus@asuka.myrkraverk.com> <4FD1FA7F.4050400@ringerc.id.au> <11465.1339163239@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