| From: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
|---|---|
| To: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | Tab completion of function arguments not working in all cases |
| Date: | 2012-06-09 09:40:25 |
| Message-ID: | CAEZATCX-xaOn-6FeDYq+fhFMPpoLnDJiAmQposzw=MVsHsn41Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-hackers |
Hi,
I noticed this while testing 9.2, but it seems to go back to at least
8.3. Tab completion of function arguments doesn't work if the function
is schema-qualified or double-quoted. So for example,
DROP FUNCTION my_function ( <TAB>
completes the functions arguments, but
DROP FUNCTION my_schema.my_function ( <TAB>
doesn't offer any completions, and nor does
DROP FUNCTION "my function" ( <TAB>
The attached patch fixes these problems by introducing a new macro
COMPLETE_WITH_ARG, similar to the existing COMPLETE_WITH_ATTR, which
seems to be the nearest analogous code that covers all the edge cases.
Regards,
Dean
| Attachment | Content-Type | Size |
|---|---|---|
| tab-complete.patch | application/octet-stream | 4.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2012-06-09 14:31:29 | Re: control character check in JSON type seems broken |
| Previous Message | phb.emaj | 2012-06-09 07:06:35 | BUG #6683: dropping a table with a serial column from an extension needs to explicitely drop the associated seq |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2012-06-09 12:43:42 | Re: Avoiding adjacent checkpoint records |
| Previous Message | Scott Marlowe | 2012-06-09 06:53:35 | Re: pg_basebackup blocking all queries with horrible performance |