Database Reference
In-Depth Information
Although we didn't demonstrate it here, you can overload functions and operators to
take different types as inputs. For example, you can create an
add
function and com‐
panion
+
operator that takes a
complex_number
and an
integer
.
The ability to build custom types and operators pushes PostgreSQL to the boundary of
a full-fledged development environment, bringing us ever closer to our utopia where
everything is table-driven.