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

Commitc9a8a40

Browse files
committed
Fix psql's tab completion for TABLE.
This should offer the same relation types that SELECT ... FROM would.You can't select from an index for instance, so offering it here isunhelpful. Noted while testing ilmari's recent patch.
1 parenta7c4dad commitc9a8a40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3327,7 +3327,7 @@ psql_completion(const char *text, int start, int end)
33273327

33283328
/* TABLE, but not TABLE embedded in other commands */
33293329
elseif (Matches1("TABLE"))
3330-
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_relations,NULL);
3330+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tsvmf,NULL);
33313331

33323332
/* TABLESAMPLE */
33333333
elseif (TailMatches1("TABLESAMPLE"))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp