log_alert_*
The log_alert_* tables of the gpperfmon database store pg_log errors and warnings.
There are three tables with the same columns:
-
log_alert_nowis an external table whose data is stored in .csv files in the $MASTER_DATA_DIRECTORY/gpperfmon/logs directory. Current pg_log errors and warnings data is available inlog_alert_nowduring the period between being written by the system logger to thegpperfmonlog files and automatic commit to thelog_alert_historytable. -
log_alert_tailis an external table with data stored in $MASTER_DATA_DIRECTORY/gpperfmon/logs/alert_log_stage. This is a transitional table for data that has been cleared fromlog_alert_nowbut has not yet been committed tolog_alert_history. The table includes records from all alert logs except the most recent. It typically contains a few minutes worth of data. This table is for internal use only. -
log_alert_historyis a regular table that stores historical database-wide errors and warnings data. It is partitioned into monthly partitions. Partitions are automatically added in two-month increments as needed.
| Column | Type | Description |
|---|---|---|
logtime |
timestamp with time zone |
Timestamp for this log entry |
loguser |
text |
User of the query |
logdatabase |
text |
The accessed database |
logpid |
text |
Process id |
logthread |
text |
Thread number |
loghost |
text |
Host name or IP address |
logport |
text |
Port number |
logsessiontime |
timestamp with time zone |
Session timestamp |
logtransaction |
integer |
Transaction ID |
logsession |
text |
Session ID |
logcmdcount |
text |
Command count |
logsegment |
text |
Segment number |
logslice |
text |
Slice number |
logdistxact |
text |
Distributed transaction |
loglocalxact |
text |
Local transaction |
logsubxact |
text |
Subtransaction |
logseverity |
text |
Log severity |
logstate |
text |
State |
logmessage |
text |
Log message |
logdetail |
text |
Detailed message |
loghint |
text |
Hint info |
logquery |
text |
Executed query |
logquerypos |
integer |
Query position |
logcontext |
text |
Context info |
logdebug |
text |
Debug |
logcursorpos |
integer |
Cursor position |
logfunction |
text |
Function info |
logfile |
text |
Source code file |
logline |
integer |
Source code line |
logstack |
text |
Stack trace |