Re: Calling a table residing in another database from Plpgsql

Поиск
Список
Период
Сортировка
От CoL
Тема Re: Calling a table residing in another database from Plpgsql
Дата
Msg-id crgnrh$2a7i$1@news.hub.org
обсуждение исходный текст
Ответ на Calling a table residing in another database from Plpgsql  (deepthi@granwill.com)
Список pgsql-sql
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.


В списке pgsql-sql по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: [JDBC] Calling a table in another database from plpgsql
Следующее
От: "Dmitri Bichko"
Дата:
Сообщение: Question about insert/update RULEs.