Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions CN/modules/ROOT/pages/9.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3788,13 +3788,23 @@ pg_controldata — 显示一个IvorySQL数据库集簇的控制信息

#### 大纲

`pg_controldata` [*`option`*] [[ `-D` | `--pgdata` ] *`datadir`*]
[source,shell]
----
pg_controldata DATADIR
pg_controldata -D DATADIR
pg_controldata --pgdata=DATADIR
pg_controldata
----

每次调用请选择一种目录写法。命令行指定的目录优先于 `PGDATA`。位置参数与 `-D` 或 `--pgdata` 同用会报参数错误,即使两处指定的是同一个目录。

命令行省略目录时,`pg_controldata` 会读取 `PGDATA`。如果未设置该环境变量,命令会报错,提示没有指定数据目录。

#### 环境

- `PGDATA`

默认的数据目录位置。
命令行省略目录时使用的默认集簇目录。

- `PG_COLOR`

Expand Down
14 changes: 12 additions & 2 deletions EN/modules/ROOT/pages/9.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3492,13 +3492,23 @@ pg_controldata — display control information of a IvorySQL database cluster

#### Synopsis

`pg_controldata` [*`option`*] [[ `-D` | `--pgdata` ] *`datadir`*]
[source,shell]
----
pg_controldata DATADIR
pg_controldata -D DATADIR
pg_controldata --pgdata=DATADIR
pg_controldata
----

Use one directory form per invocation. A command-line directory takes precedence over `PGDATA`. Combining a positional directory with `-D` or `--pgdata` causes an argument error, even if both refer to the same directory.

When the command line omits the directory, `pg_controldata` reads `PGDATA`. If the environment variable is unset, the command reports that no data directory was specified.

#### Environment

- `PGDATA`

Default data directory location
Default cluster directory when the command line omits it.

- `PG_COLOR`

Expand Down
Loading