Re: BUG #16031: Group by returns duplicate groups

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: David Raymond <David(dot)Raymond(at)tomtom(dot)com>
Cc: Peter Geoghegan <pg(at)bowt(dot)ie>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-bugs\(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #16031: Group by returns duplicate groups
Date: 2019-10-01 15:28:29
Message-ID: 87o8z0lc6i.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>>>>> "David" == David Raymond <David(dot)Raymond(at)tomtom(dot)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)

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2019-10-01 16:06:26 BUG #16032: pg_basebackup when running on Windows doesn't clean up on failure correctly
Previous Message David G. Johnston 2019-10-01 15:26:40 Re: psql: FATAL: database “<text>” does not exist