Re: Cross database foreign keys

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Cross database foreign keys
Дата
Msg-id web-81678@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на Cross database foreign keys  (Morgan Curley <mcurley@e4media.com>)
Список pgsql-sql
Morgan,

> Does anyone know if it is possible to connect to a differernt db from
> within a plsql function.
> I have multilple inter-related schemas and want to enforce some fk
> relationships.

Currently Postgres does not support any SQL operations between
databases.  It may someday in the future, but then again it may not
(it's a design philosophy issue, I believe).

I don't know of *any* RDBMS that allows foriegn keys between databases!
If referential integrity is your goal, why on earth is the related data
in two different databases?

-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco

Вложения

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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: [GENERAL] Cross database foreign keys
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Cross database foreign keys