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 1kQAaE-00020o-BF for pgsql-general@arkaria.postgresql.org; Wed, 07 Oct 2020 14:38:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQAaD-00074R-5g for pgsql-general@arkaria.postgresql.org; Wed, 07 Oct 2020 14:38:21 +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 1kQAaC-00074J-Op for pgsql-general@lists.postgresql.org; Wed, 07 Oct 2020 14:38:20 +0000 Received: from mout.gmx.net ([212.227.15.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQAa9-0002Rs-8R for pgsql-general@lists.postgresql.org; Wed, 07 Oct 2020 14:38:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602081494; bh=Kvt6GFw+YM3zuNA00wLo6KtoaU4UrHnVBEWbHhIIJ0Q=; h=X-UI-Sender-Class:Subject:Cc:References:From:Date:In-Reply-To; b=TCPIzCA/rUnpczHbZsj4fxTApuV66S5Ilp6RpSFNGZ/XFEl8JndvUVpreWmyEtShE YqgHyFF+/VaNdNsCEXsDw6/gMCkz4WET9Q6r7JvAN/6g9+DtT6CXHcG/FL4BiW5sQy Dtli+iJrIDNXdU+5WKgSts4xHHHriGxPN/euEd2A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.8.20.112] ([185.40.248.10]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M5fIW-1kK6pw3L3a-007AJZ for ; Wed, 07 Oct 2020 16:38:14 +0200 Subject: Re: How to migrate column type from uuid to serial Cc: pgsql-general@lists.postgresql.org References: <14155fce-965e-ae6b-256b-51df8e17e6e6@aklaver.com> <6fe03b17-f1ff-81e8-4ed1-72eb29d8d51d@gmx.net> From: Thomas Kellerer Message-ID: <9ea3ff13-d78b-b5ce-2619-72cb02522e90@gmx.net> Date: Wed, 7 Oct 2020 16:38:14 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Y1H26ewCa2ehSkaItWgC5FyZ9hTAfEhLWNL4+6AVsJWeqhj+tsX 8rE0cN7skhkI71vkKHglh9abWy/zeIpPDuKFNhY30JK3dWue0JKv+Nqbnjs9aUU7ho6JAvp rUp3DBLF2kq0SMU/mBXEBPG8qE6Ha0QwWEBSA2PCoPDnAeCbAL8wPw2r5apsMFLrg88bIP1 Bcg2BHLoLhdj7suYK3NIQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:7OrQeN96Wwg=:AG/SSnUvd2WH1hrblGhrdl 2hS7ReaDhUQw0vy/8tu3YSpm4+6fIMnrhZr4L4CTSky56j8n1zorwB804BLrkyxP49RZERiJu TOr97qJyBmrdREbSnazXGItUnVoCpbMpLNQ9hn7vMkYu+pwaWr9bw7aoQ6eTFYn396dPGeVTm 7juIeY0m6OASlgxqGpWJk6ED41rMMBtl/0u6DDQFZ4eAOYB53ytb9/V8ozezElArs8zelrt6v edjB8aFGE27At5ZpE+ptTZY/fu/89f/YNGpwvfByi0ge/zmmAfNA1HMtZkaVPzLoKXCaL+nH6 jQo6eKx0nOfIPbJJv+wIZlAuDRaFIiEEvY1ruce1Nitim2hpnwuZwHTj4q5WLPpY+RvC3snjg Z59k3PMz5uay8SK4RC/xYYbqiJEpdN5+BtcFfitbTVEPhJhGZODUGb4ZhxeN/N8bHIpywT8Xu hT9vJRoF2C3HKgZAotkcA+KPeKBlAPx4lrNU+PQmQ16OD/WS0y6aVpj1VGO1EYcpt00KTbDdd rgesd/AsmM9kDhS8EZfoRwDygBL/TXIjBRYol/ltw6WdTGDqxSW1EEU3KCIEeQsr7s1X62P12 WAh5jvNITq/q+Ermk4c9kQK6z2W//dJIyw8Jchkhlflaj/KCOdXQb+c7N+34FfCVd/pQL937L J6ho/H1IyuJktwUNkQGYO0o4V4eNXUQDkQTmY+fBcSugDKd7Z0TG6bXMu0x3q++1z0+sYL1ce k21wBymgus+rGZsNyRtlr7yPojS0iqFCIT49HLnt/f2WnCZ4bhxGb8aZsRh5Bc/a9wPOX9qkw LQKbbG2GWWZ3FkwzqLxcJBMdPuc7fap9uDXxe5jIb5PzCnUT9paN5TkFB9USwanjtXbbJ2u+u 4hAQn/qfxOw0EmZbU1jJPEi1gDA8Be/jPNyaCo2iG96xffO3P/j/NWbeOqOE7dS/NCaY3L8Fm BQh8HgdlTJ6fbYsHvreWfAv62sDxoJxKgYUF2hIDuV3xz5x0lXjMZCSuYCktOC8dLs5Qki3ne KUl7xGYCXcowstKuT4xlDrGYEAvq9oyY1rzYnwjeGSIJID9n2E+Km5I36CNdDyogFOumvQkS+ aJVumtnKQ5maO3j8DHENCzNYRUzIAC7EhBnvJulvEuynbi0k+GIl7NOiXOQHpb6eN7aa3uOLj w9EtW5V5FxeAhsDhI3hvLlrEwd+Q+Zc4wyMj0hXivskjtfgMKqfSux0XBpos7+Vuos+5rKHcn MPkCd9yM56P7zZAiR List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hemil Ruparel schrieb am 07.10.2020 um 16:21: > it is declared as uuid. But how does it occupy only 16 bytes? Because a UUID is internally simply a 128bit number - the dashes you see a= re just formatting. But if you can only send the text represnation, then yes 32 characters are= n't enough.