Search Postgresql Archives

Re: Primary key data type: integer vs identity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux