Weiping He <laser@zhengmai.com.cn> writes:
> it seems PERFORM won't affect result status while doing
> SELECT ... query, but EXECUTE do.
It works for me.
> raise notice '' SQL: % '', qry;
> -- execute qry;
> perform qry;
This should give you an error. perform doesn't take a string
expression. You want something more like
perform t FROM test where ...
regards, tom lane