Skip to content

Commit e065443

Browse files
committed
Allow tab completion for ALTER TABLE dbname <tab><tab> to show new
RENAME TO option.
1 parent 97edeec commit e065443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/tab-complete.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.92 2003/11/06 22:08:15 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.93 2003/11/08 20:54:24 momjian Exp $
77
*/
88

99
/*----------------------------------------------------------------------
@@ -645,7 +645,7 @@ psql_completion(char *text, int start, int end)
645645
strcasecmp(prev2_wd, "DATABASE") == 0)
646646
{
647647
static const char *const list_ALTERDATABASE[] =
648-
{"RESET", "SET", NULL};
648+
{"RESET", "SET", "RENAME TO", NULL};
649649

650650
COMPLETE_WITH_LIST(list_ALTERDATABASE);
651651
}

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