Skip to content

Commit d16eb83

Browse files
committed
psql: Add completion support for AT [ LOCAL | TIME ZONE ]
AT TIME ZONE is completed with a list of supported timezones, something not needed by AT LOCAL. Author: Dagfinn Ilmari Mannsåker Reviewed-by: Jim Jones Discussion: https://postgr.es/m/87jzyzsvgv.fsf@wibble.ilmari.org
1 parent 97957fd commit d16eb83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bin/psql/tab-complete.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4682,6 +4682,12 @@ psql_completion(const char *text, int start, int end)
46824682
else if (TailMatches("JOIN"))
46834683
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_selectables);
46844684

4685+
/* ... AT [ LOCAL | TIME ZONE ] ... */
4686+
else if (TailMatches("AT"))
4687+
COMPLETE_WITH("LOCAL", "TIME ZONE");
4688+
else if (TailMatches("AT", "TIME", "ZONE"))
4689+
COMPLETE_WITH_TIMEZONE_NAME();
4690+
46854691
/* Backslash commands */
46864692
/* TODO: \dc \dd \dl */
46874693
else if (TailMatchesCS("\\?"))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy