Thread: pgsql: Don't assume rd_smgr stays open across all of a rewriteheap

pgsql: Don't assume rd_smgr stays open across all of a rewriteheap

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Don't assume rd_smgr stays open across all of a rewriteheap operation;
doing so can result in crash if an sinval reset occurs meanwhile.
I believe this explains intermittent buildfarm failures in cluster test.

Modified Files:
--------------
    pgsql/src/backend/access/heap:
        rewriteheap.c (r1.1 -> r1.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/heap/rewriteheap.c.diff?r1=1.1&r2=1.2)