Re: Primary key data type: integer vs identity

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Primary key data type: integer vs identity
Date: 2019-04-23 14:17:29
Message-ID: alpine.LNX.2.20.1904230715030.9420@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ray O'Donnell 2019-04-23 15:02:24 Re: Resetting identity columns
Previous Message Peter Devoy 2019-04-23 13:28:15 Re: Primary key data type: integer vs identity