Re: macaddr 64 bit (EUI-64) datatype support

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: macaddr 64 bit (EUI-64) datatype support
Дата
Msg-id 20161012123252.GA907812@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: macaddr 64 bit (EUI-64) datatype support  (Julien Rouhaud <julien.rouhaud@dalibo.com>)
Ответы Re: macaddr 64 bit (EUI-64) datatype support  (Julien Rouhaud <julien.rouhaud@dalibo.com>)
Список pgsql-hackers
Julien Rouhaud wrote:

> and you can instead make macaddr64 support both format, and provide a
> macaddr::macaddr64 cast

Having macaddr64 support both formats sounds nice, but how does it work?
Will we have to reserve one additional bit to select the representation?
That would make the type be 65 bits which is a clear loser IMO.

Is it allowed to just leave 16 bits as zeroes which would indicate that
the address is EUI48?  I wouldn't think so ...

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Emre Hasegeli
Дата:
Сообщение: Re: FTS Configuration option
Следующее
От: Tom Lane
Дата:
Сообщение: Re: macaddr 64 bit (EUI-64) datatype support