Dmitriy Igrishin <dmitigr@xxxxxxxxx> writes: > But it's impossible to pass empty (NULL) password to the backend Please note that empty and null are not the same thing... > by using libpq, because connectOptions2() defined the > fe-connect.c reads a password from the ~/.pgpass even when a password > specified as an empty string literal (""). I rather doubt that we'll change this, because it seems more likely to break applications that rely on that behavior than to do anything useful. Surely nobody in their right mind uses an empty password. (If anything, I'd be more inclined to make the backend treat an empty password as an error than to try to make libpq safe for the case. Even if we did change libpq, there are probably issues with empty passwords in jdbc and who knows how many other places.) regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general