|
|
|
@ -1187,7 +1187,7 @@ AlterSubscription(ParseState *pstate, AlterSubscriptionStmt *stmt, |
|
|
|
ereport(ERROR, |
|
|
|
ereport(ERROR, |
|
|
|
(errcode(ERRCODE_SYNTAX_ERROR), |
|
|
|
(errcode(ERRCODE_SYNTAX_ERROR), |
|
|
|
errmsg("ALTER SUBSCRIPTION with refresh and copy_data is not allowed when two_phase is enabled"), |
|
|
|
errmsg("ALTER SUBSCRIPTION with refresh and copy_data is not allowed when two_phase is enabled"), |
|
|
|
errhint("Use ALTER SUBSCRIPTION ...SET PUBLICATION with refresh = false, or with copy_data = false" |
|
|
|
errhint("Use ALTER SUBSCRIPTION ... SET PUBLICATION with refresh = false, or with copy_data = false" |
|
|
|
", or use DROP/CREATE SUBSCRIPTION."))); |
|
|
|
", or use DROP/CREATE SUBSCRIPTION."))); |
|
|
|
|
|
|
|
|
|
|
|
PreventInTransactionBlock(isTopLevel, "ALTER SUBSCRIPTION with refresh"); |
|
|
|
PreventInTransactionBlock(isTopLevel, "ALTER SUBSCRIPTION with refresh"); |
|
|
|
@ -1239,7 +1239,7 @@ AlterSubscription(ParseState *pstate, AlterSubscriptionStmt *stmt, |
|
|
|
ereport(ERROR, |
|
|
|
ereport(ERROR, |
|
|
|
(errcode(ERRCODE_SYNTAX_ERROR), |
|
|
|
(errcode(ERRCODE_SYNTAX_ERROR), |
|
|
|
errmsg("ALTER SUBSCRIPTION with refresh and copy_data is not allowed when two_phase is enabled"), |
|
|
|
errmsg("ALTER SUBSCRIPTION with refresh and copy_data is not allowed when two_phase is enabled"), |
|
|
|
errhint("Use ALTER SUBSCRIPTION ...SET PUBLICATION with refresh = false, or with copy_data = false" |
|
|
|
errhint("Use ALTER SUBSCRIPTION ... SET PUBLICATION with refresh = false, or with copy_data = false" |
|
|
|
", or use DROP/CREATE SUBSCRIPTION."))); |
|
|
|
", or use DROP/CREATE SUBSCRIPTION."))); |
|
|
|
|
|
|
|
|
|
|
|
PreventInTransactionBlock(isTopLevel, "ALTER SUBSCRIPTION with refresh"); |
|
|
|
PreventInTransactionBlock(isTopLevel, "ALTER SUBSCRIPTION with refresh"); |
|
|
|
|