Backport to fix dblink_connect() password verification
Backport to fix dblink_connect() password verification

	commit cae7ad906a0337120afe856b0a76b03b8ffc7440
	Author: Tom Lane <tgl@sss.pgh.pa.us>
	Date:   Mon Sep 22 13:55:14 2008 +0000

	    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

kaknikhil/gpdb,jmcatamney/gpdb,Chibin/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,Quikling/gpdb,Chibin/gpdb,Quikling/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,Quikling/gpdb,50wu/gpdb,yuanzhao/gpdb,lisakowen/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,xinzweb/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,adam8157/gpdb,lisakowen/gpdb,50wu/gpdb,adam8157/gpdb,edespino/gpdb,lisakowen/gpdb,adam8157/gpdb,xinzweb/gpdb,Quikling/gpdb,janebeckman/gpdb,yuanzhao/gpdb,edespino/gpdb,Quikling/gpdb,adam8157/gpdb,xinzweb/gpdb,jmcatamney/gpdb,lisakowen/gpdb,adam8157/gpdb,Quikling/gpdb,ashwinstar/gpdb,edespino/gpdb,janebeckman/gpdb,cjcjameson/gpdb,xinzweb/gpdb,kaknikhil/gpdb,rvs/gpdb,janebeckman/gpdb,rvs/gpdb,edespino/gpdb,rvs/gpdb,janebeckman/gpdb,rvs/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,50wu/gpdb,lisakowen/gpdb,cjcjameson/gpdb,rvs/gpdb,cjcjameson/gpdb,janebeckman/gpdb,Chibin/gpdb,Quikling/gpdb,adam8157/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,lisakowen/gpdb,Quikling/gpdb,janebeckman/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,janebeckman/gpdb,kaknikhil/gpdb,edespino/gpdb,xinzweb/gpdb,50wu/gpdb,greenplum-db/gpdb,50wu/gpdb,rvs/gpdb,edespino/gpdb,yuanzhao/gpdb,janebeckman/gpdb,yuanzhao/gpdb,Quikling/gpdb,Chibin/gpdb,50wu/gpdb,edespino/gpdb,yuanzhao/gpdb,50wu/gpdb,Chibin/gpdb,edespino/gpdb,xinzweb/gpdb,adam8157/gpdb,jmcatamney/gpdb,Chibin/gpdb,janebeckman/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,janebeckman/gpdb,rvs/gpdb,kaknikhil/gpdb,rvs/gpdb,adam8157/gpdb,xinzweb/gpdb,lisakowen/gpdb,edespino/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,xinzweb/gpdb,greenplum-db/gpdb,rvs/gpdb,Chibin/gpdb,kaknikhil/gpdb,Quikling/gpdb,jmcatamney/gpdb,Chibin/gpdb,Chibin/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,edespino/gpdb,lisakowen/gpdb,greenplum-db/gpdb,Chibin/gpdb,rvs/gpdb,jmcatamney/gpdb,50wu/gpdb,yuanzhao/gpdb