Commissioning
To control the output of log files and better understand the operating status of the database, modify specific configuration parameters in the postgresql.conf file in the instance data directory.
Table 1 describes the adjustable configuration parameters.
Table 1 Configuration parameters
|
Messages of the set level or lower will be sent to clients. The lower the level is, the fewer the messages will be sent. |
||
|
Messages higher than the set level will be recorded in logs. The higher the level is, the fewer the server logs will be recorded. |
||
Level of SQL error statements to be recorded in server logs. |
|
SQL error statements of the set level or higher will be recorded in server logs. Only a system administrator is allowed to modify this parameter. |
|
Minimum execution duration of a statement. If the execution duration of a statement is equal to or longer than the set milliseconds, the statement and its duration will be recorded in logs. Enabling this function can help you track the query attempts to be optimized. |
The value –1 indicates that the function is disabled. Only a system administrator is allowed to modify this parameter. |
||
Whether to record a server log message when each session is connected or disconnected. |
|||
Only a system administrator is allowed to modify this parameter. |
|||
Only a system administrator is allowed to modify this parameter. |
|||
By default, connection logs only record the IP addresses of connected hosts. With this function, the host names will also be recorded. This parameter affects parameters in Querying Audit Results, GS_SESSION_MEMORY_DETAIL, PG_STAT_ACTIVITY, and log_line_prefix. |
Table 2 describes the preceding parameter levels.
Table 2 Description of log level parameters