pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Pg Hackers <pgsql-hackers@lists.postgresql.org>
Subject: tab-complete for ALTER TABLE .. DETACH PARTITION CONCURRENTLY
Date: Thu, 22 Apr 2021 16:40:35 -0400
Message-ID: <20210422204035.GA25929@alvherre.pgsql> (raw)

Would anyone oppose me pushing this for tab-completing the new keywords
of
ALTER TABLE ..  DETACH PARTITION?

-- 
Álvaro Herrera       Valdivia, Chile
"Por suerte hoy explotó el califont porque si no me habría muerto
 de aburrido"  (Papelucho)

Attachments:

0001-tab-complete-ALTER-TABLE-DETACH-PARTITION-with-CONCU.patch (text/x-diff, 924B) download From 4ab605c1e1ed87ef92370bc6205a8b786739f774 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera <alvherre@alvh.no-ip.org> Date: Thu, 22 Apr 2021 16:37:46 -0400 Subject: [PATCH] tab-complete ALTER TABLE DETACH PARTITION with CONCURRENTLY/FINALIZE --- src/bin/psql/tab-complete.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index ed84b3789c..7c4933333b 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -2209,6 +2209,8 @@ psql_completion(const char *text, int start, int end) completion_info_charp = prev3_wd; COMPLETE_WITH_QUERY(Query_for_partition_of_table); } + else if (Matches("ALTER", "TABLE", MatchAny, "DETACH", "PARTITION", MatchAny)) + COMPLETE_WITH("CONCURRENTLY", "FINALIZE"); /* ALTER TABLESPACE <foo> with RENAME TO, OWNER TO, SET, RESET */ else if (Matches("ALTER", "TABLESPACE", MatchAny)) -- 2.20.1

view thread (3+ messages)  latest in thread

Message-ID: <20210422204035.GA25929@alvherre.pgsql>
Permalink:  ../20210422204035.GA25929@alvherre.pgsql/
Also on:    postgresql.org/message-id/20210422204035.GA25929@alvherre.pgsql

 ·  · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: tab-complete for ALTER TABLE .. DETACH PARTITION CONCURRENTLY
  In-Reply-To: <20210422204035.GA25929@alvherre.pgsql>
  References: <20210422204035.GA25929@alvherre.pgsql>

* 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