aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2015-10-03 15:29:08 +0200
committerAndres Freund <andres@anarazel.de>2015-10-03 15:29:35 +0200
commitcfddb5df5a84923160b23890d6086bcbcd1fd655 (patch)
tree8395a337f44da1582c8c3b2964f56dfd45cffdc8 /src
parent7285d66494a4c588ccf743a81f93b85b6995214f (diff)
downloadpostgresql-cfddb5df5a84923160b23890d6086bcbcd1fd655.tar.gz
postgresql-cfddb5df5a84923160b23890d6086bcbcd1fd655.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index abe8747fe4d..41389030b67 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;
}
}