Re: Summary: what to do about INET/CIDR - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Summary: what to do about INET/CIDR
Date
Msg-id Pine.LNX.4.21.0010281411190.763-100000@peter.localdomain
Whole thread Raw
In response to Re: Summary: what to do about INET/CIDR  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: "Razvan Radu"
Date:
Subject: rule on insert
Next
From: Peter Eisentraut
Date:
Subject: Re: Second proposal: what to do about INET/CIDR