Chapter 5. インストレーション

Table of Contents
Postgres の動作に必要な条件
インストール手順
Postgres を使ってみる
次へのステップ
移植に関する情報

Complete installation instructions for Postgres v6.5.1.

このインストールマニュアルは Postgres v6.5.x 用のものです。

Before installing Postgres, you may wish to visit www.postgresql.org for up to date information, patches, etc.

Postgresのインストールを行う前に、 www.postgresql.org にアクセスして最新の情報やパッチ等の確認をして下さい。

These installation instructions assume:

このインストールマニュアルは、以下を前提として書かれています:

Commands were tested on RedHat Linux version 5.2 using the tcsh shell. Except where noted, they will probably work on most systems. Commands like ps and tar may vary wildly between platforms on what options you should use. Use common sense before typing in these commands.

インストール手順の確認は、RedHat Linux version 5.2 の tcsh シェルを使用して行われました。 特に記述が無い場合、それらのコマンドは他のほとんどのシステムで動作するはずです。 pstar などのコマンドは、プラットホームやオプションの設定方法により大きく動作が変わってきますので、それらのコマンドを実行する際には、一般的な使用法を心がけてください。

Our Makefiles require GNU make (called "gmake" in this document). They will not work with non-GNU make programs. If you have GNU make installed under the name "make" instead of "gmake", then you will use the command make instead. That's OK, but you need to have the GNU form of make to succeed with an installation.

PostgreSQL の Makefile は、GNU make (文中では "gmake" と記述されています) を必要とし、GNU make 以外では動作しません。 もし GNU make"gmake" ではなく "make" という名前でインストールしてある場合、make というコマンド名を使用してもかまいませんが、インストールを成功させるには GNU make が必須です。

Postgres の動作に必要な条件

Up to date information on supported platforms is at http://www.postgresql.org/docs/admin/install.htm. In general, most Unix-compatible platforms with modern libraries should be able to run Postgres.

サポート済みプラットフォームに関する最新の情報は、 http://www.postgresql.org/docs/admin/install.htm に有ります。 普通、最近のライブラリを持ったほとんどのUnix互換プラットフォームで Postgres は動作可能です。

Although the minimum required memory for running Postgres is as little as 8MB, there are noticable improvements in runtimes for the regression tests when expanding memory up to 96MB on a relatively fast dual-processor system running X-Windows. The rule is you can never have too much memory.

Postgres は最低 8MB というメモリーで動作しますが、 regression テストを実行した場合、メモリーを 96MB まで拡張した高速なデュアルCPU の システム上で X-Winsow を動作させた状態でも目を見張るほどの処理スピードの改善が 見られました。 メモリーが多すぎて困ると言うことは有り得ません。

Check that you have sufficient disk space. You will need about 30 Mbytes for /usr/src/pgsql, about 5 Mbytes for /usr/local/pgsql (excluding your database) and 1 Mbyte for an empty database. The database will temporarily grow to about 20 Mbytes during the regression tests. You will also need about 3 Mbytes for the distribution tar file.

十分なディスクスペースが有るか確認してください。 ソースを展開する /usr/src/pgsql に約 30M バイト、 PostgreSQLのバイナリとデータを保存する /usr/local/pgsql には (データベースを除いて)約 5M バイトが必要です。 また、データベースを新規作成するたびに 1M バイト消費されます。 データベースの大きさは regression test 実行中に約 20M バイトまで大きくなります。 その他にPostgreSQLの配布 tar ファイルの為に約 7M バイト必要になります。

We therefore recommend that during installation and testing you have well over 20 Mbytes free under /usr/local and another 25 Mbytes free on the disk partition containing your database. Once you delete the source files, tar file and regression database, you will need 2 Mbytes for /usr/local/pgsql, 1 Mbyte for the empty database, plus about five times the space you would require to store your database data in a flat file.

インストールとテストの間は、/usr/local以下に 20M バイト以上、それ以外のデータベース用に 25M バイトの空きスペースを用意することをお勧めします。 ソースファイル、配布 tar ファイル、regression database を消去した後は、1M バイトが新規データベース作成に、そしてテキストファイル時のデータサイズの約5倍のファイル容量がそのデータベース保存の為に必要となります。

To check for disk space, use

ディスク容量の確認には、以下のコマンドを使用します。

$ df -k