My favorite relatively obscure pg feature is you can write stored procedures in perl, python, and tcl.
https://www.postgresql.org/docs/9.5/external-pl.html
Heck, there's even a pl/prolog out there, but it looks pretty old and I'm skeptical how useful it would be.
Would these be drop in replacements for PL/pgSQL? Are there any performance tradeoffs to using one over another? Any changes in functionality (aka functions you can call)?
pl/sh also works wonderfully if you want to run a complex procedure in an isolated subprocess, but pl/sh is not part of the main postgresql distribution.