darcy(at)druid(dot)net (D'Arcy J.M. Cain) writes:
> Based on the discussions we had earlier I am surprised by the
> following.
> darcy=> select '198.1.2.3/8'::inet;
> ?column?
> --------
> 198/8
> (1 row)
> I would have expected it to print what I entered.
Why? You told it to truncate the data to 8 bits, so it did. (At least,
that's my understanding of what the /n notation means, but maybe I'm
mistaken.)
regards, tom lane