Nicklas =?ISO-8859-1?Q?Av=E9n?= <nicklas.aven@xxxxxxxxxxxxx> writes: > I thought the "offset 0" trick was just a dirty hack, but coming from > you, Tom, I assume it is a robust way of doing it. Well, I can't deny it's a dirty hack ... but it's not something we'll break until we have a better solution. > I also tried some of the queries we tried then, almost 2 years ago, and > I think it seems like PostgreSQL handles this much better in 9.0. Is > that possible? That observation is too vague to comment on. There are surely things that are better in 9.0, but we haven't done anything lately that would be likely to reduce the number of calls to a user-defined function per se. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general