Jeff Davis <list-pgsql-general(at)dynworks(dot)com> writes:
> SQL function: 59 seconds
> C function: 17 seconds
> SQL inline: 17 seconds
Very interesting. I've been thinking for awhile that it'd be nice if
simple-SELECT SQL functions could be inlined by the planner/optimizer.
This is good evidence that that's worth doing.
regards, tom lane