Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A6C971337B5E for ; Mon, 29 Nov 2010 14:27:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 73686-03 for ; Mon, 29 Nov 2010 18:27:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 4B50C1337B5D for ; Mon, 29 Nov 2010 14:27:39 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oATIRcl9001054; Mon, 29 Nov 2010 13:27:38 -0500 (EST) To: queej cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5761: In 'dblink' function connection string truncated In-reply-to: <7dea3e9c-243d-4613-a27e-336abcb0905f@l17g2000yqe.googlegroups.com> References: <201011220804.oAM843hl004885@wwwmaster.postgresql.org> <27731.1290442809@sss.pgh.pa.us> <1291045809415-3284606.post@n5.nabble.com> <7dea3e9c-243d-4613-a27e-336abcb0905f@l17g2000yqe.googlegroups.com> Comments: In-reply-to queej message dated "Mon, 29 Nov 2010 08:31:33 -0800" Date: Mon, 29 Nov 2010 13:27:38 -0500 Message-ID: <1053.1291055258@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/216 X-Sequence-Number: 28796 queej writes: > On Nov 29, 10:50 am, d...@authentrics.com (queej) wrote: >> Yes, it causes an error for me since it truncates the connection string in >> the middle of the username, omitting the password altogether.  I must be >> missing something; I can't understand what my alternative is but to call the >> dblink(text,text) function with a connection string and a SQL statement. > I should have mentioned that my dblink() calls are within views, so I > cannot do a two-step process of dblink_connect() followed by a > dblink(). As far as our investigation could tell, the message you're complaining about is simply a warning and would not result in any actual failure. I agree it's a bug that the message comes out at all, but it appears to be just cosmetic. If you have a situation where it leads to a non-cosmetic problem, you need to provide a complete test case illustrating that, or it's not going to get fixed. regards, tom lane