"Richard Huxton" <dev(at)archonet(dot)com> writes:
> Actually, I like the idea of using the SQL system to evaluate expressions -
> why reinvent the wheel?
Sure, that part is great --- it's just the parsing (or lack of it,
to be more accurate) that's an ugly hack.
regards, tom lane