aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2024-12-16 17:55:00 +0100
committerTomas Vondra <tomas.vondra@postgresql.org>2024-12-16 18:47:03 +0100
commit5dd5786b94cea4652035a5dc55c103ed09b0365b (patch)
tree7428ab6f6229c5c9943c814ac1052235c62d3f3d /src
parent86a5d6006aff956a5e00982b7628177fa7dc5027 (diff)
downloadpostgresql-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.c2
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"))