Re: Missing INFO on client_min_messages

From: Marcos Pegoraro <marcos(at)f10(dot)com(dot)br>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Missing INFO on client_min_messages
Date: 2024-11-25 11:37:16
Message-ID: CAB-JLwZvFo3rQoKk4BdE1QmnT3dHDQMV7Zpis1J_8Vqj2s2sSQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em dom., 24 de nov. de 2024 às 13:57, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> escreveu:

> Yeah. You can set it to INFO if you like, but the behavior is not
> different from setting it to NOTICE.

No, I don't think they have the same behavior.
If you set client_min_messages to Error then notice will not be sent, info
will will be sent anyway

postgres=# set client_min_messages = Notice;
SET
postgres=# do $$begin raise INFO 'Sending to client INFO';end;$$;
INFO: Sending to client INFO
DO
postgres=# do $$begin raise NOTICE 'Sending to client NOTICE';end;$$;
NOTICE: Sending to client Notice
DO

postgres=# set client_min_messages = error;
SET
postgres=# do $$begin raise INFO 'Sending to client INFO';end;$$;
INFO: Sending to client INFO
DO
postgres=# do $$begin raise NOTICE 'Sending to client NOTICE';end;$$;
DO

regards
Marcos

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Yash Jain 2024-11-25 11:49:24 What db objects can only be created with superuser?
Previous Message Shubham Khanna 2024-11-25 10:36:42 Re: Improve the error message for logical replication of regular column to generated column.