psql: Improve tab completion for GRANT/REVOKE CREATE
Complete GRANT CREATE, REVOKE CREATE, and REVOKE GRANT OPTION FOR CREATE
with ON. Previously, the generic CREATE completion rule took precedence
and suggested object types such as TABLE.
Exclude these cases from the CREATE completion rule so that the existing
GRANT/REVOKE rules can handle them.
Author: Haruna Miwa <miwa@sraoss.co.jp>
Reviewed-by: Sho Ito <i.sho.0628@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/OSOP286MB78539E88C47403451BFFF140F18A2@OSOP286MB7853.JPNP286.PROD.OUTLOOK.COM
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/00e917ef651120c261625b11a35b54990406f069
Modified Files
--------------
src/bin/psql/tab-complete.in.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)