pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: pgsql-hackers@postgresql.org
Cc: Tomas Vondra <tomas.vondra@postgresql.org>
Subject: tab complete for explain SETTINGS
Date: Thu, 26 Sep 2019 21:20:51 -0500
Message-ID: <20190927022051.GC24334@telsasoft.com> (raw)

Here's to hoping this is the worst omission in v12.

Justin

Attachments:

v1-0001-tab-completion-for-explain-SETTINGS.patch (text/x-diff, 1.1K) download From e21f58504e5006de9766fe586550b59167e00ffd Mon Sep 17 00:00:00 2001 From: Justin Pryzby <pryzbyj@telsasoft.com> 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

view thread (3+ messages)  latest in thread

Message-ID: <20190927022051.GC24334@telsasoft.com>
Permalink:  ../20190927022051.GC24334@telsasoft.com/
Also on:    postgresql.org/message-id/20190927022051.GC24334@telsasoft.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: pryzby@telsasoft.com, tomas.vondra@postgresql.org
  Subject: Re: tab complete for explain SETTINGS
  In-Reply-To: <20190927022051.GC24334@telsasoft.com>
  References: <20190927022051.GC24334@telsasoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox