pgsql: Copy information from the relcache instead of pointing to it.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Copy information from the relcache instead of pointing to it.
Date: 2017-10-06 19:33:22
Message-ID: E1e0YN8-0003WY-RY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Wong, Yi Wen 2017-10-06 21:09:12 Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
Previous Message Peter Geoghegan 2017-10-06 19:27:26 Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple