Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita7c4dad

Browse files
committed
Fix psql's tab completion for ALTER DATABASE ... SET TABLESPACE.
We have the infrastructure to offer a list of tablespace names, butit wasn't being used here; instead you got "FROM", "CURRENT", and "TO"which aren't actually legal in this syntax.Dagfinn Ilmari Mannsåker, reviewed by Arthur ZakirovDiscussion:https://postgr.es/m/d8jo9djvm7h.fsf@dalvik.ping.uio.no
1 parent1dba1b6 commita7c4dad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/bin/psql/tab-complete.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,10 @@ psql_completion(const char *text, int start, int end)
15881588
"IS_TEMPLATE","ALLOW_CONNECTIONS",
15891589
"CONNECTION LIMIT");
15901590

1591+
/* ALTER DATABASE <name> SET TABLESPACE */
1592+
elseif (Matches5("ALTER","DATABASE",MatchAny,"SET","TABLESPACE"))
1593+
COMPLETE_WITH_QUERY(Query_for_list_of_tablespaces);
1594+
15911595
/* ALTER EVENT TRIGGER */
15921596
elseif (Matches3("ALTER","EVENT","TRIGGER"))
15931597
COMPLETE_WITH_QUERY(Query_for_list_of_event_triggers);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp