Re: Autovacuum and Insert wait

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Autovacuum and Insert wait
Date: 2023-10-25 11:15:41
Message-ID: 202310251115.5kpzzeujhwtn@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 2023-Oct-25, Rajesh Kumar wrote:

> Can autovacuum cause insert wait?

Yes, in unlucky situations.

> I could see in log that there are lot of insert waiting for a table ...At
> the same time autovacuum is running for table.

Did you examine pg_locks and pg_stat_activity in detail to see what
exactly was going on? It's easy to jump to wrong conclusions.

--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
"Aprender sin pensar es inútil; pensar sin aprender, peligroso" (Confucio)

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2023-10-25 11:27:30 Re: User/Roles, Owner, and privileges migration strategy
Previous Message Rajesh Kumar 2023-10-25 10:19:40 Autovacuum and Insert wait