mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Improve the WARNING message for CREATE SUBSCRIPTION.
Author: Peter Smith Reviewed-By: Alvaro Herrera, Tom Lane, Amit Kapila Discussion: https://postgr.es/m/CAHut+PvqdqOanheWSHDyhQiF+Z-7w=-+k4U+bwbT=b6YQ_hrXQ@mail.gmail.com
This commit is contained in:
@ -760,9 +760,8 @@ CreateSubscription(ParseState *pstate, CreateSubscriptionStmt *stmt,
|
||||
}
|
||||
else
|
||||
ereport(WARNING,
|
||||
/* translator: %s is an SQL ALTER statement */
|
||||
(errmsg("tables were not subscribed, you will have to run %s to subscribe the tables",
|
||||
"ALTER SUBSCRIPTION ... REFRESH PUBLICATION")));
|
||||
(errmsg("subscription was created, but is not connected"),
|
||||
errhint("To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription.")));
|
||||
|
||||
table_close(rel, RowExclusiveLock);
|
||||
|
||||
|
Reference in New Issue
Block a user