pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rob Sargent <robjsargent@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: tcp settings
Date: Tue, 20 Sep 2022 19:21:43 -0400
Message-ID: <934612.1663716103@sss.pgh.pa.us> (raw)
In-Reply-To: <58e221af-b764-61ae-6337-a2aa2fead8a2@gmail.com>
References: <58e221af-b764-61ae-6337-a2aa2fead8a2@gmail.com>

Rob Sargent <robjsargent@gmail.com> writes:
> I'm wondering if there's a disconnect between my servers postgresql.conf 
> and the system tcp settings? Are the config names supposed to match a 
> file in /proc/sys/net/ipv4?

Probably not --- we certainly didn't pick them with the intention
of matching any specific system's naming of the options.  On my
Linux box it looks like the related files are named
/proc/sys/net/ipv4/tcp_keepalive_XXX

But in any case, if this is your problem:

> My issue is that psql is timing out with "SSL SYSCALL error: Connection 
> timed out".

then keepalives aren't necessarily the solution anyway.  When is
this failure occurring ... is it while trying to establish the
database connection in the first place?  Or does it only happen
if you've left the psql session sit idle for a long while?

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <934612.1663716103@sss.pgh.pa.us>
Permalink:  ../934612.1663716103@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/934612.1663716103@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robjsargent@gmail.com
  Subject: Re: tcp settings
  In-Reply-To: <934612.1663716103@sss.pgh.pa.us>
  References: <58e221af-b764-61ae-6337-a2aa2fead8a2@gmail.com> <934612.1663716103@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox