Re: Summary: what to do about INET/CIDR

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Summary: what to do about INET/CIDR
Дата
Msg-id Pine.LNX.4.21.0010281411190.763-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Summary: what to do about INET/CIDR  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane writes:

> Hm.  I don't see any really good reason why host() rejects CIDR input
> in the first place.  What's wrong with producing the host address
> that corresponds to extending the CIDR network address with zeroes?

Because it's semantically wrong.  It's just as wrong as converting DATE to
TIMESTAMP by setting the time to zero.  -- And we actually do this...

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



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

Предыдущее
От: "Razvan Radu"
Дата:
Сообщение: rule on insert
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Second proposal: what to do about INET/CIDR