Re: BUG #12024: autocomplete doesn't work for ALTER CONSTRAINT

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: lizenko79(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #12024: autocomplete doesn't work for ALTER CONSTRAINT
Date: 2014-11-26 05:54:50
Message-ID: CAB7nPqSg53+PbDa89DDUHeAhroqrL7Gsy3cy5qeNqdm5cOkViA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sat, Nov 22, 2014 at 12:19 AM, <lizenko79(at)gmail(dot)com> wrote:

> If I try to press "tab" to complete
> ALTER TABLE <some_table> ALTER CO...
>
> only COLUMN hint is shown, CONSTRAINT is missing
>
Yes, indeed. Supporting ALTER TABLE <foo> ALTER CONSTRAINT has proved not
to be that complicated. Per se the patch attached. I haven't added the part
about deferred constraints but still that's an improvement as it can go up
to the constraint detection.
--
Michael

Attachment Content-Type Size
20141126_constraint_tabcompl.patch text/x-patch 1.7 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message bouda 2014-11-26 08:10:59 BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON
Previous Message David G Johnston 2014-11-26 02:15:06 Re: BUG #11902: PostgreSQL 9.5 crashes on alter table in function seems to be fixed