Downgrade warning to debug5 when AES/PLAIN password not found in pool_passwd.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 13 Sep 2018 06:02:03 +0000 (15:02 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 13 Sep 2018 06:02:03 +0000 (15:02 +0900)
When health_check_password etc. is an empty string, Pgpool-II tries to
fetch AES/PLAIN password in pool_passwd. If other type of password
entry (actually it must be MD5), it warned it. However this is normal
setting till 3.7. Moreover, every time health check or streaming
replication delay check run, it emits the waring and the log file was
filled up with the message.

Solution is, downgrade the message to DEBUG5. Also add password type to
the message.

src/auth/pool_passwd.c

index d9033290d640d352f38828c20aa0cdbbabf6bd77..bbc33b9a08a8da778fbdf8662bf00170b66e059e 100644 (file)
@@ -512,9 +512,13 @@ get_pgpool_config_user_password(char *username, char *password_in_config)
 
        if (password && strlen(password) && passwordType != PASSWORD_TYPE_PLAINTEXT)
        {
-               ereport(WARNING,
+               /*
+                * Could not find plain text password in pool_passwd corresponding to the user.
+                * This is normal. Just use empty password in pgpool.conf.
+                */
+               ereport(DEBUG5,
                                (errmsg("could not get the password for user:%s", username),
-                                errdetail("username \"%s\" has invalid password type", username)));
+                                errdetail("username \"%s\" has invalid password type: %d", username, passwordType)));
                password = NULL;
        }
        if (password)