Andres Freund <and...@2ndquadrant.com> writes: > I don't think it's necessary. As far as I understand LATERAL, a join to > a function returning NULL will still return the row. So, the test now > would only test whether there are rows in pg_class which seems a bit > pointless.
Yeah, after looking closer I'd come to the same conclusion. If the lateral function call could generate zero rows it'd perhaps be a risk, but not in this formulation. Will commit in a moment. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers