How to fix postgres-utils eval() error: missing FROM-clause entry for table “foo”?
问题 I'm looking for a way to evaluate price expressions stored in database in Postgres 9.1+ I tried code below from answer in How to evaluate expression in select statement in Postgres but got error ERROR: missing FROM-clause entry for table "product" LINE 1: select product.price*0.95 how to fix ? Maybe it is possible to pass customer and product current row as eval parameters and to use them in eval expresion ? create or replace function eval( sql text ) returns text as $$ declare as_txt text;