]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Adjust log level of logical decoding messages by context master github/master
authorFujii Masao <fujii@postgresql.org>
Fri, 10 Apr 2026 13:59:34 +0000 (22:59 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 10 Apr 2026 13:59:34 +0000 (22:59 +0900)
commitde74d1e9a5453b8efe2eda2afebcf8218a503184
tree6dc2af7663503691e540d9796f88b9d38e109006
parenteec8e234bdcbe43e0407b03c44484bf75423d515
Adjust log level of logical decoding messages by context

Commit 21b018e7eab lowered some logical decoding messages from LOG to DEBUG1.
However, per discussion on pgsql-hackers, messages from background activity
(e.g., walsender or slotsync worker) should remain at LOG, as they are less
frequent and more likely to indicate issues that DBAs should notice.

For foreground SQL functions (e.g., pg_logical_slot_peek_binary_changes()),
keep these messages at DEBUG1 to avoid excessive log noise. They can still be
enabled by lowering client_min_messages or log_min_messages for the session.

This commit updates logical decoding to log these messages at LOG for
background activity and at DEBUG1 for foreground execution.

Suggested-by: Robert Haas <robertmhaas@gmail.com>
Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/CA+TgmoYsu2+YAo9eLGkDp5VP-pfQ-jOoX382vS4THKHeRTNgew@mail.gmail.com
src/backend/replication/logical/logical.c
src/backend/replication/logical/snapbuild.c
src/include/replication/logical.h
src/test/recovery/t/038_save_logical_slots_shutdown.pl