summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTomas Vondra2021-09-20 23:13:11 +0000
committerTomas Vondra2021-09-23 16:48:58 +0000
commit4487a7def3ae6efa79c545c3edc03ea97f446e36 (patch)
treed8f114705a9fc9c5e8a0498105de2ef80a31ea95 /doc/src
parentac7290a20ec52fa95316e30191827594b60470d3 (diff)
Release memory allocated by dependency_degree
Calculating degree of a functional dependency may allocate a lot of memory - we have released mot of the explicitly allocated memory, but e.g. detoasted varlena values were left behind. That may be an issue, because we consider a lot of dependencies (all combinations), and the detoasting may happen for each one again. Fixed by calling dependency_degree() in a dedicated context, and resetting it after each call. We only need the calculated dependency degree, so we don't need to copy anything. Backpatch to PostgreSQL 10, where extended statistics were introduced. Backpatch-through: 10 Discussion: https://www.postgresql.org/message-id/20210915200928.GP831%40telsasoft.com
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions