pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: exclusion@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18246: pgstathashindex() attempts to read invalid file for hash index attached to partitioned table
Date: Wed, 13 Dec 2023 15:18:14 +0100
Message-ID: <ZXm9Js8D_W_cFWzW@paquier.xyz> (raw)
In-Reply-To: <18246-f4d9ff7cb3af77e6@postgresql.org>
References: <18246-f4d9ff7cb3af77e6@postgresql.org>

On Wed, Dec 13, 2023 at 09:00:01AM +0000, PG Bug reporting form wrote:
> This anomaly can be observed since 8b08f7d48 from 2018-01-19, but IMO the
> culprit is e759854a0 from 2017-02-03, which introduced the following
> asymmetry in pgstatindex.c:
> if (!IS_INDEX(rel) || !IS_BTREE(rel))
> if (!IS_INDEX(rel) || !IS_GIN(rel))
> But:
> if (!IS_HASH(rel))

Fun, let's fix that.  Would you like to write a patch?
--
Michael

Attachments:

  [application/pgp-signature] signature.asc (832B, ../ZXm9Js8D_W_cFWzW@paquier.xyz/2-signature.asc)
  download

view thread (5+ messages)  latest in thread

Message-ID: <ZXm9Js8D_W_cFWzW@paquier.xyz>
Permalink:  ../ZXm9Js8D_W_cFWzW@paquier.xyz/
Also on:    postgresql.org/message-id/ZXm9Js8D_W_cFWzW@paquier.xyz

 · 

reply

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-bugs@postgresql.org
  Cc: michael@paquier.xyz, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18246: pgstathashindex() attempts to read invalid file for hash index attached to partitioned table
  In-Reply-To: <ZXm9Js8D_W_cFWzW@paquier.xyz>

* 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