Re: Enforce primary key on every table during dev?

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: Enforce primary key on every table during dev?
Дата
Msg-id 121bb8e7-7e33-81ff-f0d2-cad4d799595d@cox.net
обсуждение исходный текст
Ответ на Re: Enforce primary key on every table during dev?  (Alban Hertroys <haramrae@gmail.com>)
Ответы Re: Enforce primary key on every table during dev?
Список pgsql-general
On 03/01/2018 01:11 PM, marcelo wrote:
>
> On 01/03/2018 16:00 , Ron Johnson wrote:
[snip]
>> If your only unique index is a synthetic key, then you can insert the 
>> same "business data" multiple times with different synthetic keys.
>>
>>
>> -- 
>> Angular momentum makes the world go 'round.
> IMHO, business logic can and must preclude "garbage insertion". Except you 
> are inserting data directly to database using SQL, any n-tier architecture 
> will be checking data validity.

Any n-tier architecture that's bug-free.

-- 
Angular momentum makes the world go 'round.


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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: Enforce primary key on every table during dev?
Следующее
От: Daevor The Devoted
Дата:
Сообщение: Re: Enforce primary key on every table during dev?