DBeaver Experiencing timeouts while connecting to New Linux PostgreSql server

First seen: 2026-05-27 20:27:19+00:00 · Messages: 8 · Participants: 3

Latest Update

2026-06-04 · claude-opus-4-6

Incremental Update: DBeaver Connection Timeouts Thread

What's New

The thread saw three new messages (June 1, 2026), but contains no substantive technical progress toward resolution and remains entirely off-topic for pgsql-hackers.

New Information Provided

The original poster (Sri) responded to Tomas Vondra's earlier request for diagnostics with the following findings:

  1. All basic connectivity checks pass — ping, netcat, telnet, time psql, ss -ant, log tailing all show no issues.
  2. psql and pgAdmin connect quickly — confirming the PostgreSQL server itself is functioning correctly.
  3. pgAdmin exhibits a related symptom — it asks to re-enter the login password "after a few minutes," suggesting idle connection drops affecting GUI clients specifically.
  4. The issue is isolated to DBeaver for initial connection failures, while pgAdmin has session persistence issues.

Technical Significance

The new data points further toward this being a client-side or network-level idle connection management issue, not a PostgreSQL server bug:

Thread Status

Tomas Vondra reiterated his request for actual diagnostic results and pointed out the log excerpts showed nothing useful. The poster listed commands run but provided no actual output. The thread remains unresolved and misplaced on pgsql-hackers.

History (1 prior analysis)
2026-06-01 · claude-opus-4-6

Analysis: DBeaver Connection Timeouts to PostgreSQL 18 on Linux

Summary

This thread is a support request mistakenly posted to pgsql-hackers (the development mailing list), not a development discussion. It involves a user experiencing intermittent connection failures when using DBeaver to connect to a new PostgreSQL 18 production server running on Linux. The thread contains no patches, no architectural proposals, and no changes to PostgreSQL internals. It is notable primarily as an example of a common operational issue being misdirected to the wrong venue.

Core Problem

The reported issue is:

  • A new Linux production PostgreSQL 18 server in a high-availability configuration (with a standby) experiences intermittent connection failures from DBeaver clients.
  • Connections succeed approximately 1 in 3-4 attempts.
  • PostgreSQL server logs show "broken pipe" errors, and clients see timeout errors.
  • The same DBeaver tool works reliably against a Windows-based development server.
  • Basic network connectivity (telnet) works fine from the command line.
  • max_connections is set to 300 with minimal traffic, ruling out connection exhaustion.

Technical Analysis

Likely Causes (Not Explored in Thread)

The broken pipe errors in PostgreSQL logs indicate that the server attempted to write to a client connection that had already been closed from the client side. This typically means:

  1. Network infrastructure issue: A firewall, load balancer, or NAT device between DBeaver clients and the PostgreSQL server is dropping or resetting TCP connections. This is the most common cause of intermittent "works sometimes" connection patterns.

  2. TCP keepalive misconfiguration: If there's a stateful firewall with aggressive connection timeout settings, and PostgreSQL's tcp_keepalives_idle, tcp_keepalives_interval, and tcp_keepalives_count parameters aren't tuned to keep connections alive through it, idle connections may be silently dropped.

  3. SSL/TLS handshake timeout: If SSL is enabled on the Linux server but not on the Windows dev server, and there's a latency or MTU issue, the SSL handshake may be timing out intermittently.

  4. pg_hba.conf authentication method: If the Linux server uses a different authentication method (e.g., LDAP, GSSAPI) that depends on an external service with intermittent availability, this could explain the pattern.

  5. HA proxy/VIP issues: Since this is described as a "high available fashion" setup, there may be a virtual IP, HAProxy, Patroni, or similar component that Tomas Vondra correctly identified as a potential culprit.

What Was NOT Provided

  • Actual log excerpts (attachments were referenced but not included in the mailing list text)
  • Network topology details
  • Whether a connection pooler (PgBouncer, etc.) is in the path
  • PostgreSQL configuration (postgresql.conf relevant settings)
  • pg_hba.conf configuration
  • OS-level network settings

Assessment of Thread

This is not a PostgreSQL internals or development issue. The pgsql-hackers list is for PostgreSQL source code development. This question belongs on:

  • pgsql-general (the general usage mailing list)
  • ServerFault or similar operational forums
  • The user's organization's infrastructure/networking team

Tomas Vondra provided the correct guidance: systematically trace the connection path to identify where the failure occurs. No PostgreSQL code changes are implicated.

Outcome

The thread effectively died without resolution on the mailing list. Roberto Mello appears to have responded (possibly redirecting or noting the off-topic nature), but the content of his reply is not visible in the archive. The original poster continued to ask for fixes without providing the diagnostic information requested.