Re: Primary key data type: integer vs identity

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Primary key data type: integer vs identity
Дата
Msg-id alpine.LNX.2.20.1904230715030.9420@salmo.appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Primary key data type: integer vs identity  (Peter Devoy <peter@3xe.co.uk>)
Список pgsql-general
On Tue, 23 Apr 2019, Peter Devoy wrote:

> I think you may have serial already there (indicated by sequence in the the
> default value).

Peter,

As serial is an alias for integer (the actual data type) using integer and
specifying it as the primary key works.

> If you wish to change to identity columns this should be useful:
> https://www.2ndquadrant.com/en/blog/postgresql-10-identity-columns/

Nah, I don't see a reason to change. Identity columns obviously have a
benefit for some but not for me.

Thanks for the suggestion,

Rich



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

Предыдущее
От: Peter Devoy
Дата:
Сообщение: Re: Primary key data type: integer vs identity
Следующее
От: Ray O'Donnell
Дата:
Сообщение: Re: Resetting identity columns