pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nichlas Löfdahl <crotalus@acc.umu.se>
Cc: pgsql-admin@postgresql.org
Subject: Re: log_min_cost_statement
Date: Tue, 13 Apr 2004 14:45:57 -0400
Message-ID: <25219.1081881957@sss.pgh.pa.us> (raw)
In-Reply-To: <20040413152601.GA22288@shaka.acc.umu.se>
References: <20040413152601.GA22288@shaka.acc.umu.se>

Nichlas =?iso-8859-1?Q?L=F6fdahl?= <crotalus@acc.umu.se> writes:
> Would it be possible to have an option "log_min_cost_statement", similar to
> "log_min_duration_statement" except that it logs all statement that has
> an minimum cost estimated by the planner? I think it would be easier to
> find unoptimized queries that way. 

Why would you want to filter on the planner's cost estimate rather than
the true runtime?

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <25219.1081881957@sss.pgh.pa.us>
Permalink:  ../25219.1081881957@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25219.1081881957@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, crotalus@acc.umu.se
  Subject: Re: log_min_cost_statement
  In-Reply-To: <25219.1081881957@sss.pgh.pa.us>
  References: <20040413152601.GA22288@shaka.acc.umu.se> <25219.1081881957@sss.pgh.pa.us>

* 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