Re: macaddr 64 bit (EUI-64) datatype support - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: macaddr 64 bit (EUI-64) datatype support
Date
Msg-id 20161012123252.GA907812@alvherre.pgsql
Whole thread Raw
In response to Re: macaddr 64 bit (EUI-64) datatype support  (Julien Rouhaud <julien.rouhaud@dalibo.com>)
Responses Re: macaddr 64 bit (EUI-64) datatype support
List 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 by date:

Previous
From: Emre Hasegeli
Date:
Subject: Re: FTS Configuration option
Next
From: Tom Lane
Date:
Subject: Re: macaddr 64 bit (EUI-64) datatype support