Alternative SAOP support for GiST - Mailing list pgsql-hackers

From Michał Kłeczek
Subject Alternative SAOP support for GiST
Date
Msg-id 1D753E34-C0EA-4A81-9DFF-29204485A818@kleczek.org
Whole thread Raw
Responses Re: Alternative SAOP support for GiST
List pgsql-hackers
Hi All,

During my journey of designing Pg based solution at my work I was severely hit by several shortcomings in GiST.
The most severe one is the lack of support for SAOP filters as it makes it difficult to have partition pruning and index (only) scans working together.

To overcome the difficulties I implemented a simple extension:

Since it provides a separate operator class from btree_gist it requires re-indexing the data.
So I thought maybe it would be a good idea to incorporate it into btree_gist.

I am aware of two patches related to SAOP being discussed at the moment but I am not sure if SAOP support for GiST indexes is planned.

Let me know if you think it is a good idea to work on a patch.

More general remark:
I am wondering if SAOP support in core should not be implemented by mapping SAOP operations to specialised operators and delegating
all the work to index AMs. That way core could be decoupled from particular index AMs implementation details.


Thanks!

Michal
Attachment

pgsql-hackers by date:

Previous
From: Melanie Plageman
Date:
Subject: Re: Confine vacuum skip logic to lazy_scan_skip
Next
From: Corey Huinker
Date:
Subject: Re: Statistics Import and Export