Joel Jacobson <joel(at)jacobson(dot)be> writes:
> I understand that it is not possible to occasionally re-plan the queries in a
> PL/pgSQL function without dropping and re-creating the function.
Huh? You only need to start a fresh connection.
regards, tom lane