Stored Procedures
Doc:
PostgreSQL Stored Procedures