vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Tobias Brox <tobias@nordicbet.com> writes: > We're using 8.1 - I thought such a construct was safe in pg 8.1: > select max(indexed_value) from huge_table; > while earlier we had to use: > select indexed_value from huge_table order by indexed_value desc limit 1; These are not actually exactly the same thing. In particular, I suppose your table contains a lot of nulls? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
| ||||
| [Tom Lane - Tue at 10:29:53PM -0500] > These are not actually exactly the same thing. In particular, I suppose > your table contains a lot of nulls? Yes; I'm sorry I was a bit quick with the first posting. ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |