Andres Freund <andres(at)anarazel(dot)de> writes:
> Possibly too hard to be precise enough in a hint, but a number of these
> could benefit from one suggesting moving things into FROM, using
> LATERAL.
Maybe "You might be able to move the set-returning function into a
LATERAL FROM item."?
> I'm kinda positively surprised at how non-invasive this turned out, I'd
> afraid there'd be a lot more verbosity to it. I think the improved
> error messages (message & location), are quite worthwhile an their own.
Yeah, me too --- I'm pretty pleased with the result.
regards, tom lane