Andres Freund <andres@anarazel.de> writes:
> On Saturday, November 19, 2011 04:52:10 PM Tom Lane wrote:
>> If you don't like CREATE RULE, try having your test program send just
>> Parse messages, and not Bind/Execute.
> That sounds like a plan. Except that I would prefer to use pgbench.
Well, how about plan C: write a small C function that consists of a loop
around calling just the part of the parser you want to test? I've done
that in the past when I wanted fine-grained profiles, and it works a
whole lot better than anything involving per-query messages from the
client side.
regards, tom lane