diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-06-30 07:04:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-06-30 07:04:23 +0000 |
commit | b41f4ab8c448fc1bb13b52d00c9c4f1868d97941 (patch) | |
tree | 5e832a1210f93033aeab63a572dc81229ad4aa7c /src/backend/utils/adt/formatting.c | |
parent | c9ec78a6b89e846c5b1be0aa40b6532ca209c850 (diff) | |
download | postgresql-b41f4ab8c448fc1bb13b52d00c9c4f1868d97941.tar.gz postgresql-b41f4ab8c448fc1bb13b52d00c9c4f1868d97941.zip |
Use a private memory context to store rule information in each relcache
entry that has rules. This allows us to release the rule parsetrees
on relcache flush without needing a working freeObject() routine.
Formerly, the rule trees were leaked permanently at relcache flush.
Also, clean up handling of rule creation and deletion --- there was
not sufficient locking of the relation being modified, and there was
no reliable notification of other backends that a relcache reload
was needed. Also, clean up relcache.c code so that scans of system
tables needed to load a relcache entry are done in the caller's
memory context, not in CacheMemoryContext. This prevents any
un-pfreed memory from those scans from becoming a permanent memory
leak.
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
0 files changed, 0 insertions, 0 deletions