Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gePS4-0004mn-LS for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Jan 2019 19:11:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gePS2-0004LQ-Nu for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Jan 2019 19:11:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gePS2-0004LJ-Gm for pgsql-hackers@lists.postgresql.org; Tue, 01 Jan 2019 19:11:42 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gePRz-0005n2-PC for pgsql-hackers@postgresql.org; Tue, 01 Jan 2019 19:11:41 +0000 Received: by mail-wr1-x42e.google.com with SMTP id t27so28689035wra.6 for ; Tue, 01 Jan 2019 11:11:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AGttNlxHfSA7BgY2A/89cavXsr7/ZfnmsTF5mq8n4hk=; b=omd1BGDmb+9R4iii8HLsjMwgbcRnA6h6wm3E3fKDNlLmz6Lc4J7GMC1LgmUWs9bNHl qhFAS0wWgvsWViLvHZ1MTga/LT8OSHkZ4lXvW0jnrHjxlFC2OFlghp/u6V8IjJbeZ1c4 hHJkdlCdBuUGvEpd/w4JJXi9GGEPtnk6hJgoYC7e69s0A5cr3/9saCBLIdOYD8P/M5LV XRW1XBJEdQeaOeQmaodTTfECkPAUDHIC28KvZH70NYMPJd9XKqsWswhZH11TOQyLYiwD pT1AIxU8Lbk2PivXfUtDaKijdON3K6hcLfW7YYOXH458cK7EOwj3Ek0jGVG0Fulh4/PV ohdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AGttNlxHfSA7BgY2A/89cavXsr7/ZfnmsTF5mq8n4hk=; b=aXLickyTJ6Ad0Na2yPwOc3J+H+6tPOjNVJDj0OSM07UVlFvAC+he/mktfdT1lb+hF8 jjfwIXsEmzBpAv6GKc8LemR1hQ9vUYXlCoxTrfquOjY4RlgBR50soJ4EKTT+N2c4NEnr VSBJHuJHcvYE7sJKxwjN2dto0f95C8ODOv49EgmF6zVzbuD9kEvswJom1JoMiNhz78Hc 5BE7YHIHrBL6Z7eEzl63FTa/hEWlWLccC6UhTgcseNfHtbgcMjVjSHgas1PF7ZweBAKk UVEiQL+iMPkGpvdHpxbN4U0o2jsGYpp1wnk0N7V1CGjM2H2onNhcPHLWpHoeopDFKsyM BbOw== X-Gm-Message-State: AJcUukcoxBUFhHVi4+tenCcAaSzOmo3FRG/eFcLsOkx2pHFI9ZrLaGl3 Ac3Rkgv8dT27Po5nU0Y64kCkJEnAVDqQ6axfujzMNUWWcGs98rrFqOk6NPehZMymPPzUVgbGd5h 91mwPkl19PDU0b8lGIytqx2ktewWKurhe699Rpoqj/2PjlMVWYq1hSAD6JO3IY/NoURPhiYX8Mv N8JspQKY9zqPw+zQ== X-Google-Smtp-Source: ALg8bN4lqziFe1hjZaMlRSa0Ryy3x+hiSZX+PnalADzlGJKJH97eWq4py0afp/GY79su1ltJ59Ehrw== X-Received: by 2002:adf:aa9c:: with SMTP id h28mr35599996wrc.216.1546369898365; Tue, 01 Jan 2019 11:11:38 -0800 (PST) Received: from [10.137.2.19] (ip-86-49-251-50.net.upcbroadband.cz. [86.49.251.50]) by smtp.gmail.com with ESMTPSA id f15sm39904900wrt.10.2019.01.01.11.11.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Jan 2019 11:11:37 -0800 (PST) Subject: Re: explain plans with information about (modified) gucs To: Pavel Stehule Cc: Andres Freund , Tom Lane , legrand legrand , PostgreSQL Hackers References: <10561.1544800904@sss.pgh.pa.us> <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> From: Tomas Vondra Message-ID: <0025cff2-a40f-0226-1cbb-2d52295541a9@2ndquadrant.com> Date: Tue, 1 Jan 2019 20:11:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/1/19 6:48 PM, Pavel Stehule wrote: > > > út 1. 1. 2019 v 18:39 odesílatel Tomas Vondra > > 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