postgresql/src/test/regress/expected
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
2012-03-03 20:20:57 -05:00
..
.gitignore Add a SECURITY LABEL command. 2010-09-27 20:55:27 -04:00
abstime.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
advisory_lock.out Add transaction-level advisory locks. 2011-02-18 14:05:12 +09:00
aggregates.out Add bytea_agg, parallel to string_agg. 2011-12-23 08:40:25 -05:00
alter_table.out Be more clear when a new column name collides with a system column name. 2012-01-26 12:44:30 -05:00
arrays.out Collect and use element-frequency statistics for arrays. 2012-03-03 20:20:57 -05:00
bit.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
bitmapops.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
boolean.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
box.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
btree_index.out
case.out
char_1.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
char_2.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
char.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
circle.out
cluster.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
collate.linux.utf8.out Update expected/collate.linux.utf8.out for recent plpgsql changes. 2012-02-18 18:08:02 -05:00
collate.out Add COLLATION FOR expression 2012-03-02 21:12:16 +02:00
combocid.out
comments.out
conversion.out Support hex-string input and output for type BYTEA. 2009-08-04 16:08:37 +00:00
copy2.out Add ENCODING option to COPY TO/FROM and file_fdw. 2011-02-21 14:32:40 +09:00
copyselect.out Have \copy go through SendQuery 2012-01-25 18:22:00 -03:00
create_aggregate.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
create_cast.out Improve psql's tabular display of wrapped-around data by inserting markers 2009-11-22 05:20:41 +00:00
create_function_3.out More regression tests for LEAKPROOF/NOT LEAKPROOF stuff. 2012-02-15 10:56:26 -05:00
create_index.out Tweak duplicate-index-column regression test to avoid locale sensitivity. 2012-01-12 14:18:08 -05:00
create_misc.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
create_operator.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
create_table_like.out Allow CREATE TABLE (LIKE ...) from composite type 2012-03-03 16:03:05 +02:00
create_table.out Fix another bit of unlogged-table-induced breakage. 2011-09-21 10:48:31 -04:00
create_type.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
create_view.out Add a security_barrier option for views. 2011-12-22 16:16:31 -05:00
date.out
delete.out Regression tests for TOAST. 2011-04-25 09:48:10 -04:00
dependency.out Improve wording for privilege description on certain failure messages; the 2010-08-26 19:49:08 +00:00
domain.out Code review for plpgsql fn_signature patch. 2012-02-01 02:14:37 -05:00
drop_if_exists.out Fix DROP OPERATOR FAMILY IF EXISTS. 2011-10-21 09:12:23 -04:00
enum.out Require VALUE keyword when extending an enum type. Based on a patch from Alvaro Herrera. 2010-11-16 22:18:33 -05:00
errors.out Be more clear when a new column name collides with a system column name. 2012-01-26 12:44:30 -05:00
euc_cn.out
euc_jp.out
euc_kr.out
euc_tw.out
float4-exp-three-digits.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
float4.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
float8-exp-three-digits-win32.out Revert "Add some regression test cases for denormalized float8 input." 2012-02-04 15:52:09 -05:00
float8-small-is-zero_1.out Revert "Add some regression test cases for denormalized float8 input." 2012-02-04 15:52:09 -05:00
float8-small-is-zero.out Revert "Add some regression test cases for denormalized float8 input." 2012-02-04 15:52:09 -05:00
float8.out Revert "Add some regression test cases for denormalized float8 input." 2012-02-04 15:52:09 -05:00
foreign_data.out Show default privileges in information schema 2012-01-27 21:58:51 +02:00
foreign_key.out Change FK trigger creation order to better support self-referential FKs. 2011-10-26 13:02:28 -04:00
functional_deps.out Recognize functional dependency on primary keys. This allows a table's 2010-08-07 02:44:09 +00:00
geometry_1.out Rewrite the planner's handling of materialized plan types so that there is 2009-09-12 22:12:09 +00:00
geometry_2.out Rewrite the planner's handling of materialized plan types so that there is 2009-09-12 22:12:09 +00:00
geometry.out Rewrite the planner's handling of materialized plan types so that there is 2009-09-12 22:12:09 +00:00
guc.out Code review for plpgsql fn_signature patch. 2012-02-01 02:14:37 -05:00
hash_index.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
horology.out On second thought, we'd better just drop these tests altogether. 2011-11-06 20:12:20 -05:00
hs_standby_allowed.out Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_check.out Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_disallowed.out Update standbycheck test output with new ERROR message changes. No changes 2010-05-02 12:28:43 +00:00
hs_standby_functions.out Update standbycheck test output with new ERROR message changes. No changes 2010-05-02 12:28:43 +00:00
inet.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
inherit.out Add ORDER BY to a query to prevent occasional regression test failures. 2012-02-10 02:33:00 -05:00
insert.out When a row fails a not-null constraint, show row's contents in errdetail. 2011-11-29 18:29:18 -05:00
int2.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
int4.out Attempt to fix breakage caused by signed integer conversion patch. 2010-11-20 01:09:26 -05:00
int8-exp-three-digits.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
int8.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
interval.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
join.out Fix handling of PlaceHolderVars in nestloop parameter management. 2011-11-03 00:50:58 -04:00
json.out Fix a couple of cases of JSON output. 2012-02-20 15:01:03 -05:00
limit.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
lseg.out
macaddr.out Add bitwise AND, OR, and NOT operators for macaddr data type. 2012-01-19 15:25:14 -05:00
money.out Add casts from int4 and int8 to numeric. 2011-04-05 09:35:43 -04:00
mule_internal.out
name.out
namespace.out
numeric_big.out
numeric.out Add some enumeration commas, for consistency 2012-02-24 11:04:45 +02:00
numerology_1.out
numerology.out
oid.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
oidjoins.out Update oidjoins regression test to match git HEAD. 2011-11-14 20:28:38 -05:00
opr_sanity.out Support min/max index optimizations on boolean columns. 2012-02-08 12:41:48 -05:00
path.out
plancache.out Code review for plpgsql fn_signature patch. 2012-02-01 02:14:37 -05:00
plpgsql.out Code review for plpgsql fn_signature patch. 2012-02-01 02:14:37 -05:00
point.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
polygon.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
polymorphism.out Improve pretty printing of viewdefs. 2012-02-19 11:43:46 -05:00
portals_p2.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
portals.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
prepare.out Improve psql's tabular display of wrapped-around data by inserting markers 2009-11-22 05:20:41 +00:00
prepared_xacts_1.out Fix a bug with SSI and prepared transactions: 2011-07-07 18:12:15 +03:00
prepared_xacts.out Adjust regression tests for error message change 2011-08-15 17:27:10 +03:00
privileges.out Add support for privileges on types 2011-12-20 00:05:19 +02:00
random.out
rangefuncs.out Support index-only scans using the visibility map to avoid heap fetches. 2011-10-07 20:14:13 -04:00
rangetypes.out Remove zero- and one-argument range constructor functions. 2011-11-22 20:45:05 -05:00
regex.out Fix the general case of quantified regex back-references. 2012-02-24 01:41:03 -05:00
reltime.out
returning.out
rowtypes.out Message style and spelling improvements 2011-06-22 00:45:34 +03:00
rules.out Collect and use element-frequency statistics for arrays. 2012-03-03 20:20:57 -05:00
sanity_check.out Rename the internal structures of the CREATE TABLE (LIKE ...) facility 2012-01-07 23:02:33 +02:00
select_distinct_on.out Fix assertion failure when a SELECT DISTINCT ON expression is volatile. 2009-09-12 00:04:59 +00:00
select_distinct.out Alter some gratuitous uses of "ANSI" when "SQL standard" might have been 2009-07-11 21:15:32 +00:00
select_having_1.out
select_having_2.out
select_having.out
select_implicit_1.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
select_implicit_2.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
select_implicit.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
select_into.out Make executor's SELECT INTO code save and restore original tuple receiver. 2012-01-04 18:30:55 -05:00
select_views_1.out Allow LEAKPROOF functions for better performance of security views. 2012-02-13 22:21:14 -05:00
select_views.out Allow LEAKPROOF functions for better performance of security views. 2012-02-13 22:21:14 -05:00
select.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
sequence_1.out When a row fails a not-null constraint, show row's contents in errdetail. 2011-11-29 18:29:18 -05:00
sequence.out ALTER <thing> [IF EXISTS] ... allows silent DDL if required, 2012-01-23 23:25:04 +00:00
sql_ascii.out
stats.out Prevent index-only scans in stats regression test. 2011-10-08 23:45:58 -04:00
strings.out Rewrite LIKE's %-followed-by-_ optimization so it really works (this time 2010-05-28 17:35:23 +00:00
subselect.out Improve generated column names for cases involving sub-SELECTs. 2011-10-01 14:01:46 -04:00
temp.out
text.out Message style improvements 2011-07-08 07:37:04 +03:00
time.out
timestamp.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
timestamptz.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
timetz.out
tinterval.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
transactions.out Run a portal's cleanup hook immediately when pushing it to FAILED state. 2012-02-15 16:19:01 -05:00
triggers.out Code review for plpgsql fn_signature patch. 2012-02-01 02:14:37 -05:00
truncate.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
tsdicts.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
tsearch.out Fix gincostestimate to handle ScalarArrayOpExpr reasonably. 2011-12-20 19:57:34 -05:00
tstypes.out
txid.out
type_sanity.out Collect and use element-frequency statistics for arrays. 2012-03-03 20:20:57 -05:00
typed_table.out Only allow typed tables to hang off composite types, not e.g. tables. 2011-04-18 10:19:46 -04:00
union.out Fix pushing of index-expression qualifications through UNION ALL. 2012-01-29 16:31:23 -05:00
update.out Regression tests for TOAST. 2011-04-25 09:48:10 -04:00
uuid.out Improve unique-constraint-violation error messages to include the exact 2009-08-01 19:59:41 +00:00
vacuum.out Remove old-style VACUUM FULL (which was known for a little while as 2010-02-08 04:33:55 +00:00
varchar_1.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
varchar_2.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
varchar.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
window.out Measure the number of all-visible pages for use in index-only scan costing. 2011-10-14 17:23:46 -04:00
with.out Improve pretty printing of viewdefs. 2012-02-19 11:43:46 -05:00
without_oid.out
xml_1.out Make xpath() do something useful with XPath expressions that return scalars. 2011-07-21 11:32:46 -04:00
xml.out Make xpath() do something useful with XPath expressions that return scalars. 2011-07-21 11:32:46 -04:00
xmlmap_1.out Regression test for XML mapping functionality 2009-07-02 07:03:18 +00:00
xmlmap.out Ooops, forgot to check the libxml cases for psql output wrapping change. 2009-11-22 06:01:09 +00:00