Re: log_min_messages per backend type
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Euler Taveira <euler@eulerto.com>
Cc: japin <japinli@hotmail.com>, Andres Freund <andres@anarazel.de>, pgsql-hackers@lists.postgresql.org, Chao Li <li.evan.chao@gmail.com>
Date: 2026-02-09T12:58:35Z
Lists: pgsql-hackers
On 2026-Feb-06, Euler Taveira wrote: > On Fri, Feb 6, 2026, at 8:05 AM, Alvaro Herrera wrote: > > * I'm not fond of the term "generic", so I changed it to "default", > > which IMO makes more sense from the user point of view. > > I'm fine with "default" instead of "generic". However, you forgot to replace > "generic" in a few places. The attached patch fixes them all. I just pushed this, and somehow I forgot to squash this into the commit. I don't think it matters terribly much though, so I'm going to hang onto this for a while in case some bug is found. I made some more changes though. Notably, I reworded some things in the docs that appeared ungrammatical and added a simple example; added the list of process types to postgresql.conf.sample; and moved the GUC check/assign hooks to elog.c together with the other elog-affecting GUCs, as I didn't think they made much sense in variable.c. Another thing, which is actually quite significant, is that I fixed a bug I had introduced on Friday without realizing: I had added a "break" in the loop that searches for process types. But we mustn't break there! Otherwise we fail to set the level for process types that share the same process "category" with others, such as "backend" and "autovacuum". So I removed the break and added a comment about it. It's sad that no tests broke when I introduced that bug, but I think it would be difficult to cover this. Thanks -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "That sort of implies that there are Emacs keystrokes which aren't obscure. I've been using it daily for 2 years now and have yet to discover any key sequence which makes any sense." (Paul Thomas)
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Cleanup for log_min_messages changes in 38e0190ced71
- 1efdd7cc630a 19 (unreleased) landed
-
Allow log_min_messages to be set per process type
- 38e0190ced71 19 (unreleased) landed
-
Assign "backend" type earlier during process start-up
- 0c8e082fba8d 19 (unreleased) landed
-
Use integer backend type when exec'ing a postmaster child
- f1cd34f95272 19 (unreleased) landed
-
Sort guc_parameters.dat alphabetically by name
- fce7c73fba4e 19 (unreleased) cited
-
Create a separate file listing backend types
- dbf8cfb4f02e 19 (unreleased) cited
-
Replace postmaster.c's own backend type codes with BackendType
- 18d67a8d7d30 18.0 cited