Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E0EAB2B4151 for ; Sun, 20 May 2012 13:16:50 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SW8oJ-0002hr-SB for pgsql-bugs@postgresql.org; Sun, 20 May 2012 16:16:49 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4KGGV9c020548; Sun, 20 May 2012 12:16:32 -0400 (EDT) To: Peter Eisentraut cc: erlkonig@talisman.org, pgsql-bugs@postgresql.org Subject: Re: BUG #6651: macaddr length constraint violates standard In-reply-to: <1337468217.10292.26.camel@vanquo.pezone.net> References: <1337468217.10292.26.camel@vanquo.pezone.net> Comments: In-reply-to Peter Eisentraut message dated "Sun, 20 May 2012 01:56:57 +0300" Date: Sun, 20 May 2012 12:16:31 -0400 Message-ID: <20547.1337530591@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/116 X-Sequence-Number: 33087 Peter Eisentraut 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