Content-Length: 258473 | pFad | http://github.com/postgrespro/postgres_cluster/commit/c9a8a401f169ec793b1a89b71b0340dd2cfe8bd7

DE Fix psql's tab completion for TABLE. · postgrespro/postgres_cluster@c9a8a40 · GitHub
Skip to content

Commit c9a8a40

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

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
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/c9a8a401f169ec793b1a89b71b0340dd2cfe8bd7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy