Added to TODO:
* Add floor(float8) and other missing functions --------------------------------------------------------------------------- Tom Lane wrote: > "Mario Weilguni" <[EMAIL PROTECTED]> writes: > > I noticed that some of my queries don't work anymore because they're using > > the floor function: > > e.g.: select type, floor(date_part('epoch', dataend)) as ts from > > last_modified > > Why is floor not working anymore? > > Mph. Seems we have floor(numeric) but not floor(float8), and the latter > is what you need here. > > You could cast date_part's result to numeric; or perhaps you could use > trunc() which exists in both numeric and float8 flavors. It's got > different semantics for negative inputs though. > > For 7.4 we should take another look at the operator/function set and > fill in this hole and any others like it. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED] > -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])