Hi, (please don't top post)
On 2018-05-28 15:07:52 +0000, Nishant, Fnu wrote: > We were working on this issue and thinking if we could actually make > pg_class(rd_rel) part of recache entry upgradable. Right, that's necessary. See the patch I just sent. > To achieve this we can allocate Form_pg_class structures (for shared > relations… a small number) on shared memory. But why would this be necessary / a good idea? Even if we decided it were, it seems like it'd end up being quite invasive. But I doubt it's a good plan, because relcache entries want / need to be updated differently in the transaction that does the changes (as it needs to see the effect of catalog changes before commit) than other sessions (which only should see them after commit). Greetings, Andres Freund