Martin Brommer <martin(at)brommer(dot)nl> writes:
> qry := 'SELECT notafield FROM notatable'
> PERFORM qry
> Also sets FOUND to true, even more using a query like 'BLABLABLA' also
> set found to true.
I think you are looking for EXECUTE, not PERFORM. The above only
confirms that indeed "qry" is a scalar variable --- its contents
are not examined.
regards, tom lane