1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.139 2007/08/19 03:23:30 adunstan Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.140 2007/08/21 15:13:16 momjian Exp $ -->
2
2
3
3
<chapter Id="runtime-config">
4
4
<title>Server Configuration</title>
@@ -2287,16 +2287,16 @@ SELECT * FROM parent WHERE key = 2400;
2287
2287
<listitem>
2288
2288
<para>
2289
2289
This parameter allows messages sent to <application>stderr</>,
2290
- and CSV logs, to be
2290
+ and CSV logs, to be
2291
2291
captured and redirected into log files.
2292
2292
This method, in combination with logging to <application>stderr</>,
2293
2293
is often more useful than
2294
2294
logging to <application>syslog</>, since some types of messages
2295
2295
might not appear in <application>syslog</> output (a common example
2296
2296
is dynamic-linker failure messages).
2297
2297
This parameter can only be set at server start.
2298
- <varname>logging_collector</varname> must be enabled to generate
2299
- CSV logs.
2298
+ <varname>logging_collector</varname> must be enabled to generate
2299
+ CSV logs.
2300
2300
</para>
2301
2301
</listitem>
2302
2302
</varlistentry>
@@ -2342,11 +2342,11 @@ SELECT * FROM parent WHERE key = 2400;
2342
2342
file or on the server command line.
2343
2343
</para>
2344
2344
<para>
2345
- If <varname>log_destination</> is set to <systemitem>csvlog</>,
2346
- <literal>.csv</> will be appended to the timestamped
2347
- <varname>log_filename</> to create the final log file name.
2348
- (If log_filename ends in <literal>.log</>, the suffix is overwritten.)
2349
- In the case of the example above, the
2345
+ If <varname>log_destination</> is set to <systemitem>csvlog</>,
2346
+ <literal>.csv</> will be appended to the timestamped
2347
+ <varname>log_filename</> to create the final log file name.
2348
+ (If log_filename ends in <literal>.log</>, the suffix is overwritten.)
2349
+ In the case of the example above, the
2350
2350
file name will be <literal>server_log.1093827753.csv</literal>
2351
2351
</para>
2352
2352
</listitem>
@@ -3088,9 +3088,9 @@ SELECT * FROM parent WHERE key = 2400;
3088
3088
<title>Using the csvlog</title>
3089
3089
3090
3090
<para>
3091
- Including <literal>csvlog</> in the <varname>log_destination</> list
3092
- provides a convenient way to import log files into a database table.
3093
- Here is a sample table definition for storing csvlog output:
3091
+ Including <literal>csvlog</> in the <varname>log_destination</> list
3092
+ provides a convenient way to import log files into a database table.
3093
+ Here is a sample table definition for storing csvlog output:
3094
3094
</para>
3095
3095
3096
3096
<programlisting>
@@ -3124,7 +3124,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
3124
3124
3125
3125
<para>
3126
3126
There are a few things you need to import csvlog files easily and
3127
- automatically:
3127
+ automatically:
3128
3128
3129
3129
<orderedlist>
3130
3130
<listitem>
@@ -3141,15 +3141,15 @@ guess what
3141
3141
<listitem>
3142
3142
<para>
3143
3143
Set <varname>log_rotation_size</varname> to 0 to disable
3144
- size-based log rotation, as it makes the log filename difficult
3145
- to predict.
3144
+ size-based log rotation, as it makes the log filename difficult
3145
+ to predict.
3146
3146
</para>
3147
3147
</listitem>
3148
3148
3149
3149
<listitem>
3150
3150
<para>
3151
3151
Set <varname>log_truncate_on_rotate</varname> = on so that old
3152
- log data isn't mixed with the new in the same file.
3152
+ log data isn't mixed with the new in the same file.
3153
3153
</para>
3154
3154
</listitem>
3155
3155
@@ -3160,12 +3160,12 @@ guess what
3160
3160
the same information twice. The COPY command commits all of
3161
3161
the data it imports at one time, and any single error will
3162
3162
cause the entire import to fail.
3163
- If you import a partial log file and later import the file again
3164
- when it is complete, the primary key violation will cause the
3165
- import to fail. Wait until the log is complete and closed before
3166
- import. This will also protect against accidently importing a
3167
- partial line that hasn't been completely written, which would
3168
- also cause the COPY to fail.
3163
+ If you import a partial log file and later import the file again
3164
+ when it is complete, the primary key violation will cause the
3165
+ import to fail. Wait until the log is complete and closed before
3166
+ import. This will also protect against accidently importing a
3167
+ partial line that hasn't been completely written, which would
3168
+ also cause the COPY to fail.
3169
3169
</para>
3170
3170
</listitem>
3171
3171
</orderedlist>
0 commit comments