Re: SP-GiST for ranges based on 2d-mapping and quad-tree
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: Alexander Korotkov <aekorotkov@gmail.com>, Jeff Davis <pgsql@j-davis.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2012-07-28T22:37:47Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Teach SP-GiST to do index-only scans.
- 922036249340 9.2.0 cited
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes: > On 29.07.2012 00:50, Tom Lane wrote: >> We could possibly extend the API to allow a different type to be used >> for this, but then it wouldn't be "reconstructed data" in any sense of >> the word; so I think it'd be abuse of the concept --- which would come >> back to bite us if we ever try to support index-only scans with SPGiST. > I can see that for leaf nodes, but does that also hold for inner nodes? I didn't explain myself terribly well, probably. Consider an opclass that wants some private state like this and *also* needs to reconstruct column data. In principle I suppose we could do away with the reconstructed-data support altogether, and consider that if you need that then it is just a portion of the unspecified private state the opclass is holding. But it's probably a bit late to remove bits of the opclass API. regards, tom lane