Re: parse - bind take more time than execute

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <mirrorx(at)gmail(dot)com>,<pgsql-performance(at)postgresql(dot)org>
Subject: Re: parse - bind take more time than execute
Date: 2011-12-28 23:22:10
Message-ID: 4EFB5042020000250004418B@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

MirrorX wrote:

> default_statistics_target is set to (default) 100 and there no
> special statistics per-column

> in absolute units i can see the same query having similar stats to
> these:
> parse -> 600 ms
> bind -> 300 ms
> execute -> 50 ms

How did you determine those timings?

> the query mentioned above is a simple select from one table using
> using two where conditions. and this table has 1 additional index
> (except the primary key) on the columns that are part of the where
> clause

Are you saying that a simple query against a single table with only
two indexes is taking 600 ms to plan and 300 ms to bind? I have
never seen anything remotely like that. Could you post the psql \d
output for the table and the actual query?

It would also be good to include a description of the hardware and
the output of running the query on this page:

http://wiki.postgresql.org/wiki/Server_Configuration

-Kevin

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Matteo Beccati 2011-12-29 09:03:28 Re: PostgreSQL 9.0.4 blocking in lseek?
Previous Message Matteo Beccati 2011-12-28 18:41:53 Re: PostgreSQL 9.0.4 blocking in lseek?