aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/commands/alter.c2
-rw-r--r--src/backend/replication/basebackup.c4
-rw-r--r--src/backend/replication/walsender.c4
-rw-r--r--src/backend/utils/adt/varlena.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/commands/alter.c b/src/backend/commands/alter.c
index 215e21cae08..d02bf7fba5d 100644
--- a/src/backend/commands/alter.c
+++ b/src/backend/commands/alter.c
@@ -420,7 +420,7 @@ AlterObjectNamespace(Relation rel, int oidCacheId, int nameCacheId,
if (Anum_owner <= 0)
ereport(ERROR,
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
- (errmsg("must be superuser to SET SCHEMA of %s",
+ (errmsg("must be superuser to set schema of %s",
getObjectDescriptionOids(classId, objid)))));
/* Otherwise, must be owner of the existing object */
diff --git a/src/backend/replication/basebackup.c b/src/backend/replication/basebackup.c
index 030a283e817..bcde19c71b6 100644
--- a/src/backend/replication/basebackup.c
+++ b/src/backend/replication/basebackup.c
@@ -119,7 +119,7 @@ perform_base_backup(basebackup_options *opt, DIR *tblspcdir)
if (readlink(fullpath, linkpath, sizeof(linkpath) - 1) == -1)
{
ereport(WARNING,
- (errmsg("unable to read symbolic link %s: %m", fullpath)));
+ (errmsg("could not read symbolic link \"%s\": %m", fullpath)));
continue;
}
@@ -363,7 +363,7 @@ SendBaseBackup(BaseBackupCmd *cmd)
dir = AllocateDir("pg_tblspc");
if (!dir)
ereport(ERROR,
- (errmsg("unable to open directory pg_tblspc: %m")));
+ (errmsg("could not open directory \"pg_tblspc\": %m")));
perform_base_backup(&opt, dir);
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
index 470e6d170d4..63952e73f13 100644
--- a/src/backend/replication/walsender.c
+++ b/src/backend/replication/walsender.c
@@ -515,7 +515,7 @@ ProcessRepliesIfAny(void)
default:
ereport(FATAL,
(errcode(ERRCODE_PROTOCOL_VIOLATION),
- errmsg("invalid standby message type %d",
+ errmsg("invalid standby message type \"%c\"",
firstchar)));
}
}
@@ -566,7 +566,7 @@ ProcessStandbyMessage(void)
default:
ereport(COMMERROR,
(errcode(ERRCODE_PROTOCOL_VIOLATION),
- errmsg("unexpected message type %c", msgtype)));
+ errmsg("unexpected message type \"%c\"", msgtype)));
proc_exit(0);
}
}
diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c
index d1113ed5d30..3677b1c3bbc 100644
--- a/src/backend/utils/adt/varlena.c
+++ b/src/backend/utils/adt/varlena.c
@@ -3887,7 +3887,7 @@ text_format(PG_FUNCTION_ARGS)
if (arg > PG_NARGS() - 1)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("too few arguments for format conversion")));
+ errmsg("too few arguments for format")));
/*
* At this point, we should see the main conversion specifier. Whether
@@ -3908,7 +3908,7 @@ text_format(PG_FUNCTION_ARGS)
default:
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("unrecognized conversion specifier: %c",
+ errmsg("unrecognized conversion specifier \"%c\"",
*cp)));
}
}