Re: log_min_messages per backend type
Re: log_min_messages per backend type
От:
surya poondla <suryapoondla4@gmail.com>
Дата:
Hi Euler and team,
This thread is really interesting and I think the proposal clearly improves overall debuggability in Postgres.
I am still catching up on the full discussion and the latest v9 patchset, but I plan to review the patches in detail and will follow-up with comments or questions, once I am done.
This thread is really interesting and I think the proposal clearly improves overall debuggability in Postgres.
I am still catching up on the full discussion and the latest v9 patchset, but I plan to review the patches in detail and will follow-up with comments or questions, once I am done.
Thanks for working on this and incorporating the feedback so far.
Regards,
Surya Poondla
Regards,
Surya Poondla
Re: log_min_messages per backend type
От:
surya poondla <suryapoondla4@gmail.com>
Дата:
Hi Euler,
I am still reviewing the latest patch (v11).
Quick clarification on how this feature interacts with existing per-session and per-role/database GUC settings:
If I set log_min_messages = 'warning, backend:error' at the cluster level:
1. Can an individual session still override this with SET log_min_messages = DEBUG1?
2. Do role/database-level settings (e.g., ALTER ROLE alice SET log_min_messages = DEBUG1) still work as expected?
I assume both would override the cluster-level backend:error setting following standard GUC precedence rules, but wanted to confirm.
I am still reviewing the latest patch (v11).
Quick clarification on how this feature interacts with existing per-session and per-role/database GUC settings:
If I set log_min_messages = 'warning, backend:error' at the cluster level:
1. Can an individual session still override this with SET log_min_messages = DEBUG1?
2. Do role/database-level settings (e.g., ALTER ROLE alice SET log_min_messages = DEBUG1) still work as expected?
I assume both would override the cluster-level backend:error setting following standard GUC precedence rules, but wanted to confirm.
Regards,
Surya Poondla
Surya Poondla
Re: log_min_messages per backend type
От:
"Euler Taveira" <euler@eulerto.com>
Дата:
On Fri, Feb 6, 2026, at 5:28 PM, surya poondla wrote:
>
> Quick clarification on how this feature interacts with existing
> per-session and per-role/database GUC settings:
> If I set log_min_messages = 'warning, backend:error' at the cluster
> level:
> 1. Can an individual session still override this with SET
> log_min_messages = DEBUG1?
> 2. Do role/database-level settings (e.g., ALTER ROLE alice SET
> log_min_messages = DEBUG1) still work as expected?
>
Yes. Yes.
> I assume both would override the cluster-level backend:error setting
> following standard GUC precedence rules, but wanted to confirm.
>
This feature doesn't change the GUC context.
postgres=# show log_min_messages;
log_min_messages
------------------------
warning, backend:error
(1 row)
another terminal:
(gdb) p log_min_messages[0]@18
$16 = {19, 21, 19 }
8<-----------------------------------------------------------------8<
postgres=# set log_min_messages to debug1;
SET
another terminal:
(gdb) p log_min_messages[0]@18
$17 = {14 }
8<-----------------------------------------------------------------8<
postgres=# reset log_min_messages;
RESET
another terminal:
(gdb) p log_min_messages[0]@18
$18 = {19, 21, 19 }
--
Euler Taveira
EDB https://www.enterprisedb.com/