diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2020-01-13 01:20:57 +0100 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2020-01-13 01:21:06 +0100 |
commit | aaa6761876ba5b06a5c3fa914b2951ace1e31dee (patch) | |
tree | 9e2cabceec793ae6e8091054d972cf2866f5b8aa /src/backend/access/gist/gistvacuum.c | |
parent | 652686a334b437f57f9bd0e3baa5dbd245a9e15d (diff) | |
download | postgresql-aaa6761876ba5b06a5c3fa914b2951ace1e31dee.tar.gz postgresql-aaa6761876ba5b06a5c3fa914b2951ace1e31dee.zip |
Apply all available functional dependencies
When considering functional dependencies during selectivity estimation,
it's not necessary to bother with selecting the best extended statistic
object and then use just dependencies from it. We can simply consider
all applicable functional dependencies at once.
This means we need to deserialie all (applicable) dependencies before
applying them to the clauses. This is a bit more expensive than picking
the best statistics and deserializing dependencies for it. To minimize
the additional cost, we ignore statistics that are not applicable.
Author: Tomas Vondra
Reviewed-by: Mark Dilger
Discussion: https://postgr.es/m/20191028152048.jc6pqv5hb7j77ocp@development
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions