Skip to content

Instantly share code, notes, and snippets.

Created November 8, 2011 15:42
Show Gist options
  • Save anonymous/1348102 to your computer and use it in GitHub Desktop.
Save anonymous/1348102 to your computer and use it in GitHub Desktop.
Postgres doesn't do laterals...
select questions.id, qw.weightings
from questions
join question_weightings() as qw
on qw.question_id = questions.id
join expensive_function(qw.weightings) as ef
on ef.user_id = questions.user_id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment