Set read-only connection from a connect string parameter

From: Steven Schlansker <steven(at)likeness(dot)com>
To: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Set read-only connection from a connect string parameter
Date: 2012-12-30 19:11:08
Message-ID: B5663E9C-F1AB-4046-9A56-9A4B56C38DBD@likeness.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi,

I have a very simple (2 lines) patch which allows you to set ?readOnly=true on your connection string.

https://github.com/pgjdbc/pgjdbc/pull/26

Hopefully someone finds this useful.

Steven

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Andriy Redko 2013-01-04 13:50:04 Bug report: buggy implementation of setQueryTimeout() in latest JDBC drivers 9.2-100x (AbstractJdbc2Statement.java)
Previous Message Kris Jurka 2012-12-29 01:57:11 Re: Extracting more useful information from PSQLException