Tom Lane writes:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > Tom Lane writes:
> >> Why not? A domain *is* a type, by any reasonable test.
>
> > According to that logic, a view is a table, but we still require DROP VIEW
> > to drop a view.
>
> No, a view is not a table. Try putting an index or trigger on it.
According to that logic, a domain is not a type. Try putting a check
constraint on it.
--
Peter Eisentraut peter_e(at)gmx(dot)net