Re: [SQL] TIMESTAMP comparison problem

2008-01-22 Thread Tom Lane
Michael Glaesemann <[EMAIL PROTECTED]> writes: > Well, you can't get better than microsecond precision with timestamps > in Postgres. And the only way you can rely on that level of precision > is to compile with --enable-integer-datetimes. There is more precision in there, but the output routi

Re: [SQL] TIMESTAMP comparison problem

2008-01-22 Thread Stuart Brooks
If I reduce the precision to 3 for the timestamps it appears to work although it makes me nervous. With float timestamps, you're fooling yourself if you think those numbers past the decimal are reliable. Should I just recompile to use integer datetimes? I would like to have at least micros

Re: [SQL] TIMESTAMP comparison problem

2008-01-22 Thread Michael Glaesemann
On Jan 22, 2008, at 3:05 , Stuart Brooks wrote: If I reduce the precision to 3 for the timestamps it appears to work although it makes me nervous. With float timestamps, you're fooling yourself if you think those numbers past the decimal are reliable. Should I just recompile to use integ

[SQL] TIMESTAMP comparison problem

2008-01-22 Thread Stuart Brooks
I have a problem in comparing a TIMESTAMP field with a timestamp literal. I presume it is to do with the floating point representation of the timestamp but I was wondering if there is an easy work around without having to recompile postgres to use integer datetimes. Basically if I issue a "SEL