psql: Add some completion support for CREATE TABLE .. AS
authorMichael Paquier <michael@paquier.xyz>
Thu, 16 Nov 2023 00:44:29 +0000 (09:44 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 16 Nov 2023 00:44:29 +0000 (09:44 +0900)
commit816f10564a8671918e170a547625584d10587cf4
tree6e3f459fbe79fa2a4b5fdae61ec993b847ba7910
parent69c32b8b3535f7f367cca90a09d9557d575b270c
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
src/bin/psql/tab-complete.c