Franco Bruno Borghesi <franco@akyasociados.com.ar> writes:
> Ok Tom, I'll try casting in the testSQL function like you said... but let me ask you another thing:
> what is plpgsql exactily caching?
The plan for the "CAST(foo AS TEXT)" expression. Under the hood that's
a SELECT CAST($1 AS TEXT), and it has a plan.
regards, tom lane