postgresql/src/backend/utils
Tom Lane a152ebeec6 Fix problems seen in parallel regress tests when SI buffer overruns (causing
syscache and relcache flushes).  Relcache entry rebuild now preserves
original tupledesc, rewrite rules, and triggers if possible, so that pointers
to these things remain valid --- if these things change while relcache entry
has positive refcount, we elog(ERROR) to avoid later crash.  Arrange for
xact-local rels to be rebuilt when an SI inval message is seen for them,
so that they are updated by CommandCounterIncrement the same as regular rels.
(This is useful because of Hiroshi's recent changes to process our own SI
messages at CommandCounterIncrement time.)  This allows simplification of
some routines that previously hacked around the lack of an automatic update.
catcache now keeps its own copy of tupledesc for its relation, rather than
depending on the relcache's copy; this avoids needing to reinitialize catcache
during a cache flush, which saves some cycles and eliminates nasty circularity
problems that occur if a cache flush happens while trying to initialize a
catcache.
Eliminate a number of permanent memory leaks that used to happen during
catcache or relcache flush; not least of which was that catcache never
freed any cached tuples!  (Rule parsetree storage is still leaked, however;
will fix that separately.)
Nothing done yet about code that uses tuples retrieved by SearchSysCache
for longer than is safe.
2000-01-31 04:35:57 +00:00
..
adt Add include for float.h. 2000-01-26 06:33:49 +00:00
cache Fix problems seen in parallel regress tests when SI buffer overruns (causing 2000-01-31 04:35:57 +00:00
error Add: 2000-01-26 05:58:53 +00:00
fmgr Add: 2000-01-26 05:58:53 +00:00
hash Add: 2000-01-26 05:58:53 +00:00
init Add: 2000-01-26 05:58:53 +00:00
mb Fix pg_euccn_mblen() so that it always returns 2 if data is not ascii. 2000-01-25 02:12:27 +00:00
misc Add: 2000-01-26 05:58:53 +00:00
mmgr Fix problems seen in parallel regress tests when SI buffer overruns (causing 2000-01-31 04:35:57 +00:00
sort Add: 2000-01-26 05:58:53 +00:00
time Add: 2000-01-26 05:58:53 +00:00
Gen_fmgrtab.sh.in Remove outdated comment about 8 arguments. 2000-01-11 01:42:08 +00:00
Makefile New LDOUT makefile variable for QNX os. 1999-12-13 22:35:27 +00:00