[pgjdbc/pgjdbc] af8f88: Fix:save points causing server to run out ofresou...
[pgjdbc/pgjdbc] af8f88: Fix:save points causing server to run out ofresou...
От:
Dave Cramer <noreply@github.com>
Дата:
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: af8f8836d004d7227017774dff895c1ee706c03d
https://github.com/pgjdbc/pgjdbc/commit/af8f8836d004d7227017774dff895c1ee706c03d
Author: Dave Cramer
Date: 2019-02-24 (Sun, 24 Feb 2019)
Changed paths:
M README.md
M docs/documentation/head/connect.md
M pgjdbc/src/main/java/org/postgresql/PGProperty.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/PgStatement.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/AutoRollbackTestSuite.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/PGPropertyTest.java
Log Message:
-----------
Fix:save points causing server to run out of resources (#1409)
* Savepoints created by autosavepoint logic will be cleaned up after 1000 successful transactions
* if setSavePoint is called on the connection any automatically created savepoints will be released and autosave disabled.