.\" This is -*-nroff-*- .\" XXX standard disclaimer belongs here.... .\" $Header: /usr/local/cvsroot/pgsql/src/man/pg_dump.1,v 1.10 1998/01/29 02:26:47 scrappy Exp $ .\" Translated by Mitsuhiro Maeda (mitsu@cni.co.jp) .TH PG_DUMP UNIX 1/20/96 日本語PostgreSQL 日本語PostgreSQL .SH 名称 .\" pg_dump - dumps out a Postgres database into a script file pg_dump - Postgres データベースをスクリプトファイルにダンプします .SH 形式 .BR pg_dump [\c .BR "-a" ] [\c .BR "-d" ] [\c .BR "-D" ] [\c .BR "-f" filename ] [\c .BR "-h" hostname ] [\c .BR "-o" ] [\c .BR "-p" port] [\c .BR "-s" ] [\c .BR "-t" table] [\c .BR "-v" ] [\c .BR "-u"] dbname .in -5n .SH 説明 .\" .IR "pg_dump" .\" is a utility for dumping out a .\" Postgres database into a script file containing query commands. .IR pg_dump は Postgres データベースをクエリコマンドを含むスクリプトファイルに ダンプするユーティリティです。 .\" The script .\" files are in a ASCII format and can be used to reconstruct the database, .\" even on other machines and other architectures. そのスクリプトファイルは ASCII フォーマットで、 違うマシンやアーキテクチャだとしてもデータベースを再構築するのに使えます。 .\" .IR "pg_dump" .\" will produce the queries necessary to re-generate all .\" user-defined types, functions, tables, indices, aggregates, and .\" operators. .IR pg_dump はすべてのユーザ定義型、関数、表、インデックス、集約関数、演算子などを 再生成するために必要なクエリをつくり出します。 .\" In addition, all the data is copied out in ASCII format so .\" that it can be readily copied in again, as well, as imported into tools .\" for textual editing. 加えて、すべてのデータは ASCII フォーマットにコピーされますので、 容易くコピーしなおしたりテキスト編集ツールに読み込んだりできます。 .PP .\" .IR "pg_dump" .\" is useful for dumping out the contents of a database to move from one .\" postgreSQL installation to another. .IR pg_dump はある postgresSQL のインストール場所から他絵移す時に、 データベースの内容をダンプするのに有用です。 .\" After running .\" .IR "pg_dump" .\" , one should examine the output script file for any warnings, especially .\" in light of the limitations listed below. .IR pg_dump を走らせた後、 とくに下に挙げた制約を考慮して、 その出力スクリプトファイルに警告がないかどうかを調べるべきでしょう。 .PP .\" pg_dump understands the following options: pg_dump は次のオプションを取ることができます: .TP .BR "-a" "" .\" Dump out only the data, no schema スキーマはなしでデータのみをダンプします .TP .BR "-d" "" .\" Dump data as proper insert strings データを適切な挿入文字としてダンプします .TP .BR "-D" "" .\" Dump data as inserts with attribute names 属性名と一緒にデータをダンプします .TP .BR "-f" " filename" .\" Specifies the output file 出力ファイルを指定します .TP .BR "-h" " hostname" .\" Specifies the server host name サーバのホスト名を指定します .TP .BR "-o" "" .\" Dump object id's (oids) オブジェクトID (oid) もダンプします .TP .BR "-p" " port" .\" Specifies the server port number サーバのポート番号を指定します .TP .BR "-s" "" .\" Dump out only the schema, no data データはなしでスキーマのみをダンプします .TP .BR "-t" " table" .\" Dump for this table only このテーブルだけをダンプします .TP .BR "-u" .\" Use password authentication. Prompts for username and password. パスワード認証を使います。 ユーザ名とパスワードのプロンプトを出します。 .TP .BR "-v" "" .\" Specifies verbose mode 冗長(verbose)モードを指定します .PP .\" If dbname is not supplied, then the DATABASE environment variable value is used. もし dbname が与えられなければ、 環境変数 DATABASE の値が使われます。 .\" .SH "CAVEATS AND LIMITATIONS" .SH "警告と制約" .\" .IR pg_dump .\" has a few limitations. .IR pg_dump にはいくつかの制約があります。 .\" The limitations mostly stem from .\" difficulty in extracting certain meta-information from the system .\" catalogs. その制約のほとんどはシステムカタログからのメタ情報を取り出す難点に起因します。 .TP .\" .BR "rules and views" .BR "ルールと VIEW表" .\" pg_dump does not understand user-defined rules and views and .\" will fail to dump them properly. (This is due to the fact that .\" rules are stored as plans in the catalogs and not textually) pg_dump はユーザ定義のルールと VIEW表を理解しませんし、 それらを適切にダンプできないでしょう。 (これはルールが文字ではなく、 プランとしてカタログに保存されている事実のためです。) .TP .\" .BR "partial indices" .BR "部分インデックス" .\" pg_dump does not understand partial indices. (The reason is .\" the same as above. Partial index predicates are stored as plans) pg_dump は部分インデックスを理解しません。 (この理由は上記のものと同じです。 部分インデックスの述部はプランとして保存されます。) .TP .\" .BR "large objects" .BR "巨大オブジェクト" .\" pg_dump does not handle large objects. Large objects are ignored and .\" must be dealt with manually. pg_dump は巨大オブジェクトを扱えません。 巨大オブジェクトは無視されますので、 手動で扱わなくてはなりません。 .SH 例 .nf .\" To dump a database: データベースをダンプするには: pg_dump >db.out .\" To reload it: それを再読み込みするには: psql -e database