Content-Length: 285967 | pFad | http://github.com/postgrespro/postgres/commit/08e1664ab467d867860ec9925be56357d60abe4a

BB Add FULL in VACUUM psql completion. · postgrespro/postgres@08e1664 · GitHub
Skip to content

Commit 08e1664

Browse files
committed
Add FULL in VACUUM psql completion.
1 parent 7ce0f9c commit 08e1664

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/bin/psql/tab-complete.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.44 2002/03/07 04:45:53 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.45 2002/03/07 20:48:41 momjian Exp $
77
*/
88

99
/*----------------------------------------------------------------------
@@ -732,11 +732,10 @@ psql_completion(char *text, int start, int end)
732732

733733
/* VACUUM */
734734
else if (strcasecmp(prev_wd, "VACUUM") == 0)
735-
COMPLETE_WITH_QUERY("SELECT relname FROM pg_class WHERE relkind='r' and substr(relname,1,%d)='%s' UNION SELECT 'ANALYZE'::text");
736-
else if (strcasecmp(prev2_wd, "VACUUM") == 0 && strcasecmp(prev_wd, "ANALYZE") == 0)
735+
COMPLETE_WITH_QUERY("SELECT relname FROM pg_class WHERE relkind='r' and substr(relname,1,%d)='%s' UNION SELECT 'FULL'::text UNION SELECT 'ANALYZE'::text");
736+
else if (strcasecmp(prev2_wd, "VACUUM") == 0 && (strcasecmp(prev_wd, "FULL") == 0 || strcasecmp(prev_wd, "ANALYZE") == 0))
737737
COMPLETE_WITH_QUERY(Query_for_list_of_tables);
738738

739-
740739
/* ... FROM ... */
741740
else if (strcasecmp(prev_wd, "FROM") == 0)
742741
COMPLETE_WITH_QUERY(Query_for_list_of_tables);

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/08e1664ab467d867860ec9925be56357d60abe4a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy