aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2021-09-21 01:13:11 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2021-09-23 18:25:37 +0200
commitabb2f9144ba1b7ac806f3779f53ae2f6174cd2d9 (patch)
treedfc4a0b23a8e84e98b024888fd9f6eedd3d26030 /src/backend/access/gist
parentbb7628e55eda6f450f0f824d11c9a34b11f6bb12 (diff)
downloadpostgresql-abb2f9144ba1b7ac806f3779f53ae2f6174cd2d9.tar.gz
postgresql-abb2f9144ba1b7ac806f3779f53ae2f6174cd2d9.zip
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 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions