I use Oracle and create dblink in my schema and then access the remote database as follows: mytable@myremotedb , anyway, with PostgreSQL?
I am currently using dblink as follows:
SELECT logindate FROM dblink('host=dev.toto.com user=toto password=isok dbname=totofamily', 'SELECT logindate FROM loginlog');
When I execute this command, I get the following error:
TIP: no function matches the specified name and argument types. You may need to add explicit types.
Does anyone have any ideas? Do I need to โactivateโ dblinks or do something before using them?
Is there anything to do in the remote database that we will query? Do I need to activate dblink? I keep having could not establish connection . This is a string like:
SELECT dblink_connect_u('host=xxxx dbname=mydb user=root port=5432');
The IP address is correct and Postgres is running on the remote server. Any idea?
sql postgresql dblink
Spredzy Oct 05 '10 at 10:08 2010-10-05 10:08
source share