Andres Freund <and...@anarazel.de> writes: > I'm kinda thinking that this is the wrong architecture.
The bits of that patch that I've looked at seemed like a mess to me too. AFAICT, it's trying to use a single global "map" for all relations (strike 1) without any clear tracking of which relation the map currently describes (strike 2). This can only work at all if an inaccurate map is very fail-soft, which I'm not convinced it is, and in any case it seems pretty inefficient for workloads that insert into multiple tables. I'd have expected any such map to be per-table and be stored in the relcache. regards, tom lane