diff options
author | Fujii Masao <fujii@postgresql.org> | 2015-05-15 20:09:57 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2015-05-15 20:09:57 +0900 |
commit | ecd222e770d352121590363ffdf981147a43e976 (patch) | |
tree | 9fa6f9d3ad7002f5d8ced9948d49b72206bad713 /src/include/nodes/parsenodes.h | |
parent | 4b8f797f672bef07b4e87b4650b4035731b61d84 (diff) |
Support VERBOSE option in REINDEX command.
When this option is specified, a progress report is printed as each index
is reindexed.
Per discussion, we agreed on the following syntax for the extensibility of
the options.
REINDEX (flexible options) { INDEX | ... } name
Sawada Masahiko.
Reviewed by Robert Haas, FabrÃzio Mello, Alvaro Herrera, Kyotaro Horiguchi,
Jim Nasby and me.
Discussion: CAD21AoA0pK3YcOZAFzMae+2fcc3oGp5zoRggDyMNg5zoaWDhdQ@mail.gmail.com
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 556c1c5d9da..053f1b01213 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -2782,6 +2782,10 @@ typedef struct ConstraintsSetStmt * REINDEX Statement * ---------------------- */ + +/* Reindex options */ +#define REINDEXOPT_VERBOSE 1 << 0 /* print progress info */ + typedef enum ReindexObjectType { REINDEX_OBJECT_INDEX, /* index */ @@ -2797,6 +2801,7 @@ typedef struct ReindexStmt ReindexObjectType kind; /* REINDEX_OBJECT_INDEX, REINDEX_OBJECT_TABLE, etc. */ RangeVar *relation; /* Table or index to reindex */ const char *name; /* name of database to reindex */ + int options; /* Reindex options flags */ } ReindexStmt; /* ---------------------- |