Re: mem context is not reset between extended stats

Tomas Vondra <tomas.vondra@enterprisedb.com>

From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers@postgresql.org
Date: 2021-09-23T17:04:28Z
Lists: pgsql-hackers
Hi,

I've pushed both of these patches, with some minor tweaks (freeing the 
statistics list, and deleting the new context), and backpatched them all 
the way to 10.

Thanks for the report & patch, Justin!


regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Commits

  1. Release memory allocated by dependency_degree

  2. Free memory after building each statistics object