Re: psql command aliases support
От | Tom Lane |
---|---|
Тема | Re: psql command aliases support |
Дата | |
Msg-id | 4991.1207243161@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: psql command aliases support (Gregory Stark <stark@enterprisedb.com>) |
Ответы |
Re: psql command aliases support
|
Список | pgsql-patches |
Gregory Stark <stark@enterprisedb.com> writes: > I think you have to find a syntax where the current commands continue to mean > exactly what they always meant and where typos can't result in an entirely > different kind of behaviour. Yeah, the fundamental difference between the backslash command situation and aliases in shells and suchlike is that, because we've historically allowed no space between command name and argument, it's not that easy to tell what string ought to be compared against alias names. I think that an alias facility would only be acceptably safe if we disallowed that syntax (ie, start to *require* a space between command and args). Are we ready to do that? This discussion really needs to be moved to someplace more widely read than -patches, btw. regards, tom lane
В списке pgsql-patches по дате отправления: