Re: adding tab completions
Artur Zakirov <a.zakirov@postgrespro.ru>
From: Arthur Zakirov <a.zakirov@postgrespro.ru>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2018-05-29T09:27:27Z
Lists: pgsql-hackers
Hello, On Mon, May 28, 2018 at 07:06:23PM -0500, Justin Pryzby wrote: > Find attached tab completion for the following: The patch works well. I have a couple notes. The patch replaces the variable Query_for_list_of_tmf by Query_for_list_of_tpmf. So I think Query_for_list_of_tmf isn't needed anymore and can be removed. I created partitioned table "measurement" and tried tab completion. VACUUM (ANALYZE) measurement (<tab> gives me only a comma. If I try to input table column: VACUUM (ANALYZE) measurement (city_id<tab> replaces "city_id" column by a comma: "VACUUM (ANALYZE) measurement (,". The following with whitespace after column works well: VACUUM (ANALYZE) measurement (city_id <tab> and gives: "VACUUM (ANALYZE) measurement (city_id ,". Also I think it could be good to list column names after parentheses, but I'm not sure if it easy to implement. -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company
Commits
-
Improve tab completion for ANALYZE, EXPLAIN, and VACUUM.
- 121213d9d852 12.0 landed
-
Minor fixes for psql tab completion.
- 12368f5e83e7 11.0 landed
- 7046d3024605 12.0 landed
-
Add parenthesized options syntax for ANALYZE.
- 854dd8cff523 11.0 cited
-
Don't allow VACUUM VERBOSE ANALYZE VERBOSE.
- 921059bd66c7 11.0 cited
-
Parameter toast_tuple_target controls TOAST for new rows
- c2513365a0a8 11.0 cited
-
Add hash partitioning.
- 1aba8e651ac3 11.0 cited
-
Allow multiple tables to be specified in one VACUUM or ANALYZE command.
- 11d8d72c27a6 11.0 cited
-
Don't uselessly rewrite, truncate, VACUUM, or ANALYZE partitioned tables.
- 3c3bb99330aa 10.0 cited
-
Remove deprecated COMMENT ON RULE syntax
- e8d016d81940 10.0 cited
-
Add VACUUM (DISABLE_PAGE_SKIPPING) for emergencies.
- ede62e56fbe8 9.6.0 cited
-
Extend EXPLAIN to allow generic options to be specified.
- d4382c4ae7ea 9.0.0 cited