Re: get/setReadOnly broken if default_transaction_read_only on - Mailing list pgsql-jdbc

From Johann 'Myrkraverk' Oskarsson
Subject Re: get/setReadOnly broken if default_transaction_read_only on
Date
Msg-id p32k49.x5p32k49.boku.md0y.gnus@asuka.myrkraverk.com
Whole thread Raw
In response to Re: get/setReadOnly broken if default_transaction_read_only on  (Craig Ringer <ringerc@ringerc.id.au>)
Responses Re: get/setReadOnly broken if default_transaction_read_only on
Re: get/setReadOnly broken if default_transaction_read_only on
List pgsql-jdbc
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.

Something like

  SELECT current_setting( 'shared_buffers' )
  UNION
  SELECT current_setting( 'data_directory' );

for some randomly chosen settings?  Of course the query will need to be
structured with key/values to be useful.


--
   Johann Oskarsson                http://www.2ndquadrant.com/    |[]
   PostgreSQL Development, 24x7 Support, Training and Services  --+--
                                                                  |
   Blog: http://my.opera.com/myrkraverk/blog/

pgsql-jdbc by date:

Previous
From: Craig Ringer
Date:
Subject: Re: get/setReadOnly broken if default_transaction_read_only on
Next
From: Віталій Тимчишин
Date:
Subject: Re: get/setReadOnly broken if default_transaction_read_only on