diff options
| author | Andres Freund | 2015-10-03 13:29:08 +0000 |
|---|---|---|
| committer | Andres Freund | 2015-10-03 13:29:08 +0000 |
| commit | 920218cbc0a36f18793c20184b7ebb999d28e8c8 (patch) | |
| tree | 5dbed1755ecdec9d4e9a06f116ce8ed1f2b6e458 /src | |
| parent | ad227837924464eb9a7defbe34e95064a3b1bdc2 (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 c66619cda29..a4b86e039e3 100644 --- a/src/backend/replication/slot.c +++ b/src/backend/replication/slot.c @@ -196,7 +196,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; } } |
