Support index INCLUDE in the AM properties interface

Enterprise / PostgreSQL - Andrew Gierth [postgresql.org] - 8 April 2018 05:02 EDT

This rectifies an oversight in commit 8224de4f4, by adding a new property 'can_include' for pg_indexam_has_property, and adjusting the results of pg_index_column_has_property to give more appropriate results for INCLUDEd columns.

49b0e300f7 Support index INCLUDE in the AM properties interface.
doc/src/sgml/func.sgml | 6 ++
src/backend/utils/adt/amutils.c | 158 +++++++++++++++++++++++-----------
src/include/access/amapi.h | 9 +-
src/test/regress/expected/amutils.out | 57 ++++++++++--
src/test/regress/sql/amutils.sql | 17 +++-
5 files changed, 185 insertions(+), 62 deletions(-)

Upstream: git.postgresql.org


  • Share