Re: Statistics updates is delayed when using `commit and chain` - Mailing list pgsql-bugs

From Andres Freund
Subject Re: Statistics updates is delayed when using `commit and chain`
Date
Msg-id 20220801164004.kybukw4j3svgcv54@awork3.anarazel.de
Whole thread Raw
In response to Re: Statistics updates is delayed when using `commit and chain`  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Statistics updates is delayed when using `commit and chain`  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Hi,

On 2022-08-01 12:25:58 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > I don't like copying the same comment etc into multiple places. Given the
> > number of identical blocks for if (s->chain) blocks, perhaps we should just
> > move it into a new helper?
> 
> What I suggested a few days ago is that it should be in CommitTransaction.

I wonder how we'd best deal with the idle timer if we go for that. That only
makes sense in some contexts (normal backends), but not others (everything
else).

Greetings,

Andres Freund



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Statistics updates is delayed when using `commit and chain`
Next
From: Tom Lane
Date:
Subject: Re: Statistics updates is delayed when using `commit and chain`