[#718] Try to avoid PL/pgSQL since we cannot guarantee that is is activated