2 ms·
PG should allow an index to have a different partitioning scheme and locality from the data it refers to. That would solve nearly all the major remaining limit
by londons_explore 9y ago
PG should allow an index to have a different partitioning scheme and locality from the data it refers to.
That would solve nearly all the major remaining limitations.
- yashap 9y agoIndeed. Or similarly, allow indexes to not be partitioned at all - i.e. your records and most indexes could be partitioned by date, but you could also declare indexes that apply to the entire logical table (very useful for things like primary keys).
- pgaddict 9y agoThat is what was mentioned as "global indexes" in this discussion. The problem with this approach is twofold - firstly it negates many of the partitioning benefits (e.g. removing data is not merely a DROP PARTITION but you have to walk the global structure), secondly it requires fairly significant surgery in the indexes (that now point to rows in a single table, and so [block,item] is enough, but global indexes will require [partition,block,item]).
- anarazel 9y ago> so [block,item] is enough, but global indexes will require [partition,block,item]). That's probably the easier bit, I'd guess that adjusting a lot of the relevant in-memory structures to share relations, uniqueness checks across relations, adjusting the locking-model to deal with multiple underlying relations etc. is going to be more work.