Closed drnextgis closed 7 months ago
Looking into this, I didn't realize that log_min_messages treats "LOG" as higher than "NOTICE" where in client_min_messages "LOG" is at a lower level than "NOTICE". I'll adjust all of these calls to be at "INFO" or "DEBUG1".
I added the use of "LOG" in addition to "NOTICE" in order to have multiple levels of verbosity.
We encountered an issue where the database logs experienced rapid growth, particularly under heavy load. After making adjustments of some PostgreSQL settings, we discovered that the growth could only be halted by setting
log_min_messages: fatal
. However, this approach, as outlined in the PostgreSQL documentation, disables the logging of warnings. As a database administrator, I prioritize messages that serve as alerts regarding potential issues requiring attention (warnings), rather than regular logs.I've observed that while
NOTICE
level is utilized in some areas within pgstac,LOG
level is applied elsewhere. I'm curious about the difference between the two and whether it would be sensible to uniformly useNOTICE
instead ofLOG
. Currently, within seconds, our log file has grown from 0 to approximately 10GB, inundated with records such as: