diff options
author | Andres Freund <andres@anarazel.de> | 2015-10-03 15:29:08 +0200 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2015-10-03 15:29:28 +0200 |
commit | 99557984bc91446d50a70fc5ecb1306bc3cf56f6 (patch) | |
tree | 326a6ae2f93279d92344261aed1dd032781ef3b0 /src | |
parent | 8e45497a231e4e83ba2c9ca7cb3561a7d9e65f22 (diff) |
Improve errhint() about replication slot naming restrictions.
The existing hint talked about "may only contain letters", but the
actual requirement is more strict: only lower case letters are allowed.
Reported-By: Rushabh Lathia
Author: Rushabh Lathia
Discussion: AGPqQf2x50qcwbYOBKzb4x75sO_V3g81ZsA8+Ji9iN5t_khFhQ@mail.gmail.com
Backpatch: 9.4-, where replication slots were added
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/replication/slot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c index 122cac38540..2104e4da54e 100644 --- a/src/backend/replication/slot.c +++ b/src/backend/replication/slot.c @@ -195,7 +195,7 @@ ReplicationSlotValidateName(const char *name, int elevel) (errcode(ERRCODE_INVALID_NAME), errmsg("replication slot name \"%s\" contains invalid character", name), - errhint("Replication slot names may only contain letters, numbers, and the underscore character."))); + errhint("Replication slot names may only contain lower case letters, numbers, and the underscore character."))); return false; } } |