Tom Lane napisał: > Yeah, that's a bug. The patch is attached if you need it. However, I > think you will wind up looking for some other way to solve the problem, > because this query won't scale well to large datasets. I already did some googling and found two examples of median calculating functions, but they didn't convince me; one of them was creating temporary table to calculate the median, and it doesn't look for me like a well-scaling solution. What would you suggest then? Maciej Bliziński ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)