Re: Primary key data type: integer vs identity - Mailing list pgsql-general

From Rich Shepard
Subject Re: Primary key data type: integer vs identity
Date
Msg-id alpine.LNX.2.20.1904230715030.9420@salmo.appl-ecosys.com
Whole thread Raw
In response to Re: Primary key data type: integer vs identity  (Peter Devoy <peter@3xe.co.uk>)
List 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 by date:

Previous
From: Peter Devoy
Date:
Subject: Re: Primary key data type: integer vs identity
Next
From: Ray O'Donnell
Date:
Subject: Re: Resetting identity columns