-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-pgconfig.html
More file actions
232 lines (231 loc) · 19.4 KB
/
app-pgconfig.html
File metadata and controls
232 lines (231 loc) · 19.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>pg_config</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="app-pgcombinebackup.html" title="pg_combinebackup" /><link rel="next" href="app-pgdump.html" title="pg_dump" /><meta name="viewport" content="width=device-width,initial-scale=1.0" /></head><body id="docContent" class="container-fluid col-10"><div class="other_version"><a href="https://www.postgresql.jp/document/">バージョンごとのドキュメント一覧</a></div><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="4" align="center"><a accesskey="h" href="index.html">PostgreSQL 18.3文書</a></th></tr><tr><td width="10%" align="left"></td><td width="10%" align="left"></td><td width="60%" align="center"><a href="reference-client.html" title="PostgreSQLクライアントアプリケーション">PostgreSQLクライアントアプリケーション</a></td><td width="20%" align="right"><div class="actions"><a class="issue" title="github" href="https://github.com/pgsql-jp/jpug-doc/issues/new?template=bug_report.yml&what-happened=version 18.3 : app-pgconfig.html">誤訳等の報告
</a></div></td></tr><tr><td width="10%" align="left"><a accesskey="p" href="app-pgcombinebackup.html" title="pg_combinebackup">前へ</a> </td><td width="10%" align="left"><a accesskey="u" href="reference-client.html" title="PostgreSQLクライアントアプリケーション">上へ</a></td><td width="60%" align="center"><span class="application">pg_config</span></td><td width="20%" align="right"> <a accesskey="n" href="app-pgdump.html" title="pg_dump">次へ</a></td></tr></table><hr /></div><div class="refentry" id="APP-PGCONFIG"><div class="titlepage"></div><a id="id-1.9.4.13.1" class="indexterm"></a><div class="refnamediv"><h2><span class="refentrytitle"><span class="application">pg_config</span></span></h2><p>pg_config<span class="original">
<refpurpose>retrieve information about the installed version of <productname>PostgreSQL</productname></refpurpose>
</span> — インストールしたバージョンの<span class="productname">PostgreSQL</span>に関する情報を提供する</p></div><div class="refsynopsisdiv"><h2>概要</h2><div class="cmdsynopsis"><p id="id-1.9.4.13.4.1"><code class="command">pg_config</code> [<em class="replaceable"><code>option</code></em>...]</p></div></div><div class="refsect1" id="id-1.9.4.13.5"><h2>説明</h2><span class="original">
<title>Description</title>
</span><p>
<span class="original">
The <application>pg_config</application> utility prints configuration parameters
of the currently installed version of <productname>PostgreSQL</productname>. It is
intended, for example, to be used by software packages that want to interface
to <productname>PostgreSQL</productname> to facilitate finding the required header files
and libraries.
</span>
<span class="application">pg_config</span>ユーティリティは、現在インストールしているバージョンの<span class="productname">PostgreSQL</span>の設定パラメータを表示します。
これは、例えば<span class="productname">PostgreSQL</span>とのインタフェースを持つソフトウェアパッケージが必要なヘッダファイルやライブラリを容易に検出できるように用意されたものです。
</p></div><div class="refsect1" id="id-1.9.4.13.6"><h2>オプション</h2><span class="original">
<title>Options</title>
</span><p>
<span class="original">
To use <application>pg_config</application>, supply one or more of the following
options:
</span>
<span class="application">pg_config</span>を使用するためには、以下のオプションを1つ以上指定します。
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="option">--bindir</code></span></dt><dd><p>
<span class="original">
Print the location of user executables. Use this, for example, to find
the <command>psql</command> program. This is normally also the location
where the <filename>pg_config</filename> program resides.
</span>
ユーザコマンドの場所を表示します。
例えば、<code class="command">psql</code>プログラムを検索するために使用します。
これは通常、<code class="filename">pg_config</code>プログラムが存在するディレクトリでもあります。
</p></dd><dt><span class="term"><code class="option">--docdir</code></span></dt><dd><p>
<span class="original">
Print the location of documentation files.
</span>
文書ファイルの場所を表示します
</p></dd><dt><span class="term"><code class="option">--htmldir</code></span></dt><dd><p>
<span class="original">
Print the location of HTML documentation files.
</span>
HTML文書ファイルの場所を表示します。
</p></dd><dt><span class="term"><code class="option">--includedir</code></span></dt><dd><p>
<span class="original">
Print the location of C header files of the client interfaces.
</span>
クライアントインタフェースのCヘッダファイルの場所を表示します。
</p></dd><dt><span class="term"><code class="option">--pkgincludedir</code></span></dt><dd><p>
<span class="original">
Print the location of other C header files.
</span>
その他のCヘッダファイルの場所を表示します。
</p></dd><dt><span class="term"><code class="option">--includedir-server</code></span></dt><dd><p>
<span class="original">
Print the location of C header files for server programming.
</span>
サーバプログラム作成用のCヘッダファイルの場所を表示します。
</p></dd><dt><span class="term"><code class="option">--libdir</code></span></dt><dd><p>
<span class="original">
Print the location of object code libraries.
</span>
オブジェクトコードライブラリのディレクトリを表示します。
</p></dd><dt><span class="term"><code class="option">--pkglibdir</code></span></dt><dd><p>
<span class="original">
Print the location of dynamically loadable modules, or where
the server would search for them. (Other
architecture-dependent data files might also be installed in this
directory.)
</span>
動的ロード可能なモジュールの場所、またはそれをサーバが検索する場所を表示します。
(このディレクトリには、アーキテクチャに依存する他のデータファイルも存在する可能性があります。)
</p></dd><dt><span class="term"><code class="option">--localedir</code></span></dt><dd><p>
<span class="original">
Print the location of locale support files. (This will be an empty
string if locale support was not configured when
<productname>PostgreSQL</productname> was built.)
</span>
ロケールサポートファイルの場所を表示します。
(<span class="productname">PostgreSQL</span>をロケールサポートなしで構築した場合は空文字列となります。)
</p></dd><dt><span class="term"><code class="option">--mandir</code></span></dt><dd><p>
<span class="original">
Print the location of manual pages.
</span>
マニュアルページの場所を表示します。
</p></dd><dt><span class="term"><code class="option">--sharedir</code></span></dt><dd><p>
<span class="original">
Print the location of architecture-independent support files.
</span>
アーキテクチャ非依存のサポートファイルの場所を表示します。
</p></dd><dt><span class="term"><code class="option">--sysconfdir</code></span></dt><dd><p>
<span class="original">
Print the location of system-wide configuration files.
</span>
システム全体の設定ファイルの場所を表示します。
</p></dd><dt><span class="term"><code class="option">--pgxs</code></span></dt><dd><p>
<span class="original">
Print the location of extension makefiles.
</span>
拡張用Makefileの場所を表示します。
</p></dd><dt><span class="term"><code class="option">--configure</code></span></dt><dd><p>
<span class="original">
Print the options that were given to the <filename>configure</filename>
script when <productname>PostgreSQL</productname> was configured for building.
This can be used to reproduce the identical configuration, or
to find out with what options a binary package was built. (Note
however that binary packages often contain vendor-specific custom
patches.) See also the examples below.
</span>
<span class="productname">PostgreSQL</span>を構築する時に<code class="filename">configure</code>スクリプトに与えたオプションを表示します。
まったく同じ構築条件で<span class="productname">PostgreSQL</span>を再作成する時、あるいは、バイナリパッケージの構築時のオプションを知りたい時に有益です。
(バイナリパッケージには、ベンダ固有のカスタムパッチが含まれていることが多いので注意してください。)
後述の例も参照してください。
</p></dd><dt><span class="term"><code class="option">--cc</code></span></dt><dd><p>
<span class="original">
Print the value of the <varname>CC</varname> variable that was used for building
<productname>PostgreSQL</productname>. This shows the C compiler used.
</span>
<span class="productname">PostgreSQL</span>の構築時に使用された<code class="varname">CC</code>変数の値を表示します。
使用したCコンパイラが表示されます。
</p></dd><dt><span class="term"><code class="option">--cppflags</code></span></dt><dd><p>
<span class="original">
Print the value of the <varname>CPPFLAGS</varname> variable that was used for building
<productname>PostgreSQL</productname>. This shows C compiler switches needed
at preprocessing time (typically, <literal>-I</literal> switches).
</span>
<span class="productname">PostgreSQL</span>の構築時に使用された<code class="varname">CPPFLAGS</code>変数の値を表示します。
事前処理時に必要としたCコンパイラのスイッチが表示されます。
(通常は<code class="literal">-I</code>スイッチです。)
</p></dd><dt><span class="term"><code class="option">--cflags</code></span></dt><dd><p>
<span class="original">
Print the value of the <varname>CFLAGS</varname> variable that was used for building
<productname>PostgreSQL</productname>. This shows C compiler switches.
</span>
<span class="productname">PostgreSQL</span>の構築時に使用された<code class="varname">CFLAGS</code>変数の値を表示します。
Cコンパイラスイッチが表示されます。
</p></dd><dt><span class="term"><code class="option">--cflags_sl</code></span></dt><dd><p>
<span class="original">
Print the value of the <varname>CFLAGS_SL</varname> variable that was used for building
<productname>PostgreSQL</productname>. This shows extra C compiler switches
used for building shared libraries.
</span>
<span class="productname">PostgreSQL</span>の構築時に使用された<code class="varname">CFLAGS_SL</code>変数の値を表示します。
共有ライブラリの構築に使用された追加のCコンパイラスイッチが表示されます。
</p></dd><dt><span class="term"><code class="option">--ldflags</code></span></dt><dd><p>
<span class="original">
Print the value of the <varname>LDFLAGS</varname> variable that was used for building
<productname>PostgreSQL</productname>. This shows linker switches.
</span>
<span class="productname">PostgreSQL</span>の構築時に使用された<code class="varname">LDFLAGS</code>変数の値を表示します。
リンカスイッチが表示されます。
</p></dd><dt><span class="term"><code class="option">--ldflags_ex</code></span></dt><dd><p>
<span class="original">
Print the value of the <varname>LDFLAGS_EX</varname> variable that was used for building
<productname>PostgreSQL</productname>. This shows linker switches
used for building executables only.
</span>
<span class="productname">PostgreSQL</span>の構築時に使用された<code class="varname">LDFLAGS_EX</code>変数の値を表示します。
実行ファイルの構築のみに使用されたリンカスイッチが表示されます。
</p></dd><dt><span class="term"><code class="option">--ldflags_sl</code></span></dt><dd><p>
<span class="original">
Print the value of the <varname>LDFLAGS_SL</varname> variable that was used for building
<productname>PostgreSQL</productname>. This shows linker switches
used for building shared libraries only.
</span>
<span class="productname">PostgreSQL</span>の構築時に使用された<code class="varname">LDFLAGS_SL</code>変数の値を表示します。
共有ライブラリの構築のみに使用されたリンカスイッチが表示されます。
</p></dd><dt><span class="term"><code class="option">--libs</code></span></dt><dd><p>
<span class="original">
Print the value of the <varname>LIBS</varname> variable that was used for building
<productname>PostgreSQL</productname>. This normally contains <literal>-l</literal>
switches for external libraries linked into <productname>PostgreSQL</productname>.
</span>
<span class="productname">PostgreSQL</span>の構築時に使用された<code class="varname">LIBS</code>変数の値を表示します。
これには通常、<span class="productname">PostgreSQL</span>にリンクする外部ライブラリ用の<code class="literal">-l</code>スイッチが含まれます。
</p></dd><dt><span class="term"><code class="option">--version</code></span></dt><dd><p>
<span class="original">
Print the version of <productname>PostgreSQL</productname>.
</span>
<span class="productname">PostgreSQL</span>のバージョンを表示します。
</p></dd><dt><span class="term"><code class="option">-?</code><br /></span><span class="term"><code class="option">--help</code></span></dt><dd><p>
<span class="original">
Show help about <application>pg_config</application> command line
arguments, and exit.
</span>
<span class="application">pg_config</span>コマンドライン引数に関する説明を表示し、終了します。
</p></dd></dl></div><p>
<span class="original">
If more than one option is given, the information is printed in that order,
one item per line. If no options are given, all available information
is printed, with labels.
</span>
1つ以上のオプションが与えられた場合、指定したオプションの順番に従って1行に1つずつ情報を表示します。
オプションがない場合、すべての利用可能な情報をラベル付きで表示します。
</p></div><div class="refsect1" id="id-1.9.4.13.7"><h2>注釈</h2><span class="original">
<title>Notes</title>
</span><p>
<span class="original">
The options <option>&#45;-docdir</option>, <option>&#45;-pkgincludedir</option>,
<option>&#45;-localedir</option>, <option>&#45;-mandir</option>,
<option>&#45;-sharedir</option>, <option>&#45;-sysconfdir</option>,
<option>&#45;-cc</option>, <option>&#45;-cppflags</option>,
<option>&#45;-cflags</option>, <option>&#45;-cflags_sl</option>,
<option>&#45;-ldflags</option>, <option>&#45;-ldflags_sl</option>,
and <option>&#45;-libs</option> were added in <productname>PostgreSQL</productname> 8.1.
The option <option>&#45;-htmldir</option> was added in <productname>PostgreSQL</productname> 8.4.
The option <option>&#45;-ldflags_ex</option> was added in <productname>PostgreSQL</productname> 9.0.
</span>
オプション<code class="option">--docdir</code>、<code class="option">--pkgincludedir</code>、<code class="option">--localedir</code>、<code class="option">--mandir</code>、<code class="option">--sharedir</code>、<code class="option">--sysconfdir</code>、<code class="option">--cc</code>、<code class="option">--cppflags</code>、<code class="option">--cflags</code>、<code class="option">--cflags_sl</code>、<code class="option">--ldflags</code>、<code class="option">--ldflags_sl</code>、<code class="option">--libs</code> は<span class="productname">PostgreSQL</span> 8.1から追加されました。
オプション<code class="option">--htmldir</code>は<span class="productname">PostgreSQL</span> 8.4で追加されました。
オプション<code class="option">--ldflags_ex</code>は<span class="productname">PostgreSQL</span> 9.0で追加されました。
</p></div><div class="refsect1" id="id-1.9.4.13.8"><h2>例</h2><span class="original">
<title>Example</title>
</span><p>
<span class="original">
To reproduce the build configuration of the current PostgreSQL
installation, run the following command:
</span>
使用中のPostgreSQLインストレーションの構築時の設定を再生成するには、以下のコマンドを実行します。
</p><pre class="programlisting">
eval ./configure `pg_config --configure`
</pre><p>
<span class="original">
The output of <literal>pg_config &#45;-configure</literal> contains
shell quotation marks so arguments with spaces are represented
correctly. Therefore, using <literal>eval</literal> is required
for proper results.
</span>
<code class="literal">pg_config --configure</code>の出力にはシェルの引用符が含まれますので、空白を含む引数も正しく表現することができます。
したがって、正しく動作させるためには<code class="literal">eval</code>が必要です。
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="app-pgcombinebackup.html" title="pg_combinebackup">前へ</a> </td><td width="20%" align="center"><a accesskey="u" href="reference-client.html" title="PostgreSQLクライアントアプリケーション">上へ</a></td><td width="40%" align="right"> <a accesskey="n" href="app-pgdump.html" title="pg_dump">次へ</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="application">pg_combinebackup</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.3文書">ホーム</a></td><td width="40%" align="right" valign="top"> <span class="application">pg_dump</span></td></tr></table></div></body></html>