Amit Langote <amitlangot...@gmail.com> writes: > To save you the pain of finding the right files to patch in > back-branches, I made those (attached).
BTW, as far as that goes: I'm of the opinion that the partitioning logic's factorization in this area is pretty awful, and v12 has made it worse not better. It's important IMO that there be a clear distinction between code that belongs to/can manipulate the relcache, and outside code that ought at most to examine it (and maybe not even that, depending on where we come down on this copy-vs-refcount business). Maybe allowing utils/cache/partcache.c to be effectively halfway inside the relcache module is tolerable, but I don't think it's great design. Allowing files over in partitioning/ to also have functions inside that boundary is really not good, especially when you can't even say that all of partdesc.c is part of relcache. I"m seriously inclined to put RelationBuildPartitionDesc back where it was in v11. regards, tom lane