From: Glenn Plas Date: Mon, 23 Oct 2017 10:37:32 +0000 (+0200) Subject: add clues for sysadmin concerning HBA issues X-Git-Tag: pgbouncer_1_8~13^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f3dfc9b584aa177623ccfe4846322ebb55b9d63;p=pgbouncer add clues for sysadmin concerning HBA issues --- diff --git a/src/hba.c b/src/hba.c index afa726f..b678e05 100644 --- a/src/hba.c +++ b/src/hba.c @@ -392,12 +392,15 @@ static bool parse_names(struct HBAName *hname, struct TokParser *tp, bool is_db, goto eat_comma; } if (eat_kw(tp, "samerole")) { + log_warning("samerole is not supported"); return false; } if (eat_kw(tp, "samegroup")) { + log_warning("samegroup is not supported"); return false; } if (eat_kw(tp, "replication")) { + log_warning("replication is not supported"); return false; } } @@ -631,6 +634,8 @@ struct HBA *hba_load_rules(const char *fn) break; parse_from_string(&tp, ln); if (!parse_line(hba, &tp, linenr, fn)) { + /* Tell the admin where to look for the problem. */ + log_warning("problem in hba config LINE %d", linenr); /* Ignore line, but parse to the end. */ continue; }