Let's say I have a
mytable (id, ..., insertiondate)
index lastupdate_idx(lastupdate desc)
and I query select * from mytable order by lastupdate desc limit 10 offset 100
Will the execution run time skip offset amount of records in the index and only fetch limit amount of rows from the heap? Or does it fetch offset + limit rows from the heap and only return limit rows to the query.
Here is the plan:
Limit
-> Index Scan using lastupdate_idx on mytable)
I cannot tell from that (should I be able to?) and I could not find where this is addressed in the documentation.