psql: Improve tab completion for GRANT/REVOKE
Michael Paquier <michael@paquier.xyz>
psql: Improve tab completion for GRANT/REVOKE This commit improves the handling of the following clauses: - Addition of "CREATE" for ALTER DEFAULT PRIVILEGES .. GRANT/REVOKE. - Addition of GRANT|ADMIN|INHERIT OPTION FOR for REVOKE, with some completion for roles, INHERIT being added recently by e3ce2de. - Addition of GRANT WITH ADMIN|INHERIT. The list of privilege options common to GRANT and REVOKE is refactored to avoid its duplication. Author: Shi Yu Reviewed-by: Kyotaro Horiguchi, Michael Paquier, Peter Smith Discussion: https://postgr.es/m/OSZPR01MB6310FCE8609185A56344EED2FD559@OSZPR01MB6310.jpnprd01.prod.outlook.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/tab-complete.c | modified | +27 −26 |
Discussion
- Fix some newly modified tab-complete changes 12 messages · 2022-09-27 → 2022-11-18