Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6f81306

Browse files
committed
Downgrade subscription refresh messages to DEBUG1
The NOTICE messages about tables being added or removed duringsubscription refresh would be incorrect and possibly confusing if thetransaction rolls back, so silence them but keep them available fordebugging.Discussion:https://www.postgresql.org/message-id/CAD21AoAvaXizc2h7aiNyK_i0FQSa-tmhpdOGwbhh7Jy544Ad4Q%40mail.gmail.com
1 parent655727d commit6f81306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/commands/subscriptioncmds.c

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp