uplpgsql compiles PL/pgSQL to native code. It took over twenty years to get here, but here it is. On July 19, 2005, I demoed my optimizing PL/SQL compiler to Andy Astor, Denis Lussier, and Jim Mlodgenski at EnterpriseDB; PL/SQL packages, procedures, and functions ran on Postgres at native speed...
Source: [Hacker News](https://github.com/nextgres/uplpgsql)