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: sk@zsrv.org
Cc: michael.paquier@gmail.com, x4mmm@yandex-team.ru, david@nlpgo.com,
pgsql-bugs@lists.postgresql.org, pgsql-hackers@postgresql.org
Date: 2018-01-24T07:11:53Z
Lists: pgsql-bugs, pgsql-hackers
Attachments
Thank you for looking this. At Wed, 24 Jan 2018 00:13:51 +0300, Sergei Kornilov <sk@zsrv.org> wrote in <348951516742031@web54j.yandex.ru> > Hello > I tested this patch and think it can be commited to master. Is there a CF record? I can not find one. Not yet. I'm thinking of creating an entry in the next CF after waiting someone to pickup this. > Should we also make backport to older versions? I test on REL_10_STABLE - patch builds and works ok, but "make check" fails on new testcase with error: > > CREATE INDEX ON t USING gist (a test_inet_ops, a inet_ops); > >+ ERROR: missing support function 4 for attribute 1 of index "t_a_a1_idx" > and with different explain results. Thank you for checking that. d3a4f89 allowed that and inet_gist_decompress is removed at the same time. Unfortunately I didn't find a type on master that has both decompress and fetch methods so I prefer to split the regression patch among target versions. master has its own one. 9.6 and 10 share the same patch. 9.5 has a different one since the signature of consistent method has changed as of 9.6. This is not required for 9.4 and earlier since they don't check canreturn on attribute basis. (And they don't try index-only on GiST.) On the other hand the fix patch applies to all affected versions. 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