Monday, August 6. 2012LATERAL subqueries - coming to a PostgreSQL release near you ...Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Andrew,<br /> Yes, the main usecase of LATERAL seems to be the same as the one for OUTER APPLY. Join with a set returning function and using columns from the joined table as parameter.<br /> Very nice for sql code organization. That should make convenient for 'set getter' functions that need to be embedded within other queries to be re-used.<br /> I'm confused about what you could do with this tool that you can't already do with joins and/or common table expressions. Is it just a more performant way of doing things? Say you have a set returning function as one item in your FROM clause. Currently, you can't use a value from one of the other items as an argument to the SRF. i.e. you can't do<br /> |
My Links etcBlog AdministrationCalendar
QuicksearchArchivesCategories |
|||||||||||||||||||||||||||||||||||||||||||||||||