pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Kellerer <shammat@gmx.net>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: PostgreSQL local connection is taking 4 seconds
Date: Tue, 02 Jan 2024 11:27:26 -0500
Message-ID: <4096247.1704212846@sss.pgh.pa.us> (raw)
In-Reply-To: <006c932a-d986-d0d1-61cd-065ffbe71fb3@gmx.net>
References: <CAHkcXnyVu3HJSrzRu9KA0T9cLgJxSkHfW2tYJdBg+ozYxZy_qw@mail.gmail.com>
	<006c932a-d986-d0d1-61cd-065ffbe71fb3@gmx.net>

Thomas Kellerer <shammat@gmx.net> writes:
> pramod kg schrieb am 02.01.2024 um 14:58:
>> We have upgraded the OS from RHEL7 to RHEL8 in our testbed machines. After upgrading, PostgrSQL local connection is taking ~4 seconds (Both TLS and non TLS connection). Please advise on what to be verified? There is no change in postgresql.conf or pg_hba.conf.

> Did you enable log_hostname?
> That does a revers DNS lookup which could be a reason for the connection suddenly taking longer.

Even without log_hostname, it could be a slow-DNS-lookup problem.

Rather than guessing, though, it might be time to try strace'ing
the psql session to see what it's waiting for.

			regards, tom lane





view thread (10+ messages)  latest in thread

Message-ID: <4096247.1704212846@sss.pgh.pa.us>
Permalink:  ../4096247.1704212846@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4096247.1704212846@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, shammat@gmx.net, pgsql-admin@lists.postgresql.org
  Subject: Re: PostgreSQL local connection is taking 4 seconds
  In-Reply-To: <4096247.1704212846@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