![enter image description here](https://i.stack.imgur.com/jmd5z.png)

I'm using emacs on a console (emacs -nw). I use sql-mode, and when connecting to postgresql, it asks me to enter a password on a buffer, where password is visible.

If I customize-group and set the password option in sql-postgre-login-params list, it asks for password on the minibuffer, but also asks for password on a buffer.

How can customize sql-mode to get asked for password only on the minibuffer?

Thanks in advance.

Edit: the Emacs version: GNU Emacs 24.3.1 (x86\_64-unknown-linux-gnu, GTK+ Version 2.24.10)