Copy information from the relcache instead of pointing to it.
authorRobert Haas <rhaas@postgresql.org>
Fri, 6 Oct 2017 19:27:11 +0000 (15:27 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 6 Oct 2017 19:28:07 +0000 (15:28 -0400)
commit45866c75507f0757de0da6e90c694a0dbe67d727
tree0659294a1f18f48b7bd4426da60c297071074835
parenta1c2c430d33e0945da234b025b78bd265c8bdfb5
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
src/backend/catalog/partition.c
src/backend/optimizer/util/plancat.c
src/include/catalog/partition.h