postgresql/contrib/dblink
Tom Lane cae7ad906a Fix dblink_connect() so that it verifies that a password is supplied in the
conninfo string *before* trying to connect to the remote server, not after.
As pointed out by Marko Kreen, in certain not-very-plausible situations
this could result in sending a password from the postgres user's .pgpass file,
or other places that non-superusers shouldn't have access to, to an
untrustworthy remote server.  The cleanest fix seems to be to expose libpq's
conninfo-string-parsing code so that dblink can check for a password option
without duplicating the parsing logic.

Joe Conway, with a little cleanup by Tom Lane
2008-09-22 13:55:14 +00:00
..
expected When an ERROR happens on a dblink remote connection, take 2008-07-03 03:56:57 +00:00
sql Improve hash_any() to use word-wide fetches when hashing suitably aligned 2008-04-06 16:54:49 +00:00
Makefile Remove references to READMEs from /contrib Makefiles. 2007-11-10 23:59:52 +00:00
dblink.c Fix dblink_connect() so that it verifies that a password is supplied in the 2008-09-22 13:55:14 +00:00
dblink.h Implement current_query(), that shows the currently executing query. 2008-04-04 16:57:21 +00:00
dblink.sql.in Make dblink_current_query() reference pg_catalog.current_query(), per Tom. 2008-04-05 02:44:42 +00:00
uninstall_dblink.sql Re-add dblink_current_query() for backward compatibility. 2008-04-05 02:26:14 +00:00