pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #5761: In 'dblink' function connection string truncated
5+ messages / 4 participants
[nested] [flat]
* BUG #5761: In 'dblink' function connection string truncated
@ 2010-11-22 08:04 dp <prikotov@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: dp @ 2010-11-22 08:04 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 5761
Logged by: dp
Email address: prikotov@gmail.com
PostgreSQL version: 8.3.12
Operating system: Fedora release 14 (Laughlin)
Description: In 'dblink' function connection string truncated
Details:
The connection info string in 'dblink' function truncated to 62 characters.
On execution: 'NOTICE: identifier "dbname=somebase host=xx.xxx.xx.xx
user=iamuser password=somepassword77 port=5432" will be truncated to
"dbname=somebase host=xx.xxx.xx.xx user=iamuser password=somepas"'
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #5761: In 'dblink' function connection string truncated
@ 2010-11-22 16:20 Tom Lane <tgl@sss.pgh.pa.us>
parent: dp <prikotov@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2010-11-22 16:20 UTC (permalink / raw)
To: dp <prikotov@gmail.com>; +Cc: pgsql-bugs
"dp" <prikotov@gmail.com> writes:
> Description: In 'dblink' function connection string truncated
> Details:
> The connection info string in 'dblink' function truncated to 62 characters.
> On execution: 'NOTICE: identifier "dbname=somebase host=xx.xxx.xx.xx
> user=iamuser password=somepassword77 port=5432" will be truncated to
> "dbname=somebase host=xx.xxx.xx.xx user=iamuser password=somepas"'
Does this actually break anything, or is it just an annoying NOTICE?
When I try it here, I get the NOTICE as described, but the connection
string still works.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #5761: In 'dblink' function connection string truncated
@ 2010-11-29 15:50 queej <dqj@authentrics.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: queej @ 2010-11-29 15:50 UTC (permalink / raw)
To: pgsql-bugs
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.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5761-In-dblink-function-connection-string-truncated-tp32...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #5761: In 'dblink' function connection string truncated
@ 2010-11-29 16:31 queej <dqj@quinn-jacobs.org>
parent: queej <dqj@authentrics.com>
0 siblings, 1 reply; 5+ messages in thread
From: queej @ 2010-11-29 16:31 UTC (permalink / raw)
To: pgsql-bugs
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().
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #5761: In 'dblink' function connection string truncated
@ 2010-11-29 18:27 Tom Lane <tgl@sss.pgh.pa.us>
parent: queej <dqj@quinn-jacobs.org>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2010-11-29 18:27 UTC (permalink / raw)
To: queej <dqj@quinn-jacobs.org>; +Cc: pgsql-bugs
queej <dqj@quinn-jacobs.org> 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
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2010-11-29 18:27 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22 08:04 BUG #5761: In 'dblink' function connection string truncated dp <prikotov@gmail.com>
2010-11-22 16:20 ` Tom Lane <tgl@sss.pgh.pa.us>
2010-11-29 15:50 ` queej <dqj@authentrics.com>
2010-11-29 16:31 ` queej <dqj@quinn-jacobs.org>
2010-11-29 18:27 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox