Re: Transaction held open by autoanalyze can be a bottleneck

From: Andres Freund <andres(at)anarazel(dot)de>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Transaction held open by autoanalyze can be a bottleneck
Date: 2017-05-10 20:26:02
Message-ID: 20170510202602.iq6bt2sk4njm22ic@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2017-05-10 13:09:38 -0700, Jeff Janes wrote:
> Autovacuum's analyze starts a transaction when it starts on a table, and
> holds it for the duration. This holds back the xmin horizon.

Yea, I also complained about this:
http://archives.postgresql.org/message-id/20151031145303.GC6064%40alap3.anarazel.de

> Does analyze need all of its work done under the same transaction?

It's imo, as pointed out in the above email, not trivial to change it,
but it's imo doable.

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-05-10 20:36:52 Re: Bug in pg_dump --table and --exclude-table for declarative partition table handling.
Previous Message Sven R. Kunze 2017-05-10 20:21:42 Re: Adding support for Default partition in partitioning