Re: Enforce primary key on every table during dev?

Поиск
Список
Период
Сортировка
От geoff hoffman
Тема Re: Enforce primary key on every table during dev?
Дата
Msg-id A14ADBFC-923C-4912-BBDA-A6C3532E47EA@rxmg.com
обсуждение исходный текст
Ответ на Re: Enforce primary key on every table during dev?  (marcelo <marcelo.nicolet@gmail.com>)
Список pgsql-general
I found this thread very interesting.

A pivot table is a perfectly valid use case where a compound unique key on two or more columns performs the same
functionas a primary key without one.  

I’m not nearly as familiar with Postgres as I am with MySQL (which is why I recently joined this list)... it may be
possibleto define a collection of tables as a primary key. But if only a unique key is specified in this case, everyone
wouldstill be ok with the result from a logic design standpoint. 

 I think Melvin, way up the thread, had the best answer- be the DBA and have a review process. Don’t let folks go
addingtables as they like. 

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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: Enforce primary key on every table during dev?
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Version upgrade: is restoring the postgres database needed?