Greg Stark <gsstark(at)mit(dot)edu> writes:
> Well, yes but I wasn't sure what to look for. It sort of looks to me like
> gprof chose an odd place to root the recursive cycle which makes the result
> confusing. At least to me.
_SPI_execute_plan? I thought you said this was a simple SELECT...ORDER BY
query.
regards, tom lane