pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Add some completion support for CREATE TABLE .. AS
Date: Thu, 16 Nov 2023 00:46:04 +0000
Message-ID: <E1r3QWC-005eIu-AB@gemulon.postgresql.org> (raw)

psql: Add some completion support for CREATE TABLE .. AS

"AS" is added as a suggested keyword for CREATE TABLE for a few query
patterns, including the case where a list of columns is given in
parenthesis.

More queries can be now completed with the keywords supported for
queries in a CTAS, after:
CREATE TABLE [TEMP|TEMPORARY|UNLOGGED] <name> [ (...) ] AS

Author: Gilles Darold
Reviewed-by: Jim Jones
Discussion: https://postgr.es/m/e462b251-99a7-4abc-aedc-214688742c80@darold.net

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/816f10564a8671918e170a547625584d10587cf4

Modified Files
--------------
src/bin/psql/tab-complete.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)



Message-ID: <E1r3QWC-005eIu-AB@gemulon.postgresql.org>
Permalink:  ../E1r3QWC-005eIu-AB@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1r3QWC-005eIu-AB@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: psql: Add some completion support for CREATE TABLE .. AS
  In-Reply-To: <E1r3QWC-005eIu-AB@gemulon.postgresql.org>

* 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