You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tom Lane
0e5e167aae
Collect and use element-frequency statistics for arrays.
...
This patch improves selectivity estimation for the array <@, &&, and @>
(containment and overlaps) operators. It enables collection of statistics
about individual array element values by ANALYZE, and introduces
operator-specific estimators that use these stats. In addition,
ScalarArrayOpExpr constructs of the forms "const = ANY/ALL (array_column)"
and "const <> ANY/ALL (array_column)" are estimated by treating them as
variants of the containment operators.
Since we still collect scalar-style stats about the array values as a
whole, the pg_stats view is expanded to show both these stats and the
array-style stats in separate columns. This creates an incompatible change
in how stats for tsvector columns are displayed in pg_stats: the stats
about lexemes are now displayed in the array-related columns instead of the
original scalar-related columns.
There are a few loose ends here, notably that it'd be nice to be able to
suppress either the scalar-style stats or the array-element stats for
columns for which they're not useful. But the patch is in good enough
shape to commit for wider testing.
Alexander Korotkov, reviewed by Noah Misch and Nathan Boley
14 years ago
..
Makefile
Collect and use element-frequency statistics for arrays.
14 years ago
acl.c
Show default privileges in information schema
14 years ago
array_selfuncs.c
Collect and use element-frequency statistics for arrays.
14 years ago
array_typanalyze.c
Collect and use element-frequency statistics for arrays.
14 years ago
array_userfuncs.c
Update copyright notices for year 2012.
14 years ago
arrayfuncs.c
Update copyright notices for year 2012.
14 years ago
arrayutils.c
Update copyright notices for year 2012.
14 years ago
ascii.c
Update copyright notices for year 2012.
14 years ago
bool.c
Update copyright notices for year 2012.
14 years ago
cash.c
Support more locale-specific formatting options in cash_out().
14 years ago
char.c
Update copyright notices for year 2012.
14 years ago
date.c
Add transform functions for various temporal typmod coercisions.
14 years ago
datetime.c
Add transform functions for various temporal typmod coercisions.
14 years ago
datum.c
Update copyright notices for year 2012.
14 years ago
dbsize.c
Make pg_relation_size() and friends return NULL if the object doesn't exist.
14 years ago
domains.c
Update copyright notices for year 2012.
14 years ago
encode.c
Update copyright notices for year 2012.
14 years ago
enum.c
Update copyright notices for year 2012.
14 years ago
float.c
Add some enumeration commas, for consistency
14 years ago
format_type.c
Update copyright notices for year 2012.
14 years ago
formatting.c
Update copyright notices for year 2012.
14 years ago
genfile.c
Update copyright notices for year 2012.
14 years ago
geo_ops.c
Update copyright notices for year 2012.
14 years ago
geo_selfuncs.c
Update copyright notices for year 2012.
14 years ago
inet_cidr_ntop.c
When reporting the server as not responding, if the hostname was
15 years ago
inet_net_pton.c
Add C comment about needed include.
15 years ago
int.c
Update copyright notices for year 2012.
14 years ago
int8.c
Update copyright notices for year 2012.
14 years ago
json.c
Correctly handle NULLs in JSON output.
14 years ago
like.c
Update copyright notices for year 2012.
14 years ago
like_match.c
Update copyright notices for year 2012.
14 years ago
lockfuncs.c
Update copyright notices for year 2012.
14 years ago
mac.c
Add bitwise AND, OR, and NOT operators for macaddr data type.
14 years ago
misc.c
Add COLLATION FOR expression
14 years ago
nabstime.c
Update copyright notices for year 2012.
14 years ago
name.c
Update copyright notices for year 2012.
14 years ago
network.c
Revert the behavior of inet/cidr functions to not unpack the arguments.
14 years ago
numeric.c
Add some enumeration commas, for consistency
14 years ago
numutils.c
Update copyright notices for year 2012.
14 years ago
oid.c
Update copyright notices for year 2012.
14 years ago
oracle_compat.c
Update copyright notices for year 2012.
14 years ago
pg_locale.c
Update copyright notices for year 2012.
14 years ago
pg_lzcompress.c
Update copyright notices for year 2012.
14 years ago
pgstatfuncs.c
Add deadlock counter to pg_stat_database
14 years ago
pseudotypes.c
Update copyright notices for year 2012.
14 years ago
quote.c
Update copyright notices for year 2012.
14 years ago
rangetypes.c
Update copyright notices for year 2012.
14 years ago
rangetypes_gist.c
Update copyright notices for year 2012.
14 years ago
regexp.c
Update copyright notices for year 2012.
14 years ago
regproc.c
Update copyright notices for year 2012.
14 years ago
ri_triggers.c
ALTER TABLE: skip FK validation when it's safe to do so
14 years ago
rowtypes.c
Update copyright notices for year 2012.
14 years ago
ruleutils.c
Improve pretty printing of viewdefs.
14 years ago
selfuncs.c
Collect and use element-frequency statistics for arrays.
14 years ago
tid.c
Update copyright notices for year 2012.
14 years ago
timestamp.c
Add a comment to AdjustIntervalForTypmod to reduce chance of future bugs.
14 years ago
trigfuncs.c
Update copyright notices for year 2012.
14 years ago
tsginidx.c
Update copyright notices for year 2012.
14 years ago
tsgistidx.c
Update copyright notices for year 2012.
14 years ago
tsquery.c
Update copyright notices for year 2012.
14 years ago
tsquery_cleanup.c
Update copyright notices for year 2012.
14 years ago
tsquery_gist.c
Update copyright notices for year 2012.
14 years ago
tsquery_op.c
Update copyright notices for year 2012.
14 years ago
tsquery_rewrite.c
Update copyright notices for year 2012.
14 years ago
tsquery_util.c
Add const qualifiers where they are accidentally cast away
14 years ago
tsrank.c
Update copyright notices for year 2012.
14 years ago
tsvector.c
Update copyright notices for year 2012.
14 years ago
tsvector_op.c
Update copyright notices for year 2012.
14 years ago
tsvector_parser.c
Update copyright notices for year 2012.
14 years ago
txid.c
Update copyright notices for year 2012.
14 years ago
uuid.c
Update copyright notices for year 2012.
14 years ago
varbit.c
Add a transform function for varbit typmod coercisions.
14 years ago
varchar.c
Update copyright notices for year 2012.
14 years ago
varlena.c
Update copyright notices for year 2012.
14 years ago
version.c
Update copyright notices for year 2012.
14 years ago
windowfuncs.c
Update copyright notices for year 2012.
14 years ago
xid.c
Update copyright notices for year 2012.
14 years ago
xml.c
Add const qualifiers where they are accidentally cast away
14 years ago