postgresql/src/include/replication
Fujii Masao de74d1e9a5 Adjust log level of logical decoding messages by context
Commit 21b018e7ea 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
2026-04-10 22:59:34 +09:00
..
conflict.h Avoid including utils/timestamp.h in conflict.h. 2026-02-23 10:19:05 +05:30
decode.h Add CONCURRENTLY option to REPACK 2026-04-06 21:55:08 +02:00
logical.h Adjust log level of logical decoding messages by context 2026-04-10 22:59:34 +09:00
logicalctl.h Convert all remaining subsystems to use the new shmem allocation API 2026-04-06 02:13:10 +03:00
logicallauncher.h Convert all remaining subsystems to use the new shmem allocation API 2026-04-06 02:13:10 +03:00
logicalproto.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
logicalrelation.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
logicalworker.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
message.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
origin.h Convert all remaining subsystems to use the new shmem allocation API 2026-04-06 02:13:10 +03:00
output_plugin.h Allow logical replication snapshots to be database-specific 2026-04-07 12:31:18 +02:00
pgoutput.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
reorderbuffer.h Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
slot.h Reserve replication slots specifically for REPACK 2026-04-07 16:55:29 +02:00
slotsync.h Fix slotsync worker blocking promotion when stuck in wait 2026-04-08 11:22:21 +09:00
snapbuild.h Allow logical replication snapshots to be database-specific 2026-04-07 12:31:18 +02:00
snapbuild_internal.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
syncrep.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
walreceiver.h Convert all remaining subsystems to use the new shmem allocation API 2026-04-06 02:13:10 +03:00
walsender.h Add wal_sender_shutdown_timeout GUC to limit shutdown wait for replication 2026-04-06 11:35:03 +09:00
walsender_private.h Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
worker_internal.h Don't include storage/lock.h in so many headers 2026-03-24 17:11:12 +01:00