Re: Create database/table using postgresql stored function

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Create database/table using postgresql stored function
Дата
Msg-id 4CFF629B.7030602@lelarge.info
обсуждение исходный текст
Ответ на Re: Create database/table using postgresql stored function  ("Manasi Save" <manasi.save@artificialmachines.com>)
Список pgsql-admin
Le 08/12/2010 11:04, Manasi Save a écrit :
> Also I want to query multiple databases from stored functions from one
> central database.
> for ex :=
>
> CREATE OR REPLACE FUNCTION test ()  RETURNS  AS
> $BODY$
>
> SELECT * FROM db2.volume
> ORDER BY db2.volume.volumeID
>
> $BODY$
> LANGUAGE sql STABLE
> COST 100
> ROWS 1000;'
>
> I have implemented this thing in mysql but I am not really sure is it
> possible in postgresql.

Nope, you can't use the same kind of queries. You need to install dblink
or PL/proxy to get that kind of capacity.


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Create database/table using postgresql stored function
Следующее
От: c k
Дата:
Сообщение: Asynchronous query execution