From e838b3ad04866fe73d712ce2e9f12ea7da68a042 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Wed, 28 Aug 2013 12:29:54 -0600 Subject: [PATCH] don't overwrite pgbouncer user on startup if it already exists --- src/admin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/admin.c b/src/admin.c index dafcfa4..7bd80f4 100644 --- a/src/admin.c +++ b/src/admin.c @@ -1361,7 +1361,9 @@ void admin_setup(void) admin_pool = pool; /* fake user, with disabled psw */ - user = add_user("pgbouncer", ""); + user = find_user("pgbouncer"); + if (!user) + user = add_user("pgbouncer", ""); if (!user) fatal("cannot create admin user?"); -- 2.40.0