Re: Improve tab completion for ALTER FUNCTION/PROCEDURE/ROUTINE
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Melih Mutlu <m.melihmutlu@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, Dong Wook Lee <sh95119@gmail.com>,
pgsql-hackers@postgresql.org
Date: 2022-12-06T19:11:49Z
Lists: pgsql-hackers
Attachments
- v4-0001-Tab-completion-for-ALTER-FUNCTION-PROCEDURE-ROUTI.patch (application/x-patch) patch v4-0001
On Tue, 6 Dec 2022 at 20:42, Melih Mutlu <m.melihmutlu@gmail.com> wrote: > > Hi Vignesh, > > Looks like the patch needs a rebase. Rebased > Also one little suggestion: > >> + if (ends_with(prev_wd, ')')) >> + COMPLETE_WITH(Alter_routine_options, "CALLED ON NULL INPUT", >> + "RETURNS NULL ON NULL INPUT", "STRICT", "SUPPORT"); > > > What do you think about gathering FUNCTION options as you did with ROUTINE options. > Something like the following would seem nicer, I think. > >> #define Alter_function_options \ >> Alter_routine_options, "CALLED ON NULL INPUT", \ >> >> "RETURNS NULL ON NULL INPUT", "STRICT", "SUPPORT" I did not make it as a macro for alter function options as it is used only in one place whereas the others were required in more than one place. The attached v4 patch is rebased on top of HEAD. Regards, Vignesh
Commits
-
Fix tab completion of ALTER FUNCTION/PROCEDURE/ROUTINE ... SET SCHEMA.
- e7a59094b36a 16.0 landed
- 2daf4664ce54 15.2 landed
- 48599a18d079 14.7 landed
- 2ad4abedfeec 13.10 landed
- 274185d116f4 12.14 landed
- c54b88870081 11.19 landed
-
Improve tab completion for ALTER FUNCTION/PROCEDURE/ROUTINE.
- a3bc631ea96a 16.0 landed