Errors¶
PgDog Enterprise tracks query errors returned by PostgreSQL, providing a real-time view into recently encountered issues like syntax errors, missing columns, or lock timeouts.
Admin database¶
You can see recent errors by connecting to the admin database and running the SHOW ERRORS command:
The following information is available in the errors view:
| Column | Description |
|---|---|
error |
The error message returned by PostgreSQL. |
count |
The number of times this error has been encountered. |
age |
How long ago (in ms) was this error last seen. |
query |
The last SQL statement that caused the error. |
Configuration¶
Errors are collected automatically if query statistics are enabled. The in-memory view is periodically purged of old errors, configurable in pgdog.toml:
By default, PgDog will keep up to 100 distinct errors for a maximum of 5 minutes. This data is periodically sent to the control plane, so the history of seen errors is available in the web UI.