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 1kRBqN-0005E7-GO for pgsql-general@arkaria.postgresql.org; Sat, 10 Oct 2020 10:11:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kRBqM-0004qV-4K for pgsql-general@arkaria.postgresql.org; Sat, 10 Oct 2020 10:11:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kRBqL-0004nc-SV for pgsql-general@lists.postgresql.org; Sat, 10 Oct 2020 10:11:13 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kRBqH-0002KZ-RD for pgsql-general@lists.postgresql.org; Sat, 10 Oct 2020 10:11:13 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 1E58D3AF0; Sat, 10 Oct 2020 12:11:09 +0200 (CEST) Date: Sat, 10 Oct 2020 12:11:09 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: How to migrate column type from uuid to serial Message-ID: <20201010101109.GE25239@hjp.at> References: <14155fce-965e-ae6b-256b-51df8e17e6e6@aklaver.com> <6fe03b17-f1ff-81e8-4ed1-72eb29d8d51d@gmx.net> <9ea3ff13-d78b-b5ce-2619-72cb02522e90@gmx.net> <20201010093123.GC25239@hjp.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZRyEpB+iJ+qUx0kp" Content-Disposition: inline In-Reply-To: <20201010093123.GC25239@hjp.at> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --ZRyEpB+iJ+qUx0kp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-10-10 11:31:23 +0200, Peter J. Holzer wrote: > On 2020-10-07 20:10:34 +0530, Hemil Ruparel wrote: > > Sorry if this is silly but if it is a 128 bit number, why do we need 32 > > characters to represent it? Isn't 8 bits one byte? >=20 > Yes, 8 bits are 1 byte. But that's 256 different values, so to display > them in 1 character you would need 256 different characters. That's not > possible in ASCII (ASCII has only 94 graphic characters), and even if > you included accented characters and other alphabets (like Greek or > Cyrillic) it would be hard to read. I'm showing my European bias here.=20 I should have thought of Korean. The Hangul script is syllabic with a very straightforward and easy to learn structure. Wikipedia tells me that they have 19 consonants and 21 vowels, so you could just pick 16 consonants and 16 vowels to construct 256 syllables. That would even make UUIDs pronounceable. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --ZRyEpB+iJ+qUx0kp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl+BiLgACgkQ8g5IURL+ KF1+5g//feeMYEfveqw2NoMDhiKF73wzOFOVbOdOM+ctkurj5BOwFbJCLtbnpL/2 rs+zf8aRAoQuQ6bL1B+WPcbG7QZdRl1GkIW2MbG1v6N8aYuX7ppbZyhaOmxX5j7V musKGFM/roozevmRZ0MpYhZwYILM72l2Y0lXhHqTHKiwc+tiU6QyqwWP4vdiJWVH gOieXX4tf+oGe1fiHleWgIp5IfpTPYJE5Vhcbxx7PyGMFsun2L/MPaAnbfhPsDSn cxuwSZUjHHnJcBmLsZLoz6XUPWkR1TO6UpmsUiyCOIqUaXhHRe7505t54rQMeT55 w2qQ7+a4QJbPdg3clPxQNQ/vuvuvt919bJftk1AfduPuqIAWu+en4edoLlEqEqo3 4hK11x6yo+bWEd+xAxGgg7vD8+Ow1Y9wV41ObwmQX4+kAZ4y+Dc1n7uVjR8XivvU noyKaOV63qhxmFXVYmDxRVDY5A6FauG5o5b3h3kvLnyueXlfB2z0PD9LGWyBE46g Nu8FUGj7RCxIgLPZuTfd7AWiXozc6Xi/1M/WeeO/0uxW+NrfXbC9xMD84aeFBFIT Nr7Rkgg1hBd/XZ32atkEWc16X8fr95oTCg4ij3w3cyy5nbDKT4/FDbq83nObocVu 3KN6YnRj2EvYr8w7jhhpvsJj6iQmQmaZsQ1U7kmE2fimKcN0tNc= =Sgyd -----END PGP SIGNATURE----- --ZRyEpB+iJ+qUx0kp--