Re: Calling a table residing in another database from Plpgsql

From: CoL <col(at)mportal(dot)hu>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Calling a table residing in another database from Plpgsql
Date: 2005-01-05 12:50:42
Message-ID: crgnrh$2a7i$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

hi,

deepthi(at)granwill(dot)com wrote, On 1/5/2005 06:13:
> I infact downloaded the dblink package in contrib folder. But still when i
> tried to use dblink in the following manner:
>
> SELECT * from dblink('host=192.168.0.50 dbname=AK1 user=akteam','Select
> userid from user_reg') as t (userid integer);
>
> I am getting an error as "ERROR: function dblink("unknown", "unknown")
> does not exist"

try to set up dblink. Read the README.dblink file, Installation: part.
Use dblink_connect to connect, then you can query with dblink()

read the docs befor you try to use it.

PS: or better use schemas, not different databases.

C.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2005-01-05 13:29:29 Re: foreign key problems
Previous Message BARTKO 2005-01-05 09:30:03 Re: foreign key problems