Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> I did some profiling of pgbench -j 36 -c 36 -T 500 banging on my
> two-core desktop box - with synchronous_commit turned off to keep the
> fsyncs from dominating the profile - and got these results:
> 29634 4.7124 postgres base_yyparse
Seems like pgbench is a poster child for the value of prepared
statements. Have you tried it with "-M prepared"?
I'd take this with a grain of salt as to whether it's representative of
real applications, of course.
regards, tom lane