Richard Huxton <dev(at)archonet(dot)com> writes: > Ah, fair enough. I *am* right in thinking that trivial SQL functions > will have their expressions inlined though? Yes. regards, tom lane