| From: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> |
|---|---|
| To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
| Cc: | PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: psql - add ability to test whether a variable exists |
| Date: | 2017-08-26 17:55:34 |
| Message-ID: | alpine.DEB.2.20.1708261953040.27500@lancre |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> 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.
| Attachment | Content-Type | Size |
|---|---|---|
| psql-ifdef-2.patch | text/x-diff | 5.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2017-08-26 18:09:27 | Re: psql - add ability to test whether a variable exists |
| Previous Message | Michael Meskes | 2017-08-26 17:15:32 | Re: Build failure on thrips |