Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> Why do we need assignment casts from cidr, inet, bool, and xml to
> text?
Because these cast conversion functions act differently from the datatype
output functions, eg
regression=# select true;
bool
------
t
(1 row)
regression=# select true::text;
text
------
true
(1 row)
regards, tom lane