pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
tab-complete for ALTER TABLE .. DETACH PARTITION CONCURRENTLY
3+ messages / 2 participants
[nested] [flat]

Commits from this thread:
  2021-04-26 6dd1042eda  psql: tab-complete ALTER ... DETACH CONCURRENTLY / FINALIZE
* tab-complete for ALTER TABLE .. DETACH PARTITION CONCURRENTLY
@ 2021-04-22 20:40  Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Alvaro Herrera @ 2021-04-22 20:40 UTC (permalink / raw)
  To: Pg Hackers <pgsql-hackers@lists.postgresql.org>

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
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: tab-complete for ALTER TABLE .. DETACH PARTITION CONCURRENTLY
@ 2021-04-26 14:24  Justin Pryzby <pryzby@telsasoft.com>
  parent: Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Justin Pryzby @ 2021-04-26 14:24 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@alvh.no-ip.org>; +Cc: pgsql-hackers@lists.postgresql.org

On Thu, Apr 22, 2021 at 04:40:35PM -0400, Alvaro Herrera wrote:
> Would anyone oppose me pushing this for tab-completing the new keywords
> of ALTER TABLE ..  DETACH PARTITION?

+1 to apply tab completion for v14

-- 
Justin





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: tab-complete for ALTER TABLE .. DETACH PARTITION CONCURRENTLY
@ 2021-04-26 20:22  Alvaro Herrera <alvherre@alvh.no-ip.org>
  parent: Justin Pryzby <pryzby@telsasoft.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Alvaro Herrera @ 2021-04-26 20:22 UTC (permalink / raw)
  To: Justin Pryzby <pryzby@telsasoft.com>; +Cc: pgsql-hackers@lists.postgresql.org

On 2021-Apr-26, Justin Pryzby wrote:

> On Thu, Apr 22, 2021 at 04:40:35PM -0400, Alvaro Herrera wrote:
> > Would anyone oppose me pushing this for tab-completing the new keywords
> > of ALTER TABLE ..  DETACH PARTITION?
> 
> +1 to apply tab completion for v14

Pushed.

-- 
Álvaro Herrera                            39°49'30"S 73°17'W
"Before you were born your parents weren't as boring as they are now. They
got that way paying your bills, cleaning up your room and listening to you
tell them how idealistic you are."  -- Charles J. Sykes' advice to teenagers





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-04-26 20:22 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 20:40 tab-complete for ALTER TABLE .. DETACH PARTITION CONCURRENTLY Alvaro Herrera <alvherre@alvh.no-ip.org>
2021-04-26 14:24 ` Justin Pryzby <pryzby@telsasoft.com>
2021-04-26 20:22   ` Alvaro Herrera <alvherre@alvh.no-ip.org>

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