How to avoid multiple function evals with the (func()).* syntax in an SQL query? How to avoid multiple function evals with the (func()).* syntax in an SQL query? postgresql postgresql