Re: pg_stat_statements: calls under-estimation propagation

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: pilum(dot)70(at)uni-muenster(dot)de
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_stat_statements: calls under-estimation propagation
Date: 2013-10-10 10:26:49
Message-ID: CAM3SWZTB_Puh+ir_3t4L9Vz61qkhp=G9SpAgGBtsyYkPA0pP8Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 10, 2013 at 3:11 AM, <pilum(dot)70(at)uni-muenster(dot)de> wrote:
> But the drawback of this approach is impossibility to use
> explain analyze without further substitutions.

You can fairly easily disable the swapping of constants with '?'
symbols, so that the query text stored would match the full originally
executed query. Why would you want to, though? There could be many
actual plans whose costs are aggregated as one query. Seeing one of
them is not necessarily useful at all, and could be misleading.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-10-10 11:16:47 Re: CommitFest progress
Previous Message Sameer Thakur 2013-10-10 10:20:44 Re: pg_stat_statements: calls under-estimation propagation