Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1erVjE-00048Z-Kl for pgsql-general@arkaria.postgresql.org; Thu, 01 Mar 2018 21:27:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1erVjD-0006jN-21 for pgsql-general@arkaria.postgresql.org; Thu, 01 Mar 2018 21:27:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1erVjB-0006Q7-DV for pgsql-general@lists.postgresql.org; Thu, 01 Mar 2018 21:27:01 +0000 Received: from eastrmfepo203.cox.net ([68.230.241.218]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1erVj8-0004Za-2A for pgsql-general@lists.postgresql.org; Thu, 01 Mar 2018 21:26:59 +0000 Received: from eastrmimpo305.cox.net ([68.230.241.237]) by eastrmfepo203.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20180301212655.KKCL31819.eastrmfepo203.cox.net@eastrmimpo305.cox.net> for ; Thu, 1 Mar 2018 16:26:55 -0500 Received: from [192.168.1.10] ([70.171.109.83]) by eastrmimpo305.cox.net with cox id GlSv1x00j1o04Vy01lSv4h; Thu, 01 Mar 2018 16:26:55 -0500 X-Authority-Analysis: v=2.2 cv=ZJOnoTzb c=1 sm=1 tr=0 a=uCHdjGDeLqaieW9t8IbZ6A==:117 a=uCHdjGDeLqaieW9t8IbZ6A==:17 a=x7bEGLp0ZPQA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=8pif782wAAAA:8 a=fr8OK6OYxyAHEfkNco0A:9 a=8jp2io4txQVDoKKZ:21 a=5Hgl0qxeZ9FK0MsW:21 a=QEXdDO2ut3YA:10 a=SNL7wKpgAAAA:8 a=HYJqHT4E-zi10N2jXfYA:9 a=Re05_EiMAP5F2Oi8:21 a=CiShriGx6EqnNg_Q:21 a=CcMbmHwAx8Q_B-NE:21 a=_W_S_7VecoQA:10 a=uEXi9pYaZPHPrIM342IW:22 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=ron.l.johnson@cox.net Subject: Re: Enforce primary key on every table during dev? To: pgsql-general@lists.postgresql.org References: <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> <87230ccb-5b8e-e4ee-d6d5-63a9cbac5793@cox.net> From: Ron Johnson Message-ID: Date: Thu, 1 Mar 2018 15:26:55 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------5BE9B8771D29624D49F0F5C7" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------5BE9B8771D29624D49F0F5C7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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? > > 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. --------------5BE9B8771D29624D49F0F5C7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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?


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.
--------------5BE9B8771D29624D49F0F5C7--