8000 Detect problematic pgbouncer setup on startup by ahus1 · Pull Request #53904 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Detect problematic pgbouncer setup on startup - #53904

Open
ahus1 wants to merge 2 commits into
keycloak:mainfrom
ahus1:is-53903-detect-problematic-pgbouncer-setup
Open

ahus1 wants to merge 2 commits into
keycloak:mainfrom
ahus1:is-53903-detect-problematic-pgbouncer-setup

Conversation

@ahus1
@ahus1 ahus1 commented Oct 13, 2026
Copy link
Copy Markdown
Member

Closes #53903

Closes keycloak#53903

Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ahus1
ahus1 force-pushed the is-53903-detect-problematic-pgbouncer-setup branch from 42b39ef to 9c24481 Compare October 13, 2026 09:14
@ahus1
ahus1 requested a balanced review from Copilot October 13, 2026 09:24
Copilot AI 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.

🟡 Changes recommended

The probe can fail with a single-connection pool and may execute an unrelated stale prepared statement.

1 open finding
What changed in this PR

Adds an early PostgreSQL startup check for incompatible PgBouncer prepared-statement handling and documents supported configurations.

Changes:

  • Probes prepared statements before database migration.
  • Adds PgBouncer configuration and troubleshooting guidance.
File Description
QuarkusJpaConnectionProviderFactory.java Adds the startup compatibility probe.
db.adoc Documents PgBouncer risks and alternatives.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or con 8000 figure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI 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.

🟢 Approval recommended

The implementation fulfills the issue requirements and includes focused integration coverage and documentation.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@ahus1
ahus1 marked this pull request as ready for review October 13, 2026 11:16
@ahus1
ahus1 requested review from a team as code owners October 13, 2026 11:16
@ahus1
ahus1 enabled auto-merge (squash) October 13, 2026 11:16
@stianst stianst added this to the 27.1 milestone Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify support for server-side prepared statements at startup when using PostgreSQL

3 participants

0