Re: add tab-complete for ALTER DOMAIN ADD...
От | Álvaro Herrera |
---|---|
Тема | Re: add tab-complete for ALTER DOMAIN ADD... |
Дата | |
Msg-id | 202505111422.6ynxzsibjtfk@alvherre.pgsql обсуждение исходный текст |
Ответ на | Re: add tab-complete for ALTER DOMAIN ADD... (Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>) |
Ответы |
Re: add tab-complete for ALTER DOMAIN ADD...
|
Список | pgsql-hackers |
On 2025-Apr-29, Dagfinn Ilmari Mannsåker wrote: > jian he <jian.universality@gmail.com> writes: > > + /* ALTER DOMAIN <sth> ADD */ > > + else if (Matches("ALTER", "DOMAIN", MatchAny, "ADD")) > > + COMPLETE_WITH("CONSTRAINT", "NOT NULL", "CHECK"); > > I think the completion for CHECK should include the opening paren too, > since that's required for the expression. Yeah, we do that elsewhere. > We could also add completion after CONSTRAINT <name>, like this: > > else if(Matches("ALTER", "DOMAIN", MatchAny, "ADD", "CONSTRAINT", MatchAny)) > COMPLETE_WITH("NOT NULL", "CHECK ("); Done that, and pushed. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Los dioses no protegen a los insensatos. Éstos reciben protección de otros insensatos mejor dotados" (Luis Wu, Mundo Anillo)
В списке pgsql-hackers по дате отправления: