Thread
Commits
-
Improve psql tab completion for various DROP commands
- 9270778f467d 15.0 landed
-
[PATCH] DROP tab completion
Ken Kato <katouknl@oss.nttdata.com> — 2021-11-29T09:05:52Z
Hi hackers, This time, I went through DROP tab completions and noticed some tab completions missing for the following commands: -DROP MATERIALIZED VIEW, DROP OWNED BY, DROP POLICY: missing [CASCADE|RESTRICT] at the end -DROP TRANSFORM: no completions after TRANSFORM I made a patch for this. Best wishes, -- Ken Kato Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION
-
Re: [PATCH] DROP tab completion
Asif Rehman <asifr.rehman@gmail.com> — 2021-11-30T15:17:07Z
The following review has been posted through the commitfest application: make installcheck-world: tested, passed Implements feature: tested, passed Spec compliant: tested, passed Documentation: not tested The patch applies cleanly and the functionality seems to work well. (master e7122548a3) The new status of this patch is: Ready for Committer
-
Re: [PATCH] DROP tab completion
Michael Paquier <michael@paquier.xyz> — 2021-12-01T02:07:23Z
On Tue, Nov 30, 2021 at 03:17:07PM +0000, Asif Rehman wrote: > The patch applies cleanly and the functionality seems to work well. (master e7122548a3) > > The new status of this patch is: Ready for Committer + else if (Matches("DROP", "MATERIALIZED", "VIEW", MatchAny)) + COMPLETE_WITH("CASCADE", "RESTRICT"); [...] + else if (Matches("DROP", "OWNED", "BY", MatchAny)) + COMPLETE_WITH("CASCADE", "RESTRICT"); This stuff is gathered around line 3284 in tab-complete.c as of HEAD at 538724f, but I think that you have done things right as there are already sections for those commands and they have multiple keywords. So, applied. Thanks! -- Michael