Re: Accessing 2 different databases in the same query ?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Accessing 2 different databases in the same query ?
Дата
Msg-id 200306021232.29405.dev@archonet.com
обсуждение исходный текст
Ответ на Re: Accessing 2 different databases in the same query ?  (Nagib Abi Fadel <nagib_postgres@yahoo.com>)
Список pgsql-general
On Monday 02 Jun 2003 9:39 am, Nagib Abi Fadel wrote:
> From what i read dblink let's us access another database in the same query
> ... Which is great. But does it slow down the query ??

Don't use it myself, but from discussion on the lists, I'd say "probably" -
don't see how it could be otherwise. You'll want to test.

> And what about making references between tables (creating foreign keys) is
> it possible ?????

Nope - just not practical. You could bring both servers to a grinding halt
very quickly trying to keep track of FKs over a network link.

Incidentally, if you don't need the two databases on different machines,
perhaps look at using schemas to separate users - that would let you have FKs
etc.

--
  Richard Huxton

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: ERROR: CreateTrigger: function.....
Следующее
От: Darko Prenosil
Дата:
Сообщение: Re: Accessing 2 different databases in the same query ?