OSDN Git Service

RelationClearRelation must reset rd_targblock and update rd_nblocks
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 22 Sep 2002 20:56:28 +0000 (20:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 22 Sep 2002 20:56:28 +0000 (20:56 +0000)
commit3503f19eeb812d7d7bbc25de25376c3a46f52257
tree0ee406d92d267195ad1bfada4452280bebc6c051
parent286fb25243724d0b4bdb4ed06af250f34779db4a
RelationClearRelation must reset rd_targblock and update rd_nblocks
even when dealing with a nailed-in-cache relation; otherwise, following
VACUUM truncation of a system catalog, other backends might have
unreasonably large values of these fields.
src/backend/utils/cache/relcache.c