Usually databases are treated primarily as fairly dumb data storage systems, but they can be capable of much more. Case in point the PostgreSQL database and its โ€“ Ada-based โ€“ PL/pgSQL programming ...