Re: Singleton range constructors versus functional coercion notation

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Singleton range constructors versus functional coercion notation
Дата
Msg-id 1321729047.11794.60.camel@jdavis
обсуждение исходный текст
Ответ на Singleton range constructors versus functional coercion notation  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Singleton range constructors versus functional coercion notation  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Singleton range constructors versus functional coercion notation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sat, 2011-11-19 at 12:27 -0500, Tom Lane wrote:
> The singleton range constructors don't work terribly well.
...

> I don't immediately see a solution that's better than dropping the
> single-argument range constructors.

We could change the name, I suppose, but that seems awkward. I'm
hesitant to remove them because the alternative is significantly more
verbose:
 numrange(1.0, 1.0, '[]');

But I don't have any particularly good ideas to save them, either.

Regarding the zero-argument (empty) constructors, I'd be fine removing
them. They don't seem to cause problems, but the utility is also very
minor.

Regards,Jeff Davis



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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: range_adjacent and discrete ranges
Следующее
От: Kohei KaiGai
Дата:
Сообщение: Re: Review for "Add permission check on SELECT INTO"