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 1iAHnR-0008Vx-GK for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Sep 2019 18:01:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iAHnQ-0002ok-D2 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Sep 2019 18:01:48 +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 1iAHnQ-0002ob-3t for pgsql-hackers@lists.postgresql.org; Tue, 17 Sep 2019 18:01:48 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAHnN-0007Ih-5Q for pgsql-hackers@postgresql.org; Tue, 17 Sep 2019 18:01:47 +0000 Received: by mail-qk1-x744.google.com with SMTP id w2so5024810qkf.2 for ; Tue, 17 Sep 2019 11:01:44 -0700 (PDT) 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=+6aSpZuq7dL6ccYO7PEyLfhW6fpJT4qCq5h1kMtbLp0=; b=ZmKQvMPDHS73XVP9RbXw0zSjOMDSvCbpXxBXjzNpTNEXbiYDPgE9aygUW9X+NKzkTy LXosH21gatwXyQrHv2rWrBWVuwF0adM0ZvCcYJC9APY/0Qu+iGpveEQaNiGczddb5qga jQ7CxGTwtKckVYKbO0ioqBbnk1OePyjb4D7h2kKBya8K4cNSHJyqGpGWE9af7T31V851 4ew8HO5inmx/E6WAxNGb6POLcSAKiH+46/2pZoSDQRvB2rYOEjyFLnYQfs/9A6xD+ZOx OTJ7YU/2UmtW1ZDL5nZzw61BvXhMDJfX+W5BGVPDMIAK1RoM6Zz6hbBXuTnjrvbJ0F4k 6xVQ== 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=+6aSpZuq7dL6ccYO7PEyLfhW6fpJT4qCq5h1kMtbLp0=; b=eMhfQ+r1tbEjpQKLZEuLnBEFmlahj4xQkhBYw+jYNtItZqi4Hw9NpfHkz/3YP0Y5ce MNU/VjsV3WjG6q16Yfrnvys/FmJ/baHC0w8uYXxB19zjzrqtLrmbyQJXCijveCh4Yf6e y/ztwahRY2mKk3xqIqS8AzOXTjy/TBgpazqhShl2dzmpCCvH+i0PBn+/qCDuv4fSGxqA OHgi6TQPDFqD8mdYIiVna0n7nxEnxtXk6YZzmxNhYbRcXLYbXboLSDUdHOkPY+TqNMgu dKe8Bfi/TCiQw0medVOTFgnlTLyb2oQkVoDrnp2CcVtxQLmCd0QKHfM2iHwTeafAdcSf WQ0Q== X-Gm-Message-State: APjAAAVbMKiR1bpvspgaDEfR1a/ZcRCaWjm0yrVR68Hf9pjppduqO+ME 5vQJQq9gBxLR1ZT0TgrMZUtcbg== X-Google-Smtp-Source: APXvYqw5bCe18rhV4Y27B9BDYro/oc+RFBW8b3QfQ4eA8BKDduRHmLEuBa06/ZKAeW3NK0gM27zrkg== X-Received: by 2002:a37:4f84:: with SMTP id d126mr5379778qkb.430.1568743302987; Tue, 17 Sep 2019 11:01:42 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([177.154.139.199]) by smtp.gmail.com with ESMTPSA id w2sm1673167qtc.59.2019.09.17.11.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 11:01:42 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 4BDF4120F25; Tue, 17 Sep 2019 15:01:38 -0300 (-03) Date: Tue, 17 Sep 2019 15:01:38 -0300 From: Alvaro Herrera To: Alexander Korotkov Cc: Andres Freund , Nikita Glukhov , Thomas Munro , pgsql-hackers , Kyotaro HORIGUCHI , David Steele , Michael Paquier Subject: Re: Psql patch to show access methods info Message-ID: <20190917180138.GA12497@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk It seems strange that there's a way to display AMs, and a way to display ops and procs in an opfamily; but there's no way to list what opfamilies exist (possibly given an AM as pattern). Should we add that too? We had \dAf in the original submission, but that seems to have lost along the way, not sure why. I think \dAf is just as critical as \dAo; the former lets you know which opfamilies you can use in CREATE INDEX, while the latter lets you know which operators would be helped by such an index. (But, really, only if the opfamily name is printed in \d of the index, which we currently don't print unless it's non-default ... which is an omission that perhaps we should consider fixing). On the other hand, from a user perspective, what you really want to know is: what opfamilies exist for datatype T, and what operators are supported by the opfamily I have chosen? The current patch doesn't really help you find that out. I think \dAp isn't terribly informative from a user perspective. The support procs are just an opfamily implementation detail. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services