Underscores in numeric literals

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Underscores in numeric literals
Дата
Msg-id 84aae844-dc55-a4be-86d9-4f0fa405cc97@enterprisedb.com
обсуждение исходный текст
Ответы Re: Underscores in numeric literals  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Here is a patch to add support for underscores in numeric literals, for 
visual grouping, like

     1_500_000_000
     0b10001000_00000000
     0o_1_755
     0xFFFF_FFFF
     1.618_034

per SQL:202x draft.

This adds support in the lexer as well as in the integer type input 
functions.

TODO: float/numeric type input support

I did some performance tests similar to what was done in [0] and didn't 
find any problematic deviations.  Other tests would be welcome.

[0]: 
https://www.postgresql.org/message-id/flat/b239564c-cad0-b23e-c57e-166d883cb97d@enterprisedb.com
Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Refactor recordExtObjInitPriv()
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Exit walsender before confirming remote flush in logical replication