Re: Default gucs for EXPLAIN

From: Vik Fearing <vik(at)postgresfriends(dot)org>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Default gucs for EXPLAIN
Date: 2020-05-27 09:10:35
Message-ID: b5ca37bd-5205-9f09-f4cc-bff5b6477efb@postgresfriends.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5/27/20 7:27 AM, David G. Johnston wrote:
> On Tuesday, May 26, 2020, David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
>
>> On Tue, 26 May 2020 at 23:59, Vik Fearing <vik(at)postgresfriends(dot)org> wrote:
>>> Are you saying we should have all new EXPLAIN options off forever into
>>> the future because apps won't know about the new data? I guess we
>>> should also not ever introduce new plan nodes because those won't be
>>> known either.
>>
>> Another argument against this is that it creates dependency among the
>> new GUCs. Many of the options are not compatible with each other. e.g.
>>
>> postgres=# explain (timing on) select 1;
>> ERROR: EXPLAIN option TIMING requires ANALYZE
>>
>> Would you propose we just error out in that case, or should we
>> silently enable the required option, or disable the conflicting
>> option?
>>
>>
> The same thing we do today...ignore options that require analyze if analyze
> is not specified. There are no other options documented that are dependent
> with options besides than analyze. The docs say timing defaults to on, its
> only when explicitly specified instead of being treated as a default that
> the user message appears. All the GUCs are doing is changing the default.

Yes, the patch handles this case the way you describe. In fact, the
patch doesn't (or shouldn't) change any behavior at all.
--
Vik Fearing

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Khandekar 2020-05-27 11:31:39 Re: Inlining of couple of functions in pl_exec.c improves performance
Previous Message Tomas Vondra 2020-05-27 09:07:04 Re: Trouble with hashagg spill I/O pattern and costing