diff options
author | Andrew Gierth <rhodiumtoad@postgresql.org> | 2018-04-08 06:02:05 +0100 |
---|---|---|
committer | Andrew Gierth <rhodiumtoad@postgresql.org> | 2018-04-08 06:02:05 +0100 |
commit | 49b0e300f7dd56b092c0046ee29dc2b15beea9a8 (patch) | |
tree | 40121d0919fa5d199b1f4714f02fdca19f99c592 /src/include/access/amapi.h | |
parent | d234602c28e8e1baea342602dbb404cee9fde47e (diff) | |
download | postgresql-49b0e300f7dd56b092c0046ee29dc2b15beea9a8.tar.gz postgresql-49b0e300f7dd56b092c0046ee29dc2b15beea9a8.zip |
Support index INCLUDE in the AM properties interface.
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.
Diffstat (limited to 'src/include/access/amapi.h')
-rw-r--r-- | src/include/access/amapi.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/access/amapi.h b/src/include/access/amapi.h index d16fa6823b6..14526a6bb2c 100644 --- a/src/include/access/amapi.h +++ b/src/include/access/amapi.h @@ -50,7 +50,8 @@ typedef enum IndexAMProperty AMPROP_CAN_ORDER, /* AM properties */ AMPROP_CAN_UNIQUE, AMPROP_CAN_MULTI_COL, - AMPROP_CAN_EXCLUDE + AMPROP_CAN_EXCLUDE, + AMPROP_CAN_INCLUDE } IndexAMProperty; @@ -196,6 +197,12 @@ typedef struct IndexAmRoutine /* type of data stored in index, or InvalidOid if variable */ Oid amkeytype; + /* + * If you add new properties to either the above or the below lists, then + * they should also (usually) be exposed via the property API (see + * IndexAMProperty at the top of the file, and utils/adt/amutils.c). + */ + /* interface functions */ ambuild_function ambuild; ambuildempty_function ambuildempty; |