| От | Tom Lane |
|---|---|
| Тема | Re: BUG #6651: macaddr length constraint violates standard |
| Дата | |
| Msg-id | 20547.1337530591@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #6651: macaddr length constraint violates standard (Peter Eisentraut <peter_e@gmx.net>) |
| Список | 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
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера