How can I disable sending unnecessary messages from pg_stat_monitor to the client side? We configured pg_stat_monitor.pgsm_max to limit shared memory consumption. And if the buffer doesn’t free up in time, the following message is generated:
WARNING: [pg_stat_monitor] pgsm_store: Hash table is out of memory and can no longer store queries!
DETAIL: You may reset the view or when the buckets are deallocated, pg_stat_monitor will resume saving queries. Alternatively, try increasing the value of pg_stat_monitor.pgsm_max.
And these messages are being sent to the client side. Sending such messages is not needed by the client.