postmaster の起動

Nothing can happen to a database unless the postmaster process is running. As the site administrator, there are a number of things you should remember before starting the postmaster. These are discussed in the installation and configuration sections of this manual. However, if Postgres has been installed by following the installation instructions exactly as written, the following simple command is all you should need to start the postmaster:

% postmaster
    

postmaster プロセスが実行されていない状 態では、データベースには何も起こりません。サイトの管理者として、 postmaster を起動する前に忘れてはいけな いことがいくつかあります。それらはこのマニュアルのインストール方法 と設定方法に関する節で説明されています。しかし、 Postgresがそこに記述されたインストール手 順に完全にしたがってインストールされていれば、 postmasterを起動するために必要なことは次 の簡単なコマンドだけです。

% postmaster
    

The postmaster occasionally prints out messages which are often helpful during troubleshooting. If you wish to view debugging messages from the postmaster, you can start it with the -d option and redirect the output to the log file:

% postmaster -d >& pm.log &
    
If you do not wish to see these messages, you can type
% postmaster -S
    
and the postmaster will be "S"ilent. Notice that there is no ampersand ("&") at the end of the last example so postmaster will be running in the foreground.

場合によって、postmaster は問題解決を補助 するメッセージを表示します。postmaster が 出力するデバッグ用のメッセージを見たい場合は、以下のように起動時に -d オプションを付け、そしてその出力をログファイルにリダイレクトさせま す。

% postmaster -d >& pm.log &
    
こういったメッセージを見たくない場合は、
% postmaster -S
    
のように入力することで、postmaster を無 言( "S"ilent )にすることができます。最後の例では、行末にアンパサ ンドマーク( "&" )がない、つまり、フォアグランドで postmaster を実行しているということに注意して下さい。