pgsql: Don't run RelationInitTableAccessMethod in a long-lived context.

2021-03-18 Thread Tom Lane
Don't run RelationInitTableAccessMethod in a long-lived context. Some code paths in this function perform syscache lookups, which can lead to table accesses and possibly leakage of cruft into the caller's context. If said context is CacheMemoryContext, we eventually will have visible bloat. But

pgsql: Don't run RelationInitTableAccessMethod in a long-lived context.

2021-03-18 Thread Tom Lane
Don't run RelationInitTableAccessMethod in a long-lived context. Some code paths in this function perform syscache lookups, which can lead to table accesses and possibly leakage of cruft into the caller's context. If said context is CacheMemoryContext, we eventually will have visible bloat. But

pgsql: Don't run RelationInitTableAccessMethod in a long-lived context.

2021-03-18 Thread Tom Lane
Don't run RelationInitTableAccessMethod in a long-lived context. Some code paths in this function perform syscache lookups, which can lead to table accesses and possibly leakage of cruft into the caller's context. If said context is CacheMemoryContext, we eventually will have visible bloat. But