Обсуждение: pgsql: reindexdb: Allow specifying objects to process in all databases.

Поиск
Список
Период
Сортировка

pgsql: reindexdb: Allow specifying objects to process in all databases.

От
Nathan Bossart
Дата:
reindexdb: Allow specifying objects to process in all databases.

Presently, reindexdb's --table, --schema, --index, and --system
options cannot be used together with --all, i.e., you cannot
specify objects to process in all databases.  This commit removes
this unnecessary restriction.  Furthermore, it removes the
restriction that --system cannot be used with --table, --schema,
and --index.  There is no such restriction for the latter options,
and there is no technical reason to disallow these combinations.

Reviewed-by: Kyotaro Horiguchi, Dean Rasheed
Discussion: https://postgr.es/m/20230628232402.GA1954626%40nathanxps13

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/24c928ad9ad801048684569d2b67463c3ec8fdb0

Modified Files
--------------
doc/src/sgml/ref/reindexdb.sgml        |  38 +++++------
src/bin/scripts/reindexdb.c            | 114 ++++++++++++++++++---------------
src/bin/scripts/t/090_reindexdb.pl     |  14 ++++
src/bin/scripts/t/091_reindexdb_all.pl |  20 ++++++
4 files changed, 110 insertions(+), 76 deletions(-)