diff options
Diffstat (limited to 'src/include/catalog/pg_index.h')
-rw-r--r-- | src/include/catalog/pg_index.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/catalog/pg_index.h b/src/include/catalog/pg_index.h index 9f446a5547e..dc372b82e26 100644 --- a/src/include/catalog/pg_index.h +++ b/src/include/catalog/pg_index.h @@ -92,4 +92,12 @@ typedef FormData_pg_index *Form_pg_index; #define INDOPTION_DESC 0x0001 /* values are in reverse order */ #define INDOPTION_NULLS_FIRST 0x0002 /* NULLs are first instead of last */ +/* + * Use of these macros is recommended over direct examination of the state + * flag columns where possible; this allows source code compatibility with + * 9.2 and up. + */ +#define IndexIsValid(indexForm) ((indexForm)->indisvalid) +#define IndexIsReady(indexForm) ((indexForm)->indisready) + #endif /* PG_INDEX_H */ |