Ought binary literals to allow spaces?

Поиск
Список
Период
Сортировка
От Chapman Flack
Тема Ought binary literals to allow spaces?
Дата
Msg-id 5E52B530.5040900@anastigmatix.net
обсуждение исходный текст
Ответы Re: Ought binary literals to allow spaces?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

ISO seems to allow spaces among the digits of a binary literal, so as
to group them for readability, as in X'00ba b10c'. We seem not to.
(The B'...' form appears to be a PostgreSQL extension, but I imagine
if ISO had it, it would allow spaces too.)

Is it worthwhile to allow that? Or to add a compatibility note somewhere
around sql-syntax-bit-strings saying we don't allow it?

For comparison, byteain does allow grouping whitespace.

It seems that byteain allows arbitrary whitespace (tabs, newlines, etc.),
whereas ISO's X'...' allows exactly and only U+0020 space characters.

Whitespace for byteain must occur between digit pairs; spaces in X'...'
per ISO can be anywhere.

Regards,
-Chap



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

Предыдущее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: Error on failed COMMIT
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Yet another fast GiST build