Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5dd5786

Browse files
committed
psql: Tab completion for LATERAL joins
When listing selectable objects after a JOIN, offer also LATERAL. Author: Andreas Karlsson Reviewed-By: Tomas Vondra Discussion: https://postgr.es/m/3a7e27bc-d6ed-4cb0-9b21-f21143fc1b37@proxel.se
1 parent 86a5d60 commit 5dd5786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5166,7 +5166,7 @@ match_previous_words(int pattern_id,
51665166

51675167
/* ... JOIN ... */
51685168
else if (TailMatches("JOIN"))
5169-
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_selectables);
5169+
COMPLETE_WITH_SCHEMA_QUERY_PLUS(Query_for_list_of_selectables, "LATERAL");
51705170

51715171
/* ... AT [ LOCAL | TIME ZONE ] ... */
51725172
else if (TailMatches("AT"))

0 commit comments

Comments
 (0)