From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org
To: A J <s5aly@yahoo.com>
Subject: Re: Confused by 'timing' results
Date: Tue, 31 Aug 2010 14:18:49 -0500
Message-ID: <4C7D0F490200002500034EEC@gw.wicourts.gov> (raw)
In-Reply-To: <19320.56933.qm@web120013.mail.ne1.yahoo.com>
References: <788866.21140.qm@web120020.mail.ne1.yahoo.com>
<4C7D00330200002500034ED2@gw.wicourts.gov>
<19320.56933.qm@web120013.mail.ne1.yahoo.com>
A J <s5aly@yahoo.com> wrote:
> log_min_duration_statement output should stay constant for all the
> different clients across different geographic locations.
I'm not sure timings there will be totally immune to network speed.
The whole execution engine is designed around the top level pulling
rows from other levels. If it is sending those rows over the wire
as it pulls them, it could block at times, causing a delay before
completion of the query.
I haven't looked at the PostgreSQL wire protocol in detail, but
other database products where I became familiar with the wire
protocol had many round trips per query run -- making run time
sensitive to the network latency. I've generally gone with a thin
tier on the database server to field requests and provide responses
using stream-oriented protocols with moving windows so I can keep
the database protocol to the fastest, lowest latency connection I
can arrange. I like to use queues in that middle tier for incoming
requests and outgoing responses, to minimize the impact of network
throughput and latency.
-Kevin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, s5aly@yahoo.com
Subject: Re: Confused by 'timing' results
In-Reply-To: <4C7D0F490200002500034EEC@gw.wicourts.gov>
References: <788866.21140.qm@web120020.mail.ne1.yahoo.com> <4C7D00330200002500034ED2@gw.wicourts.gov> <19320.56933.qm@web120013.mail.ne1.yahoo.com> <4C7D0F490200002500034EEC@gw.wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox