Re: pg_stat_have_stats() returns true for dropped indexes (or for index creation transaction rolled back)

Bertrand Drouvot <bertranddrouvot.pg@gmail.com>

From: "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2022-09-26T08:23:30Z
Lists: pgsql-hackers
Hi,

On 9/23/22 10:45 PM, Andres Freund wrote:

> 
> 
> 
> Hi,
> 
> On 2022-09-01 08:40:54 +0200, Drouvot, Bertrand wrote:
>> Thanks for the suggestion, I'm coming up with this proposal in v4 attached:
> 
> I pushed the bugfix / related test portion to 15, master. Thanks!

Thanks!

> 
> I left the replication stuff out - it seemed somewhat independent.

Yeah.

> Probably
> will just push that to master, unless somebody thinks it should be in both?

Sounds good to me as this is not a bug and that seems unlikely to me 
that an issue in this area will be introduced later on on 15 without 
being introduced on master too.

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



Commits

  1. pgstat: Fix transactional stats dropping for indexes