[GENERAL] Dynamic expression evaluation

2003-11-10 Thread Philippe Lang
Hello, Imagine we have the following kind of table, with two values (a and b), and a varchar (f) representing an expression. -- CREATE TABLE public.test ( id serial NOT NULL, a int4, b int4, f varchar(50), CONSTRAINT id PRIMARY KEY (id) ) WITHOUT OIDS;

Re: [GENERAL] Dynamic expression evaluation

2003-11-10 Thread Tom Lane
"Philippe Lang" <[EMAIL PROTECTED]> writes: > Is there a simple way of doing "kind of" a > SELECT *, EVAL(f) FROM public.test; > ... and having f evaluated as an expression, so that we get back: > -- > id a bfeval > -- > 1