Re: foreign keys on multiple parent table

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: foreign keys on multiple parent table
Дата
Msg-id CAKFQuwbo+wunJ7MaQHWxCMkrGu1DQUn2EqGJk_tTjg49FpzczQ@mail.gmail.com
обсуждение исходный текст
Ответ на foreign keys on multiple parent table  (Lorusso Domenico <domenico.l76@gmail.com>)
Список pgsql-general
On Tuesday, June 20, 2023, Lorusso Domenico <domenico.l76@gmail.com> wrote:

Could work, but is there a way to set a reference key over the uuid of all the tables?

A foreign key in PostgreSQL is between two, and only two, tables.  The PK side of which must be uniquely constrained.

You can write custom triggers if you need something other than this.

David J.

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

Предыдущее
От: Lorusso Domenico
Дата:
Сообщение: foreign keys on multiple parent table
Следующее
От: Les
Дата:
Сообщение: Re: foreign keys on multiple parent table