pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Diagnose !indisvalid in more SQL functions.
Date: Mon, 30 Oct 2023 21:47:09 +0000
Message-ID: <E1qxa6G-003AId-P3@gemulon.postgresql.org> (raw)

Diagnose !indisvalid in more SQL functions.

pgstatindex failed with ERRCODE_DATA_CORRUPTED, of the "can't-happen"
class XX.  The other functions succeeded on an empty index; they might
have malfunctioned if the failed index build left torn I/O or other
complex state.  Report an ERROR in statistics functions pgstatindex,
pgstatginindex, pgstathashindex, and pgstattuple.  Report DEBUG1 and
skip all index I/O in maintenance functions brin_desummarize_range,
brin_summarize_new_values, brin_summarize_range, and
gin_clean_pending_list.  Back-patch to v11 (all supported versions).

Discussion: https://postgr.es/m/20231001195309.a3@google.com

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1a368dd3ecefef041721628baf9564862088c377

Modified Files
--------------
contrib/pgstattuple/pgstatindex.c | 26 ++++++++++++++++++++++++++
contrib/pgstattuple/pgstattuple.c |  7 +++++++
src/backend/access/brin/brin.c    | 27 +++++++++++++++++++++------
src/backend/access/gin/ginfast.c  | 23 ++++++++++++++++++++---
4 files changed, 74 insertions(+), 9 deletions(-)



view thread (7+ messages)

Message-ID: <E1qxa6G-003AId-P3@gemulon.postgresql.org>
Permalink:  ../E1qxa6G-003AId-P3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qxa6G-003AId-P3@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: noah@leadboat.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Diagnose !indisvalid in more SQL functions.
  In-Reply-To: <E1qxa6G-003AId-P3@gemulon.postgresql.org>

* 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