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 1erWLo-0007K6-VP for pgsql-general@arkaria.postgresql.org; Thu, 01 Mar 2018 22:06:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1erWLn-0006xg-V8 for pgsql-general@arkaria.postgresql.org; Thu, 01 Mar 2018 22:06:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1erWLn-0006xS-Mk for pgsql-general@lists.postgresql.org; Thu, 01 Mar 2018 22:06:55 +0000 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1erWLh-0005MJ-7M for pgsql-general@lists.postgresql.org; Thu, 01 Mar 2018 22:06:54 +0000 Received: by mail-qk0-x22f.google.com with SMTP id g2so9602417qkd.12 for ; Thu, 01 Mar 2018 14:06:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=6cPaIGs494BVt4fRqN0CR4LwZDwG45ecXQvJrcgpx2M=; b=G7g1PVDGuV8vKvtmwBKpH74Ebj+qkKmwT2ZrUQWbgQnJfP0nPuMRZoR/TdqIX25XiO vmf6vzciWX0Cj8TiWtFUutV/nPreFYvWifgPQLOVLcKgaSyPUKEtCPQFw5dAgWlLGkmN /rOIAmFdMq5Yte2vdkMEs3Z+FelUj3pGlXyE5UnqjRTS45sd00f8r+1GW1m2NTwICQgR 0D6Hku4fx6bXcw97kjqwdjGweIG6hE2ls/lcyGFWJ1I1K1uaLQWG2/xH6EJ34T7APO+C ZystNr470VDQqvJSX6IPdpfV6rQ7Yrpju0dTTJaPl5dPGs9POXOGYJWa8xBSz6m+l+JL U7vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=6cPaIGs494BVt4fRqN0CR4LwZDwG45ecXQvJrcgpx2M=; b=YJFilc+V9ImCbrJTeEwgLtWOmn6vbQcxqkVrRGNnoLV38NpLzdragtH2uv7qhydvEv 3W8xufyeWKeGOxYEFs+G8J77VCPek1pbZ2Kiq8e/hnCgpR2T3gSGMYnzKUB4IOLhhOS5 1dmaZTCvIdmwknwzems2RpjMULLEGVTbMgalnsS7E9eFsf/60jFhvxmssNZ0H98D74xY GM1IFuvU/zNqRf289yllJ/ZhR77kCd82o461vWTzB9HiRZe5mtCZuoN0Rqm/5Kg7+ayB pPbVI4YL2meyrwqsCmBQYYffSVHgz6T6GqEZSUmHRbaReytiWNE0eKHSjV0t0pQT1YPC PuyQ== X-Gm-Message-State: AElRT7EiZiQqLbYHU/uoMMcRREGXFtjMn1WtUQomno/oQsrLeVSNZVxX /kFquoGb4AGkQEa3hFrL8IpTxWN0 X-Google-Smtp-Source: AG47ELuFDzR11KsmKXx9yMJMzmBqQOe3Bxbo2LPk+isVYq/CEvjO3SvuMEiF5SMJ9cK85nDpC4VrzQ== X-Received: by 10.55.214.130 with SMTP id p2mr5307413qkl.304.1519942006890; Thu, 01 Mar 2018 14:06:46 -0800 (PST) Received: from [192.168.1.250] (host63.190-229-77.telecom.net.ar. [190.229.77.63]) by smtp.gmail.com with ESMTPSA id x49sm3724410qth.62.2018.03.01.14.06.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 14:06:46 -0800 (PST) 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> <915390c7-8a2e-108e-2dba-d4f716464de1@aklaver.com> From: marcelo Message-ID: Date: Thu, 1 Mar 2018 19:06:43 -0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <915390c7-8a2e-108e-2dba-d4f716464de1@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Antivirus: Avast (VPS 180301-10, 01/03/2018), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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