From: marcelo <marcelo.nicolet@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Enforce primary key on every table during dev?
Date: Thu, 1 Mar 2018 19:06:43 -0300
Message-ID: <a41226fb-0562-6e3b-a1f4-c9002a37141d@gmail.com> (raw)
In-Reply-To: <915390c7-8a2e-108e-2dba-d4f716464de1@aklaver.com>
References: <C9EFC294-83B5-41FD-9542-60FDBB2588C6@gmail.com>
<161e1761560-58a6-18e4b@webjas-vad211.srv.aolmail.net>
<5a1870db-7018-fe15-ac60-ffe37abb7077@cox.net>
<5da96fe6-666b-1107-ee76-b464417bd1b7@cox.net>
<80d9a83d-fbf4-e4fa-9ccf-9272a074c50d@cox.net>
<GkY91x01e1DF5NZ01kYAWo>
<87230ccb-5b8e-e4ee-d6d5-63a9cbac5793@cox.net>
<GlEg1x04f0dZqXW01lEiD6>
<d29c9c67-1b12-68f1-2fd8-3cc28971fd9d@cox.net>
<915390c7-8a2e-108e-2dba-d4f716464de1@aklaver.com>
On 01/03/2018 18:41 , Adrian Klaver wrote:
> On 03/01/2018 01:26 PM, Ron Johnson wrote:
>> On 03/01/2018 03:14 PM, Adrian Klaver wrote:
>>> On 03/01/2018 01:03 PM, Ron Johnson wrote:
>>>> On 03/01/2018 02:32 PM, David G. Johnston wrote:
>>>
>>>> There's always the "account number", which is usually synthetic.
>>>> Credit Card numbers are also synthetic.
>>>
>>> Actually, no:
>>>
>>> https://en.wikipedia.org/wiki/Payment_card_number
>>>
>>> There is a method to the madness, not just random issuance of
>>> numbers. It was made it relatively easy for folks to *generate
>>> numbers*. Hence the addition of CSC codes.
>>
>> Right. And how do the issuers generate the individual account
>> identifier within their IIN ranges?
>
> Who knows, that is their business, though there is nothing to say they
> don't use some sort of internal 'natural' logic. It has been awhile
> since we have gone down this rabbit hole on this list, mostly because
> it is an issue that is usually left at 'we agree to disagree'. Though
> the thing that always strikes me is the assumption that a
> number/surrogate key is less 'natural' then some other sort of tag or
> combination of tags. Because that is what PK's are, a tag to identify
> a record.
+1.
>
>>
>>>
>>> ICD numbers are (relatively)
>>>> synthetic, too.
>>>>
>>>> But that doesn't mean we have to use them willy-nilly everywhere.
>>
>> --
>> Angular momentum makes the world go 'round.
>
>
---
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus
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: marcelo.nicolet@gmail.com
Subject: Re: Enforce primary key on every table during dev?
In-Reply-To: <a41226fb-0562-6e3b-a1f4-c9002a37141d@gmail.com>
References: <C9EFC294-83B5-41FD-9542-60FDBB2588C6@gmail.com> <161e1761560-58a6-18e4b@webjas-vad211.srv.aolmail.net> <5a1870db-7018-fe15-ac60-ffe37abb7077@cox.net> <5da96fe6-666b-1107-ee76-b464417bd1b7@cox.net> <80d9a83d-fbf4-e4fa-9ccf-9272a074c50d@cox.net> <GkY91x01e1DF5NZ01kYAWo> <87230ccb-5b8e-e4ee-d6d5-63a9cbac5793@cox.net> <GlEg1x04f0dZqXW01lEiD6> <d29c9c67-1b12-68f1-2fd8-3cc28971fd9d@cox.net> <915390c7-8a2e-108e-2dba-d4f716464de1@aklaver.com> <a41226fb-0562-6e3b-a1f4-c9002a37141d@gmail.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