pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: legrand legrand <legrand_legrand@hotmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: explain plans with information about (modified) gucs
Date: Tue, 1 Jan 2019 20:11:34 +0100
Message-ID: <0025cff2-a40f-0226-1cbb-2d52295541a9@2ndquadrant.com> (raw )
In-Reply-To: <CAFj8pRCEZhVc3i8UEGhT9xUYMAY_MqZSYVo4s18K1hB=zNHK0A@mail.gmail.com >
References: <e1791b4c-df9c-be02-edc5-7c8874944be0@2ndquadrant.com >
<10561.1544800904@sss.pgh.pa.us >
<c1282df1-43a8-0854-dfee-790d7dd9c93a@2ndquadrant.com >
<631ae5c8-5581-6c5e-382c-2dcdb2e5c956@2ndquadrant.com >
<1545083780942-0.post@n3.nabble.com >
<1edcee55-ea96-d123-199d-4c5f1fc5003b@2ndquadrant.com >
<24065.1545085015@sss.pgh.pa.us >
<2c09fe19-e4a0-ea66-5a7f-e69d46420e28@2ndquadrant.com >
<20181217234353.fde7vityxvoullil@alap3.anarazel.de >
<f47d7590-cd48-38e3-229d-c60c0f4345f1@2ndquadrant.com >
<d222191c-4b66-ba29-ca27-965741442888@2ndquadrant.com >
<CAFj8pRCEZhVc3i8UEGhT9xUYMAY_MqZSYVo4s18K1hB=zNHK0A@mail.gmail.com >
On 1/1/19 6:48 PM, Pavel Stehule wrote:
>
>
> út 1. 1. 2019 v 18:39 odesílatel Tomas Vondra
> <tomas.vondra@2ndquadrant.com <mailto:tomas.vondra@2ndquadrant.com>> napsal:
>
> Attached is v4, changing how GUCs are picked for inclusion on the query
> plans. Instead of picking the GUCs based on group and/or explicitly, a
> new GUC_EXPLAIN flag is used for that.
>
> I went through GUCs defined in guc.c and marked those in QUERY_TUNING*
> groups accordingly, with the exception of default_statistics_target
> because that seems somewhat useless without showing the value used to
> actually analyze the table (and/or columns).
>
> I've also included a couple of other GUCs, that I find to be relevant:
>
> - parallel_leader_participation
> - max_parallel_workers_per_gather
> - max_parallel_workers
> - search_path
> - effective_io_concurrency
> - work_mem
> - temp_buffers
> - plan_cache_mode
>
>
> when plan_cache_mode is auto, you know maybe too less executed query.
> Maybe you can read somewhere if plan was custom or generic.
>
This patch is about showing GUCs, not such additional internal info.
Also, you'll see the plan actually used.
>
> I think this covers the interesting GUCs pretty well, although perhaps I
> missed something.
>
>
> seq_page_cost, random_page_cost, from_collapse_limit,
> join_collapse_limit, ... enable_***
>
All these GUCs are included, of course.
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
view thread (40+ messages) latest in thread
Message-ID: <0025cff2-a40f-0226-1cbb-2d52295541a9@2ndquadrant.com>
Permalink: ../0025cff2-a40f-0226-1cbb-2d52295541a9@2ndquadrant.com/
Also on: postgresql.org/message-id/0025cff2-a40f-0226-1cbb-2d52295541a9@2ndquadrant.com
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tomas.vondra@2ndquadrant.com, pavel.stehule@gmail.com, andres@anarazel.de, tgl@sss.pgh.pa.us, legrand_legrand@hotmail.com
Subject: Re: explain plans with information about (modified) gucs
In-Reply-To: <0025cff2-a40f-0226-1cbb-2d52295541a9@2ndquadrant.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