mirror of https://github.com/citusdata/citus.git
improve error message in secondaries (#4025)
parent
449d1f0e91
commit
76ddb85545
|
@ -282,7 +282,7 @@ EnsureModificationsCanRun(void)
|
|||
if (RecoveryInProgress() && !WritableStandbyCoordinator)
|
||||
{
|
||||
ereport(ERROR, (errmsg("writing to worker nodes is not currently allowed"),
|
||||
errdetail("the database is in recovery mode")));
|
||||
errdetail("the database is read-only")));
|
||||
}
|
||||
|
||||
if (ReadFromSecondaries == USE_SECONDARY_NODES_ALWAYS)
|
||||
|
|
|
@ -11,7 +11,7 @@ CREATE TABLE local (a int, b int);
|
|||
-- inserts normally do not work on a standby coordinator
|
||||
INSERT INTO the_table (a, b, z) VALUES (1, 2, 2);
|
||||
ERROR: writing to worker nodes is not currently allowed
|
||||
DETAIL: the database is in recovery mode
|
||||
DETAIL: the database is read-only
|
||||
-- we can allow DML on a writable standby coordinator
|
||||
SET citus.writable_standby_coordinator TO on;
|
||||
INSERT INTO the_table (a, b, z) VALUES (1, 2, 2);
|
||||
|
|
Loading…
Reference in New Issue