Search Postgresql Archives

Re: postgresql how to duplicate rows in result.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 16, 2017 at 9:16 AM, Steve Crawford <scrawford@xxxxxxxxxxxxxxxxxxxx> wrote:
For my enlightenment, why use LATERAL here? I get the same result with a simple CROSS JOIN (though overall I like the clever solution).


​To be explicit, I think.  CROSS JOIN function() implies lateral in the implementation but you can always specify it if desired.  Like saying LEFT OUTER JOIN instead of LEFT JOIN

If it wasn't lateral the reference to number in "generate_series(1, number)" would fail.

David J.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux