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 1iDftQ-00054N-3c for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Sep 2019 02:22:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDfsQ-00019r-4k for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Sep 2019 02:20:58 +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 1iDfsP-00019k-Jl for pgsql-hackers@lists.postgresql.org; Fri, 27 Sep 2019 02:20:57 +0000 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iDfsM-0000BT-8O for pgsql-hackers@postgresql.org; Fri, 27 Sep 2019 02:20:56 +0000 Received: by mail-io1-xd35.google.com with SMTP id c6so12103000ioo.13 for ; Thu, 26 Sep 2019 19:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=O4VZG++M9hq0fnDZ9XQcDSI7pbEZ46YTCgSEqT0auQc=; b=m4+QxIcSN187chy+ndJq/6svDYCp+TdGgHChYkNk0x6I6XVf7zsNTPIOE/rApchzUH 97jdLq1S/5eLwWFSTZG/CE6GM3VSSChKWheJHwDaRosw/4LsiEP+EtzilM5a63UCGtKt 3cUsnE05z2hxh77+VoE5XpDrl009Q9lYDNsPRf3p/NyYa2LaP6Q+Xodug4VlDw0oRbFV 8RggUqEKh8jzmfHlEiYem5ZOzWT4b1I0VCBvWojMF4uX352gLajCOsuhXIly/94xdguP q7th/OppXfBg+dBUsq9BbfB71a1I2Lnzrm56ENxakpoekjU6lJJ1bSk7y1gvS8uYEOxl VGHw== 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:user-agent; bh=O4VZG++M9hq0fnDZ9XQcDSI7pbEZ46YTCgSEqT0auQc=; b=fyGu9r5ubQmj49taigmMbOYUGH0FLzS7HEaZPVWTUvGpfG/tNzY9A9dScfFR2YNt/X SEf97XaqYCZFq4iHDKslwZhESijhuUczq4q4k/6cAFxj2o1oaxmQTsycKiMgKjPHX2y9 TDIWNSRTcuf0csfdJsI+T0EBCy1SVD6sTz5he2iWaO7u0M6oLGeTd6IdtRZSldG4Ysua Q8rUCJGy9Bv6Ah3pa+2jnMz2Dv9PYSGWKidkmDk1RfG+XQKY8P7yJg83lFNczFdPMt6N EHsmAEMmjoeQunV+fcUoPK++l2qEuM2iBmcNtwm/KF1fpX8E4QZXxoHsFA65rgZvdZJh KEqA== X-Gm-Message-State: APjAAAUOGanGpjuaZh7VBx7aSltH2D4tE2Lh/cqdjAVn2WVpNYiTRavT XT5nZCg/7DesoUuuucp/ZcZ3LfvpBAg= X-Google-Smtp-Source: APXvYqyyHG5QiDxy7GLhBWVK2NNf8/x8adysadfjRn9mKea/gpSth8RM2yQRI3HZ555ngVM6DpTU0w== X-Received: by 2002:a92:9646:: with SMTP id g67mr2324208ilh.300.1569550853446; Thu, 26 Sep 2019 19:20:53 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id 28sm661233ilq.61.2019.09.26.19.20.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Sep 2019 19:20:52 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 4AB63800A0C; Thu, 26 Sep 2019 21:20:51 -0500 (CDT) Date: Thu, 26 Sep 2019 21:20:51 -0500 From: Justin Pryzby To: pgsql-hackers@postgresql.org Cc: Tomas Vondra Subject: tab complete for explain SETTINGS Message-ID: <20190927022051.GC24334@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="pvezYHf7grwyp3Bc" Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --pvezYHf7grwyp3Bc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here's to hoping this is the worst omission in v12. Justin --pvezYHf7grwyp3Bc Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v1-0001-tab-completion-for-explain-SETTINGS.patch" From e21f58504e5006de9766fe586550b59167e00ffd Mon Sep 17 00:00:00 2001 From: Justin Pryzby Date: Thu, 26 Sep 2019 21:12:26 -0500 Subject: [PATCH v1] tab completion for explain (SETTINGS) missed at ea569d64ac7174d3fe657e3e682d11053ecf1866 --- src/bin/psql/tab-complete.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index c1add9e..73f4a4b 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -2943,8 +2943,8 @@ psql_completion(const char *text, int start, int end) */ if (ends_with(prev_wd, '(') || ends_with(prev_wd, ',')) COMPLETE_WITH("ANALYZE", "VERBOSE", "COSTS", "BUFFERS", - "TIMING", "SUMMARY", "FORMAT"); - else if (TailMatches("ANALYZE|VERBOSE|COSTS|BUFFERS|TIMING|SUMMARY")) + "TIMING", "SUMMARY", "FORMAT", "SETTINGS"); + else if (TailMatches("ANALYZE|VERBOSE|COSTS|BUFFERS|TIMING|SUMMARY|SETTINGS")) COMPLETE_WITH("ON", "OFF"); else if (TailMatches("FORMAT")) COMPLETE_WITH("TEXT", "XML", "JSON", "YAML"); -- 2.7.4 --pvezYHf7grwyp3Bc--