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

From Thomas Kellerer
Subject Re: How to migrate column type from uuid to serial
Date
Msg-id 9ea3ff13-d78b-b5ce-2619-72cb02522e90@gmx.net
Whole thread Raw
In response to Re: How to migrate column type from uuid to serial  (Hemil Ruparel <hemilruparel2002@gmail.com>)
Responses Re: How to migrate column type from uuid to serial  (Hemil Ruparel <hemilruparel2002@gmail.com>)
List pgsql-general
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 are just formatting.

But if you can only send the text represnation, then yes 32 characters aren't enough.



pgsql-general by date:

Previous
From: Hemil Ruparel
Date:
Subject: Re: How to migrate column type from uuid to serial
Next
From: Hemil Ruparel
Date:
Subject: Re: How to migrate column type from uuid to serial