Skip to content

perf: read in_hot_standby GUC on connection#2334

Merged
davecramer merged 7 commits intopgjdbc:masterfrom
Rattenkrieg:read-in_hot_standby
Nov 10, 2021
Merged

perf: read in_hot_standby GUC on connection#2334
davecramer merged 7 commits intopgjdbc:masterfrom
Rattenkrieg:read-in_hot_standby

Conversation

@Rattenkrieg
Copy link
Copy Markdown
Contributor

PR checklist

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Does ./gradlew autostyleCheck checkstyleAll pass ?

Changes to Existing Features:

  • Does this break existing behaviour? If so please explain.
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

Since PG 14 reports in_hot_standby GUC on connection there is an opportunity to skip show transaction_read_only query during new connection opening phase.

@davecramer
Copy link
Copy Markdown
Member

nice, thanks!

Comment thread pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java Outdated
Comment thread pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java Outdated
Comment thread pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java Outdated
Comment thread pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java Outdated
Comment thread pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java Outdated
Comment thread pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java Outdated
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.

3 participants