DBeaver Experiencing timeouts while connecting to New Linux PostgreSql server

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

Latest Update

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:

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

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:

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.