postgresql/src/include
Robert Haas 51ee6f3160 Replace min_parallel_relation_size with two new GUCs.
When min_parallel_relation_size was added, the only supported type
of parallel scan was a parallel sequential scan, but there are
pending patches for parallel index scan, parallel index-only scan,
and parallel bitmap heap scan.  Those patches introduce two new
types of complications: first, what's relevant is not really the
total size of the relation but the portion of it that we will scan;
and second, index pages and heap pages shouldn't necessarily be
treated in exactly the same way.  Typically, the number of index
pages will be quite small, but that doesn't necessarily mean that
a parallel index scan can't pay off.

Therefore, we introduce min_parallel_table_scan_size, which works
out a degree of parallelism for scans based on the number of table
pages that will be scanned (and which is therefore equivalent to
min_parallel_relation_size for parallel sequential scans) and also
min_parallel_index_scan_size which can be used to work out a degree
of parallelism based on the number of index pages that will be
scanned.

Amit Kapila and Robert Haas

Discussion: http://postgr.es/m/CAA4eK1KowGSYYVpd2qPpaPPA5R90r++QwDFbrRECTE9H_HvpOg@mail.gmail.com
Discussion: http://postgr.es/m/CAA4eK1+TnM4pXQbvn7OXqam+k_HZqb0ROZUMxOiL6DWJYCyYow@mail.gmail.com
2017-02-15 13:37:24 -05:00
..
access btree: Support parallel index scans. 2017-02-15 07:41:14 -05:00
bootstrap Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
catalog Fix wrong articles in pg_proc descriptions. 2017-02-15 12:13:38 -05:00
commands Add CREATE COLLATION IF NOT EXISTS clause 2017-02-15 10:01:28 -05:00
common Replace isMD5() with a more future-proof way to check if pw is encrypted. 2017-02-01 13:11:37 +02:00
datatype Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
executor Logical replication 2017-01-20 09:04:49 -05:00
fe_utils Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
foreign Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
lib simplehash: Additional tweaks to make specifying an allocator work. 2017-02-09 14:59:57 -05:00
libpq Replace isMD5() with a more future-proof way to check if pw is encrypted. 2017-02-01 13:11:37 +02:00
mb Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nodes Add CREATE COLLATION IF NOT EXISTS clause 2017-02-15 10:01:28 -05:00
optimizer Replace min_parallel_relation_size with two new GUCs. 2017-02-15 13:37:24 -05:00
parser Remove vestigial resolveUnknown arguments from transformSortClause etc. 2017-01-25 09:35:00 -05:00
port Prefer int-wide pg_atomic_flag over char-wide when using gcc intrinsics. 2017-01-04 13:36:55 -05:00
portability Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
postmaster Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
regex Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
replication Update copyright years in some recently added files 2017-01-25 12:32:05 -05:00
rewrite Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
snowball Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
storage Rename user-facing tools with "xlog" in the name to say "wal". 2017-02-09 16:23:46 -05:00
tcop Add a new DestReceiver for printing tuples without catalog access. 2017-01-24 16:53:56 -05:00
tsearch Fix typos in comments. 2017-02-06 11:33:58 +02:00
utils Handle ALTER EXTENSION ADD/DROP with pg_init_privs 2017-01-29 23:05:07 -05:00
.gitignore Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
c.h Fix typos in comments. 2017-02-06 11:33:58 +02:00
fmgr.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
funcapi.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
getaddrinfo.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
getopt_long.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Makefile Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
miscadmin.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pg_config.h.in Use clock_gettime(), if available, in instr_time measurements. 2017-01-02 13:41:51 -05:00
pg_config.h.win32 Use clock_gettime(), if available, in instr_time measurements. 2017-01-02 13:41:51 -05:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.win32 Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_manual.h Fix default minimum value for descending sequences 2017-01-23 14:00:58 -05:00
pg_getopt.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pg_trace.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pgstat.h btree: Support parallel index scans. 2017-02-15 07:41:14 -05:00
pgtar.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pgtime.h Fix incorrect comment: pgtime's tm_mon is 1-based, not 0-based. 2017-01-24 09:36:17 -05:00
port.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
postgres.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
postgres_ext.h Add a nonlocalized version of the severity field to client error messages. 2016-08-26 16:20:17 -04:00
postgres_fe.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
rusagestub.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
windowapi.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00