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/catalog | |
| parent | 4b8f797f672bef07b4e87b4650b4035731b61d84 (diff) | |
| download | postgresql-ecd222e770d352121590363ffdf981147a43e976.tar.gz | |
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/catalog')
| -rw-r--r-- | src/include/catalog/index.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/catalog/index.h b/src/include/catalog/index.h index 06f38202a5..e961d37172 100644 --- a/src/include/catalog/index.h +++ b/src/include/catalog/index.h @@ -115,7 +115,7 @@ extern void validate_index(Oid heapId, Oid indexId, Snapshot snapshot); extern void index_set_state_flags(Oid indexId, IndexStateFlagsAction action); extern void reindex_index(Oid indexId, bool skip_constraint_checks, - char relpersistence); + char relpersistence, int options); /* Flag bits for reindex_relation(): */ #define REINDEX_REL_PROCESS_TOAST 0x01 @@ -124,7 +124,7 @@ extern void reindex_index(Oid indexId, bool skip_constraint_checks, #define REINDEX_REL_FORCE_INDEXES_UNLOGGED 0x08 #define REINDEX_REL_FORCE_INDEXES_PERMANENT 0x10 -extern bool reindex_relation(Oid relid, int flags); +extern bool reindex_relation(Oid relid, int flags, int options); extern bool ReindexIsProcessingHeap(Oid heapOid); extern bool ReindexIsProcessingIndex(Oid indexOid); |
