diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2024-12-16 17:55:00 +0100 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2024-12-16 18:47:03 +0100 |
commit | 5dd5786b94cea4652035a5dc55c103ed09b0365b (patch) | |
tree | 7428ab6f6229c5c9943c814ac1052235c62d3f3d /src | |
parent | 86a5d6006aff956a5e00982b7628177fa7dc5027 (diff) | |
download | postgresql-5dd5786b94cea4652035a5dc55c103ed09b0365b.tar.gz postgresql-5dd5786b94cea4652035a5dc55c103ed09b0365b.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/tab-complete.in.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c index 9e23272fc0e..6a9c5e240fb 100644 --- a/src/bin/psql/tab-complete.in.c +++ b/src/bin/psql/tab-complete.in.c @@ -5166,7 +5166,7 @@ match_previous_words(int pattern_id, /* ... JOIN ... */ else if (TailMatches("JOIN")) - COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_selectables); + COMPLETE_WITH_SCHEMA_QUERY_PLUS(Query_for_list_of_selectables, "LATERAL"); /* ... AT [ LOCAL | TIME ZONE ] ... */ else if (TailMatches("AT")) |