Here is a patch for testing query modes on pgbench. It is discussed on

I think this is useful to measure performance of protocols and
prepared statements. I hope the extended protocol will be improved
as fast as the simple protocol. It is 10-20% slower now.
(for 8.4 item)

The querymode option is added:
        -M querymode
                Choose the query mode from the follows:
                    simple: using simple query protocol.
                    extended: using extended protocol.
                    prepared: using extended protocol with prepared statements.
                default is simple.

$ pgbench -M [simple|extended|prepared]

ITAGAKI Takahiro
NTT Open Source Software Center

Attachment: pgbench_querymode.patch
Description: Binary data

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?


Reply via email to