pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: [PATCH] Tab completion for ALTER TABLE … ADD …
Date: Fri, 27 Aug 2021 13:04:00 +0900
Message-ID: <YShkMBE3sq8mDa1S@paquier.xyz> (raw)
In-Reply-To: <87bl6ehhpl.fsf@wibble.ilmari.org>
References: <87bl6ehhpl.fsf@wibble.ilmari.org>

On Tue, Aug 03, 2021 at 12:48:38PM +0100, Dagfinn Ilmari Mannsåker wrote:
> The other day I noticed that there's no tab completion after ALTER TABLE
> … ADD, so here's a patch.  In addition to COLUMN and all the table
> constraint types, it also completes with the list of unique indexes on
> the table after ALTER TABLE … ADD … USING INDEX.

I was reading this patch (not actually tested), and that's a clear
improvement.  One extra thing that could be done here is to complete
with types for a ALTER TABLE ADD COLUMN foo.  We could as well have a
list of columns after UNIQUE or PRIMARY KEY, but that feels like extra
cream on top of the cake.  In short I am fine with what you have
here.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (8+ messages)  latest in thread

Message-ID: <YShkMBE3sq8mDa1S@paquier.xyz>
Permalink:  ../YShkMBE3sq8mDa1S@paquier.xyz/
Also on:    postgresql.org/message-id/YShkMBE3sq8mDa1S@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: michael@paquier.xyz, ilmari@ilmari.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: [PATCH] Tab completion for ALTER TABLE … ADD …
  In-Reply-To: <YShkMBE3sq8mDa1S@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox