Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit707195c

Browse files
committed
Allow psql \d tab completion to complete all relation kinds
This matches what \d actually accepts.
1 parentda023ac commit707195c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/bin/psql/tab-complete.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,11 @@ static const SchemaQuery Query_for_list_of_updatables = {
369369
NULL
370370
};
371371

372-
staticconstSchemaQueryQuery_for_list_of_tisvf= {
372+
staticconstSchemaQueryQuery_for_list_of_relations= {
373373
/* catname */
374374
"pg_catalog.pg_class c",
375375
/* selcondition */
376-
"c.relkind IN ('r', 'i', 'S', 'v', 'f')",
376+
NULL,
377377
/* viscondition */
378378
"pg_catalog.pg_table_is_visible(c.oid)",
379379
/* namespace */
@@ -2826,7 +2826,7 @@ psql_completion(char *text, int start, int end)
28262826

28272827
/* must be at end of \d list */
28282828
elseif (strncmp(prev_wd,"\\d",strlen("\\d"))==0)
2829-
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tisvf,NULL);
2829+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_relations,NULL);
28302830

28312831
elseif (strcmp(prev_wd,"\\ef")==0)
28322832
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_functions,NULL);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp