Re: How to migrate column type from uuid to serial

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: How to migrate column type from uuid to serial
Дата
Msg-id 9ea3ff13-d78b-b5ce-2619-72cb02522e90@gmx.net
обсуждение исходный текст
Ответ на Re: How to migrate column type from uuid to serial  (Hemil Ruparel <hemilruparel2002@gmail.com>)
Ответы Re: How to migrate column type from uuid to serial  (Hemil Ruparel <hemilruparel2002@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Hemil Ruparel
Дата:
Сообщение: Re: How to migrate column type from uuid to serial
Следующее
От: Hemil Ruparel
Дата:
Сообщение: Re: How to migrate column type from uuid to serial