select prosrc from pg_proc where proname='triggername';

Category:PostgreSQL