Improve tab completion for USER MAPPING - Mailing list pgsql-hackers

From Masahiko Sawada
Subject Improve tab completion for USER MAPPING
Date
Msg-id CAD21AoA-1eT4Oi4mkMiPsrA=UOCbUFj1AoHT1avUQHqkyXkFEg@mail.gmail.com
Whole thread Raw
Responses Re: Improve tab completion for USER MAPPING  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
List pgsql-hackers
Hi all,

I found that the tab completion for USER MAPPING doesn't work fine.
For example,

The below is no problem.
postgres=# create user[TAB]
user              user mapping for

But this doesn't work fine. (Note that there is a white space between
'user' and [TAB])
postgres=# create user [TAB]
hoge_user          masahiko           pg_signal_backend

After manual input of the 'mapping', 'for' is added by tab completion.
It means that the tab completion for 'mapping' is not working.

Patch attached.
Please review it.

Regards,

--
Masahiko Sawada

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Problem with dumping bloom extension
Next
From: Tom Lane
Date:
Subject: Re: Parallel pg_dump's error reporting doesn't work worth squat