Reduce DEBUG level of catcache refreshing messages
Jelte Fennema-Nio <postgres@jeltef.nl>
From: "Jelte Fennema-Nio" <postgres@jeltef.nl>
To: <pgsql-hackers@lists.postgresql.org>
Date: 2025-05-30T12:33:27Z
Lists: pgsql-hackers
Attachments
- v1-0001-Reduce-DEBUG-level-of-catcache-refreshing-message.patch (text/x-patch) patch v1-0001
When testing extensions using pgregress, it can be useful to introduce some new DEBUG logs which are specific to the extension and change the log level during part of the of the test. There's a problem though: Often a "rehashing catalog cache ..." debug message will also show up in those cases. It's not always possible to predict when these messages show, and when they do their contents can easily change if changes are made to an unrelated test or when run against a different Postgres version. This change lowers the log level of these messages to DEBUG5, so that they can be ignored while still showing other (more predictable) DEBUG messages.