@@ -9,7 +9,7 @@ ____________________________________________________________________________-->
9
9
<indexterm zone="oid2name">
10
10
<primary>oid2name</primary>
11
11
</indexterm>
12
-
12
+
13
13
<!--==========================orignal english content==========================
14
14
<refmeta>
15
15
<refentrytitle>oid2name</refentrytitle>
@@ -106,46 +106,53 @@ ____________________________________________________________________________-->
106
106
<variablelist>
107
107
108
108
<varlistentry>
109
- <term><option>-f</option> <replaceable>filenode</replaceable></term>
110
- <listitem><para>show info for table with filenode <replaceable>filenode</replaceable></para></listitem>
109
+ <term><option>-f <replaceable class="parameter">filenode</replaceable></option></term>
110
+ <term><option>--filenode=<replaceable class="parameter">filenode</replaceable></option></term>
111
+ <listitem><para>show info for table with filenode <replaceable>filenode</replaceable>.</para></listitem>
111
112
</varlistentry>
112
113
113
114
<varlistentry>
114
115
<term><option>-i</option></term>
115
- <listitem><para>include indexes and sequences in the listing</para></listitem>
116
+ <term><option>--indexes</option></term>
117
+ <listitem><para>include indexes and sequences in the listing.</para></listitem>
116
118
</varlistentry>
117
119
118
120
<varlistentry>
119
- <term><option>-o</option> <replaceable>oid</replaceable></term>
120
- <listitem><para>show info for table with OID <replaceable>oid</replaceable></para></listitem>
121
+ <term><option>-o <replaceable class="parameter">oid</replaceable></option></term>
122
+ <term><option>--oid=<replaceable class="parameter">oid</replaceable></option></term>
123
+ <listitem><para>show info for table with OID <replaceable>oid</replaceable>.</para></listitem>
121
124
</varlistentry>
122
125
123
126
<varlistentry>
124
127
<term><option>-q</option></term>
125
- <listitem><para>omit headers (useful for scripting)</para></listitem>
128
+ <term><option>--quiet</option></term>
129
+ <listitem><para>omit headers (useful for scripting).</para></listitem>
126
130
</varlistentry>
127
131
128
132
<varlistentry>
129
133
<term><option>-s</option></term>
130
- <listitem><para>show tablespace OIDs</para></listitem>
134
+ <term><option>--tablespaces</option></term>
135
+ <listitem><para>show tablespace OIDs.</para></listitem>
131
136
</varlistentry>
132
137
133
138
<varlistentry>
134
139
<term><option>-S</option></term>
140
+ <term><option>--system-objects</option></term>
135
141
<listitem><para>include system objects (those in
136
142
<option>information_schema</option>, <option>pg_toast</option>
137
- and <option>pg_catalog</option> schemas)
143
+ and <option>pg_catalog</option> schemas).
138
144
</para></listitem>
139
145
</varlistentry>
140
146
141
147
<varlistentry>
142
- <term><option>-t</option> <replaceable>tablename_pattern</replaceable></term>
143
- <listitem><para>show info for table(s) matching <replaceable>tablename_pattern</replaceable></para></listitem>
148
+ <term><option>-t <replaceable class="parameter">tablename_pattern</replaceable></option></term>
149
+ <term><option>--table=<replaceable class="parameter">tablename_pattern</replaceable></option></term>
150
+ <listitem><para>show info for table(s) matching <replaceable class="parameter">tablename_pattern</replaceable>.</para></listitem>
144
151
</varlistentry>
145
152
146
153
<varlistentry>
147
154
<term><option>-V</option></term>
148
- <term><option>-− version</option></term>
155
+ <term><option>-- version</option></term>
149
156
<listitem>
150
157
<para>
151
158
Print the <application>oid2name</application> version and exit.
@@ -155,8 +162,9 @@ ____________________________________________________________________________-->
155
162
156
163
<varlistentry>
157
164
<term><option>-x</option></term>
165
+ <term><option>--extended</option></term>
158
166
<listitem><para>display more information about each object shown: tablespace name,
159
- schema name, and OID
167
+ schema name, and OID.
160
168
</para></listitem>
161
169
</varlistentry>
162
170
@@ -179,40 +187,48 @@ ____________________________________________________________________________-->
179
187
<variablelist>
180
188
181
189
<varlistentry>
182
- <term><option>-f</option> <replaceable>filenode</replaceable></term>
183
- <listitem><para>显示具有文件结点<replaceable>filenode</replaceable>的表的信息</para></listitem>
190
+ <term><option>-f <replaceable class="parameter">filenode</replaceable></option></term>
191
+ <term><option>--filenode=<replaceable class="parameter">filenode</replaceable></option></term>
192
+ <listitem><para>显示具有文件结点的表的信息<replaceable>filenode</replaceable>.</para></listitem>
184
193
</varlistentry>
185
194
186
195
<varlistentry>
187
196
<term><option>-i</option></term>
188
- <listitem><para>在列举中包括索引和序列</para></listitem>
197
+ <term><option>--indexes</option></term>
198
+ <listitem><para>在列表中包括索引和序列.</para></listitem>
189
199
</varlistentry>
190
200
191
201
<varlistentry>
192
- <term><option>-o</option> <replaceable>oid</replaceable></term>
193
- <listitem><para>显示具有 OID <replaceable>oid</replaceable>的表的信息</para></listitem>
202
+ <term><option>-o <replaceable class="parameter">oid</replaceable></option></term>
203
+ <term><option>--oid=<replaceable class="parameter">oid</replaceable></option></term>
204
+ <listitem><para>显示具有OID的表的信息 <replaceable>oid</replaceable>.</para></listitem>
194
205
</varlistentry>
195
206
196
207
<varlistentry>
197
208
<term><option>-q</option></term>
198
- <listitem><para>忽略头部(用于脚本)</para></listitem>
209
+ <term><option>--quiet</option></term>
210
+ <listitem><para>忽略头部(用于脚本).</para></listitem>
199
211
</varlistentry>
200
212
201
213
<varlistentry>
202
214
<term><option>-s</option></term>
203
- <listitem><para>显示表空间 OID</para></listitem>
215
+ <term><option>--tablespaces</option></term>
216
+ <listitem><para>显示表空间 OIDs.</para></listitem>
204
217
</varlistentry>
205
218
206
219
<varlistentry>
207
220
<term><option>-S</option></term>
221
+ <term><option>--system-objects</option></term>
208
222
<listitem><para>包括系统对象(位于
209
- <option>information_schema</option>、<option>pg_toast</option>和<option>pg_catalog</option>模式中)
223
+ <option>information_schema</option>, <option>pg_toast</option>
224
+ 和 <option>pg_catalog</option> 模式).
210
225
</para></listitem>
211
226
</varlistentry>
212
227
213
228
<varlistentry>
214
- <term><option>-t</option> <replaceable>tablename_pattern</replaceable></term>
215
- <listitem><para>显示匹配<replaceable>tablename_pattern</replaceable>的表的信息</para></listitem>
229
+ <term><option>-t <replaceable class="parameter">tablename_pattern</replaceable></option></term>
230
+ <term><option>--table=<replaceable class="parameter">tablename_pattern</replaceable></option></term>
231
+ <listitem><para>显示匹配的表的信息 <replaceable class="parameter">tablename_pattern</replaceable>.</para></listitem>
216
232
</varlistentry>
217
233
218
234
<varlistentry>
@@ -227,7 +243,9 @@ ____________________________________________________________________________-->
227
243
228
244
<varlistentry>
229
245
<term><option>-x</option></term>
230
- <listitem><para>为要显示的每个对象显示更多信息:表空间名、模式名以及 OID
246
+ <term><option>--extended</option></term>
247
+ <listitem><para>显示关于每个对象所展现的更多信息: 表空间名,
248
+ 模式名,以及 OID。
231
249
</para></listitem>
232
250
</varlistentry>
233
251
@@ -250,29 +268,34 @@ ____________________________________________________________________________-->
250
268
251
269
<variablelist>
252
270
<varlistentry>
253
- <term><option>-d</option> <replaceable>database</replaceable></term>
254
- <listitem><para>database to connect to</para></listitem>
271
+ <term><option>-d <replaceable class="parameter">database</replaceable></option></term>
272
+ <term><option>--dbname=<replaceable class="parameter">database</replaceable></option></term>
273
+ <listitem><para>database to connect to.</para></listitem>
255
274
</varlistentry>
256
275
257
276
<varlistentry>
258
- <term><option>-H</option> <replaceable>host</replaceable></term>
259
- <listitem><para>database server's host</para></listitem>
277
+ <term><option>-h <replaceable class="parameter">host</replaceable></option></term>
278
+ <term><option>--host=<replaceable class="parameter">host</replaceable></option></term>
279
+ <listitem><para>database server's host.</para></listitem>
260
280
</varlistentry>
261
281
262
282
<varlistentry>
263
- <term><option>-p</option> <replaceable>port</replaceable></term>
264
- <listitem><para>database server's port</para></listitem>
283
+ <term><option>-H <replaceable class="parameter">host</replaceable></option></term>
284
+ <listitem><para>database server's host. Use of this parameter is
285
+ <emphasis>deprecated</emphasis> as of
286
+ <productname>PostgreSQL</productname> 12.</para></listitem>
265
287
</varlistentry>
266
288
267
289
<varlistentry>
268
- <term><option>-U</option> <replaceable>username</replaceable></term>
269
- <listitem><para>user name to connect as</para></listitem>
290
+ <term><option>-p <replaceable class="parameter">port</replaceable></option></term>
291
+ <term><option>--port=<replaceable class="parameter">port</replaceable></option></term>
292
+ <listitem><para>database server's port.</para></listitem>
270
293
</varlistentry>
271
294
272
295
<varlistentry>
273
- <term><option>-P</option> <replaceable>password </replaceable></term>
274
- <listitem><para>password (deprecated — putting this on the command line
275
- is a security hazard) </para></listitem>
296
+ <term><option>-U <replaceable class="parameter">username </replaceable></option ></term>
297
+ <term><option>--username=<replaceable class="parameter">username</replaceable></option></term>
298
+ <listitem><para>user name to connect as. </para></listitem>
276
299
</varlistentry>
277
300
278
301
</variablelist>
@@ -283,28 +306,33 @@ ____________________________________________________________________________-->
283
306
284
307
<variablelist>
285
308
<varlistentry>
286
- <term><option>-d</option> <replaceable>database</replaceable></term>
287
- <listitem><para>要连接的数据库</para></listitem>
309
+ <term><option>-d <replaceable class="parameter">database</replaceable></option></term>
310
+ <term><option>--dbname=<replaceable class="parameter">database</replaceable></option></term>
311
+ <listitem><para>要连接的数据库。</para></listitem>
288
312
</varlistentry>
289
313
290
314
<varlistentry>
291
- <term><option>-H</option> <replaceable>host</replaceable></term>
292
- <listitem><para>数据库服务器的主机</para></listitem>
315
+ <term><option>-h <replaceable class="parameter">host</replaceable></option></term>
316
+ <term><option>--host=<replaceable class="parameter">host</replaceable></option></term>
317
+ <listitem><para>数据库服务器的主机。</para></listitem>
293
318
</varlistentry>
294
319
295
320
<varlistentry>
296
- <term><option>-p</option> <replaceable>port</replaceable></term>
297
- <listitem><para>数据库服务器的端口</para></listitem>
321
+ <term><option>-H <replaceable class="parameter">host</replaceable></option></term>
322
+ <listitem><para>数据库服务器的主机。这个参数在
323
+ <productname>PostgreSQL</productname> 12中已经<emphasis>不推荐</emphasis> 。</para></listitem>
298
324
</varlistentry>
299
325
300
326
<varlistentry>
301
- <term><option>-U</option> <replaceable>username</replaceable></term>
302
- <listitem><para>用于连接的用户名</para></listitem>
327
+ <term><option>-p <replaceable class="parameter">port</replaceable></option></term>
328
+ <term><option>--port=<replaceable class="parameter">port</replaceable></option></term>
329
+ <listitem><para>数据库服务器的端口。</para></listitem>
303
330
</varlistentry>
304
331
305
332
<varlistentry>
306
- <term><option>-P</option> <replaceable>password</replaceable></term>
307
- <listitem><para>口令(弃用 — 把口令放在命令行上是安全灾难)</para></listitem>
333
+ <term><option>-U <replaceable class="parameter">username</replaceable></option></term>
334
+ <term><option>--username=<replaceable class="parameter">username</replaceable></option></term>
335
+ <listitem><para>用于连接的用户名。</para></listitem>
308
336
</varlistentry>
309
337
310
338
</variablelist>
@@ -356,6 +384,52 @@ ____________________________________________________________________________-->
356
384
</para>
357
385
</refsect1>
358
386
387
+ <refsect1>
388
+ <!--==========================orignal english content==========================
389
+ <title>Environment</title>
390
+ ____________________________________________________________________________-->
391
+ <title>环境</title>
392
+
393
+ <variablelist>
394
+ <varlistentry>
395
+ <!--==========================orignal english content==========================
396
+ <term><envar>PGHOST</envar></term>
397
+ ____________________________________________________________________________-->
398
+ <term><envar>PGHOST</envar></term>
399
+ <!--==========================orignal english content==========================
400
+ <term><envar>PGPORT</envar></term>
401
+ ____________________________________________________________________________-->
402
+ <term><envar>PGPORT</envar></term>
403
+ <!--==========================orignal english content==========================
404
+ <term><envar>PGUSER</envar></term>
405
+ ____________________________________________________________________________-->
406
+ <term><envar>PGUSER</envar></term>
407
+
408
+ <listitem>
409
+ <!--==========================orignal english content==========================
410
+ <para>
411
+ Default connection parameters.
412
+ </para>
413
+ ____________________________________________________________________________-->
414
+ <para>
415
+ 默认连接参数。
416
+ </para>
417
+ </listitem>
418
+ </varlistentry>
419
+ </variablelist>
420
+
421
+ <!--==========================orignal english content==========================
422
+ <para>
423
+ This utility, like most other <productname>PostgreSQL</productname>
424
+ utilities, also uses the environment variables supported by
425
+ <application>libpq</application> (see <xref linkend="libpq-envars"/>).
426
+ </para>
427
+ ____________________________________________________________________________-->
428
+ <para>
429
+ 与大多数其他 <productname>PostgreSQL</productname>的实用程序一样,这个实用程序也使用<application>libpq</application> 支持的环境变量 (参见 <xref linkend="libpq-envars"/>)。
430
+ </para>
431
+ </refsect1>
432
+
359
433
<refsect1>
360
434
<!--==========================orignal english content==========================
361
435
<title>Notes</title>
0 commit comments