From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Primary key data type: integer vs identity
Date: Fri, 19 Apr 2019 11:19:51 -0700
Message-ID: <b0da4cc6-be57-ddaf-f762-ac4455569417@aklaver.com> (raw)
In-Reply-To: <alpine.LNX.2.20.1904191112120.24219@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.1904191050120.24219@salmo.appl-ecosys.com>
<c1df337c-8819-711b-496e-459e7fb88408@aklaver.com>
<alpine.LNX.2.20.1904191112120.24219@salmo.appl-ecosys.com>
On 4/19/19 11:14 AM, Rich Shepard wrote:
> On Fri, 19 Apr 2019, Adrian Klaver wrote:
>
>> If it is working for you now I see no reason to switch.
>
> Adrian,
>
> It does work. I just learned about the SQL identity type and want to learn
> when it's most appropriate to use. The databases I develop all work with
> integers as primary keys and reading about the type didn't clarify (for me)
> when it should be used.
Mainly for folks that want cross database SQL compliance. It is not a
type so much as a way of specifying an auto-increment column.
>
> Regards,
>
> Rich
>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, rshepard@appl-ecosys.com
Subject: Re: Primary key data type: integer vs identity
In-Reply-To: <b0da4cc6-be57-ddaf-f762-ac4455569417@aklaver.com>
References: <alpine.LNX.2.20.1904191050120.24219@salmo.appl-ecosys.com> <c1df337c-8819-711b-496e-459e7fb88408@aklaver.com> <alpine.LNX.2.20.1904191112120.24219@salmo.appl-ecosys.com> <b0da4cc6-be57-ddaf-f762-ac4455569417@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox