From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
Subject: | psql tab completion bug for ALL IN TABLESPACE |
Date: | 2015-12-12 12:04:31 |
Message-ID: | CAB7nPqSHDdSwsJqX0d2XzjqOHr==HdWiubCi4L=Zs7YFTUne8w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi all,
I just bumped into the following thing while looking again at Thomas'
patch for psql tab completion:
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -1040,7 +1040,7 @@ psql_completion(const char *text, int start, int end)
pg_strcasecmp(prev5_wd, "IN") == 0 &&
pg_strcasecmp(prev4_wd, "TABLESPACE") == 0 &&
pg_strcasecmp(prev2_wd, "OWNED") == 0 &&
- pg_strcasecmp(prev4_wd, "BY") == 0)
+ pg_strcasecmp(prev_wd, "BY") == 0)
{
COMPLETE_WITH_QUERY(Query_for_list_of_roles);
This should be backpatched, attached is the needed patch.
Regards,
--
Michael
Attachment | Content-Type | Size |
---|---|---|
20151212_psql_alltblspc.patch | binary/octet-stream | 523 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2015-12-12 12:07:25 | Re: Making tab-complete.c easier to maintain |
Previous Message | Andres Freund | 2015-12-12 11:52:21 | Re: Error with index on unlogged table |