[pgjdbc/pgjdbc] 050797: feat: read only transactions (#1252)

From: Brett Okken <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 050797: feat: read only transactions (#1252)
Date: 2019-11-25 16:46:45
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/69320c-050797@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 050797934a8a9c0ce2dff068eba14931988370ca
https://github.com/pgjdbc/pgjdbc/commit/050797934a8a9c0ce2dff068eba14931988370ca
Author: Brett Okken <brett(dot)okken(dot)os(at)gmail(dot)com>
Date: 2019-11-25 (Mon, 25 Nov 2019)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/PGProperty.java
M pgjdbc/src/main/java/org/postgresql/core/BaseConnection.java
M pgjdbc/src/main/java/org/postgresql/core/QueryExecutor.java
M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/ConnectionTest.java

Log Message:
-----------
feat: read only transactions (#1252)

* feat: read only transactions

If autocommit is set to false, read only will be set on begin
transaction.
If autocommit is true, it will continue to be managed at session level.
The queries to change session have been cached to avoid re-parsing each
time readonly value changes.

https://github.com/pgjdbc/pgjdbc/issues/1228
https://github.com/pgjdbc/pgjdbc/issues/848

* feat: read only transactions

* checkstyle and hamcrest test import

* add connection property with 3 options to control read only behavior

* fix missing property methods on BaseDataSource
* avoid redundant static modifier

* more loosely couple read only hints to backend

* return default read only mode from data source.

* avoid case conversion

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2019-11-25 19:38:17 [pgjdbc/pgjdbc] 7b4543: fix: pginterval to take iso8601 strings (#1612)
Previous Message Dave Cramer 2019-11-25 13:11:44 [pgjdbc/pgjdbc] 69320c: add checks for null results (#1616)