Re: Index-only scan returns incorrect results when using a composite GIST index with a gist_trgm_ops column.
Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
From: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
To: michael.paquier@gmail.com
Cc: x4mmm@yandex-team.ru, sk@zsrv.org, david@nlpgo.com,
pgsql-bugs@lists.postgresql.org, pgsql-hackers@postgresql.org
Date: 2018-01-18T12:14:49Z
Lists: pgsql-bugs, pgsql-hackers
Attachments
Hello. At Thu, 18 Jan 2018 17:25:05 +0900, Michael Paquier <michael.paquier@gmail.com> wrote in <20180118082505.GA84508@paquier.xyz> > On Thu, Jan 18, 2018 at 12:57:38PM +0500, Andrey Borodin wrote: > >> Please find the attached patch. > > I agree with you that current behavior is a bug and your patch seems correct. > > I'm a bit worried about ninth strategy words: fetch is not necessary > >> now, if opclass lacks compress methods - index only scan is > >> possible. See > >> https://github.com/postgres/postgres/commit/d3a4f89d8a3e500bd7c0b7a8a8a5ce1b47859128 > >> for details. > > > > Though there are tests in cube and seg for that, if your patch passes > > check-world, than this behavior is not affected. > > The proposed patch has no regression tests. If the current set is not > enough to stress the problem, you surely should add some (haven't > checked the patch in detail, sorry ;p ). Uggg.. I'm beaten again.. You're definitely right! It was a bit hard to find the way to cause the failure without extension but the first attached file is that. regards, -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
Improve stability of recently-added regression test case.
- afb5fb290e90 10.6 landed
- 6d2c760b059e 11.1 landed
- 4f6a77e46af2 9.5.15 landed
- 3e406417b8da 9.6.11 landed
- 17d6a8fb764c 12.0 landed
-
Fix IOS planning when only some index columns can return an attribute.
- be55bfc9386d 9.5.13 landed
- b5febc1d125c 11.0 landed
- 3f26be83ec1e 9.6.9 landed
- 147b59971eba 10.4 landed
-
Ability to advance replication slots
- 9c7d06d60680 11.0 cited
-
Allow no-op GiST support functions to be omitted.
- d3a4f89d8a3e 11.0 cited