On 09/10/2013 08:20 AM, Andres Freund wrote:
> A backtrace for this would be useful. Alternatively you could recompile
> postgres using -fno-omit-frame-pointer in CFLAGS and use perf record -g.
It's using a custom build, so this should be doable.
>
> Any chance you have older prepared xacts, older sessions or something
> like that around? I'd expect heap_prune* to be present in workloads that
> spend significant time in heap_hot_search_buffer...
Not sure about prepared transactions. There are certainly probably old
prepared statements around, and long running transactions alongside this
one.
cheers
andrew