On 26/08/2019 10:59, Andrey Borodin wrote:
Hi!

In many cases GiST index can be build fast using z-order sorting.

I've looked into proof of concept by Nikita Glukhov [0] and it looks very 
interesting.
So, I've implemented yet another version of B-tree-like GiST build.

Cool!

My biggest concern is that passing function to relation option seems
a bit hacky. You can pass there any function matching sort support
signature. Embedding this function into opclass makes no sense: it
does not affect scan anyhow.

I think it should be a new, optional, GiST "AM support function", in pg_amproc. That's how the sort support functions are defined for B-tree opfamilies, too.

- Heikki


Reply via email to