Support VERBOSE option in REINDEX command

Enterprise / PostgreSQL - Fujii Masao [postgresql.org] - 15 May 2015 06:09 UTC

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

ecd222e Support VERBOSE option in REINDEX command.
doc/src/sgml/ref/reindex.sgml | 11 +++++-
src/backend/catalog/index.c | 21 ++++++++--
src/backend/commands/cluster.c | 2 +-
src/backend/commands/indexcmds.c | 25 +++++++-----
src/backend/commands/tablecmds.c | 2 +-
src/backend/nodes/copyfuncs.c | 1 +
src/backend/nodes/equalfuncs.c | 1 +
src/backend/parser/gram.y | 57 ++++++++++++++++++----------
src/backend/tcop/utility.c | 6 +--
src/include/catalog/index.h | 4 +-
src/include/commands/defrem.h | 7 ++--
src/include/nodes/parsenodes.h | 5 +++
src/test/regress/expected/create_index.out | 8 ++++
src/test/regress/sql/create_index.sql | 8 ++++
14 files changed, 112 insertions(+), 46 deletions(-)

Upstream: git.postgresql.org


  • Share