This is an automated email from the ASF dual-hosted git repository.

maxyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/main by this push:
     new d162ebd28c Add EXTERNAL TABLE to autocomplete (#15350)
d162ebd28c is described below

commit d162ebd28c3bfc76ee6e3a88399c9d3219889d45
Author: Kirill Glisnky <[email protected]>
AuthorDate: Tue Jun 20 09:19:47 2023 +0300

    Add EXTERNAL TABLE to autocomplete (#15350)
    
    Extends the psql console utility.
    It's autocompletion capabilities with the "CREATE EXTERNAL TABLE" syntax.
    Now, when you type "CREATE EXT" and press Tab,
    both options will be offered:
    "CREATE EXTENSION" and "CREATE EXTERNAL TABLE".
---
 src/bin/psql/tab-complete.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 5d0081c811..01fa3a454a 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -1124,6 +1124,7 @@ static const pgsql_thing_t words_after_create[] = {
        {"DYNAMIC TABLE", NULL, NULL, &Query_for_list_of_matviews, 
THING_NO_ALTER},
        {"EVENT TRIGGER", NULL, NULL, NULL},
        {"EXTENSION", Query_for_list_of_extensions},
+       {"EXTERNAL TABLE", NULL, NULL, NULL},
        {"FOREIGN DATA WRAPPER", NULL, NULL, NULL},
        {"FOREIGN TABLE", NULL, NULL, NULL},
        {"FUNCTION", NULL, NULL, Query_for_list_of_functions},


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to