diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2011-06-14 23:45:00 +0300 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2011-06-14 23:51:11 +0300 |
commit | 80721b518292501058bb57a05fb6e2131997d0ec (patch) | |
tree | 6d08baa6f7082d2d04e9313c1c608f2500710521 | |
parent | b48f888b644fb667dd87dc9c45d18890397d14a8 (diff) | |
download | postgresql-80721b518292501058bb57a05fb6e2131997d0ec.tar.gz postgresql-80721b518292501058bb57a05fb6e2131997d0ec.zip |
Allow psql \d tab completion to complete all relation kinds
This matches what \d actually accepts.
-rw-r--r-- | src/bin/psql/tab-complete.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index a43d6e31592..32f418306cd 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -369,11 +369,11 @@ static const SchemaQuery Query_for_list_of_updatables = { NULL }; -static const SchemaQuery Query_for_list_of_tisvf = { +static const SchemaQuery Query_for_list_of_relations = { /* catname */ "pg_catalog.pg_class c", /* selcondition */ - "c.relkind IN ('r', 'i', 'S', 'v', 'f')", + NULL, /* viscondition */ "pg_catalog.pg_table_is_visible(c.oid)", /* namespace */ @@ -2826,7 +2826,7 @@ psql_completion(char *text, int start, int end) /* must be at end of \d list */ else if (strncmp(prev_wd, "\\d", strlen("\\d")) == 0) - COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tisvf, NULL); + COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_relations, NULL); else if (strcmp(prev_wd, "\\ef") == 0) COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_functions, NULL); |