Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUB9u-0000GQ-Bq for pgsql-general@arkaria.postgresql.org; Wed, 07 Apr 2021 16:36:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lUB9t-0008L2-9Q for pgsql-general@arkaria.postgresql.org; Wed, 07 Apr 2021 16:36:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUB9s-0008Kd-TR for pgsql-general@lists.postgresql.org; Wed, 07 Apr 2021 16:36:01 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lUB9q-0003U1-FX for pgsql-general@lists.postgresql.org; Wed, 07 Apr 2021 16:35:59 +0000 Received: by mail-pf1-x42d.google.com with SMTP id m11so10651515pfc.11 for ; Wed, 07 Apr 2021 09:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=iEhsAmLugmnJNXHZzlG94dVby4/h7Hp/UrWtrSXR8mo=; b=ti6hdYZ3bOnksUDU3FgMOkr60dHUwRDHugTOqqACZUxCqpwlJcAc/QInj0LUtHaCHC 42X0sXHkYhRrOtk0msbOlWpSQkU/t9JdP8PG+iLsqVqBWr4fSl3QxZgh8fOOYQsY9wia rpV8XfjinN5TBF0fkEo4wNZElzpNrR0BsX6A/s2QhgQWgOBQUOQ8Xw/vIpuIpIKHnrAz 2y6JVJPRDkl/ec3t9gsL+gQrFg8rwgWHs4mBge6pqI2dICZhjhq7A47yHqRP5yCan8rE qE4v7LyUWQObkIvl+7v+QjXzCiOBEan4oNE6t9UM+HhxaT99z7F8QBgfUoSC+PppD+gv 2pSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=iEhsAmLugmnJNXHZzlG94dVby4/h7Hp/UrWtrSXR8mo=; b=qAv6m/AeuVsEqWKndb/rQ3hhEAdBe9zkfKnJzaIPK7xX6KpvzXSPUMdsZbk6G8AbeC 8C8sM80YRKfWx7JWHTd9sPMnc5p8GNVEloWqQRVEBnNPKrG7uGshSdRSOtYGwJazK0Oi 8g4mNFfwc8qs73n7SeSB865vPQ8roKxBGxpVPVzlvdYAgoheSGyoJ7aBr9uZJmymyoFT nUwVchw+3XSYOugP5e1EropTurvMtCa2vhADPzU1OHRUaSAYpQvjv/M7zrGfdJaxjqyi yF+w+HPS4hhHTp9U8EtaKN0IicswZw6Dk0KGGrUab8NulBpV0w/CtqI0xMWRP0BxdMvE fQ8Q== X-Gm-Message-State: AOAM532IVxopoTgP3CtYf/kv2ptLXN2oWSRevmzbF9gFikarQY+6mDkz AfGTREvQTiTbyp/ug2s874owySuiwoA= X-Google-Smtp-Source: ABdhPJxb4z7BzaxJVE38RS0O6JbQczmLbLvkVm/JyMn8XhuQwhFdsQRpUr7ImzNbmIHFpXx3CbufYg== X-Received: by 2002:a63:530d:: with SMTP id h13mr4082980pgb.120.1617813357276; Wed, 07 Apr 2021 09:35:57 -0700 (PDT) Received: from ?IPv6:2600:100e:b121:8174:41cd:52ed:299:d12e? ([2600:100e:b121:8174:41cd:52ed:299:d12e]) by smtp.gmail.com with ESMTPSA id r22sm24070474pgu.81.2021.04.07.09.35.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Apr 2021 09:35:56 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-9EB847E4-DA25-475E-A352-0E5A5BCABBF7 Content-Transfer-Encoding: 7bit From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: Primary keys and composite unique keys(basic question) Date: Wed, 7 Apr 2021 10:35:55 -0600 Message-Id: <9FFB0361-5256-4175-9C51-5D9F6E6969D9@gmail.com> References: <3fcf7329-378d-6982-89d9-a3f28ada0d47@gmail.com> Cc: pgsql-general@lists.postgresql.org In-Reply-To: <3fcf7329-378d-6982-89d9-a3f28ada0d47@gmail.com> To: Ron X-Mailer: iPhone Mail (18D70) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail-9EB847E4-DA25-475E-A352-0E5A5BCABBF7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Apr 7, 2021, at 10:17 AM, Ron wrote: >=20 > =EF=BB=BF On 4/5/21 9:37 PM, Rob Sargent wrote: >>> It's a small thing, but UUIDs are absolutely not memorizable by >>> humans; they have zero semantic value. Sequential numeric identifiers >>> are generally easier to transpose and the value gives some clues to >>> its age (of course, in security contexts this can be a downside). >>>=20 >> I take the above as a definite plus. Spent too much of my life correctin= g others=E2=80=99 use of =E2=80=9Cremembered=E2=80=9D id=E2=80=99s that just= happened to perfectly match the wrong thing. >=20 > People seem to have stopped appending check digits to identifiers about 20= years ago, and I'm not sure why. >=20 No the problem is =E2=80=9Cstart from one=E2=80=9D. User has item/I=E2=80=99= d 10875 in hand and types in 10785 which of course in a sequence supplied ID= steam is perfectly valid and wrong. Really hard to track down.=20 > --=20 > Angular momentum makes the world go 'round. --Apple-Mail-9EB847E4-DA25-475E-A352-0E5A5BCABBF7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Apr 7, 2021, at 10:17 AM, Ron <ronljohn= sonjr@gmail.com> wrote:

=EF=BB=BF =20 =20 =20 On 4/5/21 9:37 PM, Rob Sargent wrote:
It's a small thing, but UUIDs are absolutely not memorizable by
humans; they have zero semantic value.  Sequential numeric identifiers
are generally easier to transpose and the value gives some clues to
its age (of course, in security contexts this can be a downside).

I take the above as a definite plus.  Spent too much of my life= correcting others=E2=80=99 use of =E2=80=9Cremembered=E2=80=9D id=E2= =80=99s that just happened to perfectly match the wrong thing.

People seem to have stopped appending check digits to identifiers about 20 years ago, and I'm not sure why.

No the problem is =E2=80=9Cstart from one=E2=80=9D= . User has item/I=E2=80=99d 10875 in hand and types in 10785 which of course= in a sequence supplied ID steam is perfectly valid and wrong.  Really h= ard to track down. 
--
Angular momentum makes the world go 'round.
=20
= --Apple-Mail-9EB847E4-DA25-475E-A352-0E5A5BCABBF7--