Re: [HACKERS] Undefined psql variables

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: [HACKERS] Undefined psql variables
Дата
Msg-id CAFj8pRD0NY_2FPxQO2nXzKU68mBh04BR2LFwJHNNaUmt1n+mkg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Undefined psql variables  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers




> I suggest to reuse pgbench expression engine, developed by Haas Robert:-)

Not a bad idea (though I'm sure there are other reasonable options, too).

I checked the pgbench code - and I think it can work well - just add logical operators and compare operators.

Don't need to create more complex language there.


> Generating a error message with ${foo:?} is nice, but what psql need is just
> a way to test whether a variable is defined or not.

I'm not saying we should slavishly follow bash, but don't confuse what
you need with what other people need.  bash (well, sh, really) grew
that syntax for a reason, and it may be more than "there was this one
guy back in the seventies who wanted it, and ...".

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: [HACKERS] Quorum commit for multiple synchronous replication.
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: [HACKERS] snapbuild woes