On Sun, May 17, 2009 at 01:38:35PM -0300, Dickson S. Guedes wrote: > I suggested him to use LIMIT.
interesting. I just tested (on beta1), that while limit works in this query: SELECT generate_series(now(), CAST('infinity'::date AS timestamp), interval '1 hour') limit 3; i.e. it returns 3 rows instantly, it doesn't for this query: SELECT i from generate_series(now(), CAST('infinity'::date AS timestamp), interval '1 hour') as x (i) limit 3; which (as far as i understand it) should be the same. why is it not limiting generate_series in the second example? is it intentional? Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers