pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #6651: macaddr length constraint violates standard 3+ messages / 3 participants [nested] [flat]
* BUG #6651: macaddr length constraint violates standard @ 2012-05-18 19:57 erlkonig@talisman.org 2012-05-19 22:56 ` Re: BUG #6651: macaddr length constraint violates standard Peter Eisentraut <peter_e@gmx.net> 0 siblings, 1 reply; 3+ messages in thread From: erlkonig@talisman.org @ 2012-05-18 19:57 UTC (permalink / raw) To: pgsql-bugs The following bug has been logged on the website: Bug reference: 6651 Logged by: Alex North-Keys Email address: erlkonig@talisman.org PostgreSQL version: 9.1.3 Operating system: any Description: The macaddr type does not allow for MACs of greater length (or less than) than six bytes, only capturing a particular variety of ethernet address (Xerox's original version) instead of the broader use of MACs where addresses of other lengths are common, such as the 64-bit EUI-64. A more appropriate type name would have been "ethernet", specific to the case actually captured by "macaddr". Given compatibility concerns, renaming it is probably infeasible. However, being able to parameterize the length, defaulting to 6 bytes, would be adequate. ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6651: macaddr length constraint violates standard 2012-05-18 19:57 BUG #6651: macaddr length constraint violates standard erlkonig@talisman.org @ 2012-05-19 22:56 ` Peter Eisentraut <peter_e@gmx.net> 2012-05-20 16:16 ` Re: BUG #6651: macaddr length constraint violates standard Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 3+ messages in thread From: Peter Eisentraut @ 2012-05-19 22:56 UTC (permalink / raw) To: erlkonig@talisman.org; +Cc: pgsql-bugs On fre, 2012-05-18 at 19:57 +0000, erlkonig@talisman.org wrote: > The macaddr type does not allow for MACs of greater length (or less than) > than six bytes, only capturing a particular variety of ethernet address > (Xerox's original version) instead of the broader use of MACs where > addresses of other lengths are common, such as the 64-bit EUI-64. > > A more appropriate type name would have been "ethernet", specific to the > case actually captured by "macaddr". The documentation makes reference to IEEE Std 820, which clearly allows only 48 bit quantities and calls them "LAN MAC addresses". So I think the implementation, documentation, and terminology is correct. I'm not familiar with the EUI-64 space, but the Wikipedia page http://en.wikipedia.org/wiki/Mac_address indicates that they are related to but distinct from what is generally known as MAC addresses. But since you are claiming a standards violation, would you also point out which standard? > Given compatibility concerns, renaming > it is probably infeasible. However, being able to parameterize the > length, defaulting to 6 bytes, would be adequate. That could be a workable solution. ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6651: macaddr length constraint violates standard 2012-05-18 19:57 BUG #6651: macaddr length constraint violates standard erlkonig@talisman.org 2012-05-19 22:56 ` Re: BUG #6651: macaddr length constraint violates standard Peter Eisentraut <peter_e@gmx.net> @ 2012-05-20 16:16 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2012-05-20 16:16 UTC (permalink / raw) To: Peter Eisentraut <peter_e@gmx.net>; +Cc: erlkonig@talisman.org; pgsql-bugs Peter Eisentraut <peter_e@gmx.net> writes: > On fre, 2012-05-18 at 19:57 +0000, erlkonig@talisman.org wrote: >> Given compatibility concerns, renaming >> it is probably infeasible. However, being able to parameterize the >> length, defaulting to 6 bytes, would be adequate. > That could be a workable solution. That's far more easily said than done, considering macaddr is a fixed-length type with essentially no overhead info. I don't see a way to do this at all without an on-disk compatibility break. Given the number of requests so far (viz, one) it doesn't seem like something we should expend much effort on. We might at some point consider introducing a different type that could handle variable length data ... although it's not clear that text or bytea couldn't meet the apparently limited need. regards, tom lane ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-05-20 16:16 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2012-05-18 19:57 BUG #6651: macaddr length constraint violates standard erlkonig@talisman.org 2012-05-19 22:56 ` Peter Eisentraut <peter_e@gmx.net> 2012-05-20 16:16 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox