From: Victor Spirin <v.spirin@postgrespro.ru>
To: pgsql-hackers@lists.postgresql.org
Subject: psql tab-complete
Date: Thu, 24 Oct 2019 19:11:59 +0300
Message-ID: <84e2eed6-63ec-b01e-2485-0f8e86da08df@postgrespro.ru> (raw)
In-Reply-To: <8d4e41ab-f001-fe9c-d796-a7b584a3c7f6@2ndQuadrant.com>
References: <8d4e41ab-f001-fe9c-d796-a7b584a3c7f6@2ndQuadrant.com>
I found some problem with tab-complete in the 12 version. I checked
this in the Windows.
Victor Spirin
Postgres Professional:http://www.postgrespro.com
The Russian Postgres Company
Attachments:tab-complete.patch (text/plain, 481B) downloaddiff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.cindex e00dbab5aa..5d7f24e57a 100644--- a/src/bin/psql/tab-complete.c+++ b/src/bin/psql/tab-complete.c@@ -3577,7 +3577,7 @@ psql_completion(const char *text, int start, int end)
/* WHERE */
/* Simple case of the word before the where being the table name */
- else if (TailMatches(MatchAny, "WHERE"))+ else if (TailMatches("WHERE", MatchAny))
COMPLETE_WITH_ATTR(prev2_wd, "");
/* ... FROM ... */
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: v.spirin@postgrespro.ru
Subject: Re: psql tab-complete
In-Reply-To: <84e2eed6-63ec-b01e-2485-0f8e86da08df@postgrespro.ru>
References: <8d4e41ab-f001-fe9c-d796-a7b584a3c7f6@2ndQuadrant.com> <84e2eed6-63ec-b01e-2485-0f8e86da08df@postgrespro.ru>
* 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