Clive Page <[EMAIL PROTECTED]> writes: > SELECT myfunc(mycol) FROM table LIMIT 50 OFFSET 10000 ;
> It looks as if OFFSET is implemented just be throwing away the results, > until the OFFSET has been reached. > > It would be nice if OFFSET could be implemented in some more efficient > way. You could do something like: select myfunc(mycol) from (select mycol from table limit 50 offset 10000) as x; I think it's not easy for the optimizer to do it because there are lots of cases where it can't. Consider if you had an ORDER BY clause on the myfunc output column for example. Or if myfunc was a set-returning function. -- greg ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly