File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -825,7 +825,7 @@ CheckCmdReplicaIdentity(Relation rel, CmdType cmd)
825825 (errcode (ERRCODE_INVALID_COLUMN_REFERENCE ),
826826 errmsg ("cannot update table \"%s\"" ,
827827 RelationGetRelationName (rel )),
828- errdetail ("Replica identity consists of an unpublished generated column ." )));
828+ errdetail ("Replica identity must not contain unpublished generated columns ." )));
829829 else if (cmd == CMD_DELETE && !pubdesc .rf_valid_for_delete )
830830 ereport (ERROR ,
831831 (errcode (ERRCODE_INVALID_COLUMN_REFERENCE ),
@@ -843,7 +843,7 @@ CheckCmdReplicaIdentity(Relation rel, CmdType cmd)
843843 (errcode (ERRCODE_INVALID_COLUMN_REFERENCE ),
844844 errmsg ("cannot delete from table \"%s\"" ,
845845 RelationGetRelationName (rel )),
846- errdetail ("Replica identity consists of an unpublished generated column ." )));
846+ errdetail ("Replica identity must not contain unpublished generated columns ." )));
847847
848848 /* If relation has replica identity we are always good. */
849849 if (OidIsValid (RelationGetReplicaIndex (rel )))
Original file line number Diff line number Diff line change @@ -683,13 +683,13 @@ ALTER TABLE testpub_gencol REPLICA IDENTITY USING index testpub_gencol_idx;
683683CREATE PUBLICATION pub_gencol FOR TABLE testpub_gencol;
684684UPDATE testpub_gencol SET a = 100 WHERE a = 1;
685685ERROR: cannot update table "testpub_gencol"
686- DETAIL: Replica identity consists of an unpublished generated column .
686+ DETAIL: Replica identity must not contain unpublished generated columns .
687687-- error - generated column "b" must be published explicitly as it is
688688-- part of the REPLICA IDENTITY.
689689ALTER TABLE testpub_gencol REPLICA IDENTITY FULL;
690690UPDATE testpub_gencol SET a = 100 WHERE a = 1;
691691ERROR: cannot update table "testpub_gencol"
692- DETAIL: Replica identity consists of an unpublished generated column .
692+ DETAIL: Replica identity must not contain unpublished generated columns .
693693DROP PUBLICATION pub_gencol;
694694-- ok - generated column "b" is published explicitly
695695CREATE PUBLICATION pub_gencol FOR TABLE testpub_gencol with (publish_generated_columns = true);
You can’t perform that action at this time.
0 commit comments