Re: Design database

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Design database
Дата
Msg-id CAKFQuwYjH8proEfMJ7jnFo9k_6tABgOG=ib5TeEnTSjGMQmPqQ@mail.gmail.com
обсуждение исходный текст
Ответ на Design database  (Mai Peng <maily.peng@webedia-group.com>)
Ответы Re: Design database  (hubert depesz lubaczewski <depesz@depesz.com>)
Список pgsql-admin
On Wed, Feb 3, 2021 at 8:23 AM Mai Peng <maily.peng@webedia-group.com> wrote:
Hello,

I’ve got a table name publication, and another table named publication_item.
Each publication_item is linked to a publication by publication_id.
How could I add a constraint that check each publication has one or more publication_item when a tuple is inserted ?
I don’t want to store items in the same table as publication because we could have 1-> n items.


David J.


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

Предыдущее
От: Raj kumar
Дата:
Сообщение: Sharding in Postgres
Следующее
От: Yambu
Дата:
Сообщение: pg_wal keeps growing