From: CoL <col@mportal.hu>
To: pgsql-sql@postgresql.org
Subject: Re: Calling a table residing in another database from Plpgsql
Date: Wed, 05 Jan 2005 13:50:42 +0100
Message-ID: <crgnrh$2a7i$1@news.hub.org> (raw)
In-Reply-To: <43146.61.11.66.222.1104902026.squirrel@61.11.66.222>
References: <43146.61.11.66.222.1104902026.squirrel@61.11.66.222>
hi,
deepthi@granwill.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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: col@mportal.hu
Subject: Re: Calling a table residing in another database from Plpgsql
In-Reply-To: <crgnrh$2a7i$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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