Dean Rasheed <dean.a.rasheed@xxxxxxxxx> writes: > BTW, this is something that started working in PG10 (in 9.6, an error > is thrown), and I think that it's a result of this release note item, > which matches your conclusions: > Change the implementation of set-returning functions appearing in > a query's SELECT list (Andres Freund) Interesting. When I first looked at this thread I figured "oh, that's always worked, nothing to see here". But you're right, we didn't use to allow SRFs in subscripts. Still, I'm with David that no new docs are needed. IMO the former restriction was the surprising thing, and the current behavior is simply what one would expect from assembling those parts in that order. regards, tom lane