From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Rajesh Kumar <rajeshkumar.dba09@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Autovacuum and Insert wait
Date: Wed, 25 Oct 2023 13:15:41 +0200
Message-ID: <202310251115.5kpzzeujhwtn@alvherre.pgsql> (raw)
In-Reply-To: <CAJk5AtaeCaU728-i3_n8RPAeVb1gQUoJ8gTnC--iiVPemwqHJA@mail.gmail.com>
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)
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: alvherre@alvh.no-ip.org, rajeshkumar.dba09@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Autovacuum and Insert wait
In-Reply-To: <202310251115.5kpzzeujhwtn@alvherre.pgsql>
* 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