-
+
Server Configuration
This is a printf>-style string that is output at the
- beginning of each log line. The default is an empty string.
- Each recognized escape is replaced as outlined
- below - anything else that looks like an escape is ignored. Other
+ beginning of each log line.
+ %> characters begin escape sequences>
+ that are replaced with status information as outlined below.
+ Unrecognized escapes are ignored. Other
characters are copied straight to the log line. Some escapes are
only recognized by session processes, and do not apply to
- background processes such as the main server process.
Syslog>
- produces its own
- time stamp and process ID information, so you probably do not want to
- use those escapes if you are using
syslog>.
+ background processes such as the main server process.
This parameter can only be set in the postgresql.conf>
- file or on the server command line.
+ file or on the server command line. The default is an empty string.
|
%t
- Time stamp (no milliseconds, no timezone on Windows)
+ Time stamp without milliseconds (no timezone either on Windows)
no
|
|
%i
- Command tag: This is the command that generated the log line.
+ Command tag: type of session's current command
yes
|
%c
- Session ID: A unique identifier for each session.
- It is 2 4-byte hexadecimal numbers (without leading zeros)
- separated by a dot. The numbers
- are the session start time and the process ID, so this can also
- be used as a space saving way of printing these items.
+ Session ID: see below
yes
|
|
%q
- Does not produce any output, but tells non-session
- processes to stop at this point in the string. Ignored by
- session processes.
+ Produces no output, but tells non-session
+ processes to stop at this point in the string; ignored by
+ session processes
no
|
+
+ The %c> escape prints a quasi-unique session identifier,
+ consisting of two 4-byte hexadecimal numbers (without leading zeros)
+ separated by a dot. The numbers are the session start time and the
+ process ID, so %c> can also be used as a space saving way
+ of printing those items.
+
+
+ If you set a nonempty value for log_line_prefix>,
+ you should usually make its last character be a space, to provide
+ visual separation from the rest of the log line. A punctuation
+ character could be used too.
+
+
+
+
+
Syslog> produces its own
+ time stamp and process ID information, so you probably do not want to
+ use those escapes if you are logging to
syslog>.
+
+