Re: macaddr 64 bit (EUI-64) datatype support
Haribabu Kommi <kommi.haribabu@gmail.com>
From: Haribabu Kommi <kommi.haribabu@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>, Stephen Frost <sfrost@snowman.net>, Shay Rojansky <roji@roji.org>,
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Vitaly Burovoy <vitaly.burovoy@gmail.com>,
Alvaro Herrera <alvherre@2ndquadrant.com>, Julien Rouhaud <julien.rouhaud@dalibo.com>,
Craig Ringer <craig@2ndquadrant.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2017-01-05T01:08:09Z
Lists: pgsql-hackers
Attachments
- mac_eui64_support_4.patch (application/octet-stream) patch
- (unnamed) (text/plain)
On Tue, Nov 29, 2016 at 8:36 PM, Haribabu Kommi <kommi.haribabu@gmail.com> wrote: > > > On Sat, Nov 26, 2016 at 4:48 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > >> Haribabu Kommi <kommi.haribabu@gmail.com> writes: >> > Currently the casting is supported from macaddr to macaddr8, but not the >> > other way. This is because, not all 8 byte MAC addresses can be >> converted >> > into 6 byte addresses. >> >> Well, yeah, so you'd throw an error if it can't be converted. This is >> no different from casting int8 to int4, for example. We don't refuse >> to provide that cast just because it will fail for some values. >> > > Updated patch attached with added cast function from macaddr8 to > macaddr. > > Currently there are no support for cross operators. Is this required > to be this patch only or can be handled later if required? > Updated patch attached to address the duplicate OID problem. There are no other functional changes to the previous patch. Regards, Hari Babu Fujitsu Australia
Commits
-
Add support for EUI-64 MAC addresses as macaddr8
- c7a9fa399d55 10.0 landed
-
perltidy pg_dump TAP tests
- 6af8b89adba1 10.0 cited