Re: Index corruption with CREATE INDEX CONCURRENTLY
Vladimir Borodin <root@simply.name>
From: Vladimir Borodin <root@simply.name>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>, Robert Haas <robertmhaas@gmail.com>, Martín Marqués <martin@2ndquadrant.com>, Michael Paquier <michael.paquier@gmail.com>, Pavel Stehule <pavel.stehule@gmail.com>, Pavan Deolasee <pavan.deolasee@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Alvaro Herrera <alvherre@2ndquadrant.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2017-02-06T08:48:28Z
Lists: pgsql-hackers
> 6 февр. 2017 г., в 4:57, Peter Geoghegan <pg@bowt.ie> написал(а): > > I meant that I find the fact that there were no user reports in all > these years to be a good reason to not proceed for now in this > instance. Well, we had some strange situations with indexes (see below for example) but I couldn’t even think that CIC is the problem. And it is really difficult to give diagnostics for problems of such kind. Because 1. you may see the problem several days after last major change in the database and 2. you don’t even know how to start investigating the problem. xdb314g/maildb M # show enable_indexscan ; enable_indexscan ------------------ off (1 row) Time: 0.120 ms xdb314g/maildb M # select * from mail.folders where uid=448300241 and fid=1; -[ RECORD 1 ]---+------------------------------ uid | 448300241 fid | 1 <...> Time: 30398.637 ms xdb314g/maildb M # set enable_indexscan to true; SET Time: 0.111 ms xdb314g/maildb M # select * from mail.folders where uid=448300241 and fid=1; (0 rows) Time: 0.312 ms xdb314g/maildb M # The row of course hasn’t been deleted. -- May the force be with you… https://simply.name
Commits
-
Avoid returning stale attribute bitmaps in RelationGetIndexAttrBitmap().
- bcd7b47c2834 9.2.20 landed
- 32c893c8d125 9.3.16 landed
- 5879958e1f82 9.4.11 landed
- e935696f4dcb 9.5.6 landed
- 7fcddbdd031f 9.6.2 landed
- 2aaec65464da 10.0 landed