Re: WIP: BRIN multi-range indexes
Tomas Vondra <tomas.vondra@enterprisedb.com>
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: John Naylor <john.naylor@enterprisedb.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-03-03T01:17:20Z
Lists: pgsql-hackers
On 3/3/21 1:17 AM, Alvaro Herrera wrote: > On 2021-Mar-03, Tomas Vondra wrote: > >> That's kinda my point - I agree the size of the patch is not the >> primary concern, but it makes the minmax/inclusion code a bit more >> complicated (because they now have to loop over the keys), with >> very little benefit (there might be some speedup, but IMO it's >> rather negligible). > > Yeah, OK. > >> Alternatively we could simply remove the code supporting the old >> API with "consistent" functions without the additional parameter. >> But the idea was to seamlessly support existing opclasses / not >> breaking them unnecessarily (I know we don't guarantee that in >> major upgrades, but as they may not benefit from this, why break >> them?). It'd simplify the code in brin.c a little bit, but the >> opclasses a bit more complex. > > Well, I doubt any opclass-support functions exist outside of core. Or > am I just outdated and we do know of some? > I'm not aware of any. This was proposed by Nikita Glukhov: https://www.postgresql.org/message-id/49cb668f-d6f9-3493-681d-7d40b715ef64%40postgrespro.ru Alexander Korotkov seemed to agree with Nikita, but I don't recall any references to actual existing opclasses. Then again - the amount of code to support two signatures is fairly small. If we decide to get rid of it, then fine - but the new complexity in minmax/inclusion likely exceeds that. Which is why I was thinking about still supporting both signatures, but reverting the changes in brin_minmax and brin_inclusion. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
BRIN minmax-multi indexes
- ab596105b55f 14.0 landed
-
BRIN bloom indexes
- 77b88cd1bb90 14.0 landed
-
Support the old signature of BRIN consistent function
- a681e3c107aa 14.0 landed
-
Remove unnecessary pg_amproc BRIN minmax entries
- a68dfa27d42f 14.0 landed
-
Optimize allocations in bringetbitmap
- 8e4b332e88b8 14.0 landed
-
Move IS [NOT] NULL handling from BRIN support functions
- 72ccf55cb99c 14.0 landed
-
Pass all scan keys to BRIN consistent function at once
- a1c649d889bd 14.0 landed
-
Properly detoast data in brin_form_tuple
- d2d3a4bd33d2 9.5.24 landed
- bae31e75f777 9.6.20 landed
- 0b96fc977c5b 10.15 landed
- 895d0f0e8218 11.10 landed
- 8149e9f9a0d6 12.5 landed
- 6a7b55f3716f 13.1 landed
- 7577dd84807a 14.0 landed