From 99557984bc91446d50a70fc5ecb1306bc3cf56f6 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Sat, 3 Oct 2015 15:29:08 +0200 Subject: 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 --- src/backend/replication/slot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } } -- cgit v1.2.3