Re: How to migrate column type from uuid to serial - Mailing list pgsql-general

From Hemil Ruparel
Subject Re: How to migrate column type from uuid to serial
Date
Msg-id CANW1aT9WTZ_BMSr_M+kvg-JQN1O2znMUXi88-huqR4fkwU7NVQ@mail.gmail.com
Whole thread Raw
In response to Re: How to migrate column type from uuid to serial  (Thomas Kellerer <shammat@gmx.net>)
Responses Re: How to migrate column type from uuid to serial  (Thomas Kellerer <shammat@gmx.net>)
List pgsql-general
umm it is declared as uuid. But how does it occupy only 16 bytes? Even if we remove those 4 dashes thats 32 bytes of text right? I am not concerned about the size at all. How do i send it as a string below 32 bytes?

On Wed, Oct 7, 2020 at 7:37 PM Thomas Kellerer <shammat@gmx.net> wrote:
Hemil Ruparel schrieb am 07.10.2020 um 16:02:
> Yes the id is stored as a uuid.

Then it should be declared with the data type uuid, which only needs 16 bytes.





pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: How to migrate column type from uuid to serial
Next
From: Thomas Kellerer
Date:
Subject: Re: How to migrate column type from uuid to serial