Reword error messages for consistency

This commit is contained in:
Peter Eisentraut 2023-06-28 19:30:26 +02:00
parent ac1e974221
commit 046c8c5c8f
1 changed files with 2 additions and 2 deletions

View File

@ -890,13 +890,13 @@ ParallelApplyWorkerMain(Datum main_arg)
if (!seg)
ereport(ERROR,
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
errmsg("unable to map dynamic shared memory segment")));
errmsg("could not map dynamic shared memory segment")));
toc = shm_toc_attach(PG_LOGICAL_APPLY_SHM_MAGIC, dsm_segment_address(seg));
if (!toc)
ereport(ERROR,
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
errmsg("bad magic number in dynamic shared memory segment")));
errmsg("invalid magic number in dynamic shared memory segment")));
/* Look up the shared information. */
shared = shm_toc_lookup(toc, PARALLEL_APPLY_KEY_SHARED, false);