postgresql/src/include
Teodor Sigaev 8224de4f42 Indexes with INCLUDE columns and their support in B-tree
This patch introduces INCLUDE clause to index definition.  This clause
specifies a list of columns which will be included as a non-key part in
the index.  The INCLUDE columns exist solely to allow more queries to
benefit from index-only scans.  Also, such columns don't need to have
appropriate operator classes.  Expressions are not supported as INCLUDE
columns since they cannot be used in index-only scans.

Index access methods supporting INCLUDE are indicated by amcaninclude flag
in IndexAmRoutine.  For now, only B-tree indexes support INCLUDE clause.

In B-tree indexes INCLUDE columns are truncated from pivot index tuples
(tuples located in non-leaf pages and high keys).  Therefore, B-tree indexes
now might have variable number of attributes.  This patch also provides
generic facility to support that: pivot tuples contain number of their
attributes in t_tid.ip_posid.  Free 13th bit of t_info is used for indicating
that.  This facility will simplify further support of index suffix truncation.
The changes of above are backward-compatible, pg_upgrade doesn't need special
handling of B-tree indexes for that.

Bump catalog version

Author: Anastasia Lubennikova with contribition by Alexander Korotkov and me
Reviewed by: Peter Geoghegan, Tomas Vondra, Antonin Houska, Jeff Janes,
			 David Rowley, Alexander Korotkov
Discussion: https://www.postgresql.org/message-id/flat/56168952.4010101@postgrespro.ru
2018-04-07 23:00:39 +03:00
..
access Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
bootstrap Update copyright for 2018 2018-01-02 23:30:12 -05:00
catalog Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
commands Logical decoding of TRUNCATE 2018-04-07 11:34:10 -04:00
common restrict -> pg_restrict 2018-03-15 10:02:59 -03:00
datatype Update copyright for 2018 2018-01-02 23:30:12 -05:00
executor Allow insert and update tuple routing and COPY for foreign tables. 2018-04-06 19:22:03 -04:00
fe_utils Add \if support to pgbench 2018-03-22 17:42:03 +03:00
foreign Allow insert and update tuple routing and COPY for foreign tables. 2018-04-06 19:22:03 -04:00
jit Fix a boatload of typos in C comments. 2018-04-01 15:01:28 -04:00
lib Fix a boatload of typos in C comments. 2018-04-01 15:01:28 -04:00
libpq Make be-secure-common.c more consistent for future SSL implementations 2018-04-02 11:37:40 -04:00
mb Fix a boatload of typos in C comments. 2018-04-01 15:01:28 -04:00
nodes Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
optimizer Faster partition pruning 2018-04-06 16:44:05 -03:00
parser Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
partitioning Faster partition pruning 2018-04-06 16:44:05 -03:00
port Fix and improve pg_atomic_flag fallback implementation. 2018-04-06 19:55:32 -07:00
portability Update copyright for 2018 2018-01-02 23:30:12 -05:00
postmaster Allow on-line enabling and disabling of data checksums 2018-04-05 22:04:48 +02:00
regex Update copyright for 2018 2018-01-02 23:30:12 -05:00
replication Logical replication support for TRUNCATE 2018-04-07 11:34:11 -04:00
rewrite MERGE SQL Command following SQL:2016 2018-04-03 09:28:16 +01:00
snowball Update copyright for 2018 2018-01-02 23:30:12 -05:00
statistics Update copyright for 2018 2018-01-02 23:30:12 -05:00
storage Allow on-line enabling and disabling of data checksums 2018-04-05 22:04:48 +02:00
tcop PL/pgSQL: Nested CALL with transactions 2018-03-28 13:31:27 -04:00
tsearch Add websearch_to_tsquery 2018-04-05 19:55:11 +03:00
utils Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
.gitignore Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
Makefile Add statistics subdirectory to Makefile. 2017-06-08 11:29:50 -04:00
c.h Fix interaction of Perl and stdbool.h 2018-03-23 10:31:10 -04:00
fmgr.h Add expression compilation support to LLVM JIT provider. 2018-03-22 14:45:59 -07:00
funcapi.h Support INOUT arguments in procedures 2018-03-14 12:07:28 -04:00
getaddrinfo.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
getopt_long.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
miscadmin.h Allow background workers to bypass datallowconn 2018-04-05 19:02:45 +02:00
pg_config.h.in Use ARMv8 CRC instructions where available. 2018-04-04 12:22:45 +03:00
pg_config.h.win32 Also fix the descriptions in pg_config.h.win32. 2018-04-04 11:33:39 +03: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 Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_getopt.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_trace.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pgstat.h Allow on-line enabling and disabling of data checksums 2018-04-05 22:04:48 +02:00
pgtar.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pgtime.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
port.h Fix a boatload of typos in C comments. 2018-04-01 15:01:28 -04:00
postgres.h Move the extern declaration for ExceptionalCondition into c.h. 2018-02-14 19:43:33 -05:00
postgres_ext.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
postgres_fe.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
rusagestub.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
windowapi.h Update copyright for 2018 2018-01-02 23:30:12 -05:00