Created
November 8, 2011 15:42
-
-
Save anonymous/1348102 to your computer and use it in GitHub Desktop.
Postgres doesn't do laterals...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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