Add RelationOpenSmgr() calls to ensure rd_smgr is valid when we try to
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 7 Jan 2006 22:45:41 +0000 (22:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 7 Jan 2006 22:45:41 +0000 (22:45 +0000)
commitafa8f1971ae57b4d5091f77717f666d365545867
treed4d8f0a9597a7352884870146c703df01705e74b
parente58a94470092fb7c1840c73c00b8d9959807f068
Add RelationOpenSmgr() calls to ensure rd_smgr is valid when we try to
use it.  While it normally has been opened earlier during btree index
build, testing shows that it's possible for the link to be closed again
if an sinval reset occurs while the index is being built.
src/backend/access/nbtree/nbtsort.c