Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6f81306

Browse files
committed
Downgrade subscription refresh messages to DEBUG1
The NOTICE messages about tables being added or removed during subscription refresh would be incorrect and possibly confusing if the transaction rolls back, so silence them but keep them available for debugging. Discussion: https://www.postgresql.org/message-id/CAD21AoAvaXizc2h7aiNyK_i0FQSa-tmhpdOGwbhh7Jy544Ad4Q%40mail.gmail.com
1 parent 655727d commit 6f81306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/subscriptioncmds.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data)
572572
SetSubscriptionRelState(sub->oid, relid,
573573
copy_data ? SUBREL_STATE_INIT : SUBREL_STATE_READY,
574574
InvalidXLogRecPtr, false);
575-
ereport(NOTICE,
575+
ereport(DEBUG1,
576576
(errmsg("added subscription for table %s.%s",
577577
quote_identifier(rv->schemaname),
578578
quote_identifier(rv->relname))));
@@ -600,7 +600,7 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data)
600600
logicalrep_worker_stop_at_commit(sub->oid, relid);
601601

602602
namespace = get_namespace_name(get_rel_namespace(relid));
603-
ereport(NOTICE,
603+
ereport(DEBUG1,
604604
(errmsg("removed subscription for table %s.%s",
605605
quote_identifier(namespace),
606606
quote_identifier(get_rel_name(relid)))));

0 commit comments

Comments
 (0)