From: Kevin Bloch <kev@codingthat.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: maximum for auto_explain.log_min_duration doesn't seem to make sense
Date: Fri, 23 Feb 2018 20:07:30 +0100
Message-ID: <25d0362a-5172-ccaa-45dd-88999364d18c@codingthat.com> (raw)
In-Reply-To: <CAKFQuwaPyFHN=cmEhOYdd2R5daZP2Wn0og9M8BEPE5k_tuQYjA@mail.gmail.com>
References: <8ea82d7e-cb78-8e05-0629-73aa14d2a0ca@codingthat.com>
<CAKFQuwaPyFHN=cmEhOYdd2R5daZP2Wn0og9M8BEPE5k_tuQYjA@mail.gmail.com>
On 02/23/2018 08:02 PM, David G. Johnston wrote:
> On Fri, Feb 23, 2018 at 11:34 AM, Kevin Bloch <kev@codingthat.com
> <mailto:kev@codingthat.com>>wrote:
>
> According to https://dba.stackexchange.com/a/198429/28774
> <https://dba.stackexchange.com/a/198429/28774; , this setting maxes
> out at INT_MAX / 1000, but since it's never multiplied by 1000 or
> any other number, it seems it should perhaps just be INT_MAX
>
>
> I suspect that the counter to which that value is being compared also
> wants to be an INT and if one checks for "val > INT_MAX" then val cannot
> be restricted to an integer (and since we are capturing time we need
> some unknown buffer).
The unknown buffer is key here, it seems. Thanks for clarifying.
> As for the post question: What can I do if I want to log even
> longer-running queries on a data warehouse?
>
> The answer is "nothing special, anything running longer than the
> supplied value will be logged". What you cannot do is choose not to log
> a subset of queries that take longer INT_MAX/1,000 and less then
> infinity - once you hit INT_MAX/1,000 you must log it.
I had phrased that poorly, but you answered my actual meaning in the
end: A higher minimum isn't possible.
Thanks again,
Kev
>
> David J.
>
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: kev@codingthat.com, david.g.johnston@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: maximum for auto_explain.log_min_duration doesn't seem to make sense
In-Reply-To: <25d0362a-5172-ccaa-45dd-88999364d18c@codingthat.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