I wrote:> ... In particular we should at least try to bypass the pg_proc scan when> there are *no* function stats records.
That idea, at least, looks to be trivial to implement; so I'll go do so.
regards, tom lane