pgsql: Avoid leaking memory during large-scale REASSIGN OWNED BY operat

2021-12-01 Thread Tom Lane
Avoid leaking memory during large-scale REASSIGN OWNED BY operations. The various ALTER OWNER routines tend to leak memory in CurrentMemoryContext. That's not a problem when they're only called once per command; but in this usage where we might be touching many objects, it can amount to a serious

pgsql: Avoid leaking memory during large-scale REASSIGN OWNED BY operat

2021-12-01 Thread Tom Lane
Avoid leaking memory during large-scale REASSIGN OWNED BY operations. The various ALTER OWNER routines tend to leak memory in CurrentMemoryContext. That's not a problem when they're only called once per command; but in this usage where we might be touching many objects, it can amount to a serious

pgsql: Avoid leaking memory during large-scale REASSIGN OWNED BY operat

2021-12-01 Thread Tom Lane
Avoid leaking memory during large-scale REASSIGN OWNED BY operations. The various ALTER OWNER routines tend to leak memory in CurrentMemoryContext. That's not a problem when they're only called once per command; but in this usage where we might be touching many objects, it can amount to a serious

pgsql: Avoid leaking memory during large-scale REASSIGN OWNED BY operat

2021-12-01 Thread Tom Lane
Avoid leaking memory during large-scale REASSIGN OWNED BY operations. The various ALTER OWNER routines tend to leak memory in CurrentMemoryContext. That's not a problem when they're only called once per command; but in this usage where we might be touching many objects, it can amount to a serious

pgsql: Avoid leaking memory during large-scale REASSIGN OWNED BY operat

2021-12-01 Thread Tom Lane
Avoid leaking memory during large-scale REASSIGN OWNED BY operations. The various ALTER OWNER routines tend to leak memory in CurrentMemoryContext. That's not a problem when they're only called once per command; but in this usage where we might be touching many objects, it can amount to a serious

pgsql: Avoid leaking memory during large-scale REASSIGN OWNED BY operat

2021-12-01 Thread Tom Lane
Avoid leaking memory during large-scale REASSIGN OWNED BY operations. The various ALTER OWNER routines tend to leak memory in CurrentMemoryContext. That's not a problem when they're only called once per command; but in this usage where we might be touching many objects, it can amount to a serious