From 57cb9eb49d9c6b74b3812168ced2890b0256a9aa Mon Sep 17 00:00:00 2001 From: Shveta Malik Date: Wed, 18 Nov 2026 04:52:54 +0000 Subject: [PATCH v5 2/2] Doc: Explain how to recover a subscription disabled by disable_on_error If the underlying cause of an error is not resolved, a subscription disabled by disable_on_error is disabled again shortly after it is re-enabled. For example, initial table synchronization keeps failing when the table or the publication was dropped on the publisher, or the table was removed from the publication. ALTER SUBSCRIPTION ... REFRESH PUBLICATION is needed to remove such a table from the subscription, but it can't be run on a disabled subscription, so the user can be left stuck. Update the docs to mention a way out of this. --- doc/src/sgml/ref/alter_subscription.sgml | 14 ++++++++++++++ doc/src/sgml/ref/create_subscription.sgml | 9 +++++++++ 2 files changed, 23 insertions(+) diff --git a/doc/src/sgml/ref/alter_subscription.sgml b/doc/src/sgml/ref/alter_subscription.sgml index 545264e8a0a..233ecb7f43e 100644 --- a/doc/src/sgml/ref/alter_subscription.sgml +++ b/doc/src/sgml/ref/alter_subscription.sgml @@ -185,6 +185,20 @@ ALTER SUBSCRIPTION name RENAME TO < that are still part of the publication. + + + This command cannot be run while the subscription is disabled. If the + subscription was disabled by + disable_on_error + due to an error that the refresh would resolve (for example, an error + involving a table that is no longer published), temporarily set + disable_on_error to false, + re-enable the + subscription, perform the refresh, and then set + disable_on_error back to true. + + + refresh_option specifies additional options for the refresh operation. The supported options are: diff --git a/doc/src/sgml/ref/create_subscription.sgml b/doc/src/sgml/ref/create_subscription.sgml index 92552e97009..ebf29bd6f57 100644 --- a/doc/src/sgml/ref/create_subscription.sgml +++ b/doc/src/sgml/ref/create_subscription.sgml @@ -469,6 +469,15 @@ CREATE SUBSCRIPTION subscription_namefalse. + + + If the underlying error persists, the subscription might be disabled + again after it is re-enabled. If the error can only be resolved by + ALTER SUBSCRIPTION ... REFRESH PUBLICATION, + see that command for how to proceed, because it cannot be run while the + subscription is disabled. + + -- 2.34.1