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

Appearance settings

Commit c9a8a40

Browse filesBrowse 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 is unhelpful. Noted while testing ilmari's recent patch.
1 parent a7c4dad commit c9a8a40
Copy full SHA for c9a8a40

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/bin/psql/tab-complete.c
+1-1Lines 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
else if (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
else if (TailMatches1("TABLESAMPLE"))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.