{
/* LOG. Error, but missing_ok = true. */
ereport(LOG,
- (errmsg("could not drop the replication slot \"%s\" on publisher",
- slotname),
- errdetail("The error was: %s", res->err)));
+ (errmsg("could not drop replication slot \"%s\" on publisher: %s",
+ slotname, res->err)));
}
else
{
/* ERROR. */
ereport(ERROR,
- (errmsg("could not drop the replication slot \"%s\" on publisher",
- slotname),
- errdetail("The error was: %s", res->err)));
+ (errmsg("could not drop replication slot \"%s\" on publisher: %s",
+ slotname, res->err)));
}
walrcv_clear_result(res);
ereport(ERROR,
(errmsg("could not connect to publisher when attempting to "
- "drop the replication slot \"%s\"", slotname),
- errdetail("The error was: %s", err),
+ "drop replication slot \"%s\": %s", slotname, err),
/* translator: %s is an SQL ALTER command */
errhint("Use %s to disassociate the subscription from the slot.",
"ALTER SUBSCRIPTION ... SET (slot_name = NONE)")));
0, NULL);
if (res->status != WALRCV_OK_COMMAND)
ereport(ERROR,
- (errmsg("table copy could not start transaction on publisher"),
- errdetail("The error was: %s", res->err)));
+ (errmsg("table copy could not start transaction on publisher: %s",
+ res->err)));
walrcv_clear_result(res);
/*
res = walrcv_exec(wrconn, "COMMIT", 0, NULL);
if (res->status != WALRCV_OK_COMMAND)
ereport(ERROR,
- (errmsg("table copy could not finish transaction on publisher"),
- errdetail("The error was: %s", res->err)));
+ (errmsg("table copy could not finish transaction on publisher: %s",
+ res->err)));
walrcv_clear_result(res);
table_close(rel, NoLock);