From: Igor <ischtein@gmail.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: How to clock the time spent for query parsing and planning?
Date: Fri, 30 Dec 2011 16:59:57 -0800
Message-ID: <C83953B7-1362-40A6-A5FA-F323CC833E58@gmail.com> (raw)
In-Reply-To: <CAFj8pRARtqa16g50X_nk-J_qq0kahbE=vFVMf47XErHkFTaz4g@mail.gmail.com>
References: <CAN_fNGDfNxbmnbj8K42NXPA8GsU4XOmEK-qTfC2gUoxGGAgxOQ@mail.gmail.com>
<CAFj8pRARtqa16g50X_nk-J_qq0kahbE=vFVMf47XErHkFTaz4g@mail.gmail.com>
Hi Pavel,
Thanks for your reply.
My understanding is that Explain provides measurements of query run time but does not include or specifies the timing for planning and for running optimization algorithms.
Pls let me know if my understanding is not correct. In that case, how do I find out how much of query time is spent to prepare the query and how much time is spent executing it.
Thanks,
James
On Dec 27, 2011, at 1:38 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Hello
>
> 2011/12/23 Igor Schtein <ischtein@gmail.com>:
>> I'd like to find some measurements/figures of query preparation and planning
>> time to justify the use of prepared statements and stored procedures.
>> I know that complex queries have larger preparation time. Though, is it
>> possible to explicitly measure the time the optimizer spends parsing and
>> planning for query execution?
>
> You can use time for EXPLAIN statement
>
> Regards
>
> Pavel Stehule
>
>>
>> Thank you,
>> James
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-performance@postgresql.org
Cc: ischtein@gmail.com, pavel.stehule@gmail.com
Subject: Re: How to clock the time spent for query parsing and planning?
In-Reply-To: <C83953B7-1362-40A6-A5FA-F323CC833E58@gmail.com>
References: <CAN_fNGDfNxbmnbj8K42NXPA8GsU4XOmEK-qTfC2gUoxGGAgxOQ@mail.gmail.com> <CAFj8pRARtqa16g50X_nk-J_qq0kahbE=vFVMf47XErHkFTaz4g@mail.gmail.com> <C83953B7-1362-40A6-A5FA-F323CC833E58@gmail.com>
* 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