Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 0E61928C7D for ; Sat, 19 May 2012 19:57:13 -0300 (ADT) Received: from mailout-de.gmx.net ([213.165.64.23]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SVsaG-0004en-Q7 for pgsql-bugs@postgresql.org; Sat, 19 May 2012 22:57:13 +0000 Received: (qmail invoked by alias); 19 May 2012 22:56:59 -0000 Received: from a88-115-214-103.elisa-laajakaista.fi (EHLO [10.0.0.104]) [88.115.214.103] by mail.gmx.net (mp037) with SMTP; 20 May 2012 00:56:59 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX19ceSg2ls5c7X2Urrg/SJygya0cPpMbbudEe4g0kn F+g1D7Yn0FPfli Message-ID: <1337468217.10292.26.camel@vanquo.pezone.net> Subject: Re: BUG #6651: macaddr length constraint violates standard From: Peter Eisentraut To: erlkonig@talisman.org Cc: pgsql-bugs@postgresql.org Date: Sun, 20 May 2012 01:56:57 +0300 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Y-GMX-Trusted: 0 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/113 X-Sequence-Number: 33084 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.