Re: [HACKERS] Variable substitution in psql backtick expansion

Поиск
Список
Период
Сортировка
От Corey Huinker
Тема Re: [HACKERS] Variable substitution in psql backtick expansion
Дата
Msg-id CADkLM=fKTp39o1HXk9Or_0LWb=+zarKuF3ja08EZEbzcQJ_9yg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Variable substitution in psql backtick expansion  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: [HACKERS] Variable substitution in psql backtick expansion
Список pgsql-hackers
On Tue, Apr 11, 2017 at 2:56 AM, Fabien COELHO <coelho@cri.ensmp.fr> wrote:

Hello Pavel,

I think so some local expression evaluation could be - but it should not be
placed in \if statement

Why?

\expr issupported :VERSION_NUM >= 10000

Hmmm. Although I do not buy this, it could work as a replacement for \set which it seems cannot be upgraded because some people may rely on it to just store whatever comes after it in a variable.

I have no strong opinion on how expressive expressions should be, but having a separate \expr (or \setexpr, etc) gives us a green field to develop them.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] GSOC'17 project introduction: Parallel COPY executionwith errors handling
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Reversed sync check in pg_receivewal