In the sections that follow, we will discuss how you can extend the PostgreSQL SQL query language by adding:
functions (starting in Section 33.3)
aggregates (starting in Section 33.10)
data types (starting in Section 33.11)
operators (starting in Section 33.12)
operator classes for indexes (starting in Section 33.14)