pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Huan Ruan <leohuanruan@gmail.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Potential BRIN Index Corruption
Date: Wed, 9 Dec 2020 18:01:32 +0100
Message-ID: <645d0f4b-11a5-04fb-8eae-46c9e872271b@enterprisedb.com> (raw)
In-Reply-To: <CAGgcTZsi-oG3oEJiiFJ1d3b0+wW1y_oae7XAPcu7k_g7WAvgjA@mail.gmail.com>
References: <CAGgcTZuG6bAjkYmo_Dt7tZgFLjnb0K1=CovVQh1=toTAYE_pKA@mail.gmail.com>
	<20201126024244.GA15675@alvherre.pgsql>
	<CAGgcTZtO4+zFR8hVz9RJ6dm8idvGwh52-Bpn0D+a3XkPcMFW_Q@mail.gmail.com>
	<CAGgcTZsi-oG3oEJiiFJ1d3b0+wW1y_oae7XAPcu7k_g7WAvgjA@mail.gmail.com>

On 12/9/20 12:07 AM, Huan Ruan wrote:
> HI Alvaro
> 
> Unfortunately those records were written a while ago and we no longer keep
> their WAL logs. Thanks for your help anyway.
> 

Can you estimate when roughly the records were written? E.g. by using a
rough estimate of WAL or XIDs generated per day, or something like that.
Maybe there was some I/O issue in that time period and a couple writes
got lost, or something like that.

Are there any other corrupted indexes on the table?


regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company





view thread (6+ messages)  latest in thread

Message-ID: <645d0f4b-11a5-04fb-8eae-46c9e872271b@enterprisedb.com>
Permalink:  ../645d0f4b-11a5-04fb-8eae-46c9e872271b@enterprisedb.com/
Also on:    postgresql.org/message-id/645d0f4b-11a5-04fb-8eae-46c9e872271b@enterprisedb.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tomas.vondra@enterprisedb.com, leohuanruan@gmail.com, alvherre@alvh.no-ip.org
  Subject: Re: Potential BRIN Index Corruption
  In-Reply-To: <645d0f4b-11a5-04fb-8eae-46c9e872271b@enterprisedb.com>
  References: <CAGgcTZuG6bAjkYmo_Dt7tZgFLjnb0K1=CovVQh1=toTAYE_pKA@mail.gmail.com> <20201126024244.GA15675@alvherre.pgsql> <CAGgcTZtO4+zFR8hVz9RJ6dm8idvGwh52-Bpn0D+a3XkPcMFW_Q@mail.gmail.com> <CAGgcTZsi-oG3oEJiiFJ1d3b0+wW1y_oae7XAPcu7k_g7WAvgjA@mail.gmail.com> <645d0f4b-11a5-04fb-8eae-46c9e872271b@enterprisedb.com>

* 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