pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: David Raymond <David.Raymond@tomtom.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs\@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16031: Group by returns duplicate groups
Date: Tue, 01 Oct 2019 16:28:29 +0100
Message-ID: <87o8z0lc6i.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <VI1PR07MB602967460CA5DE655BB6776A879D0@VI1PR07MB6029.eurprd07.prod.outlook.com>
References: <16031-4ef55395a5fbb687@postgresql.org>
	<18850.1569867434@sss.pgh.pa.us>
	<VI1PR07MB602902D7CE166594FC1EF5AE87820@VI1PR07MB6029.eurprd07.prod.outlook.com>
	<VI1PR07MB6029CF9430ECED44CB457E3B87820@VI1PR07MB6029.eurprd07.prod.outlook.com>
	<CAH2-Wzk+e_XeffEyLPQeHUMzot1KV5Y4TCJu+AGCQtZshLf17Q@mail.gmail.com>
	<VI1PR07MB602967460CA5DE655BB6776A879D0@VI1PR07MB6029.eurprd07.prod.outlook.com>

>>>>> "David" == David Raymond <David.Raymond@tomtom.com> writes:

 David> Here's what it's reporting for an error:

 David> testing=# select bt_index_check('big_table_name_id_1_id_2_idx', true);
 David> ERROR:  high key invariant violated for index "big_table_name_id_1_id_2_idx"
 David> DETAIL:  Index tid=(86990,140) points to heap tid=(139313,57) page lsn=0/0.
 David> Time: 65695.359 ms (01:05.695)
 David> testing=# select bt_index_parent_check('big_table_name_id_1_id_2_idx', true);
 David> ERROR:  down-link lower bound invariant violated for index "big_table_name_id_1_id_2_idx"
 David> DETAIL:  Parent block=43131 child index tid=(43197,9) parent page lsn=0/0.
 David> Time: 1697.205 ms (00:01.697)
 David> testing=#

Based on the other response, it looks like something is fundamentally
broken with regard to sorting this dataset, and since btree index build
works by sorting, the index corruption is probably just another symptom
of the real problem rather than a cause in itself.

-- 
Andrew (irc:RhodiumToad)





view thread (19+ messages)  latest in thread

Message-ID: <87o8z0lc6i.fsf@news-spur.riddles.org.uk>
Permalink:  ../87o8z0lc6i.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87o8z0lc6i.fsf@news-spur.riddles.org.uk

 · 

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-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, David.Raymond@tomtom.com, pg@bowt.ie, tgl@sss.pgh.pa.us
  Subject: Re: BUG #16031: Group by returns duplicate groups
  In-Reply-To: <87o8z0lc6i.fsf@news-spur.riddles.org.uk>
  References: <16031-4ef55395a5fbb687@postgresql.org> <18850.1569867434@sss.pgh.pa.us> <VI1PR07MB602902D7CE166594FC1EF5AE87820@VI1PR07MB6029.eurprd07.prod.outlook.com> <VI1PR07MB6029CF9430ECED44CB457E3B87820@VI1PR07MB6029.eurprd07.prod.outlook.com> <CAH2-Wzk+e_XeffEyLPQeHUMzot1KV5Y4TCJu+AGCQtZshLf17Q@mail.gmail.com> <VI1PR07MB602967460CA5DE655BB6776A879D0@VI1PR07MB6029.eurprd07.prod.outlook.com> <87o8z0lc6i.fsf@news-spur.riddles.org.uk>

* 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