"Stephen Birch" <sgbirch(at)hotmail(dot)com> writes:
> The select is something like..
> SELECT AVG(x) FROM arch WHERE tstamp > :t
What *exactly* arrives at the backend when this is done? (Turn on query
logging to find out.)
I'm suspicious that the problem is a datatype-mismatch issue and you
might need a cast. But it's hard to tell without seeing the exact
query.
regards, tom lane