Content-Length: 264960 | pFad | http://github.com/postgrespro/postgres/commit/d16eb83aba2e0abdc809ecffd51cc00a1beab7b8

EE psql: Add completion support for AT [ LOCAL | TIME ZONE ] · postgrespro/postgres@d16eb83 · GitHub
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)








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/commit/d16eb83aba2e0abdc809ecffd51cc00a1beab7b8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy