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 1iu29P-0002B0-Jp for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Jan 2020 22:37:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iu29O-0006ZI-Db for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Jan 2020 22:37:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iu29O-0006ZB-1A for pgsql-hackers@lists.postgresql.org; Tue, 21 Jan 2020 22:37:34 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iu29L-0001Lw-Rb for pgsql-hackers@postgresql.org; Tue, 21 Jan 2020 22:37:32 +0000 Received: by mail-qk1-x741.google.com with SMTP id x1so4468979qkl.12 for ; Tue, 21 Jan 2020 14:37:31 -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=ZUQyosOaQvR+k6ni54viZMV4r42uArDRw5niePs7mp4=; b=HQuJIDtmoxDvojeqI9z8MlvWkEuwBOiZc/2OLF4tkZ8TuctyHeov+HSg4l7XqmuSxC 6wgtFw/Hcf6z4aNiLQyzvGI7MVKazcLfwy+ByUtsun457TA2f/GrowZPUPLZ61zWgP8y RqSQAMeLXTxTX23MQHTUEdeoh5ZtXAYV8JWnok4s09pJKXglvMttrJmvZCTg9pM47OXQ hd/969rIw1IGa3ubfNooWvJ4w9I6f5u6dh1DPk/Yg7spbcetATAZCC4d12Ik5sC5oXn1 UmGIeyETgtCbkOPXiIzf2DVxTomHWvVJSsquTomfZ1K9vQPTG30MyhS7R4DyKeLHmsoL G1zA== 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=ZUQyosOaQvR+k6ni54viZMV4r42uArDRw5niePs7mp4=; b=HbtDtjhmrQHPHHceKd7C3D3ZwK0NVtRxRKfqso5ibcx/byUNXCh9FWG2tPNhRn0q6+ yXgLFWaVHAj0aeTvhucB/emlvhTROU7WWFcpx1MwlRCA+UbKosbZhpGkBCWxquxATNIF OQLST2O/64Q2eS//uRXJGG35UNHx7vws+XjHmA2tM/ypMQuKA5QTrkxJeuBF0/p30AAx 5cFVJ6rKNCFgxOD7krcaskngIYO08QoAibbc96cWeeztfEezgkKuQnEh9xzqjNgzlBEf ZN34eD0M9yVA444n5ULYQt4AELSUd8aITxt2FasxInasFboV8TQ/1MUhMFNuNUsrKtPy jHKQ== X-Gm-Message-State: APjAAAUFxyukO+VyGJHpO25EIPlYFsa6vFk8Piifxifp5rW6TujCIQ+d nNIx5cYIvHkUfU9ur8l6nMb6gg== X-Google-Smtp-Source: APXvYqwinwpRNPQdDljD+vQjPkEZz4jpGgXOGq7FapjLmZmxY+EA0tMVPcUai2s+K76F4DtzsunreA== X-Received: by 2002:a37:8306:: with SMTP id f6mr7002211qkd.372.1579646250799; Tue, 21 Jan 2020 14:37:30 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([199.229.249.199]) by smtp.gmail.com with ESMTPSA id m8sm20392429qtk.60.2020.01.21.14.37.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 14:37:30 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 19C4B30081C; Tue, 21 Jan 2020 19:37:26 -0300 (-03) Date: Tue, 21 Jan 2020 19:37:26 -0300 From: Alvaro Herrera To: Alexander Korotkov Cc: Michael Paquier , Andres Freund , Nikita Glukhov , Thomas Munro , pgsql-hackers , Kyotaro HORIGUCHI , David Steele Subject: Re: Psql patch to show access methods info Message-ID: <20200121223726.GA6714@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200121223329.GA18317@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jan-21, Alvaro Herrera wrote: > c) it would be damn handy if \dAf (maybe \dAf+) lists the datatypes that > each opfamily has opclasses for. Maybe make the output an array, like > {int4,int8,numeric,...} Something like [*] but somehow make it > prettier? Sorry, I forgot to copy-edit my text here: I said "make it prettier", but the query I submitted is already pretty enough ISTM; I had written that comment when I only had the array_agg() version, but then I changed it to string_agg() and that seems to have mostly done the trick. Maybe improve the format_type() bit to omit the quotes, if possible, but that doesn't seem a big deal. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services