@@ -183,7 +183,7 @@ ReplicationSlotValidateName(const char *name, int elevel)
183183 (errcode (ERRCODE_INVALID_NAME ),
184184 errmsg ("replication slot name \"%s\" contains invalid character" ,
185185 name ),
186- errhint ("Replication slot names may only contain letters, numbers and the underscore character." )));
186+ errhint ("Replication slot names may only contain letters, numbers, and the underscore character." )));
187187 return false;
188188 }
189189 }
@@ -454,7 +454,7 @@ ReplicationSlotDropAcquired(void)
454454
455455 ereport (fail_softly ? WARNING : ERROR ,
456456 (errcode_for_file_access (),
457- errmsg ("could not rename \"%s\" to \"%s\": %m" ,
457+ errmsg ("could not rename file \"%s\" to \"%s\": %m" ,
458458 path , tmppath )));
459459 }
460460
@@ -1041,7 +1041,7 @@ SaveSlotToPath(ReplicationSlot *slot, const char *dir, int elevel)
10411041 {
10421042 ereport (elevel ,
10431043 (errcode_for_file_access (),
1044- errmsg ("could not rename \"%s\" to \"%s\": %m" ,
1044+ errmsg ("could not rename file \"%s\" to \"%s\": %m" ,
10451045 tmppath , path )));
10461046 return ;
10471047 }
@@ -1092,7 +1092,7 @@ RestoreSlotFromDisk(const char *name)
10921092 if (unlink (path ) < 0 && errno != ENOENT )
10931093 ereport (PANIC ,
10941094 (errcode_for_file_access (),
1095- errmsg ("could not unlink file \"%s\": %m" , path )));
1095+ errmsg ("could not remove file \"%s\": %m" , path )));
10961096
10971097 sprintf (path , "pg_replslot/%s/state" , name );
10981098
0 commit comments