Re: log_min_cost_statement - Mailing list pgsql-admin

From Tom Lane
Subject Re: log_min_cost_statement
Date
Msg-id 25219.1081881957@sss.pgh.pa.us
Whole thread Raw
In response to log_min_cost_statement  (Nichlas Löfdahl <crotalus@acc.umu.se>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: log_min_cost_statement
Next
From: Peter Eisentraut
Date:
Subject: Re: log_min_cost_statement