postgresql/src/backend
Alvaro Herrera 7e534adcdc Fix BRIN cost estimation
The original code was overly optimistic about the cost of scanning a
BRIN index, leading to BRIN indexes being selected when they'd be a
worse choice than some other index.  This complete rewrite should be
more accurate.

Author: David Rowley, based on an earlier patch by Emre Hasegeli
Reviewed-by: Emre Hasegeli
Discussion: https://postgr.es/m/CAKJS1f9n-Wapop5Xz1dtGdpdqmzeGqQK4sV2MK-zZugfC14Xtw@mail.gmail.com
2017-04-06 17:51:53 -03:00
..
access Fix BRIN cost estimation 2017-04-06 17:51:53 -03:00
bootstrap Cast result of copyObject() to correct type 2017-03-28 21:59:23 -04:00
catalog Mark immutable functions in information schema as parallel safe 2017-04-06 14:30:13 -04:00
commands Fix compiler warning and add some more comments 2017-04-06 11:18:13 -04:00
executor Identity columns 2017-04-06 08:41:37 -04:00
foreign Abstract logic to allow for multiple kinds of child rels. 2017-04-03 22:41:31 -04:00
lib Support hashed aggregation with grouping sets. 2017-03-27 04:20:54 +01:00
libpq Remove bogus SCRAM_ITERATION_LEN constant. 2017-04-06 17:41:48 +03:00
main Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nodes Identity columns 2017-04-06 08:41:37 -04:00
optimizer Comment fixes for extended statistics 2017-04-06 12:28:50 -03:00
parser Identity columns 2017-04-06 08:41:37 -04:00
po Translation updates 2016-08-08 11:08:00 -04:00
port Fix WaitEventSetWait() to handle write-ready waits properly on Windows. 2017-03-17 14:58:06 -04:00
postmaster BRIN auto-summarization 2017-04-01 14:00:53 -03:00
regex ICU support 2017-03-23 15:28:48 -04:00
replication Fix logical replication between different encodings 2017-04-06 14:41:09 -04:00
rewrite Identity columns 2017-04-06 08:41:37 -04:00
snowball Add ICU_FLAGS to one more place 2017-03-23 16:53:10 -04:00
statistics Comment fixes for extended statistics 2017-04-06 12:28:50 -03:00
storage Update comment. 2017-04-03 23:07:31 -04:00
tcop Remove dead code and fix comments in fast-path function handling. 2017-04-06 09:09:39 +03:00
tsearch Full Text Search support for json and jsonb 2017-03-31 14:26:03 -04:00
utils Fix BRIN cost estimation 2017-04-06 17:51:53 -03:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
common.mk ICU support 2017-03-23 15:28:48 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00