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 1gjATy-0003Oe-2U for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jan 2019 22:13:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjATu-0001Om-Uy for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jan 2019 22:13:18 +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 1gjATu-0001Of-Jq for pgsql-hackers@lists.postgresql.org; Mon, 14 Jan 2019 22:13:18 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjATn-0001o0-Ar for pgsql-hackers@postgresql.org; Mon, 14 Jan 2019 22:13:17 +0000 Received: by mail-qt1-x844.google.com with SMTP id u47so852354qtj.6 for ; Mon, 14 Jan 2019 14:13:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=yZKJlmGaZQ5DEyQMpG2hMXdJwEw3nvxGftIEYbwNMnQ=; b=TxSHFjDBiCFYVeYUwAnben/ZJXB5H/ZNz7++PDNeEzXmCmz1reayyyLoX/rF16pIq9 hkwMqQ4SQG0Zk92rALYZEcgp9vDy6UtFgI0/GKZ9tRPFc6So9BmUMhlGbvUVQZRlDX8e wkh6Vvc2Kdmheyl441e+JjyzoPmOQ0VWAJmWUnvxtA1NnmFWZq5uYalfnwJRsfLyQ9HE gQMf2/rdnknPAqCsYIh7GfdGuN25yShu/jUjTIQCAaZYQFGue6yAQp82lOWdT8SAlWNS BPzUTp/uyOyai+7hTadirGxsIghphdWr2l3pGQ9AogUfrv4Boam5thYv8A7UcFp+9dkh CYbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=yZKJlmGaZQ5DEyQMpG2hMXdJwEw3nvxGftIEYbwNMnQ=; b=IK1HCG79dSnVUmogpwHR8ghNQZ/TBKfX1g7dJmJbPw5f9JaI8ZRVnsZKX1UlYxN+RT yYqZRkrT7vgCM9KExWQTwl48Ai4hCrKT8KNiey+XDWSGWl4SDNQR6DBX2yswJKXrFIAA zA5YN+BRl4D+gl8z4NISDNtot8rEX62mOoq0dc1o5hmmMkecMTwR2rI4eaD8N2WbmONi LI4sW1TKfOkOF6+5m9udDMjzLHVXpbBBuemBEbY91CpTbgBJ1Vr2W4XMj3BJo4rZdC/Y KjmDXnn1K5m1C5WRCDRZFwvpXlMdgrpaLcHuo1keJGga1ZKZ1dlPT7tcMX8jeEV8TjgX 3AQg== X-Gm-Message-State: AJcUukdkNNsIRXPYn6Fhc1Z/yzdduW3/BTsQ7g46VgADCO4s5HnPOZgb zfVtef86ckMli2FnixvQ30YDZQ== X-Google-Smtp-Source: ALg8bN49mjdty9Md1BfCVGyjdUQF+AJacKzTDcIs93kCJgfxTfan3ej5SkkYlmR6E3pkZ9qQFtk7LQ== X-Received: by 2002:a0c:9311:: with SMTP id d17mr583569qvd.54.1547503989416; Mon, 14 Jan 2019 14:13:09 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id v186sm38666861qkd.13.2019.01.14.14.13.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 14:13:08 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 0CB74C2A; Mon, 14 Jan 2019 19:13:07 -0300 (-03) Date: Mon, 14 Jan 2019 19:13:07 -0300 From: Alvaro Herrera To: Tomas Vondra Cc: Sergei Agalakov , pgsql-hackers@postgresql.org Subject: Re: explain plans with information about (modified) gucs Message-ID: <201901142213.gt7vdg65pp4d@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5396e093-ed6b-5962-2ed5-337a0425160b@2ndquadrant.com> User-Agent: NeoMutt/20180716-1013-2c1e88 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jan-14, Tomas Vondra wrote: > The one slightly annoying issue is that currently all the options are > formatted as text, including e.g. cpu_tuple_cost. That's because the GUC > options may have show hook, so I can't access the value directly (not > sure if there's an option around it). I think the problem is that you'd have to know how to print the value, which can be in one of several different C types. You'd have to grow some more infrastructure in the GUC tables, I think, and that doesn't seem worth the trouble. Printing as text seems enough. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services