Re: How to migrate column type from uuid to serial

Поиск
Список
Период
Сортировка
От Hemil Ruparel
Тема Re: How to migrate column type from uuid to serial
Дата
Msg-id CANW1aT9WTZ_BMSr_M+kvg-JQN1O2znMUXi88-huqR4fkwU7NVQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to migrate column type from uuid to serial  (Thomas Kellerer <shammat@gmx.net>)
Ответы Re: How to migrate column type from uuid to serial
Список 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 по дате отправления:

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