Satoshi Nagayasu <nagayasus@nttdata.co.jp> writes:
> My patch counts inittapes(), tuplesort_begin_heap() and
> tuplesort_begin_index(), and collect them, and sum them through the
> stat collector.
Hm, that doesn't seem like quite the right level to be counting at.
Shouldn't you be hacking fd.c to count operations on FD_XACT_TEMPORARY
files?
regards, tom lane