多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
       reindexdb是用于重建一个PostgreSQL数据库中索引的工具,是对`reindex`命令的封装。 **命令格式:** * reindexdb [connection-option...] [option...] [ --schema | -S schema ] ... [ --table | -t table ] ... [ --index | -i index ] ... [dbname] * reindexdb [connection-option...] [option...] --all | -a * reindexdb [connection-option...] [option...] --system | -s [dbname] > **option:** > * **-a, --all**:重建所有数据库的索引 --concurrently :该参数与`reindex`命令的concurrently参数一致 > * **-d, --dbname=DBNAME**:当`-a`/`--all`未使用时,指定要重新索引的数据库的名称。 如果未指定,则从环境变量`PGDATABASE`中读取数据库名称。 如果未设置,则使用为连接指定的用户名 > * **-e, --echo** :显示发送到服务器的命令 > * **-i, --index=INDEX** :仅重新创建特定索引,可以通过写多个`-i`开关来重建多个索引 > * **-j, --jobs=NUM** :使用指定数量的并发连接来重建索引,此选项与`--index`和`--system`选项不兼容 > * **-q, --quiet**:不显示进度信息 > * **-s, --system**:索引数据库的系统目录。 > * **-S, --schema=SCHEMA**:只对*`schema`*重建索引。 通过写多个`-S`开关可以指定多个要重建索引的模式 > * **-t, --table=TABLE**:只重建指定表的索引,可以通过写多个`-t`参数来重建多个表 > * **-v, --verbose** :在处理时打印详细信息 > * **-V, --version**:打印reindexdb版本并退出 > * **-?, --help** :显示有关reindexdb命令行参数的帮助并退出 > >**Connection options:** > * **-h, --host=HOSTNAME** :指定运行服务器的机器的主机名 > * **-p, --port=PORT** :指定端口 > * **-U, --username=USERNAME**:指定用户 > * **-w, --no-password**:不提示输入密码 > * **-W, --password**:强制密码提示 > * **--maintenance-db=DBNAME**:当使用`-a`/`--all`时,指定要连接到的数据库名称以发现应重新索引哪些数据库 | 命令实例 | 解析 | | --- | --- | | reindexdb --table foo --index bar abcd | 重索引名为abcd的数据库中的表foo和索引bar |