Re: Cleaning up the INET/CIDR mess

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Cleaning up the INET/CIDR mess
Дата
Msg-id 200601262212.02679.peter_e@gmx.net
обсуждение исходный текст
Ответ на Cleaning up the INET/CIDR mess  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Cleaning up the INET/CIDR mess  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Without the flag, it's okay for cidr-to-inet to be a
> binary-compatible (no function) conversion.  However, inet-to-cidr
> has to either zero out bits to the right of the netmask, or error out
> if any are set.  Joachim Wieland posted a patch that makes the
> coercion function just silently zero out any such bits.  That's OK
> with me, but does anyone want to argue for an error?

Zero the bits if it's an explicit cast, raise an error if not.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: -X flag in pg_dump
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: -X flag in pg_dump