From: Rob Sargent <robjsargent@gmail.com>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Primary keys and composite unique keys(basic question)
Date: Mon, 5 Apr 2021 20:37:09 -0600
Message-ID: <8ECC2031-7B0F-4765-B8B2-5B8047B06DA3@gmail.com> (raw)
In-Reply-To: <CAHyXU0xHS-t2x_J+_vLdNBr8=UDSj7WC0Aa61+=OcKWzXiBR7Q@mail.gmail.com>
References: <CAOoXFP8gdkAFyDSLbac+advQKPCORYobkGot5CWis+aYZhnb+A@mail.gmail.com>
<CAHyXU0xSOZgcnifzC5c+RkGAbsDpf_bbGiZYYFny6ke69DBoxA@mail.gmail.com>
<69a5b7b83689ab456dd4b3cd7eb08e9573652039.camel@cybertec.at>
<CAHyXU0xHS-t2x_J+_vLdNBr8=UDSj7WC0Aa61+=OcKWzXiBR7Q@mail.gmail.com>
>
> 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’ use of “remembered” id’s that just happened to perfectly match the wrong thing.
> Performance-wise, UUIDS are absolutely horrible for data at scale as
> Tom rightly points out. Everything is randomized, just awful. There
> are some alternate implementations of UUID that mitigate this but I've
> never seen them used in the wild in actual code.
>
That b-tree’s have been optimized to handle serial ints might be a considered a reaction to that popular (and distasteful) choice. Perhaps there should be a ’non-optimized’ option.
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: robjsargent@gmail.com, mmoncure@gmail.com
Subject: Re: Primary keys and composite unique keys(basic question)
In-Reply-To: <8ECC2031-7B0F-4765-B8B2-5B8047B06DA3@gmail.com>
References: <CAOoXFP8gdkAFyDSLbac+advQKPCORYobkGot5CWis+aYZhnb+A@mail.gmail.com> <CAHyXU0xSOZgcnifzC5c+RkGAbsDpf_bbGiZYYFny6ke69DBoxA@mail.gmail.com> <69a5b7b83689ab456dd4b3cd7eb08e9573652039.camel@cybertec.at> <CAHyXU0xHS-t2x_J+_vLdNBr8=UDSj7WC0Aa61+=OcKWzXiBR7Q@mail.gmail.com> <8ECC2031-7B0F-4765-B8B2-5B8047B06DA3@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