Re: [HACKERS] psql - add ability to test whether a variable exists

Поиск
Список
Период
Сортировка
Искать
От
Fabien COELHO
Тема
Re: [HACKERS] psql - add ability to test whether a variable exists
Дата
Msg-id
alpine.DEB.2.20.1708261953040.27500@lancre
Ответ на
Список
Дерево обсуждения
[HACKERS] psql - add ability to test whether a variable exists Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql - add ability to test whether a variable exists Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] psql - add ability to test whether a variable exists Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql - add ability to test whether a variable exists Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql - add ability to test whether a variable exists Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] psql - add ability to test whether a variable exists Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql - add ability to test whether a variable exists Robins Tharakan <tharakan@gmail.com>
Re: [HACKERS] psql - add ability to test whether a variable exists Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql - add ability to test whether a variable exists Robins Tharakan <tharakan@gmail.com>
Re: [HACKERS] psql - add ability to test whether a variable exists Robins Tharakan <tharakan@gmail.com>
Re: [HACKERS] psql - add ability to test whether a variable exists Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql - add ability to test whether a variable exists Robins Tharakan <tharakan@gmail.com>
Re: [HACKERS] psql - add ability to test whether a variable exists Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] psql - add ability to test whether a variable exists Corey Huinker <corey.huinker@gmail.com>

> Any colon prefixed syntax can be made to work because it is enough for the 
> lexer to detect and handle... so
>
>  :{defined varname}
>
> may be an option, although I do not like the space much because it adds some 
> fuzzyness in the lexer which has to process it. It is probably doable, 
> though. I like having a "?" because there is a question. Other
> suggestions somehow in line with your proposal could be
>  :{?varname}
>  :{varname?}
> what do you think?

Here is a version with the :{?varname} syntax.

-- 
Fabien.
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Michael Meskes
Дата:
От: Pavel Stehule
Дата:
FAQ