Copy information from the relcache instead of pointing to it.
We have the relations continuously locked, but not open, so relcache
pointers are not guaranteed to be stable. Per buildfarm member
prion.
Ashutosh Bapat. I fixed a typo.
Discussion: http://postgr.es/m/CAFjFpRcRBqoKLZSNmRsjKr81uEP=ennvqSQaXVCCBTXvJ2rW+Q@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/45866c75507f0757de0da6e90c694a0dbe67d727
Modified Files
--------------
src/backend/catalog/partition.c | 68 ++++++++++++++++++++++++++++++++++++
src/backend/optimizer/util/plancat.c | 35 ++++++++++++++-----
src/include/catalog/partition.h | 2 ++
3 files changed, 96 insertions(+), 9 deletions(-)