Re: [HACKERS] Inconsistent syntax for NumericOnly grammar production

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Re: [HACKERS] Inconsistent syntax for NumericOnly grammar production
Дата
Msg-id 9dd9dbcf-69aa-a093-e1d1-64007306678b@2ndquadrant.com
обсуждение исходный текст
Ответ на [HACKERS] Inconsistent syntax for NumericOnly grammar production  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 05/28/2017 11:16 PM, Tom Lane wrote:
> The inconsistency here means that you can do, for example,
> 
> regression=# set random_page_cost = +4;
> SET
> regression=# set random_page_cost = 4.2;
> SET
> 
> but not
> 
> regression=# set random_page_cost = +4.2;
> ERROR:  syntax error at or near "4.2"
> LINE 1: set random_page_cost = +4.2;
>                                 ^
> Any objections to allowing "+ FCONST" here?  I'm inclined to
> fix this and back-patch it as well.

Seems like the right thing to do; no objections here.
-- 
Vik Fearing                                          +33 6 46 75 15 36
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: [HACKERS] question about replication docs
Следующее
От: Masahiko Sawada
Дата:
Сообщение: [HACKERS] Fix a typo in execExpr.c