Re: pervasiveness of surrogate (also called synthetic) keys

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: pervasiveness of surrogate (also called synthetic) keys
Дата
Msg-id BANLkTimJown4tYAQR=DZdscgbMG97dMOfg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pervasiveness of surrogate (also called synthetic) keys  (Greg Smith <greg@2ndquadrant.com>)
Список pgsql-general
On Tue, May 3, 2011 at 8:03 PM, Greg Smith <greg@2ndquadrant.com> wrote:

> With a uniqueness constraint in this situation, the unexpected data--row
> with a non unique MAC--will be rejected and possibly lost when the insertion
> happens.  You say that's a good thing, plenty of people will say that's the
> worst possible thing that can happen.

But remember the original discussion is on using these are PK/FK.
That's where things get really ugly.  I can change my data model to
not have a unique MAC or to do something to make them unique (add IP
or something) much more easily if they're NOT a PK/FK.  That's the
real issue to me.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: GROUP BY Wildcard Syntax Thought
Следующее
От: Greg Smith
Дата:
Сообщение: Re: Fwd: Re: SSDD reliability