Re: Fwd: [HACKERS] client performance v.s. server statistics

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-performance(at)postgresql(dot)org
Cc: Zhou Han <zhouhan(at)gmail(dot)com>
Subject: Re: Fwd: [HACKERS] client performance v.s. server statistics
Date: 2012-02-15 10:55:19
Message-ID: 201202151155.19449.andres@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

Hi,
On Wednesday, February 15, 2012 11:19:00 AM Zhou Han wrote:
> I have tried unix domain socket and the performance is similar with
> TCP socket. It is MIPS architecture so memory copy to/from kernel can
> occupy much time, and apparently using unit domain socket has no
> difference than TCP in terms of memory copy.

> But it is still unbelievable for the ten-fold gap between the client
> side statistic and the server side statistics. So I want to know what
> exactly the operations are involved in the server side statistics in
> EXPLAIN ANALYZE. May I check the code later on when I get time.
My guess is that the time difference youre seing is actually the planning time.
The timing shown at the end of EXPLAIN ANALYZE is just the execution, not the
planning time. You can use "\timing on" in psql to let it display timing
information that include planning.

Whats the query?
> For the query itself, it was just for performance comparison. There
> are other index based queries, which are of course much faster, but
> still result in similar ten-fold of time gap between client side and
> server side statistics.
>
> I am thinking of non-kernel involved client interface, is there such
> an option, or do I have to develop one from scratch?
Its unlikely thats possible in a sensible amount of time. But I don't think
thats your problem anyway.

Andres

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Han Zhou 2012-02-15 11:02:53 Re: Fwd: [HACKERS] client performance v.s. server statistics
Previous Message Christoph Berg 2012-02-15 10:38:51 [trivial patch] typo in doc/src/sgml/sepgsql.sgml

Browse pgsql-performance by date

  From Date Subject
Next Message Han Zhou 2012-02-15 11:02:53 Re: Fwd: [HACKERS] client performance v.s. server statistics
Previous Message Zhou Han 2012-02-15 10:19:00 Fwd: [HACKERS] client performance v.s. server statistics