Tab completion of function arguments not working in all cases - Mailing list pgsql-bugs

From Dean Rasheed
Subject Tab completion of function arguments not working in all cases
Date
Msg-id CAEZATCX-xaOn-6FeDYq+fhFMPpoLnDJiAmQposzw=MVsHsn41Q@mail.gmail.com
Whole thread Raw
Responses Re: Tab completion of function arguments not working in all cases
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Robert Haas
Date:
Subject: Re: error connecting to postgresql by pgadmin
Next
From: Tom Lane
Date:
Subject: Re: control character check in JSON type seems broken