Re: Looking for a doc section that presents the overload selection rules

Поиск
Список
Период
Сортировка
От Bryn Llewellyn
Тема Re: Looking for a doc section that presents the overload selection rules
Дата
Msg-id 35B730F5-27D8-4C2E-A6CE-5627E436533A@yugabyte.com
обсуждение исходный текст
Ответ на Re: Looking for a doc section that presents the overload selection rules  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
david.g.johnston@gmail.com wrote:

Bryn wrote:

There could, so easily, have been three “to_char()” overloads for these three data types…

The argument about avoiding the implicit cast, and thus being easier for newcomers to figure out, is the compelling one for me. But, frankly, “it just works” applies here - I’ve seen little evidence that there is a meaningful usability issue in the community.

Thanks, David. Yes, I agree. This will be my advice:

Use a “date” actual for “to_char()”, with no explicit typecast, and with a template that makes sense. In this special case it’s safe to relax the usual rule of practice and just let the implicit typecast have its innocent effect.

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Looking for a doc section that presents the overload selection rules
Следующее
От: Bryn Llewellyn
Дата:
Сообщение: Re: Looking for a doc section that presents the overload selection rules