Modify RelationFlushRelation so that if the relcache entry

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b4a607c9e0538a3047d156404cf48de7ea878b0b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 1999-09-04T18:42:15Z
Releases: 7.1.1
Modify RelationFlushRelation so that if the relcache entry
has positive refcount, it is rebuilt from pg_class data.  This ensures
that relcache entries will track changes made by other backends.  Formerly,
a shared inval report would just be ignored if it happened to arrive while
the relcache entry was in use.  Also, fix relcache to reset ref counts
to zero during transaction abort.  Finally, change LockRelation() so that
it checks for shared inval reports after obtaining the lock.  In this way,
once any kind of lock has been obtained on a rel, we can trust the relcache
entry to be up-to-date.

Files