Re: PostgreSQL local connection is taking 4 seconds

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Kellerer <shammat(at)gmx(dot)net>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: PostgreSQL local connection is taking 4 seconds
Date: 2024-01-02 16:27:26
Message-ID: 4096247.1704212846@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thomas Kellerer <shammat(at)gmx(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2024-01-02 19:34:52 Re: Vacuum
Previous Message pramod kg 2024-01-02 16:04:41 Re: PostgreSQL local connection is taking 4 seconds