バージョンごとのドキュメント一覧

pg_controldata

pg_controldata <refpurpose>display control information of a <productname>PostgreSQL</productname> database cluster</refpurpose> PostgreSQLデータベースクラスタの制御情報を表示する

概要

pg_controldata [option] [[ -D | --pgdata ]datadir]

説明

<title>Description</title>

<command>pg_controldata</command> prints information initialized during <command>initdb</command>, such as the catalog version. It also shows information about write-ahead logging and checkpoint processing. This information is cluster-wide, and not specific to any one database. pg_controldataはカタログのバージョンなどinitdbの際に初期化された情報を表示します。 また、WAL(ログ先行書き込み)およびチェックポイント処理に関する情報も表示します。 この情報はクラスタ全体に関するものであり、特定のデータベースに関するものではありません。

This utility can only be run by the user who initialized the cluster because it requires read access to the data directory. You can specify the data directory on the command line, or use the environment variable <envar>PGDATA</envar>. This utility supports the options <option>-V</option> and <option>&#45;-version</option>, which print the <application>pg_controldata</application> version and exit. It also supports options <option>-?</option> and <option>&#45;-help</option>, which output the supported arguments. このユーティリティの実行にはデータディレクトリへの読み取りアクセス権限が必要となるため、クラスタを初期化したユーザのみが実行できます。 データディレクトリは、コマンドラインや環境変数PGDATAを使用して指定することができます。 このユーティリティは、pg_controldataのバージョンを表示し終了する-Vおよび--versionオプションをサポートします。 またサポートされる引数を出力する-?および--helpオプションもサポートします。

環境

<title>Environment</title>
PGDATA

Default data directory location デフォルトのデータディレクトリの場所です。

PG_COLOR

Specifies whether to use color in diagnostic messages. Possible values are <literal>always</literal>, <literal>auto</literal> and <literal>never</literal>. 診断メッセージで色を使うかどうかを指定します。 可能な値はalwaysautoneverです。