summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2012-08-27 15:48:46 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2012-08-27 15:58:46 +0300
commit918eee0c497c88260a2e107318843c9b1947bc6f (patch)
treef2330fee96a1790dfd5070f0972998f271c078d4 /src/backend/access/gist/gistxlog.c
parent6bb0b08fe65de32c5d43c0f7c76bd34801ce5056 (diff)
downloadpostgresql-918eee0c497c88260a2e107318843c9b1947bc6f.tar.gz
Collect and use histograms of lower and upper bounds for range types.
This enables selectivity estimation of the <<, >>, &<, &> and && operators, as well as the normal inequality operators: <, <=, >=, >. "range @> element" is also supported, but the range-variant @> and <@ operators are not, because they cannot be sensibly estimated with lower and upper bound histograms alone. We would need to make some assumption about the lengths of the ranges for that. Alexander's patch included a separate histogram of lengths for that, but I left that out of the patch for simplicity. Hopefully that will be added as a followup patch. The fraction of empty ranges is also calculated and used in estimation. Alexander Korotkov, heavily modified by me.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions