Skip to content

fix: [perf] audit and close leaked ResultSets across handlers (follow-up #4197) - #4204

Merged
lvca merged 5 commits into
mainfrom
fix/4197-resultset-leaks-audit
May 11, 2026
Merged

lvca merged 5 commits into
mainfrom
fix/4197-resultset-leaks-audit

Conversation

@lvca

@lvca lvca commented May 11, 2026

Copy link
Copy Markdown
Member

Summary

Audit follow-up to #4197. The original issue was that gRPC executeQuery leaked its ResultSet. An audit found the same pattern in many other call sites. Every leaked ResultSet keeps its execution plan alive, and for full-table scans with parallel scan enabled (default on), this pins worker threads on QueryEngineManager's shared pool blocked on a full bounded queue, and holds the database read lock - the real cost is thread-pool exhaustion, not heap.

See FetchFromTypeExecutionStep.syncPullParallel for the actual mechanism: each scan task pushes into a LinkedBlockingQueue<Result>(4096) and runs inside executeInReadLock. If the caller stops iterating without closing, the producer task put()s forever and the read lock stays held. Restart frees them, nothing else does.

What this PR closes

HTTP handlers (every request was leaking):

  • GetQueryHandler#execute
  • PostCommandHandler#execute (await-response path)
  • PostServerCommandHandler: import / align / backup

Wire protocols:

  • PostgresNetworkExecutor#browseAndCacheResultSet now takes ownership and closes via try-with-resources, fixing all 4 callers (describe / executeCommand / simple-query / schema-discovery)
  • MongoDBCollectionWrapper#queryDocuments (SQL path)
  • ArcadeGraph#vertices / #edges return a closing iterator that releases the underlying ResultSet when exhausted

Engine:

  • SQLFunctionDefinition#execute
  • SQLFunctionVectorNeighbors#extractQueryVector (close was outside finally)
  • ExistsExpression#evaluate (same pattern)
  • MaterializedViewRefresher truncate
  • SQLTriggerExecutor#execute
  • DatabaseAsyncCommand#execute forces async callbacks to consume in onComplete; logging-only callbacks (Console, PostCommandHandler) now release the ResultSet

Low-frequency fire-and-forget DDL:

  • ArcadeDBServer startup import
  • TextEmbeddingsImporterLSM CREATE-TYPE/PROPERTY/INDEX
  • Console#displayType

What is NOT a leak (verified, no change)

  • GraphQLResultSet.close() already delegates to the wrapped ResultSet. GraphQL returns the result to the caller, matching the other QueryEngine factories. Caller closes.
  • RemoteDatabase / network/Remote* and grpc-client/Remote* materialize into InternalResultSet whose close() only clears the list. Not a real leak.
  • ServerDatabase.* wrappers return ProfilingResultSet to caller (caller's responsibility).
  • BoltNetworkExecutor stores the ResultSet on an instance field with a managed close lifecycle.

Test plan

  • mvn test -pl engine - 6855 tests pass
  • mvn test -pl server - 400 tests pass
  • mvn test -pl grpcw - 104 tests pass (includes the Issue4197GrpcExecuteQueryResultSetLeakIT regression test from the original fix)
  • mvn test -pl postgresw - 168 tests pass
  • mvn test -pl mongodbw - 3 tests pass
  • mvn test -pl gremlin - 230 tests pass (42 skipped)
  • mvn test -pl graphql - 26 tests pass
  • mvn test -pl console - 41 tests pass
  • mvn test -pl integration - 28 tests pass (9 skipped)

…-up #4197)

Audit follow-up to #4197 (gRPC executeQuery leak). Every leaked ResultSet
keeps its execution plan alive. For full-table scans with parallel scan
enabled (default), this pins worker threads on QueryEngineManager's shared
pool blocked on a full bounded queue and holds the database read lock - the
real cost is thread-pool exhaustion, not heap.

Closed sites (try-with-resources or explicit close after consumption):

HTTP handlers (every request leaked):
- GetQueryHandler#execute
- PostCommandHandler#execute (await-response path)
- PostServerCommandHandler: import / align / backup paths

Wire protocols:
- PostgresNetworkExecutor#browseAndCacheResultSet now takes ownership and
  closes via try-with-resources, covering describe / executeCommand /
  simple-query / schema-discovery callers.
- MongoDBCollectionWrapper#queryDocuments wraps the SQL path.
- ArcadeGraph#vertices/#edges return a closing iterator that releases the
  underlying ResultSet when exhausted.

Engine:
- SQLFunctionDefinition#execute
- SQLFunctionVectorNeighbors#extractQueryVector (close was outside finally)
- ExistsExpression#evaluate (same pattern)
- MaterializedViewRefresher truncate
- SQLTriggerExecutor#execute
- DatabaseAsyncCommand#execute (forces async callbacks to consume in
  onComplete; logging-only callbacks now release the ResultSet)

Low-frequency fire-and-forget DDL:
- ArcadeDBServer startup import
- TextEmbeddingsImporterLSM CREATE-TYPE/PROPERTY/INDEX
- Console#displayType

GraphQL already wires close() through GraphQLResultSet.close, so no change
needed; caller is responsible (matches the other QueryEngine factories).

Build: engine + server + gRPC + Gremlin + Postgres + MongoDB + GraphQL +
Console + integration tests all pass.
@codacy-production

codacy-production Bot commented May 11, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage 79.37% diff coverage · -7.73% coverage variation

Metric Results
Coverage variation ✅ -7.73% coverage variation
Diff coverage ✅ 79.37% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (3185c00) 126709 94088 74.26%
Head commit (c452b98) 158415 (+31706) 105388 (+11300) 66.53% (-7.73%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#4204) 126 100 79.37%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@lvca lvca self-assigned this May 11, 2026
@lvca lvca added this to the 26.5.1 milestone May 11, 2026
@claude

claude Bot commented May 11, 2026

Copy link
Copy Markdown

Code Review - ResultSet Leak Audit

This is a well-motivated, systematic fix. The PR description is detailed, the scope of the audit is clearly documented, and the approach is consistent throughout. A few items worth discussing:


Critical - closingIterator in ArcadeGraph only closes on full exhaustion

File: gremlin/src/main/java/com/arcadedb/gremlin/ArcadeGraph.java

The new closingIterator wrapper only invokes resultSet.close() when hasNext() returns false (i.e., the iterator is fully drained). In practice, most Gremlin traversals are not exhaustive - g.V().limit(10), g.V().hasLabel("Person").values("name"), and any traversal with a filter or early-stop step will stop pulling from the source iterator before it is exhausted.

TinkerPop's traversal machinery closes iterators that implement AutoCloseable (or TinkerPop's own CloseableIterator) when the traversal's close() is called. Since the anonymous iterator returned here implements only Iterator<T>, TinkerPop will not attempt to close it, so bounded traversals will still leak the ResultSet.

The cleanest fix is to implement TinkerPop's org.apache.tinkerpop.gremlin.util.iterator.ClosingIterator (or simply have the anonymous class implement AutoCloseable) so TinkerPop's GraphStep can register it for closure:

// Return CloseableIterator so TinkerPop's traversal machinery can close it
return new CloseableIterator<T>() {
    @Override public boolean hasNext() { ... }
    @Override public T next() { return delegate.next(); }
    @Override public void close() { resultSet.close(); }
};

As written, the fix works for g.V().toList() (full scan) but leaves the leak in place for the much more common bounded/filtered traversals.


Medium - DatabaseAsyncCommand: callback receives a ResultSet that will be closed on return

File: engine/src/main/java/com/arcadedb/database/async/DatabaseAsyncCommand.java

try (final ResultSet resultset = ...) {
    if (userCallback != null)
        userCallback.onComplete(resultset);
}  // resultset.close() called here

Any callback that stores the ResultSet reference for later iteration (rather than consuming it synchronously inside onComplete) will now receive a closed ResultSet. The PR description says "forcing async callbacks to consume in onComplete" - this is a reasonable contract, but it's a breaking behavioral change for any external code that implemented AsyncResultsetCallback and iterated the ResultSet asynchronously. A comment or Javadoc update on AsyncResultsetCallback.onComplete would help future implementors understand this constraint.


Minor - Pre-existing dead code in backup SQL fallback

File: server/src/main/java/com/arcadedb/server/http/handler/PostServerCommandHandler.java (around line 882)

try (final var result = database.command("sql", "backup database")) {
    ...
    if (result instanceof Iterable) {           // always true: ResultSet extends Iterable<Result>
        for (final Object r : (Iterable<?>) result) {
            if (r instanceof Map) {             // always false: Result does not implement Map

The instanceof Map check was already dead code before this PR - Result does not implement java.util.Map. The backupFile response field is never populated through the SQL fallback path. This isn't introduced by this PR, but since the code was touched, it would be a good opportunity to fix the iteration to use result.next().getProperty("backupFile") or similar instead. Low priority since the reflection-based path above it handles the success case.


Positive observations

  • The try-with-resources pattern is applied consistently and correctly across all sites (DDL, triggers, materialized view refresh, vector function, exists expression).
  • materializeResultSet already closes its source in a finally block, so the finally { qResult.close() } in PostCommandHandler correctly handles the materialized copy.
  • The browseAndCacheResultSet change is clean - taking ownership at the entry point of the method rather than at each of the 4 call sites is the right abstraction level.
  • SQLFunctionVectorNeighbors correctly moves the close from outside finally into try-with-resources - the bug where an exception between open and close would skip cleanup is now fixed.
  • The "What is NOT a leak" section in the PR description is genuinely useful for future reviewers.

Summary

The pattern applied across the codebase is correct and the fix is valuable. The primary concern is the Gremlin closingIterator - it fixes the full-scan case but leaves bounded traversals (the common case) still leaking, which may give a false sense that Gremlin is now fully fixed. The other items are minor. Recommend addressing the closingIterator gap before merging.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request ensures that ResultSet objects are consistently closed across multiple modules—including the console, engine, and server—to prevent resource leaks and state accumulation. This is achieved through try-with-resources blocks, explicit close calls, and a new closingIterator for Gremlin queries. Feedback points out a logic error in the backup command where a ResultSet was incorrectly treated as an Iterable and suggests making the closingIterator more robust against exceptions to guarantee resource release.

Comment on lines 881 to 889
if (result instanceof Iterable) {
for (final Object r : (Iterable<?>) result) {
if (r instanceof Map) {
final Map<?, ?> map = (Map<?, ?>) r;
if (map.containsKey("backupFile"))
response.put("backupFile", map.get("backupFile").toString());
}
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The result variable is a ResultSet (returned by database.command), which does not implement Iterable. Consequently, the result instanceof Iterable check will always be false, and the backup file name will never be included in the HTTP response. Additionally, ResultSet returns Result objects, not Map objects. This logic should be updated to correctly iterate over the ResultSet and access properties using the Result API.

        while (result.hasNext()) {
          final var r = result.next();
          if (r.hasProperty("backupFile"))
            response.put("backupFile", r.getProperty("backupFile").toString());
        }

Comment on lines +633 to +651
return new Iterator<T>() {
private boolean closed = false;

@Override
public boolean hasNext() {
if (closed)
return false;
if (delegate.hasNext())
return true;
closed = true;
resultSet.close();
return false;
}

@Override
public T next() {
return delegate.next();
}
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The closingIterator implementation only closes the ResultSet if the iterator is fully exhausted via hasNext(). If an exception occurs during iteration (e.g., in delegate.hasNext() or delegate.next()), the ResultSet will be leaked. Given that leaked ResultSet objects pin worker threads and hold read locks as described in the PR summary, this iterator should ensure closure on exceptions.

    return new Iterator<T>() {
      private boolean closed = false;

      @Override
      public boolean hasNext() {
        if (closed)
          return false;
        try {
          if (delegate.hasNext())
            return true;
          close();
          return false;
        } catch (final Throwable t) {
          close();
          throw t;
        }
      }

      @Override
      public T next() {
        try {
          return delegate.next();
        } catch (final Throwable t) {
          close();
          throw t;
        }
      }

      private void close() {
        if (!closed) {
          closed = true;
          resultSet.close();
        }
      }
    };

lvca and others added 2 commits May 11, 2026 11:34
1) ArcadeGraph closing iterator: make it implement TinkerPop's
   CloseableIterator so g.V()/g.E() with early termination (limit,
   filtered traversals) gets closed via GraphStep.close ->
   CloseableIterator.closeIterator(). Plain Iterator<T> was silently
   skipped, leaving the leak in place for the most common case.

2) AsyncResultsetCallback#onComplete javadoc: document that the
   supplied ResultSet is owned by the async executor and closed when
   the callback returns. Implementations must consume it synchronously
   inside the callback.

3) PostServerCommandHandler#triggerBackup SQL fallback: the
   pre-existing `r instanceof Map` check was dead code (Result is not
   a Map). Read backupFile via Result.getProperty so the response
   field is actually populated.
@claude

claude Bot commented May 11, 2026

Copy link
Copy Markdown

Code Review - ResultSet Leak Audit (Follow-up to #4197)

This is a high-quality, well-documented fix. The PR description is thorough, the scope of the audit is clearly bounded, and the approach (try-with-resources or chained .close() for fire-and-forget DDL) is applied consistently. The test matrix is comprehensive. Overall this is a solid improvement.

A few items worth discussing before merging:


Concern - PostgresNetworkExecutor.browseAndCacheResultSet closes when portal is suspended

File: postgresw/src/main/java/com/arcadedb/postgres/PostgresNetworkExecutor.java

When sendSuspendedOnLimit is true, the function closes the ResultSet after filling the first batch. In the Postgres extended-query protocol, a PortalSuspended response means the client can send a second Execute message to fetch the next batch from the same portal. The original code left the ResultSet open precisely to support this - the next Execute message would call browseAndCacheResultSet again on the same already-in-progress ResultSet to fetch the next chunk.

After this change, the ResultSet is gone after the first batch. If any of the 168 Postgres tests exercises a multi-batch cursor (e.g. portal.execute(5) → portal.execute(5) to pull 10 rows in two steps), this will silently return an empty second batch or throw. Worth verifying that the existing test suite actually covers the portal-suspension/continuation flow, or explicitly noting in the Javadoc that partial-portal fetches are not supported.


Minor - GetQueryHandler closes ResultSet inline, not in a finally

File: server/src/main/java/com/arcadedb/server/http/handler/GetQueryHandler.java

recordServerProfile(database.getName(), language, text, profile, qResult);
if (qResult != null)
  qResult.close();  // skipped if recordServerProfile throws

The close() is not guarded by try-finally. If recordServerProfile throws an unchecked exception, qResult is leaked. PostCommandHandler used the correct try { ... } finally { qResult.close(); } pattern - the same form here would be more robust.


Minor - AsyncResultsetCallback contract change is not surfaced to callers

File: engine/src/main/java/com/arcadedb/database/async/AsyncResultsetCallback.java

The Javadoc update is good. One additional safety net: since the ResultSet is closed immediately after onComplete returns, any callback that stores the reference for later use will encounter a closed ResultSet on the next access with no clear error message. A defensive if (resultset.isOpen()) guard (if such a method exists) or a wrapper that throws IllegalStateException("ResultSet consumed by async executor") on post-close access would make the failure mode explicit rather than silent. This is low priority if the interface is internal-only, but worth considering if it has external implementors.


Positive observations

  • The closingIterator in ArcadeGraph correctly implements CloseableIterator<T> (not plain Iterator) so TinkerPop's traversal machinery will invoke close() on early-stop traversals (limit, filter short-circuit, etc.). The idempotent closed flag correctly prevents double-close. Well done.
  • The backup command fix in PostServerCommandHandler is a genuine bug fix bundled in: the pre-existing instanceof Map check on a Result was always false and the backupFile field was never populated via the SQL fallback. Replacing it with row.getProperty("backupFile") is the right approach.
  • Using try-with-resources for the TRUNCATE/DDL commands in MaterializedViewRefresher and chained .close() for truly fire-and-forget single-line DDL is a reasonable style split.
  • The SQLFunctionVectorNeighbors fix correctly moves close() inside a try-with-resources; the previous code had it outside the if (rs.hasNext()) block, which meant it was unreachable on exception paths.

lvca and others added 2 commits May 11, 2026 12:17
1) GetQueryHandler: nest qResult.close() in its own finally so an
   unchecked exception from recordServerProfile cannot skip the close
   and leak the ResultSet.

2) PostgresNetworkExecutor#browseAndCacheResultSet: expanded Javadoc.
   The reviewer was concerned that closing the source ResultSet would
   break multi-batch portal-suspension. Verified it cannot: the portal
   stores only a List<Result> (PostgresPortal#cachedResultSet is
   List<Result>, never ResultSet). The source ResultSet was already a
   local variable destined for GC at method return - the explicit
   close just releases the execution plan deterministically. Pre-#4197
   behaviour is unchanged; documented the take-ownership contract.

3) AsyncResultsetCallback#onComplete: stronger Javadoc with explicit
   failure-mode note. The wrapper-with-IllegalStateException suggestion
   was declined on perf grounds (per-async-command allocation) and is
   listed as low priority by the reviewer; the Javadoc is now the
   authoritative contract.
@claude

claude Bot commented May 11, 2026

Copy link
Copy Markdown

Code review notes for this PR - see full text below.

@claude

claude Bot commented May 11, 2026

Copy link
Copy Markdown

Code Review - ResultSet Leak Audit Follow-up

Well-motivated, systematic fix. The PR description is detailed, the test matrix is comprehensive, and the scope is clearly bounded. A few points to add to the existing reviews.


Correction to an earlier review - GetQueryHandler IS correctly guarded

A previous comment said qResult.close() in GetQueryHandler is not guarded by try-finally. Looking at the actual diff this is incorrect - the PR uses a nested try-finally inside the outer finally block. The inner finally ensures close() runs even if recordServerProfile throws. The implementation is correct.


Medium - PostgresNetworkExecutor: portal suspension / multi-batch cursor correctness

browseAndCacheResultSet now closes the ResultSet on return, including the limit-hit / PortalSuspended path. In the Postgres extended-query protocol, PortalSuspended signals the client it may send a second Execute to fetch the next batch from the same open portal. Prior to this PR the ResultSet was kept alive for that continuation. After this PR it is closed after the first batch.

The Javadoc acknowledges this (multi-batch portal-suspension fetching is not supported by this implementation). The key question is whether any of the 168 Postgres tests exercises this flow - client sends Execute(limit=N) twice on the same portal. If not, this is a silent regression for JDBC or libpq usage that relies on cursor pagination. Worth verifying test coverage or explicitly documenting that partial-portal fetching is unsupported.


Minor - Console.java body not re-indented inside the new try block

The body between the new try-with-resources opening brace and its closing brace is not re-indented one level. The new if/return lines are correctly indented, but the remainder (final Result result = typeResult.next() onward) stays at the original indentation. Functionally correct, but re-indenting would match the project style.


Minor - Empty-body try-with-resources for DDL fire-and-forget

The pattern try-with-resources with an empty body (ArcadeDBServer.java, PostServerCommandHandler.java) is correct since TWR guarantees close even on exception, but some linters flag it as an empty try-body warning. A small private helper like executeFireAndForget(database, sql) would suppress the warning. Low priority.


Positive observations

  • ArcadeGraph.closingIterator correctly implements CloseableIterator (not plain Iterator), so TinkerPop traversal machinery will call close() on bounded/filtered traversals via the AutoCloseable path. The idempotent closed flag prevents double-close. Well done.
  • The backup command fix in PostServerCommandHandler.triggerBackup is a genuine bug fix: the previous instanceof Map check on a Result was always false and backupFile was never populated via the SQL fallback. The new row.getProperty call is correct.
  • SQLFunctionVectorNeighbors correctly moves close() inside try-with-resources; the old placement outside the if (rs.hasNext()) block meant it was unreachable on exception paths.
  • The What is NOT a leak (verified, no change) section in the PR description is genuinely valuable for future reviewers.

Summary

Solid, well-scoped fix. The main item worth resolving before merge is the Postgres portal-suspension regression risk - verify whether the test suite covers multi-batch cursor pagination, or explicitly document that this use-case is not supported. The Console indentation issue is purely cosmetic.

@lvca
lvca merged commit 1adb603 into main May 11, 2026
20 of 24 checks passed
@codecov

codecov Bot commented May 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 67.46032% with 41 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.97%. Comparing base (3185c00) to head (c452b98).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
.../server/http/handler/PostServerCommandHandler.java 0.00% 14 Missing ⚠️
...m/arcadedb/function/sql/SQLFunctionDefinition.java 45.45% 5 Missing and 1 partial ⚠️
...com/arcadedb/postgres/PostgresNetworkExecutor.java 54.54% 2 Missing and 3 partials ⚠️
...cadedb/server/http/handler/PostCommandHandler.java 83.87% 0 Missing and 5 partials ⚠️
...le/src/main/java/com/arcadedb/console/Console.java 0.00% 4 Missing ⚠️
.../arcadedb/database/async/DatabaseAsyncCommand.java 71.42% 1 Missing and 1 partial ⚠️
...rc/main/java/com/arcadedb/gremlin/ArcadeGraph.java 91.66% 0 Missing and 2 partials ⚠️
...unction/sql/vector/SQLFunctionVectorNeighbors.java 75.00% 0 Missing and 1 partial ⚠️
.../main/java/com/arcadedb/server/ArcadeDBServer.java 50.00% 0 Missing and 1 partial ⚠️
.../arcadedb/server/http/handler/GetQueryHandler.java 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4204      +/-   ##
==========================================
- Coverage   65.12%   64.97%   -0.16%     
==========================================
  Files        1643     1643              
  Lines      126709   126737      +28     
  Branches    27119    27127       +8     
==========================================
- Hits        82520    82344     -176     
- Misses      32650    32841     +191     
- Partials    11539    11552      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lvca
lvca deleted the fix/4197-resultset-leaks-audit branch May 11, 2026 17:32
robfrank pushed a commit that referenced this pull request May 12, 2026
…-up #4197) (#4204)

* fix: [perf] audit and close leaked ResultSets across handlers (follow-up #4197)

Audit follow-up to #4197 (gRPC executeQuery leak). Every leaked ResultSet
keeps its execution plan alive. For full-table scans with parallel scan
enabled (default), this pins worker threads on QueryEngineManager's shared
pool blocked on a full bounded queue and holds the database read lock - the
real cost is thread-pool exhaustion, not heap.

Closed sites (try-with-resources or explicit close after consumption):

HTTP handlers (every request leaked):
- GetQueryHandler#execute
- PostCommandHandler#execute (await-response path)
- PostServerCommandHandler: import / align / backup paths

Wire protocols:
- PostgresNetworkExecutor#browseAndCacheResultSet now takes ownership and
  closes via try-with-resources, covering describe / executeCommand /
  simple-query / schema-discovery callers.
- MongoDBCollectionWrapper#queryDocuments wraps the SQL path.
- ArcadeGraph#vertices/#edges return a closing iterator that releases the
  underlying ResultSet when exhausted.

Engine:
- SQLFunctionDefinition#execute
- SQLFunctionVectorNeighbors#extractQueryVector (close was outside finally)
- ExistsExpression#evaluate (same pattern)
- MaterializedViewRefresher truncate
- SQLTriggerExecutor#execute
- DatabaseAsyncCommand#execute (forces async callbacks to consume in
  onComplete; logging-only callbacks now release the ResultSet)

Low-frequency fire-and-forget DDL:
- ArcadeDBServer startup import
- TextEmbeddingsImporterLSM CREATE-TYPE/PROPERTY/INDEX
- Console#displayType

GraphQL already wires close() through GraphQLResultSet.close, so no change
needed; caller is responsible (matches the other QueryEngine factories).

Build: engine + server + gRPC + Gremlin + Postgres + MongoDB + GraphQL +
Console + integration tests all pass.

* fix: address PR review on resultset leaks audit

1) ArcadeGraph closing iterator: make it implement TinkerPop's
   CloseableIterator so g.V()/g.E() with early termination (limit,
   filtered traversals) gets closed via GraphStep.close ->
   CloseableIterator.closeIterator(). Plain Iterator<T> was silently
   skipped, leaving the leak in place for the most common case.

2) AsyncResultsetCallback#onComplete javadoc: document that the
   supplied ResultSet is owned by the async executor and closed when
   the callback returns. Implementations must consume it synchronously
   inside the callback.

3) PostServerCommandHandler#triggerBackup SQL fallback: the
   pre-existing `r instanceof Map` check was dead code (Result is not
   a Map). Read backupFile via Result.getProperty so the response
   field is actually populated.

* fix: address second-round PR review

1) GetQueryHandler: nest qResult.close() in its own finally so an
   unchecked exception from recordServerProfile cannot skip the close
   and leak the ResultSet.

2) PostgresNetworkExecutor#browseAndCacheResultSet: expanded Javadoc.
   The reviewer was concerned that closing the source ResultSet would
   break multi-batch portal-suspension. Verified it cannot: the portal
   stores only a List<Result> (PostgresPortal#cachedResultSet is
   List<Result>, never ResultSet). The source ResultSet was already a
   local variable destined for GC at method return - the explicit
   close just releases the execution plan deterministically. Pre-#4197
   behaviour is unchanged; documented the take-ownership contract.

3) AsyncResultsetCallback#onComplete: stronger Javadoc with explicit
   failure-mode note. The wrapper-with-IllegalStateException suggestion
   was declined on perf grounds (per-async-command allocation) and is
   listed as low priority by the reviewer; the Javadoc is now the
   authoritative contract.

(cherry picked from commit 1adb603)
tae898 pushed a commit to humemai/arcadedb-embedded-python that referenced this pull request Jun 28, 2026
…-up ArcadeData#4197) (ArcadeData#4204)

* fix: [perf] audit and close leaked ResultSets across handlers (follow-up ArcadeData#4197)

Audit follow-up to ArcadeData#4197 (gRPC executeQuery leak). Every leaked ResultSet
keeps its execution plan alive. For full-table scans with parallel scan
enabled (default), this pins worker threads on QueryEngineManager's shared
pool blocked on a full bounded queue and holds the database read lock - the
real cost is thread-pool exhaustion, not heap.

Closed sites (try-with-resources or explicit close after consumption):

HTTP handlers (every request leaked):
- GetQueryHandler#execute
- PostCommandHandler#execute (await-response path)
- PostServerCommandHandler: import / align / backup paths

Wire protocols:
- PostgresNetworkExecutor#browseAndCacheResultSet now takes ownership and
  closes via try-with-resources, covering describe / executeCommand /
  simple-query / schema-discovery callers.
- MongoDBCollectionWrapper#queryDocuments wraps the SQL path.
- ArcadeGraph#vertices/#edges return a closing iterator that releases the
  underlying ResultSet when exhausted.

Engine:
- SQLFunctionDefinition#execute
- SQLFunctionVectorNeighbors#extractQueryVector (close was outside finally)
- ExistsExpression#evaluate (same pattern)
- MaterializedViewRefresher truncate
- SQLTriggerExecutor#execute
- DatabaseAsyncCommand#execute (forces async callbacks to consume in
  onComplete; logging-only callbacks now release the ResultSet)

Low-frequency fire-and-forget DDL:
- ArcadeDBServer startup import
- TextEmbeddingsImporterLSM CREATE-TYPE/PROPERTY/INDEX
- Console#displayType

GraphQL already wires close() through GraphQLResultSet.close, so no change
needed; caller is responsible (matches the other QueryEngine factories).

Build: engine + server + gRPC + Gremlin + Postgres + MongoDB + GraphQL +
Console + integration tests all pass.

* fix: address PR review on resultset leaks audit

1) ArcadeGraph closing iterator: make it implement TinkerPop's
   CloseableIterator so g.V()/g.E() with early termination (limit,
   filtered traversals) gets closed via GraphStep.close ->
   CloseableIterator.closeIterator(). Plain Iterator<T> was silently
   skipped, leaving the leak in place for the most common case.

2) AsyncResultsetCallback#onComplete javadoc: document that the
   supplied ResultSet is owned by the async executor and closed when
   the callback returns. Implementations must consume it synchronously
   inside the callback.

3) PostServerCommandHandler#triggerBackup SQL fallback: the
   pre-existing `r instanceof Map` check was dead code (Result is not
   a Map). Read backupFile via Result.getProperty so the response
   field is actually populated.

* fix: address second-round PR review

1) GetQueryHandler: nest qResult.close() in its own finally so an
   unchecked exception from recordServerProfile cannot skip the close
   and leak the ResultSet.

2) PostgresNetworkExecutor#browseAndCacheResultSet: expanded Javadoc.
   The reviewer was concerned that closing the source ResultSet would
   break multi-batch portal-suspension. Verified it cannot: the portal
   stores only a List<Result> (PostgresPortal#cachedResultSet is
   List<Result>, never ResultSet). The source ResultSet was already a
   local variable destined for GC at method return - the explicit
   close just releases the execution plan deterministically. Pre-ArcadeData#4197
   behaviour is unchanged; documented the take-ownership contract.

3) AsyncResultsetCallback#onComplete: stronger Javadoc with explicit
   failure-mode note. The wrapper-with-IllegalStateException suggestion
   was declined on perf grounds (per-async-command allocation) and is
   listed as low priority by the reviewer; the Javadoc is now the
   authoritative contract.
mergify Bot added a commit that referenced this pull request Jul 8, 2026
…skip ci]

Bumps [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc) from 42.7.12 to 42.7.13.
Release notes

*Sourced from [org.postgresql:postgresql's releases](https://github.com/pgjdbc/pgjdbc/releases).*

> v42.7.13
> --------
>
> Changes
> -------
>
> * docs: add 42.7.13 release changelog [`@​davecramer`](https://github.com/davecramer) ([#4270](https://redirect.github.com/pgjdbc/pgjdbc/issues/4270))
> * Adjust EditorConfig für Makefile [`@​BaumiCoder`](https://github.com/BaumiCoder) ([#4279](https://redirect.github.com/pgjdbc/pgjdbc/issues/4279))
> * fix(scram): fail closed on channel-binding downgrade (no scram bump) [`@​vlsi`](https://github.com/vlsi) ([#4272](https://redirect.github.com/pgjdbc/pgjdbc/issues/4272))
> * Bump pgjdbc version from 42.7.12 to 42.7.13 [`@​davecramer`](https://github.com/davecramer) ([#4269](https://redirect.github.com/pgjdbc/pgjdbc/issues/4269))
> * chore: remove test-anorm-sbt module and its disabled CI wiring [`@​vlsi`](https://github.com/vlsi) ([#4261](https://redirect.github.com/pgjdbc/pgjdbc/issues/4261))
> * refactor(test-gss): convert to Java/JUnit 5 submodule of the main build [`@​vlsi`](https://github.com/vlsi) ([#4166](https://redirect.github.com/pgjdbc/pgjdbc/issues/4166))
> * ci: derive PG test versions from a Renovate-managed maxPgVersion [`@​vlsi`](https://github.com/vlsi) ([#4218](https://redirect.github.com/pgjdbc/pgjdbc/issues/4218))
> * feat(insert): cap reWriteBatchedInserts by the protocol limit, not 128 [`@​vlsi`](https://github.com/vlsi) ([#4207](https://redirect.github.com/pgjdbc/pgjdbc/issues/4207))
> * refactor(metadata): derive getPrimaryKeys from pg\_constraint.conkey [`@​vlsi`](https://github.com/vlsi) ([#4202](https://redirect.github.com/pgjdbc/pgjdbc/issues/4202))
> * fix(protocol): defer flushes until response processing [`@​vlsi`](https://github.com/vlsi) ([#4196](https://redirect.github.com/pgjdbc/pgjdbc/issues/4196))
> * fix(build): resolve the Temurin 8 test toolchain by vendor [`@​vlsi`](https://github.com/vlsi) ([#4257](https://redirect.github.com/pgjdbc/pgjdbc/issues/4257))
> * build: include multi-release source sets in the JaCoCo coverage report [`@​vlsi`](https://github.com/vlsi) ([#4256](https://redirect.github.com/pgjdbc/pgjdbc/issues/4256))
> * fix(ci): read java\_vendor before overwriting java\_distribution [`@​vlsi`](https://github.com/vlsi) ([#4255](https://redirect.github.com/pgjdbc/pgjdbc/issues/4255))
> * ci: generate the whole matrix in one batch, coverage job included [`@​vlsi`](https://github.com/vlsi) ([#4253](https://redirect.github.com/pgjdbc/pgjdbc/issues/4253))
> * ci: pass CODECOV\_TOKEN so protected-branch coverage uploads succeed [`@​vlsi`](https://github.com/vlsi) ([#4254](https://redirect.github.com/pgjdbc/pgjdbc/issues/4254))
> * ci: collect coverage on one pinned job [`@​vlsi`](https://github.com/vlsi) ([#4245](https://redirect.github.com/pgjdbc/pgjdbc/issues/4245))
> * ci: apply -DqueryTimeout from the matrix query\_timeout axis [`@​vlsi`](https://github.com/vlsi) ([#4246](https://redirect.github.com/pgjdbc/pgjdbc/issues/4246))
> * ci: make Codecov project and patch statuses informational [`@​vlsi`](https://github.com/vlsi) ([#4244](https://redirect.github.com/pgjdbc/pgjdbc/issues/4244))
> * fix(build): restore JaCoCo XML report so Codecov receives coverage [`@​vlsi`](https://github.com/vlsi) ([#4240](https://redirect.github.com/pgjdbc/pgjdbc/issues/4240))
> * test(replication): shrink big-transaction inserts to avoid CI timeouts [`@​vlsi`](https://github.com/vlsi) ([#4243](https://redirect.github.com/pgjdbc/pgjdbc/issues/4243))
> * update maintainers [`@​davecramer`](https://github.com/davecramer) ([#4222](https://redirect.github.com/pgjdbc/pgjdbc/issues/4222))
> * test: add hermetic test for localSocketAddress [`@​vlsi`](https://github.com/vlsi) ([#4224](https://redirect.github.com/pgjdbc/pgjdbc/issues/4224))
> * docs(translation): clean up leftover German header in ja.po [`@​vlsi`](https://github.com/vlsi) ([#4206](https://redirect.github.com/pgjdbc/pgjdbc/issues/4206))
> * Update ja.po [`@​davecramer`](https://github.com/davecramer) ([#2004](https://redirect.github.com/pgjdbc/pgjdbc/issues/2004))
> * test: add PostgreSQL 18 to the CI test matrix [`@​vlsi`](https://github.com/vlsi) ([#4198](https://redirect.github.com/pgjdbc/pgjdbc/issues/4198))
> * test: silence expected SSPI warning stack trace in SSPIClientWaffleTest [`@​vlsi`](https://github.com/vlsi) ([#4197](https://redirect.github.com/pgjdbc/pgjdbc/issues/4197))
> * fix(ssl): build PKIX trust anchors without a KeyStore so FIPS-mode JVMs can load sslrootcert [`@​vlsi`](https://github.com/vlsi) ([#4193](https://redirect.github.com/pgjdbc/pgjdbc/issues/4193))
> * test: fix flaky sentLocationEqualToLastReceiveLSN replication test [`@​vlsi`](https://github.com/vlsi) ([#4175](https://redirect.github.com/pgjdbc/pgjdbc/issues/4175))
> * build: promote MethodCanBeStatic to error level [`@​vlsi`](https://github.com/vlsi) ([#4172](https://redirect.github.com/pgjdbc/pgjdbc/issues/4172))
> * Fix PGInterval.setSeconds to reject out of range and NaN values [`@​sehrope`](https://github.com/sehrope) ([#4194](https://redirect.github.com/pgjdbc/pgjdbc/issues/4194))
> * Replace connectThreadFactory with connectExecutor [`@​sehrope`](https://github.com/sehrope) ([#4165](https://redirect.github.com/pgjdbc/pgjdbc/issues/4165))
> * Fix deleting temp file when spooling large stream to disk in StreamWrapper [`@​sehrope`](https://github.com/sehrope) ([#4190](https://redirect.github.com/pgjdbc/pgjdbc/issues/4190))
> * chore: Add top level /scratch to gitignore [`@​sehrope`](https://github.com/sehrope) ([#4164](https://redirect.github.com/pgjdbc/pgjdbc/issues/4164))
> * refactor: favour composition over inheritance for Driver.ConnectTask [`@​vlsi`](https://github.com/vlsi) ([#4160](https://redirect.github.com/pgjdbc/pgjdbc/issues/4160))
> * Fix NumberParser.getFastLong(...) handling of overlong values [`@​sehrope`](https://github.com/sehrope) ([#4163](https://redirect.github.com/pgjdbc/pgjdbc/issues/4163))
> * build: produce a multi-release jar from reduced-pom.xml on Java 11+ [`@​vlsi`](https://github.com/vlsi) ([#4157](https://redirect.github.com/pgjdbc/pgjdbc/issues/4157))
> * Add connectThreadFactory and refactor Driver to use FutureTask for loginTimeout connection attempts [`@​sehrope`](https://github.com/sehrope) ([#4120](https://redirect.github.com/pgjdbc/pgjdbc/issues/4120))
> * test: verify custom properties reach socket factory [`@​vlsi`](https://github.com/vlsi) ([#4125](https://redirect.github.com/pgjdbc/pgjdbc/issues/4125))
> * test: fix LazyCleanerTest timeouts for the lingering Java 8 cleanup thread [`@​vlsi`](https://github.com/vlsi) ([#4122](https://redirect.github.com/pgjdbc/pgjdbc/issues/4122))
> * test: stabilise StatementTest.fastCloses on Windows [`@​vlsi`](https://github.com/vlsi) ([#4121](https://redirect.github.com/pgjdbc/pgjdbc/issues/4121))
> * fix: append default non-proxy hosts when socksNonProxyHosts is set [`@​davecramer`](https://github.com/davecramer) ([#4045](https://redirect.github.com/pgjdbc/pgjdbc/issues/4045))
> * test: budget terminating Sync in BatchDeadlockTest small-RETURNING branch [`@​vlsi`](https://github.com/vlsi) ([#4116](https://redirect.github.com/pgjdbc/pgjdbc/issues/4116))
> * test: make message assertions locale-independent [`@​vlsi`](https://github.com/vlsi) ([#4113](https://redirect.github.com/pgjdbc/pgjdbc/issues/4113))
> * build: drop xgettext default keywords; regenerate translations [`@​vlsi`](https://github.com/vlsi) ([#4100](https://redirect.github.com/pgjdbc/pgjdbc/issues/4100))
> * ci: opt-in scheduled workflows via ENABLE\_SCHEDULED\_JOBS repo variable [`@​vlsi`](https://github.com/vlsi) ([#4085](https://redirect.github.com/pgjdbc/pgjdbc/issues/4085))
> * Avoid direct java.lang.management dependency in maxResultBuffer parser [`@​mblakley-casana`](https://github.com/mblakley-casana) ([#4069](https://redirect.github.com/pgjdbc/pgjdbc/issues/4069))
> * fix: restore pre-describe for generated-key batches [`@​bilalshehata`](https://github.com/bilalshehata) ([#4014](https://redirect.github.com/pgjdbc/pgjdbc/issues/4014))

... (truncated)


Changelog

*Sourced from [org.postgresql:postgresql's changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md).*

> [42.7.13] (2026-07-06)
> ----------------------
>
> ### Added
>
> * feat: invalidate the prepared-statement cache when the server reports a `search_path` change via GUC\_REPORT (PostgreSQL 18+), so cached plans are no longer used against the wrong schema [PR [#4259](https://redirect.github.com/pgjdbc/pgjdbc/issues/4259)]([pgjdbc/pgjdbc#4259](https://redirect.github.com/pgjdbc/pgjdbc/pull/4259))
> * feat: `reWriteBatchedInserts` now merges up to 32768 rows into one multi-values `INSERT` (bounded by the 65535 bind-parameter limit on the extended protocol) instead of capping at 128, which speeds up batches of few-column rows. The new `reWriteBatchedInsertsSize` connection property lowers that cap when set; the default of `0` uses that maximum. [PR [#4207](https://redirect.github.com/pgjdbc/pgjdbc/issues/4207)]([pgjdbc/pgjdbc#4207](https://redirect.github.com/pgjdbc/pgjdbc/pull/4207))
> * feat: invalidate the prepared-statement cache after CREATE/DROP/ALTER so callers no longer trip on "cached plan must not change result type" without opting into `autosave=ALWAYS`. Controlled by the new `flushCacheOnDdl` connection property (default `true`); set to `false` for the prior behaviour. [PR [#4067](https://redirect.github.com/pgjdbc/pgjdbc/issues/4067)]([pgjdbc/pgjdbc#4067](https://redirect.github.com/pgjdbc/pgjdbc/pull/4067))
> * feat: add `connectExecutor` connection property to customize the `Executor` used to run the worker task that performs the connection attempt when `loginTimeout` is in effect. The value is the fully qualified name of a class implementing `java.util.concurrent.Executor`. With a null value, the default, the driver retains the prior behavior of running the connection attempt on a daemon thread named `"PostgreSQL JDBC driver connection thread"`. The executor must run the task on a thread other than the caller's. Running the attempt on a named thread lets applications that monitor driver-created threads identify it. [PR [#4165](https://redirect.github.com/pgjdbc/pgjdbc/issues/4165)]([pgjdbc/pgjdbc#4165](https://redirect.github.com/pgjdbc/pgjdbc/pull/4165))
> * feat: add `classLoaderStrategy` connection property to control which classloaders the driver searches when loading a class named by a connection property, for example `socketFactory`. The default `driver-first` now falls back to the thread context classloader when the driver's classloader cannot resolve the class, which fixes class loading in non-flat class paths such as Quarkus and OSGi. Set `driver` to keep the previous driver-classloader-only behaviour, or `context-first` to prefer the thread context classloader [Issue [#2112](https://redirect.github.com/pgjdbc/pgjdbc/issues/2112)]([pgjdbc/pgjdbc#2112](https://redirect.github.com/pgjdbc/pgjdbc/issues/2112)) [PR [#4167](https://redirect.github.com/pgjdbc/pgjdbc/issues/4167)]([pgjdbc/pgjdbc#4167](https://redirect.github.com/pgjdbc/pgjdbc/pull/4167))
> * feat: add OID constants for geometric arrays, `RECORD`, and `refcursor` [PR [#4220](https://redirect.github.com/pgjdbc/pgjdbc/issues/4220)]([pgjdbc/pgjdbc#4220](https://redirect.github.com/pgjdbc/pgjdbc/pull/4220))
> * feat: `LargeObject` `BlobInputStream` now skips by seeking instead of reading, and the driver exposes the server version so it can select the 64-bit large-object API where available [PR [#4204](https://redirect.github.com/pgjdbc/pgjdbc/issues/4204)]([pgjdbc/pgjdbc#4204](https://redirect.github.com/pgjdbc/pgjdbc/pull/4204))
>
> ### Changed
>
> * refactor: the worker that runs the connection attempt under `loginTimeout` is now a `FutureTask` (`ConnectTask`) instead of the hand-rolled `ConnectThread`. When the caller hits the timeout, the task is now cancelled with `cancel(true)`, which interrupts the worker thread rather than letting it run to completion. This makes the connection attempt interruptible, so `loginTimeout` can stop a slow connection attempt instead of leaking a thread. As before, a connection that the worker still manages to establish after the caller gives up is closed by the worker so that it does not leak. There are no public API changes and this should only lead to faster background resource cleanup for connections that time out. [PR [#4120](https://redirect.github.com/pgjdbc/pgjdbc/issues/4120)]([pgjdbc/pgjdbc#4120](https://redirect.github.com/pgjdbc/pgjdbc/pull/4120))
> * chore: `PGXAConnection.ConnectionHandler` now rejects `setAutoCommit(false)` and `setSavepoint(...)` during an active XA branch, in addition to the long-rejected `setAutoCommit(true)` / `commit()` / `rollback()`. The `setSavepoint` rejection was already meant to be in place but the guard misspelled the method name as `setSavePoint`, so savepoints silently went through. Both changes bring the proxy in line with JTA 1.2 §3.4. [PR [#4114](https://redirect.github.com/pgjdbc/pgjdbc/issues/4114)]([pgjdbc/pgjdbc#4114](https://redirect.github.com/pgjdbc/pgjdbc/pull/4114))
> * chore: `commitPrepared` / `rollback`-of-prepared now return `XAER_RMFAIL` instead of `XAER_RMERR` when the underlying connection is left in a non-idle `TransactionState`. Transaction managers (Geronimo, Narayana, Atomikos) treat `XAER_RMFAIL` as retryable on a fresh `XAResource`; the prepared transaction is no longer abandoned. [PR [#4114](https://redirect.github.com/pgjdbc/pgjdbc/issues/4114)]([pgjdbc/pgjdbc#4114](https://redirect.github.com/pgjdbc/pgjdbc/pull/4114))
> * refactor: derive `getPrimaryKeys` from `pg_constraint.conkey` [PR [#4202](https://redirect.github.com/pgjdbc/pgjdbc/issues/4202)]([pgjdbc/pgjdbc#4202](https://redirect.github.com/pgjdbc/pgjdbc/pull/4202))
>
> ### Fixed
>
> * fix: the published GitHub release now ships the released `postgresql-<version>.jar` and its detached PGP signature, taken from the same signed build that is uploaded to Maven Central, instead of a leftover SNAPSHOT jar [Issue [#3812](https://redirect.github.com/pgjdbc/pgjdbc/issues/3812)]([pgjdbc/pgjdbc#3812](https://redirect.github.com/pgjdbc/pgjdbc/issues/3812)) [PR [#3814](https://redirect.github.com/pgjdbc/pgjdbc/issues/3814)]([pgjdbc/pgjdbc#3814](https://redirect.github.com/pgjdbc/pgjdbc/pull/3814))
> * fix: simplify the `Statement#cancel` state machine by dropping the redundant `CANCELLED` state. `killTimerTask` now waits for the state to return to `IDLE` directly, which removes a spin-forever case when more than one thread observes the cancel completing [PR [#1827](https://redirect.github.com/pgjdbc/pgjdbc/issues/1827)]([pgjdbc/pgjdbc#1827](https://redirect.github.com/pgjdbc/pgjdbc/pull/1827)).
> * perf: defer simple-query flushes until the driver reads the response, allowing `BEGIN` and the following query to share a network flush [Issue [#3894](https://redirect.github.com/pgjdbc/pgjdbc/issues/3894)]([pgjdbc/pgjdbc#3894](https://redirect.github.com/pgjdbc/pgjdbc/issues/3894)) [PR [#4196](https://redirect.github.com/pgjdbc/pgjdbc/issues/4196)]([pgjdbc/pgjdbc#4196](https://redirect.github.com/pgjdbc/pgjdbc/pull/4196))
> * fix: `reWriteBatchedInserts` no longer throws `IllegalArgumentException` when batching a parameterless `INSERT` (for example `INSERT INTO t VALUES (1, 2)`) of 256 rows or more [PR [#4207](https://redirect.github.com/pgjdbc/pgjdbc/issues/4207)]([pgjdbc/pgjdbc#4207](https://redirect.github.com/pgjdbc/pgjdbc/pull/4207))
> * fix: a comment before `CALL` in a `CallableStatement` no longer hides the native call, so OUT parameter registration works for `/* comment */ call proc(?, ?)` and similar. `Parser.modifyJdbcCall` now skips leading whitespace and SQL comments (both `--` and `/* */`) before the call, tolerates a trailing comment after a `{ ... }` escape, and no longer adds a spurious comma when moving an OUT parameter into a call whose arguments are only a comment [Issue [#2538](https://redirect.github.com/pgjdbc/pgjdbc/issues/2538)]([pgjdbc/pgjdbc#2538](https://redirect.github.com/pgjdbc/pgjdbc/issues/2538)) [PR [#4209](https://redirect.github.com/pgjdbc/pgjdbc/issues/4209)]([pgjdbc/pgjdbc#4209](https://redirect.github.com/pgjdbc/pgjdbc/pull/4209))
> * fix: `PreparedStatement.toString()` no longer throws for a `bytea` value supplied as text via `PGobject`. Hex-format values (`\x...`) are validated and rendered as a `bytea` literal, and escape-format values are quoted and cast like any other literal [Issue [#3757](https://redirect.github.com/pgjdbc/pgjdbc/issues/3757)]([pgjdbc/pgjdbc#3757](https://redirect.github.com/pgjdbc/pgjdbc/issues/3757)) [PR [#4201](https://redirect.github.com/pgjdbc/pgjdbc/issues/4201)]([pgjdbc/pgjdbc#4201](https://redirect.github.com/pgjdbc/pgjdbc/pull/4201))
> * fix: the driver no longer nulls the `contextClassLoader` of shared `ForkJoinPool.commonPool()` worker threads, which previously left unrelated tasks on those threads running with a `null` classloader [Issue [#4155](https://redirect.github.com/pgjdbc/pgjdbc/issues/4155)]([pgjdbc/pgjdbc#4155](https://redirect.github.com/pgjdbc/pgjdbc/issues/4155)) [PR [#4156](https://redirect.github.com/pgjdbc/pgjdbc/issues/4156)]([pgjdbc/pgjdbc#4156](https://redirect.github.com/pgjdbc/pgjdbc/pull/4156))
> * fix: `PgResultSet#getCharacterStream` wraps `String` in a `StringReader` [PR [#4063](https://redirect.github.com/pgjdbc/pgjdbc/issues/4063)]([pgjdbc/pgjdbc#4063](https://redirect.github.com/pgjdbc/pgjdbc/pull/4063))
> * fix: `PGXAConnection` no longer saves and restores the underlying connection's JDBC `autoCommit` flag. All XA-protocol SQL (`BEGIN`, `PREPARE TRANSACTION`, `COMMIT`, `ROLLBACK`, `COMMIT PREPARED`, `ROLLBACK PREPARED`, the `recover()` SELECT) is sent through `QUERY_SUPPRESS_BEGIN`, so the caller's `autoCommit` value is invariant across every `XAResource` call. Fixes the "2nd phase commit must be issued using an idle connection" failure during recovery on managed datasources that pool connections with `autoCommit=false` (TomEE, WildFly, WebSphere Liberty) [PR [#4114](https://redirect.github.com/pgjdbc/pgjdbc/issues/4114)]([pgjdbc/pgjdbc#4114](https://redirect.github.com/pgjdbc/pgjdbc/pull/4114))
> * fix: `PGXAConnection.prepare()` now mutates XA state only after `PREPARE TRANSACTION` succeeds. A failed `PREPARE` previously left the driver thinking the branch was already prepared, so the follow-up `rollback(xid)` tried `ROLLBACK PREPARED` against a non-existent gid and returned `XAER_RMERR`. Transaction managers (Narayana) escalated this to `HeuristicMixedException`. With the fix, `rollback(xid)` takes the active-branch path and issues a plain `ROLLBACK`, which the server accepts cleanly. Fixes [Issue [#3153](https://redirect.github.com/pgjdbc/pgjdbc/issues/3153)]([pgjdbc/pgjdbc#3153](https://redirect.github.com/pgjdbc/pgjdbc/issues/3153)), [Issue [#3123](https://redirect.github.com/pgjdbc/pgjdbc/issues/3123)]([pgjdbc/pgjdbc#3123](https://redirect.github.com/pgjdbc/pgjdbc/issues/3123)). [PR [#4114](https://redirect.github.com/pgjdbc/pgjdbc/issues/4114)]([pgjdbc/pgjdbc#4114](https://redirect.github.com/pgjdbc/pgjdbc/pull/4114))
> * fix: an updatable result set over an unqualified table name is now classified using only the table visible through `search_path`. When two schemas held a table with the same name and the same primary or unique index name but a different set of key columns, the driver took the union of both schemas' columns, so the result set could be wrongly rejected as not updatable [PR [#4214](https://redirect.github.com/pgjdbc/pgjdbc/issues/4214)]([pgjdbc/pgjdbc#4214](https://redirect.github.com/pgjdbc/pgjdbc/pull/4214)). Supersedes [PR [#3400](https://redirect.github.com/pgjdbc/pgjdbc/issues/3400)]([pgjdbc/pgjdbc#3400](https://redirect.github.com/pgjdbc/pgjdbc/pull/3400)).
> * fix: `LargeObject.close()` now flushes a buffered output stream before marking the object closed, so closing a large object without an explicit `flush()` no longer drops buffered writes. The flush runs while the object is still open (it calls back into `LargeObject.write()`), and `lo_close` always runs afterward; a failure from `lo_close` no longer masks an earlier flush error, and the transaction is not committed when the flush failed [Issue [#4247](https://redirect.github.com/pgjdbc/pgjdbc/issues/4247)]([pgjdbc/pgjdbc#4247](https://redirect.github.com/pgjdbc/pgjdbc/issues/4247)) [PR [#4248](https://redirect.github.com/pgjdbc/pgjdbc/issues/4248)]([pgjdbc/pgjdbc#4248](https://redirect.github.com/pgjdbc/pgjdbc/pull/4248)).
> * fix: reject empty `timestamp`, `timestamptz`, and `date` text with a clear `SQLException` (SQLState `22007`) instead of an `ArrayIndexOutOfBoundsException` [PR [#4278](https://redirect.github.com/pgjdbc/pgjdbc/issues/4278)]([pgjdbc/pgjdbc#4278](https://redirect.github.com/pgjdbc/pgjdbc/pull/4278))
> * fix: return null `CHAR_OCTET_LENGTH` for non-character columns [PR [#4231](https://redirect.github.com/pgjdbc/pgjdbc/issues/4231)]([pgjdbc/pgjdbc#4231](https://redirect.github.com/pgjdbc/pgjdbc/pull/4231))
> * fix: honor scale in `ResultSet.getBigDecimal(int, int)` [PR [#4211](https://redirect.github.com/pgjdbc/pgjdbc/issues/4211)]([pgjdbc/pgjdbc#4211](https://redirect.github.com/pgjdbc/pgjdbc/pull/4211))
> * fix: support `java.time` values in an updatable `ResultSet` `updateRow()` / `insertRow()` [PR [#3848](https://redirect.github.com/pgjdbc/pgjdbc/issues/3848)]([pgjdbc/pgjdbc#3848](https://redirect.github.com/pgjdbc/pgjdbc/pull/3848))
> * fix: improve batching when the `RETURNING` clause contains `varchar` or `numeric` types [PR [#4014](https://redirect.github.com/pgjdbc/pgjdbc/issues/4014)]([pgjdbc/pgjdbc#4014](https://redirect.github.com/pgjdbc/pgjdbc/pull/4014))
> * fix: correct `estimatedReceiveBufferBytes` accounting after a forced `Sync` [PR [#4014](https://redirect.github.com/pgjdbc/pgjdbc/issues/4014)]([pgjdbc/pgjdbc#4014](https://redirect.github.com/pgjdbc/pgjdbc/pull/4014))
> * fix: avoid creating a transient `ResultSet` for describe-statement purposes, and restore the pre-describe path for generated-key batches [PR [#4014](https://redirect.github.com/pgjdbc/pgjdbc/issues/4014)]([pgjdbc/pgjdbc#4014](https://redirect.github.com/pgjdbc/pgjdbc/pull/4014))
> * fix: add an explicit failure message when a multi-statement command executes in a batch [PR [#4014](https://redirect.github.com/pgjdbc/pgjdbc/issues/4014)]([pgjdbc/pgjdbc#4014](https://redirect.github.com/pgjdbc/pgjdbc/pull/4014))
> * fix: detect `search_path` changes case-insensitively [PR [#4216](https://redirect.github.com/pgjdbc/pgjdbc/issues/4216)]([pgjdbc/pgjdbc#4216](https://redirect.github.com/pgjdbc/pgjdbc/pull/4216))
> * fix: auto-detect the SSL key format instead of relying on the `.key` extension [PR [#3946](https://redirect.github.com/pgjdbc/pgjdbc/issues/3946)]([pgjdbc/pgjdbc#3946](https://redirect.github.com/pgjdbc/pgjdbc/pull/3946))
> * fix: build PKIX trust anchors without a `KeyStore` so FIPS JVMs work [PR [#4193](https://redirect.github.com/pgjdbc/pgjdbc/issues/4193)]([pgjdbc/pgjdbc#4193](https://redirect.github.com/pgjdbc/pgjdbc/pull/4193))
> * fix: use `gssResponseTimeout` rather than `sslResponseTimeout` for GSS connections [PR [#4076](https://redirect.github.com/pgjdbc/pgjdbc/issues/4076)]([pgjdbc/pgjdbc#4076](https://redirect.github.com/pgjdbc/pgjdbc/pull/4076))
> * fix: skip the autosave savepoint for `SET LOCAL` / `SET SESSION TRANSACTION` [PR [#4203](https://redirect.github.com/pgjdbc/pgjdbc/issues/4203)]([pgjdbc/pgjdbc#4203](https://redirect.github.com/pgjdbc/pgjdbc/pull/4203))
> * fix: do not throw `AssertionError` from `BatchResultHandler` on a closed connection [PR [#4187](https://redirect.github.com/pgjdbc/pgjdbc/issues/4187)]([pgjdbc/pgjdbc#4187](https://redirect.github.com/pgjdbc/pgjdbc/pull/4187))
> * fix: reject `SQL_TSI_FRAC_SECOND` with an explicit, explained error [PR [#4229](https://redirect.github.com/pgjdbc/pgjdbc/issues/4229)]([pgjdbc/pgjdbc#4229](https://redirect.github.com/pgjdbc/pgjdbc/pull/4229))
> * fix: reject a null URL in `Driver.acceptsURL` with a clear `NullPointerException` [PR [#4205](https://redirect.github.com/pgjdbc/pgjdbc/issues/4205)]([pgjdbc/pgjdbc#4205](https://redirect.github.com/pgjdbc/pgjdbc/pull/4205))
> * fix: reject overlong inputs in `NumberParser.getFastLong` instead of silently wrapping [PR [#4163](https://redirect.github.com/pgjdbc/pgjdbc/issues/4163)]([pgjdbc/pgjdbc#4163](https://redirect.github.com/pgjdbc/pgjdbc/pull/4163))
> * fix: reject out-of-range and NaN values in `PGInterval.setSeconds` [PR [#4194](https://redirect.github.com/pgjdbc/pgjdbc/issues/4194)]([pgjdbc/pgjdbc#4194](https://redirect.github.com/pgjdbc/pgjdbc/pull/4194))
> * fix: close the socket when `PgConnection` setup fails after connect [PR [#4161](https://redirect.github.com/pgjdbc/pgjdbc/issues/4161)]([pgjdbc/pgjdbc#4161](https://redirect.github.com/pgjdbc/pgjdbc/pull/4161))
> * fix: keep the `LazyCleanerImpl` cleanup task alive across a transient empty queue [PR [#4038](https://redirect.github.com/pgjdbc/pgjdbc/issues/4038)]([pgjdbc/pgjdbc#4038](https://redirect.github.com/pgjdbc/pgjdbc/pull/4038))

... (truncated)


Commits

* [`3297557`](pgjdbc/pgjdbc@3297557) docs: add 42.7.13 release changelog ([#4270](https://redirect.github.com/pgjdbc/pgjdbc/issues/4270))
* [`d93d370`](pgjdbc/pgjdbc@d93d370) style: apply Autostyle to docs/ and .github/
* [`2e05ff9`](pgjdbc/pgjdbc@2e05ff9) build: check docs/ and .github/ formatting with Autostyle
* [`b4a6087`](pgjdbc/pgjdbc@b4a6087) Adjust EditorConfig für Makefiles
* [`725cebb`](pgjdbc/pgjdbc@725cebb) fix(jdbc): reject empty timestamp/timestamptz text with a clear error
* [`23a1b0d`](pgjdbc/pgjdbc@23a1b0d) fix(scram): fail closed on channel-binding downgrade (no scram bump)
* [`0b4077a`](pgjdbc/pgjdbc@0b4077a) Bump pgjdbc version from 42.7.12 to 42.7.13 ([#4269](https://redirect.github.com/pgjdbc/pgjdbc/issues/4269))
* [`394800a`](pgjdbc/pgjdbc@394800a) fix: flush LargeObject output stream before marking closed ([#4248](https://redirect.github.com/pgjdbc/pgjdbc/issues/4248))
* [`83780f1`](pgjdbc/pgjdbc@83780f1) Maintain consistency with the use of the word maintainer vs comitter ([#4234](https://redirect.github.com/pgjdbc/pgjdbc/issues/4234))
* [`d42cad5`](pgjdbc/pgjdbc@d42cad5) fix(jdbc): classify updatable result set by search\_path visibility
* Additional commits viewable in [compare view](pgjdbc/pgjdbc@REL42.7.12...REL42.7.13)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=org.postgresql:postgresql&package-manager=maven&previous-version=42.7.12&new-version=42.7.13)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant