Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > PostgreSQL > errors with "dblink"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-11-03, 12:49
greg_ggl greg_ggl is offline
Registered User
 
Join Date: Jul 2003
Posts: 10
Unhappy errors with "dblink"

I use dblink with PostgreSQL 7.3.2

but i have errors :

> select dblink('dbname=testdb','select * from act2');
Error: ERROR: Cannot display a value of type RECORD

> select * from dblink('dbname=testdb','select * from act2');
Error: ERROR: A column definition list is required for functions returning RECORD

I don't know why....

Please help me,
Thanks,
Greg
Reply With Quote
  #2 (permalink)  
Old 07-13-03, 15:19
eperich eperich is offline
Registered User
 
Join Date: Sep 2001
Location: Vienna
Posts: 398
don't know

I thin k you should look in the postgresql sources in the dir
contrib/dblink/sql

there is a file called dblink.sql with many examples
maybe you find something useful there

If it is not resolving your problem then come back and ask :-)
__________________
http://www.postgresql.org
--Postgresql is the only kind of thing--
Reply With Quote
  #3 (permalink)  
Old 07-15-03, 04:48
greg_ggl greg_ggl is offline
Registered User
 
Join Date: Jul 2003
Posts: 10
Re: don't know

the 2 examples are as those of the file contrib/dblink/sql applied on my database...

And I do not understand these errors...

On the other hand with dblink_connect I have no problem, the result is correct.

It is right a problem whith the return "value" of the function dblink..


P.S. thanks to have taken some time to answer and help me..
Reply With Quote
  #4 (permalink)  
Old 07-15-03, 05:10
eperich eperich is offline
Registered User
 
Join Date: Sep 2001
Location: Vienna
Posts: 398
lack of time

At the moment I' short of time
but I will look at this in the evening and send you the answer.
__________________
http://www.postgresql.org
--Postgresql is the only kind of thing--
Reply With Quote
  #5 (permalink)  
Old 07-15-03, 05:12
greg_ggl greg_ggl is offline
Registered User
 
Join Date: Jul 2003
Posts: 10
Talking Re: lack of time

ok thank you very much, I am not too hurry so take your time....
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On