Обсуждение: Autovacuum and Insert wait

Поиск
Список
Период
Сортировка

Autovacuum and Insert wait

От
Rajesh Kumar
Дата:
Hi all,

Can autovacuum cause insert wait? 

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

Re: Autovacuum and Insert wait

От
Alvaro Herrera
Дата:
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)



Re: Autovacuum and Insert wait

От
Rajesh Kumar
Дата:
It was the time I was sleeping .

On Wed, 25 Oct 2023, 16:45 Alvaro Herrera, <alvherre@alvh.no-ip.org> wrote:
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)