Possible to get LIMIT in an index access method? - Mailing list pgsql-hackers

From Chris Cleveland
Subject Possible to get LIMIT in an index access method?
Date
Msg-id CABSN6VcacvmoVog6x3ueEk1X4iw_4SzHPiKe82JvsrEdwpH2Mg@mail.gmail.com
Whole thread Raw
Responses Re: Possible to get LIMIT in an index access method?
List pgsql-hackers
I'm developing an index access method.

SELECT *
FROM foo
WHERE col <=> constant
ORDER BY col <==> constant
LIMIT 10;

I'm successfully getting the WHERE and the ORDER BY clauses in my beginscan() method. Is there any way to get the LIMIT (or OFFSET, for that matter)?

My access method is designed such that you have to fetch the entire result set in one go. It's not streaming, like most access methods. As such, it would be very helpful to know up front how many items I need to fetch from the index.

--
Chris Cleveland
312-339-2677 mobile

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Tarball builds in the new world order
Next
From: Ranier Vilela
Date:
Subject: re: Direct SSL connection and ALPN loose ends