Lists: | pgsql-hackers |
---|
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | patch: CREATE OR REPLACE FUNCTION autocomplete |
Date: | 2012-02-19 19:23:14 |
Message-ID: | CAFj8pRARgb8VY2rtTm5aLxAWdguhH_wkyFCto6bWvg8gOrae9g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Hello
other very simple patch - enhance autocomplete to support CREATE OR
REPLACE FUNCTION statement
Regards
Pavel Stehule
Attachment | Content-Type | Size |
---|---|---|
autocomplete-create-or-replace-function.diff | text/x-patch | 582 bytes |
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: patch: CREATE OR REPLACE FUNCTION autocomplete |
Date: | 2012-03-13 18:32:14 |
Message-ID: | 1331663534.11136.1.camel@vanquo.pezone.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On sön, 2012-02-19 at 20:23 +0100, Pavel Stehule wrote:
> other very simple patch - enhance autocomplete to support CREATE OR
> REPLACE FUNCTION statement
I see two problems with this:
- We also have other CREATE OR REPLACE variants that this won't
complete.
- It won't complete something like CREATE OR R<tab>, only CREATE O<tab>.
That would be pretty weird. I think you need to complete each word
separately for consistent behavior.