Write SQL functions for PostgreSQL using Perl5
