A bug of psql completion

From: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: A bug of psql completion
Date: 2016-11-28 10:16:33
Message-ID: 20161128.191633.194827821.horiguchi.kyotaro@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello.

I noticed that the psql completion code for "ALTER TABLE x ALTER
[COLUMN] x DROP" is wrong. It works as the following

=# alter table x alter x drop <tab>
[nothing suggested]
=# alter table x table x alter x drop <tab>
DEFAULT NOT NULL

The attached patch fixes it.

--
Kyotaro Horiguchi
NTT Open Source Software Center

Attachment Content-Type Size
psqlcomp_alter_column_drop_fix.patch text/x-patch 740 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2016-11-28 10:18:20 Fix comment in build_simple_rel
Previous Message Kyotaro HORIGUCHI 2016-11-28 10:13:50 Re: IF (NOT) EXISTS in psql-completion