Code Lab » Postgres - How to check if plpgsql is installed
SELECT COUNT(*) FROM pg_language WHERE lanname = 'plpgsql'