diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-09-05 18:17:47 -0400 | 
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-09-05 18:17:47 -0400 | 
| commit | 49ca462eb165dea297f1f110e8eac064308e9d51 (patch) | |
| tree | 2e90d6bfe5b3be5d91b9fa8966dcbe274cb6f717 /src/bin/psql/tab-complete.c | |
| parent | 6e427aa4e5f3ad79a79b463c470daf93fa15767b (diff) | |
Add \gdesc psql command.
This command acts somewhat like \g, but instead of executing the query
buffer, it merely prints a description of the columns that the query
result would have.  (Of course, this still requires parsing the query;
if parse analysis fails, you get an error anyway.)  We accomplish this
using an unnamed prepared statement, which should be invisible to psql
users.
Pavel Stehule, reviewed by Fabien Coelho
Discussion: https://postgr.es/m/CAFj8pRBhYVvO34FU=EKb=nAF5t3b++krKt1FneCmR0kuF5m-QA@mail.gmail.com
Diffstat (limited to 'src/bin/psql/tab-complete.c')
| -rw-r--r-- | src/bin/psql/tab-complete.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 1583cfa998e..7959f9ac16e 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -1433,7 +1433,7 @@ psql_completion(const char *text, int start, int end)  		"\\e", "\\echo", "\\ef", "\\elif", "\\else", "\\encoding",  		"\\endif", "\\errverbose", "\\ev",  		"\\f", -		"\\g", "\\gexec", "\\gset", "\\gx", +		"\\g", "\\gdesc", "\\gexec", "\\gset", "\\gx",  		"\\h", "\\help", "\\H",  		"\\i", "\\if", "\\ir",  		"\\l", "\\lo_import", "\\lo_export", "\\lo_list", "\\lo_unlink", | 
