@@ -9,7 +9,7 @@ ____________________________________________________________________________-->
9
9
<indexterm zone="vacuumlo">
10
10
<primary>vacuumlo</primary>
11
11
</indexterm>
12
-
12
+
13
13
<!--==========================orignal english content==========================
14
14
<refmeta>
15
15
<refentrytitle><application>vacuumlo</application></refentrytitle>
@@ -102,7 +102,8 @@ ____________________________________________________________________________-->
102
102
103
103
<variablelist>
104
104
<varlistentry>
105
- <term><option>-l</option> <replaceable>limit</replaceable></term>
105
+ <term><option>-l <replaceable class="parameter">limit</replaceable></option></term>
106
+ <term><option>--limit=<replaceable class="parameter">limit</replaceable></option></term>
106
107
<listitem>
107
108
<para>
108
109
Remove no more than <replaceable>limit</replaceable> large objects per
@@ -116,13 +117,15 @@ ____________________________________________________________________________-->
116
117
117
118
<varlistentry>
118
119
<term><option>-n</option></term>
120
+ <term><option>--dry-run</option></term>
119
121
<listitem>
120
122
<para>Don't remove anything, just show what would be done.</para>
121
123
</listitem>
122
124
</varlistentry>
123
125
124
126
<varlistentry>
125
127
<term><option>-v</option></term>
128
+ <term><option>--verbose</option></term>
126
129
<listitem>
127
130
<para>Write a lot of progress messages.</para>
128
131
</listitem>
@@ -156,7 +159,8 @@ ____________________________________________________________________________-->
156
159
157
160
<variablelist>
158
161
<varlistentry>
159
- <term><option>-l</option> <replaceable>limit</replaceable></term>
162
+ <term><option>-l <replaceable class="parameter">limit</replaceable></option></term>
163
+ <term><option>--limit=<replaceable class="parameter">limit</replaceable></option></term>
160
164
<listitem>
161
165
<para>
162
166
在每一个事务中移除不超过<replaceable>limit</replaceable>个大对象(默认值为1000)。因为移除每一个LO时服务器都将要求一个锁,所以在一个事务中移除过多的LO会有超过<xref linkend="guc-max-locks-per-transaction"/>的风险。如果你想在一个事务中就完成所有的移除工作,请将这个限制设置为0。
@@ -166,13 +170,15 @@ ____________________________________________________________________________-->
166
170
167
171
<varlistentry>
168
172
<term><option>-n</option></term>
173
+ <term><option>--dry-run</option></term>
169
174
<listitem>
170
175
<para>不移除任何东西,只是显示将会做什么。</para>
171
176
</listitem>
172
177
</varlistentry>
173
178
174
179
<varlistentry>
175
180
<term><option>-v</option></term>
181
+ <term><option>--verbose</option></term>
176
182
<listitem>
177
183
<para>写一些进度消息。</para>
178
184
</listitem>
@@ -207,21 +213,24 @@ ____________________________________________________________________________-->
207
213
208
214
<variablelist>
209
215
<varlistentry>
210
- <term><option>-h</option> <replaceable>hostname</replaceable></term>
216
+ <term><option>-h <replaceable class="parameter">host</replaceable></option></term>
217
+ <term><option>--host=<replaceable class="parameter">host</replaceable></option></term>
211
218
<listitem>
212
219
<para>Database server's host.</para>
213
220
</listitem>
214
221
</varlistentry>
215
222
216
223
<varlistentry>
217
- <term><option>-p</option> <replaceable>port</replaceable></term>
224
+ <term><option>-p <replaceable>port</replaceable></option></term>
225
+ <term><option>--port=<replaceable class="parameter">port</replaceable></option></term>
218
226
<listitem>
219
227
<para>Database server's port.</para>
220
228
</listitem>
221
229
</varlistentry>
222
230
223
231
<varlistentry>
224
- <term><option>-U</option> <replaceable>username</replaceable></term>
232
+ <term><option>-U <replaceable>username</replaceable></option></term>
233
+ <term><option>--username=<replaceable class="parameter">username</replaceable></option></term>
225
234
<listitem>
226
235
<para>User name to connect as.</para>
227
236
</listitem>
@@ -243,6 +252,7 @@ ____________________________________________________________________________-->
243
252
244
253
<varlistentry>
245
254
<term><option>-W</option></term>
255
+ <term><option>--password</option></term>
246
256
<listitem>
247
257
<para>
248
258
Force <application>vacuumlo</application> to prompt for a
@@ -268,21 +278,24 @@ ____________________________________________________________________________-->
268
278
269
279
<variablelist>
270
280
<varlistentry>
271
- <term><option>-h</option> <replaceable>hostname</replaceable></term>
281
+ <term><option>-h <replaceable class="parameter">host</replaceable></option></term>
282
+ <term><option>--host=<replaceable class="parameter">host</replaceable></option></term>
272
283
<listitem>
273
284
<para>数据库服务器的主机名。</para>
274
285
</listitem>
275
286
</varlistentry>
276
287
277
288
<varlistentry>
278
- <term><option>-p</option> <replaceable>port</replaceable></term>
289
+ <term><option>-p <replaceable>port</replaceable></option></term>
290
+ <term><option>--port=<replaceable class="parameter">port</replaceable></option></term>
279
291
<listitem>
280
292
<para>数据库服务器的端口。</para>
281
293
</listitem>
282
294
</varlistentry>
283
295
284
296
<varlistentry>
285
- <term><option>-U</option> <replaceable>username</replaceable></term>
297
+ <term><option>-U <replaceable>username</replaceable></option></term>
298
+ <term><option>--username=<replaceable class="parameter">username</replaceable></option></term>
286
299
<listitem>
287
300
<para>用于连接的用户名。</para>
288
301
</listitem>
@@ -300,6 +313,7 @@ ____________________________________________________________________________-->
300
313
301
314
<varlistentry>
302
315
<term><option>-W</option></term>
316
+ <term><option>--password</option></term>
303
317
<listitem>
304
318
<para>
305
319
强制<application>vacuumlo</application>在连接到数据库之前提示要求一个口令。
@@ -314,6 +328,52 @@ ____________________________________________________________________________-->
314
328
</para>
315
329
</refsect1>
316
330
331
+ <refsect1>
332
+ <!--==========================orignal english content==========================
333
+ <title>Environment</title>
334
+ ____________________________________________________________________________-->
335
+ <title>环境</title>
336
+
337
+ <variablelist>
338
+ <varlistentry>
339
+ <!--==========================orignal english content==========================
340
+ <term><envar>PGHOST</envar></term>
341
+ ____________________________________________________________________________-->
342
+ <term><envar>PGHOST</envar></term>
343
+ <!--==========================orignal english content==========================
344
+ <term><envar>PGPORT</envar></term>
345
+ ____________________________________________________________________________-->
346
+ <term><envar>PGPORT</envar></term>
347
+ <!--==========================orignal english content==========================
348
+ <term><envar>PGUSER</envar></term>
349
+ ____________________________________________________________________________-->
350
+ <term><envar>PGUSER</envar></term>
351
+
352
+ <listitem>
353
+ <!--==========================orignal english content==========================
354
+ <para>
355
+ Default connection parameters.
356
+ </para>
357
+ ____________________________________________________________________________-->
358
+ <para>
359
+ 默认连接参数。
360
+ </para>
361
+ </listitem>
362
+ </varlistentry>
363
+ </variablelist>
364
+
365
+ <!--==========================orignal english content==========================
366
+ <para>
367
+ This utility, like most other <productname>PostgreSQL</productname> utilities,
368
+ also uses the environment variables supported by <application>libpq</application>
369
+ (see <xref linkend="libpq-envars"/>).
370
+ </para>
371
+ ____________________________________________________________________________-->
372
+ <para>
373
+ 这个实用程序,像其他大多数<productname>PostgreSQL</productname>实用程序,也还使用 <application>libpq</application> 支持的环境变量(参见 <xref linkend="libpq-envars"/>)。
374
+ </para>
375
+ </refsect1>
376
+
317
377
<refsect1>
318
378
<!--==========================orignal english content==========================
319
379
<title>Notes</title>
0 commit comments