On Tuesday, March 21, 2023, Eske Rahn <e...@septima.dk> wrote: > Hi, > > I have noticed a rather odd behaviour that is not strictly a bug, but is > unexpected. > > It is when a immutable (or stable) PG function is returning results in a > record structure a select on these calls the function repeatedly for each > element in the output record. >
The LATERAL join modifier exists to handle this kind of situation. David J.