Re: macaddr 64 bit (EUI-64) datatype support

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: macaddr 64 bit (EUI-64) datatype support
Дата
Msg-id 17621.1480139317@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: macaddr 64 bit (EUI-64) datatype support  (Haribabu Kommi <kommi.haribabu@gmail.com>)
Ответы Re: macaddr 64 bit (EUI-64) datatype support
Список pgsql-hackers
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.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Skipping PgStat_FunctionCallUsage for many expressions
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: References to arbitrary database objects that are suitable for pg_dump