Re: Patch: Add parse_type Function

Поиск
Список
Период
Сортировка
От Jim Jones
Тема Re: Patch: Add parse_type Function
Дата
Msg-id dbed3b98-3d86-41e4-bded-b15016f122dc@uni-muenster.de
обсуждение исходный текст
Ответ на Re: Patch: Add parse_type Function  (Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>)
Ответы Re: Patch: Add parse_type Function  ("David E. Wheeler" <david@justatheory.com>)
Список pgsql-hackers
On 05.02.24 15:32, Dagfinn Ilmari Mannsåker wrote:
> Once the function is declared strict, I don't think either of these is
> necessary: function strictness is tested elsewhere, and it's the default
> behaviour.  The only functions that explicitly say they return NULL on
> NULL inputs are quote_literal (because you might expect it to return the
> string 'NULL', but there's qoute_nullable for that) and xmlexists (which
> I don't see any particular reason for).
>
> - ilmari
>
>
+1
Yes, if the function was strict (which in the current design is not the
case) there is no need to check for nulls.

-- 
Jim




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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: cataloguing NOT NULL constraints
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Grant read-only access to exactly one database amongst many